:root {
  --bg: #131319;
  --bg2: #181822;
  --card: #1c1c28;
  --line: rgba(255, 255, 255, .08);
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --dim: #6b7280;
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --accent-soft: rgba(124, 58, 237, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* keep the HTML hidden attribute working against any display rule */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header / footer ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(19, 19, 25, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 12px; height: 60px; }
.nav img { width: 28px; height: 28px; border-radius: 8px; }
.nav .brand { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 14.5px; }
.nav nav a:hover { color: var(--ink); text-decoration: none; }

footer { border-top: 1px solid var(--line); margin-top: 72px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 26px 0; color: var(--dim); font-size: 14px; }
.foot .grow { flex: 1; }
.foot a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero img.logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 50px rgba(124, 58, 237, .35); }
.hero h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.15; margin: 28px auto 16px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15.5px;
  border: 1px solid var(--line); color: var(--ink); transition: transform .08s ease, background .12s ease;
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, .05); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: #6d28d9; }
.btn svg { width: 17px; height: 17px; }
.hero .note { margin-top: 18px; font-size: 13.5px; color: var(--dim); }

/* ---------- sections ---------- */
section { padding: 40px 0; }
h2 { font-size: 26px; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.card .ic {
  display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-2); margin-bottom: 14px;
}
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 16.5px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }

ol.steps { counter-reset: step; list-style: none; display: grid; gap: 14px; max-width: 720px; }
ol.steps li {
  counter-increment: step; display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
ol.steps li::before {
  content: counter(step); flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center;
}
ol.steps b { color: var(--ink); }
ol.steps p { color: var(--muted); font-size: 15px; }

kbd {
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--ink); white-space: nowrap;
}
table.keys { border-collapse: collapse; width: 100%; max-width: 640px; }
table.keys td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
table.keys td:first-child { width: 220px; }

.privacy-box {
  background: var(--card); border: 1px solid rgba(124, 58, 237, .35); border-radius: 16px; padding: 22px 24px;
  background-image: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(124, 58, 237, .04));
}
.privacy-box ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.privacy-box li { color: var(--muted); font-size: 15px; padding-left: 26px; position: relative; }
.privacy-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* ---------- feedback form ---------- */
form.feedback { max-width: 560px; display: grid; gap: 12px; }
form.feedback label { font-size: 13.5px; color: var(--muted); display: grid; gap: 5px; }
form.feedback input, form.feedback textarea {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 14.5px; padding: 11px 13px; width: 100%;
}
form.feedback input:focus, form.feedback textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
form.feedback textarea { min-height: 120px; resize: vertical; }
form.feedback .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { font-size: 14.5px; min-height: 22px; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }
button.submit {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px; padding: 12px 24px; cursor: pointer;
}
button.submit:hover { background: #6d28d9; }
button.submit[disabled] { opacity: .55; cursor: default; }

.legal h2 { margin-top: 28px; font-size: 20px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 14px; }
.legal .updated { color: var(--dim); font-size: 13.5px; margin-bottom: 8px; }

@media (max-width: 640px) {
  .nav nav { display: none; }
  .hero { padding: 56px 0 40px; }
}
