:root {
  --bg: #0f1420;
  --bg-2: #161d2c;
  --card: #1b2333;
  --line: #2a3448;
  --text: #e8ecf3;
  --muted: #9aa6bb;
  --accent: #5fb3ff;
  --accent-2: #3d8fe0;
  --good: #49c58b;
  --warn: #f0b545;
  --bad: #ef6b6b;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(15, 20, 32, 0.85); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #8b7bff); display: grid; place-items: center; font-size: 15px; color: #0b1020; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #07111f; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 15px var(--font); cursor: pointer; text-decoration: none; transition: background 0.15s, opacity 0.15s; }
.btn-primary { background: var(--accent); color: #07111f; }
.btn-primary:hover { background: #7cc2ff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 7px 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
input[type="text"], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; font: 15px var(--font);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 0; border-color: transparent; }
label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 14px; }

/* landing */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 14px auto 18px; max-width: 820px; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 auto 30px; }
.checker { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.checker input { flex: 1; }
.checker-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.result { max-width: 760px; margin: 28px auto 0; text-align: left; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.result-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.result-head img { width: 140px; border-radius: 8px; }
.result-head h3 { margin: 0 0 4px; }
.reach-bar { height: 14px; border-radius: 999px; background: #3a2430; overflow: hidden; margin: 10px 0 6px; }
.reach-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--good), #7ee0b0); }
.big-stat { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 13px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.chip.missing { border-color: #5a3640; color: #f2b3b3; }
.chip.ok { border-color: #2f5a46; color: #a6e8c6; }

section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 10px; text-align: center; }
section.block .sub { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 34px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.price { text-align: center; }
.price .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0; }
.price ul { text-align: left; color: var(--muted); padding-left: 20px; margin: 16px 0 22px; }
.price.featured { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2) inset; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* tool */
.tool { padding: 34px 0 80px; }
.tool h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.panel h2 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #07111f; font-size: 13px; display: grid; place-items: center; }
.panel.locked { opacity: 0.45; pointer-events: none; }
.drop { margin-top: 14px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(95, 179, 255, 0.05); }
.drop strong { color: var(--text); }
ol.howto { color: var(--muted); font-size: 14px; margin: 12px 0 0; padding-left: 20px; }

.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.lang { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); font-size: 14px; cursor: pointer; }
.lang input { accent-color: var(--accent); width: 16px; height: 16px; }
.lang .share { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lang .tag { font-size: 11px; color: var(--good); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.space { justify-content: space-between; }
.mt { margin-top: 14px; }

.progress { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 14px; }
.prog { padding: 9px 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.prog.running { border-color: var(--accent-2); }
.prog.done { border-color: #2f5a46; }
.prog.warn { border-color: #6b5520; }
.prog.error { border-color: #6b2f35; }
.prog .st { color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tab { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: 14px; }
.tab.active { background: var(--accent); color: #07111f; border-color: var(--accent); font-weight: 600; }
.tab .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 6px; vertical-align: middle; }
.field { margin-top: 18px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field-head .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-head .count.over { color: var(--bad); font-weight: 700; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.src { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 340px; overflow: auto; }
.pair textarea { font-size: 14px; min-height: 120px; max-height: 340px; }
.warning { margin-top: 8px; font-size: 14px; color: var(--warn); }
.backcheck { margin-top: 8px; font-size: 14px; color: var(--muted); background: var(--bg-2); border-left: 3px solid var(--accent-2); padding: 8px 12px; border-radius: 0 8px 8px 0; }

.license { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, rgba(95, 179, 255, 0.1), rgba(139, 123, 255, 0.1)); border: 1px solid #34466a; border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; }
.license.ok { background: rgba(73, 197, 139, 0.08); border-color: #2f5a46; }
.license .keyrow { display: flex; gap: 8px; }
.license .keyrow input { width: 280px; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.notice.error { background: rgba(239, 107, 107, 0.1); border: 1px solid #6b2f35; color: #f6c0c0; }
.notice.info { background: rgba(95, 179, 255, 0.08); border: 1px solid #2c4a6e; color: #c5e1ff; }
.notice.warn { background: rgba(240, 181, 69, 0.08); border: 1px solid #6b5520; color: #f6dfa9; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-size: 13px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .grid3, .grid2, .pair { grid-template-columns: 1fr; }
  .checker { flex-direction: column; }
  .top nav a.hide-sm { display: none; }
  .result-head { flex-direction: column; align-items: flex-start; }
  .license .keyrow { flex-direction: column; width: 100%; }
  .license .keyrow input { width: 100%; }
}
