/* Converto.io — site styles. Self-contained: pages don't depend on any other stylesheet. */
:root {
  --bg: #0f1220;
  --bg-alt: #161a2c;
  --panel: #1b2036;
  --border: #2a2f47;
  --text: #eef0f7;
  --text-dim: #a2a8c0;
  --accent: #6c5ce7;
  --accent-hover: #7d6ef0;
  --accent-2: #00d1b2;
  --danger: #ff7b7b;
  --radius: 12px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo-dot { color: var(--accent-2); }
.header-right { display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--text); }

/* language menu */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; user-select: none; white-space: nowrap;
  padding: 6px 14px; font-size: 14px; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary, .lang-switch summary:hover { border-color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px;
  padding: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.lang-link { padding: 6px 10px; border-radius: 6px; color: var(--text-dim); text-decoration: none; font-size: 14px; }
.lang-link:hover { background: var(--bg-alt); color: var(--text); }
.lang-link.current { color: var(--text); font-weight: 600; }

/* hero */
.hero { text-align: center; padding-top: 64px; padding-bottom: 44px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }

/* tool */
.tools { padding-bottom: 8px; }
.tool-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.primary-btn {
  display: inline-block; margin-top: 20px; padding: 12px 28px; border: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s ease;
}
.primary-btn:hover { background: var(--accent-hover); }
.primary-btn:disabled { opacity: .5; cursor: default; background: var(--accent); }
.link-btn {
  display: block; margin-top: 10px; padding: 0; border: 0; background: none;
  color: var(--accent-2); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}

.progress-wrap { margin-top: 22px; }
.progress-bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s ease; }
.progress-label { margin-top: 10px; font-size: 14px; color: var(--text-dim); }

.result { margin-top: 22px; }
.result-title { margin: 0; color: var(--accent-2); font-size: 18px; font-weight: 700; }

.error-box {
  margin-top: 18px; padding: 12px 14px; border-radius: 8px; font-size: 14px;
  color: var(--danger); background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .35);
}

/* text sections */
.about { padding-top: 48px; padding-bottom: 24px; color: var(--text-dim); }
.about h2 { margin: 0 0 12px; color: var(--text); font-size: 22px; }
.about p { margin: 0 0 14px; }
#about, #privacy { border-top: 1px solid var(--border); }
#about { margin-top: 40px; }
#privacy { margin-top: 24px; }

/* footer */
.site-footer { margin-top: 48px; padding-bottom: 32px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--text-dim); }

@media (max-width: 600px) {
  .header-inner { min-height: 60px; }
  .site-nav { display: none; }
  .hero { padding-top: 36px; padding-bottom: 24px; }
  .tool-panel { padding: 20px 16px; border-radius: 12px; }
}
