:root {
  --bg: #05080f;
  --panel: #0a101b;
  --line: rgba(255, 255, 255, .13);
  --text: #f4f7fb;
  --muted: #8f9bae;
  --accent: #00b4f0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 8, 15, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: auto; }
.mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.pill {
  border: 1px solid rgba(0, 180, 240, .6); color: var(--accent);
  border-radius: 999px; padding: 6px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}

/* Type */
.eyebrow {
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; margin-bottom: 20px;
}
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin-bottom: 24px; }
h2.accent { color: var(--accent); }
.section p, .closing p { color: var(--muted); margin-bottom: 20px; }
.fine { font-size: 13px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 0 0;
  background: radial-gradient(900px 520px at 78% 18%, rgba(0, 180, 240, .16), transparent 70%);
}
/* Slowly panning grid and a drifting glow behind the hero */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  animation: grid-pan 30s linear infinite;
}
.hero::after {
  width: 520px; height: 520px; left: 8%; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 240, .22), transparent 65%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes grid-pan { to { background-position: 56px 56px; } }
@keyframes drift { to { transform: translate(55vw, 160px) scale(1.25); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lede { color: var(--muted); font-size: 19px; margin: 26px 0 34px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 16px; line-height: 1.3;
  color: inherit; background: transparent; cursor: pointer;
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { cursor: progress; opacity: .7; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #04121b; }
.btn-primary:hover { background: #2cc6fb; box-shadow: 0 10px 34px -10px rgba(0, 180, 240, .8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 8px 16px; font-size: 14px; border-color: rgba(0, 180, 240, .6); color: var(--accent); }
.btn-small:hover { background: rgba(0, 180, 240, .12); }
.notice { color: #66728a; font-size: 13px; margin-top: 30px; }

/* Value card */
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow: hidden; }
.card-head, .card-foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 26px; font-size: 12px; color: var(--muted);
}
.card-head { letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.card-foot { border-top: 1px solid var(--line); }
.card-body { padding: 30px 26px 0; }
.label, .caption { color: var(--muted); font-size: 14px; }
.figure { font-size: clamp(46px, 6vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin: 6px 0; }
.figure small { font-size: 18px; color: var(--muted); letter-spacing: 0; }
.chart-wrap { position: relative; margin-top: 22px; }
.chart { display: block; width: 100%; height: 190px; }
.chart-dot {
  position: absolute; right: 0; top: 10.9%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); transform: translate(50%, -50%);
  box-shadow: 0 0 0 0 rgba(0, 180, 240, .6);
}
.js .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6, .1, .2, 1) .7s forwards; }
.js .chart-area { opacity: 0; animation: fade-in 1.2s ease 2s forwards; }
.js .chart-dot { opacity: 0; animation: fade-in .3s ease 2.8s forwards, ping 2s ease-out 3s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 180, 240, .65); }
  100% { box-shadow: 0 0 0 16px rgba(0, 180, 240, 0); }
}

/* Hero entrance */
.js .hero-copy > *, .js .value-card { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .2s; }
.js .hero-copy > :nth-child(4) { animation-delay: .3s; }
.js .hero-copy > :nth-child(5) { animation-delay: .4s; }
.js .value-card { animation-delay: .35s; }
.js h1 em { display: inline-block; background: linear-gradient(90deg, var(--accent), #8be4ff, var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Scroll reveal (classes added by main.js) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Ticker band */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { padding: 16px 28px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: "◆"; color: var(--accent); margin-right: 28px; font-size: 9px; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Specs */
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.specs div { padding: 26px 24px; border-left: 1px solid var(--line); }
.specs div:first-child { border-left: 0; padding-left: 0; }
.specs strong { display: block; font-size: 22px; font-weight: 700; }
.specs span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { border: 1px solid var(--line); border-radius: 8px; padding: 11px 20px; font-size: 16px; transition: border-color .2s, color .2s, transform .2s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.formula {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin: 30px 0 22px;
}
.formula div { flex: 1 1 150px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: var(--panel); }
.formula span { display: block; color: var(--muted); font-size: 13px; }
.formula strong { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.formula i { align-self: center; font-style: normal; font-size: 24px; color: var(--accent); }
.formula .result { border-color: rgba(0, 180, 240, .6); }
.formula .result.in { animation: glow 3s ease-in-out 1s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 34px -6px rgba(0, 180, 240, .55); } }
.formula .result strong { color: var(--accent); }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; background: var(--panel); }
.steps li.in { transition: opacity .8s, transform .3s, border-color .3s; }
.steps li:hover { border-color: rgba(0, 180, 240, .6); transform: translateY(-4px); }
.steps .n { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .2em; }
.steps h3 { font-size: 22px; margin: 14px 0 8px; }
.steps p { margin: 0; font-size: 16px; }

.address-card {
  border: 1px solid rgba(0, 180, 240, .5); border-radius: 14px; background: var(--panel);
  padding: 24px; margin: 8px 0 28px;
}
.address-card code {
  display: block; margin: 8px 0 20px; font: 600 18px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); word-break: break-all;
}
.address-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.address-actions .btn { padding: 12px 20px; font-size: 15px; }

.table { margin: 0 0 20px; border-top: 1px solid var(--line); }
.table div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--muted); }
.table dd { margin: 0; font-weight: 600; text-align: right; }
.table .muted { color: var(--muted); font-weight: 400; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--accent); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 26px; padding-right: 40px; }
.faq details[open] p { animation: rise .45s ease both; }
.faq summary:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  max-width: min(460px, calc(100% - 32px)); padding: 14px 20px; border-radius: 10px;
  background: #0e1726; border: 1px solid rgba(0, 180, 240, .5); color: var(--text); font-size: 15px;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); text-decoration: underline; }

/* Closing + footer */
.closing { padding: 110px 0; background: radial-gradient(640px 340px at 50% 60%, rgba(0, 180, 240, .18), transparent 70%); }
.closing p { margin-bottom: 32px; }
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.disclaimer { color: #66728a; font-size: 13px; margin: 18px 0 34px; max-width: 70em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #66728a; font-size: 13px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .specs { grid-template-columns: 1fr; margin-top: 52px; }
  .specs div { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .specs div:first-child { border-top: 0; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .pill { display: none; }
  .address-card { padding: 20px; }
  .address-card code { font-size: 15px; }
  .formula i { display: none; }
  .card-head, .card-foot { padding-inline: 20px; }
  .card-body { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .chart-area, .js .chart-dot { opacity: 1; transform: none; }
  .js .chart-line { stroke-dashoffset: 0; }
}
