:root {
  --bg: #0a0d12;
  --bg-2: #0f141c;
  --fg: #e6edf3;
  --muted: #8b97a8;
  --line: #1c232e;
  --accent: #7c5cff;
  --accent-2: #5cf2c8;
  --error: #ff6b6b;
  --ok: #4ade80;
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(92, 242, 200, 0.07), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 13, 18, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #4f7dff 55%, var(--accent-2));
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.45);
}
.brand-name { font-size: 17px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

@media (max-width: 540px) {
  .nav-links a:not([href*="t.me"]) { display: none; }
}

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 24px 56px;
}
.kicker {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.08);
  color: var(--accent-2);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ticks {
  list-style: none; padding: 0; margin: 0;
  color: var(--muted); font-size: 14.5px;
}
.ticks li {
  position: relative; padding-left: 22px; margin-bottom: 6px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent-2);
  border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px;
  font: inherit; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #8a6dff, #6b4ff0);
  color: white;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, #9b80ff, #7458ff); color: white; }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #2a3242; color: var(--fg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ================= TRIAL CARD ================= */
.card {
  background: linear-gradient(180deg, rgba(20, 26, 36, 0.85), rgba(15, 20, 28, 0.85));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.trial-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.trial-card .muted { font-size: 14.5px; margin: 0 0 20px; }

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

.fineprint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
}
.error {
  background: rgba(255, 107, 107, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 14px 0 0;
}
.ok-badge {
  display: inline-block;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.key-meta {
  font-size: 14px; color: var(--muted); margin-bottom: 14px;
}
.key-meta strong { color: var(--fg); }
.result .btn { margin-top: 6px; }
.result .btn + .btn { margin-top: 10px; }

/* ================= SECTIONS ================= */
.section { padding: 64px 24px; border-top: 1px solid var(--line); }
.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
details summary {
  cursor: pointer; list-style: none;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--muted); font-size: 22px;
  transition: transform 0.15s ease;
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 8px 0 0; }

/* ================= FOOTER ================= */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 24px 40px;
  color: var(--muted); font-size: 14px;
}
.footer nav { display: flex; gap: 18px; }
