
:root {
  --bg: #08111b;
  --bg-soft: #0f1b2a;
  --card: rgba(15, 24, 35, 0.78);
  --text: #edf4ff;
  --muted: #b9c7d9;
  --line: rgba(255,255,255,0.08);
  --accent: #9dff7a;
  --accent-2: #a86bff;
  --max: 1180px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(118,255,182,.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255,93,109,.14), transparent 24%),
    linear-gradient(180deg, #061019 0%, #09131f 38%, #061019 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 16, 25, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: .02em;
}
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow); }
.brand small { display:block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 3px; }
.nav-links {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.btn, .button-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031019; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.btn:hover, .button-link:hover { transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255,255,255,.02);
  color: var(--text);
}
.btn.is-busy { opacity: .72; pointer-events: none; }
.hero {
  position: relative;
  padding: 78px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02; margin: 0 0 16px;
  letter-spacing: -.04em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08); color: var(--muted);
  background: rgba(255,255,255,.02);
  font-size: 13px; margin-bottom: 18px;
}
.hero-copy p {
  color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 66ch;
}
.hero-actions { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-points {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px;
}
.hero-points .point, .card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-points .point {
  padding: 16px 18px; color: var(--muted); min-height: 100%;
}
.hero-visual {
  position: relative; min-height: 530px;
}
.hero-visual .frame {
  position: absolute; inset: 0;
  border-radius: 34px; overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.hero-visual .frame img { width:100%; height:100%; object-fit: cover; }
.hero-visual .glow {
  position:absolute; inset:auto -10% 8% auto; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(118,255,182,.24), transparent 70%);
  filter: blur(8px);
}
section { padding: 34px 0; }
.section-head {
  margin-bottom: 22px; display:flex; justify-content:space-between; gap:18px; align-items:flex-end; flex-wrap:wrap;
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 42px); margin:0; letter-spacing:-.03em;
}
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; line-height: 1.7; }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  padding: 24px;
}
.card h3 { margin:0 0 12px; font-size: 20px; }
.card p, .card li {
  color: var(--muted); line-height: 1.75;
}
.card ul { margin: 0; padding-left: 18px; }
.process .step-number {
  width: 44px; height: 44px; border-radius: 12px;
  display:grid; place-items:center; font-weight: 800;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.kicker {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  margin-bottom: 10px;
}
.article-hero {
  padding: 56px 0 24px;
}
.article-shell {
  display:grid; grid-template-columns: 280px 1fr; gap: 24px;
}
.toc {
  position: sticky; top: 96px; align-self: start;
  background: var(--card); border:1px solid var(--line); border-radius: 20px; padding: 20px;
}
.toc h3 { margin: 0 0 10px; font-size: 16px; }
.toc a { display:block; color: var(--muted); padding: 8px 0; font-size: 14px; }
.prose {
  background: var(--card); border:1px solid var(--line); border-radius: 28px; padding: 30px;
}
.prose h1 { margin-top:0; font-size: clamp(34px, 4vw, 56px); letter-spacing:-.04em; }
.prose h2 { margin-top: 28px; font-size: 28px; letter-spacing:-.03em; }
.prose p, .prose li { color: var(--muted); line-height: 1.85; font-size: 17px; }
.prose ul { padding-left: 20px; }
.cta-band {
  margin-top: 20px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.faq-list { display:grid; gap: 12px; }
.faq-item {
  border-radius: 20px; border:1px solid var(--line); background: var(--card); overflow:hidden;
}
.faq-question {
  width: 100%; background: transparent; color: var(--text); border: 0; text-align:left;
  padding: 18px 20px; font: inherit; font-weight: 700; display:flex; justify-content:space-between; gap:18px;
  cursor:pointer;
}
.faq-answer { display:none; padding: 0 20px 20px; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-answer { display:block; }
.notice {
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: var(--muted);
}
.metric {
  padding: 22px;
  border-radius: 24px;
  background: var(--card); border:1px solid var(--line);
}
.metric strong { display:block; font-size: 36px; margin-bottom: 8px; }
.footer {
  padding: 26px 0 40px;
  color: var(--muted);
}
.footer-grid {
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.hidden { display: none !important; }
#cta-status { color: var(--muted); font-size: 14px; min-height: 20px; margin-top: 12px; }
#manual-link-wrap {
  margin-top: 12px; padding: 14px; border:1px dashed rgba(255,255,255,.16); border-radius: 16px;
  background: rgba(255,255,255,.02);
}
.table-wrap {
  overflow:auto;
  border-radius: 20px;
  border:1px solid var(--line);
}
table {
  width:100%; border-collapse: collapse; min-width: 540px;
}
th, td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); text-align:left;
}
thead th { color: var(--text); background: rgba(255,255,255,.03); }
tbody td { color: var(--muted); }
@media (max-width: 980px) {
  .hero-grid, .article-shell, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 24px)); }
  .nav { padding: 10px 0; align-items:flex-start; }
  .nav-links { gap: 12px; }
  .hero { padding-top: 34px; }
  .hero-points, .grid-4 { grid-template-columns: 1fr; }
  .prose { padding: 22px; }
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(157,255,122,.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(168,107,255,.14), transparent 24%),
    linear-gradient(180deg, #04070e 0%, #080c15 54%, #050811 100%);
}
.hero {
  padding-top: 88px;
}
.hero-visual .frame {
  border-radius: 40px;
}
.card, .prose, .toc {
  background:
    linear-gradient(180deg, rgba(14,18,28,.88), rgba(9,12,22,.82));
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em;
}
.hero-copy p {
  max-width: 58ch;
}
.metric strong {
  color: var(--accent);
}


