@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --surface: #0e1014;
  --surface-2: #13161c;
  --line: #1e232c;
  --text: #f3f5f8;
  --muted: #98a1b0;
  --accent: #8fd3ff;
  --accent-ink: #04121c;
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 10, .78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 "Inter", sans-serif; text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #a9ddff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #39404c; }
.nav .btn { padding: 10px 18px; color: var(--accent-ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px;
  right: -140px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 255, .22), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 10px; background: rgba(14, 16, 20, .7);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.03em; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; margin: 22px 0 22px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Browser mock */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(143, 211, 255, .04);
  overflow: hidden; transform: rotate(1.5deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #262b35; }
.mock-url { margin-left: 10px; flex: 1; height: 22px; border-radius: 6px; background: var(--surface-2); font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.sk { background: var(--surface-2); border-radius: 8px; }
.sk-hero { height: 110px; background: linear-gradient(120deg, rgba(143, 211, 255, .28), rgba(143, 211, 255, .05)); }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-card { height: 74px; }
.sk-line { height: 10px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.mock-badge {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px;
}
.mock-badge b { color: var(--accent); font-weight: 600; }

/* Sections */
section { padding: 96px 0; }
.sec-head { max-width: 40em; margin-bottom: 48px; }
.kicker { font-size: 14px; color: var(--accent); font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-weight: 700; }
.sec-head p:not(.kicker) { color: var(--muted); margin: 16px 0 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #2c3340; transform: translateY(-2px); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(143, 211, 255, .1); color: var(--accent); margin-bottom: 20px;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps .num { font: 600 14px/1 "Space Grotesk", sans-serif; color: var(--accent); }
.steps h3 { font-size: 21px; font-weight: 600; margin: 14px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: grid; gap: 18px;
}
.about-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; font-size: 15px; }
.about-row:last-child { border-bottom: 0; padding-bottom: 0; }
.about-row span { color: var(--muted); }
.about p { color: var(--muted); }
.about p strong { color: var(--text); font-weight: 600; }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 72px 48px; text-align: center;
}
.contact::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 700px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(143, 211, 255, .18), transparent 65%);
}
.contact > * { position: relative; }
.contact p { color: var(--muted); max-width: 32em; margin: 16px auto 32px; }
.contact p.kicker { color: var(--accent); margin: 0 0 12px; }
.mail {
  display: inline-block; font: 600 clamp(22px, 3.4vw, 34px)/1.2 "Space Grotesk", sans-serif;
  color: var(--accent); text-decoration: none; letter-spacing: -.02em; margin-top: 22px;
  border-bottom: 2px solid rgba(143, 211, 255, .35); transition: border-color .15s;
}
.mail:hover { border-color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 24px; }
.legal p, .legal li { color: var(--muted); overflow-wrap: break-word; }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 56px 0 14px; }
.legal h3 { font-size: 20px; font-weight: 600; margin: 36px 0 8px; letter-spacing: -.02em; }
.legal h4 { font: 600 16px/1.4 "Inter", sans-serif; color: var(--text); margin: 22px 0 4px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal section h2 { font-size: clamp(20px, 2.4vw, 23px); margin: 0 0 12px; }
.legal .kicker { margin: 0 0 12px; color: var(--accent); }
.legal .updated { font-size: 14px; margin-bottom: 32px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .source { font-size: 14px; margin-top: 48px; }
.notice { border: 1px dashed #3a4250; border-radius: 14px; padding: 18px 20px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .about { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 520px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 56px 0 64px; }
  section { padding: 72px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .contact { padding: 56px 22px; border-radius: 22px; }
  .lead { font-size: 17px; }
  .sk-row { grid-template-columns: repeat(2, 1fr); }
  .sk-row .sk-card:last-child { display: none; }
}