/* Mobile + contrast fixes */
:root {
  --btn-text: #041018;
  --btn-text-strong: #ffffff;
}
html, body { overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
.btn, .button-link {
  color: var(--btn-text) !important;
  text-shadow: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn:hover, .button-link:hover,
.btn:focus-visible, .button-link:focus-visible {
  filter: brightness(1.03);
}
.btn.secondary {
  background: rgba(255,255,255,.07);
  color: var(--btn-text-strong) !important;
  border-color: rgba(255,255,255,.14);
}
.nav-links .btn {
  white-space: nowrap;
}
.hero-actions .btn,
#manual-link-wrap .button-link {
  min-width: 196px;
}
.card, .metric, .notice, .prose, .toc, .faq-item, .cta-band {
  overflow-wrap: anywhere;
}
.table-wrap { -webkit-overflow-scrolling: touch; }
@media (max-width: 980px) {
  .site-header { position: static; }
  .nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }
  .brand {
    width: 100%;
    align-items: center;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .nav-links a {
    padding: 8px 0;
    line-height: 1.35;
  }
  .hero {
    padding: 30px 0 28px;
  }
  .hero-grid {
    gap: 22px;
  }
  .hero-copy h1 {
    font-size: clamp(32px, 9vw, 52px);
    line-height: 1.04;
  }
  .hero-copy p {
    font-size: 16px;
    max-width: none;
  }
  .hero-points {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 300px;
  }
  .section-head {
    gap: 12px;
  }
  .section-head h2,
  .prose h1,
  .prose h2 {
    overflow-wrap: anywhere;
  }
  .footer-grid {
    gap: 22px;
  }
}
@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand small {
    font-size: 11px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .nav-links a,
  .nav-links .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links .btn {
    width: 100%;
    padding: 0 16px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-actions .btn,
  #manual-link-wrap .button-link {
    width: 100%;
    min-width: 0;
  }
  .hero-visual {
    min-height: 240px;
  }
  .hero-visual .frame {
    position: relative;
    min-height: 240px;
  }
  .hero-visual .frame img {
    min-height: 240px;
  }
  section {
    padding: 22px 0;
  }
  .card, .metric, .cta-band, .prose, .toc {
    border-radius: 20px;
  }
  .card, .metric {
    padding: 18px;
  }
  .cta-band, .prose, .toc {
    padding: 18px;
  }
  .faq-question {
    padding: 16px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 16px 16px;
  }
  th, td {
    padding: 12px 12px;
  }
  .metric strong {
    font-size: 30px;
  }
}
@media (max-width: 520px) {
  .nav-links {
    grid-template-columns: 1fr;
  }
  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 10vw, 40px);
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .table-wrap table {
    min-width: 460px;
  }
}
