:root {
  color-scheme: dark;
  --bg: #080b16;
  --surface: #10162a;
  --surface-2: #161e36;
  --line: rgba(142, 167, 255, 0.18);
  --text: #edf1ff;
  --muted: #9caad2;
  --blue: #6b92ff;
  --violet: #b17cff;
  --mint: #52dfca;
  --max: 1180px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -10%, rgba(107, 146, 255, 0.19), transparent 34rem),
    radial-gradient(circle at 92% 22%, rgba(177, 124, 255, 0.14), transparent 30rem);
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 22, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(107, 146, 255, 0.3);
}

.brand strong,
.brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.site-header nav, footer nav { display: flex; gap: 22px; }
.site-header nav a, footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav a:hover, footer nav a:hover { color: var(--text); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.button:hover { border-color: var(--blue); transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, #547fff, #875df2); border-color: transparent; }
.button-small { min-height: 38px; padding: 8px 14px; }

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max);
  min-height: 700px;
  margin: auto;
  padding: 90px 24px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.025em; }
h1 { margin: 12px 0 22px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: 0.96; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--blue), var(--violet), var(--mint)); background-clip: text; }
h2 { margin: 8px 0 16px; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.04; }
h3 { margin: 10px 0; }
.hero-lead, .section-lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions, .docs-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.trust-list li::before { content: "✓"; color: var(--mint); margin-right: 6px; }

.browser-preview {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(107, 146, 255, 0.35);
  border-radius: 22px;
  background: #0a0f1d;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48), 0 0 70px rgba(107, 146, 255, 0.12);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.preview-tabs { display: flex; gap: 10px; align-items: center; height: 48px; padding: 0 16px; background: #11182a; color: var(--muted); font-size: 12px; }
.preview-tabs span:first-child { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.preview-tabs span:nth-child(2) { padding: 8px 50px 8px 14px; border-radius: 8px 8px 0 0; background: #1a2440; color: white; }
.preview-address { margin: 13px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 13px; }
.preview-address span { margin-right: 10px; color: var(--blue); font-size: 10px; }
.preview-content { display: grid; min-height: 300px; place-content: center; padding: 30px; text-align: center; }
.preview-content > p { font-size: 24px; font-weight: 750; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-grid span { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; }

.section, .docs-hero {
  max-width: var(--max);
  margin: auto;
  padding: 95px 24px;
}

.intro { text-align: center; }
.intro .section-lead { max-width: 760px; margin: 0 auto; }
.feature-grid, .download-grid, .journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.feature-grid article, .download-grid article, .journey-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 30, 54, 0.92), rgba(12, 17, 33, 0.92));
}

.feature-grid p, .download-grid p, .journey-grid p, .journey-grid li { color: var(--muted); line-height: 1.6; font-size: 14px; }
.feature-grid small, .platform { color: var(--mint); font-size: 11px; font-weight: 700; }
.number { color: var(--blue); font-family: ui-monospace, monospace; font-size: 12px; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.plain-list { display: grid; gap: 8px; }
.plain-list p { margin: 0; padding: 17px; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.55; }
.plain-list strong { color: var(--text); }
.journey-grid ol { padding-left: 20px; }
.journey-grid li { margin-bottom: 8px; }

.docs-callout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  padding: 55px;
  border: 1px solid rgba(177, 124, 255, 0.28);
  border-radius: 24px;
  background: radial-gradient(circle at 100% 0%, rgba(177, 124, 255, 0.17), transparent 40%), var(--surface);
}
.docs-callout p { color: var(--muted); line-height: 1.6; }
.docs-buttons { align-content: center; flex-direction: column; }
.text-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.download-grid { grid-template-columns: repeat(4, 1fr); }
.download-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.download-grid article .button { margin-top: auto; }
.release-note { margin-top: 20px; padding: 18px; border: 1px solid rgba(255, 190, 70, 0.28); border-radius: 12px; color: #d6c28f; background: rgba(255, 190, 70, 0.06); }
.faq details { margin-top: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { color: var(--muted); line-height: 1.6; }
.docs-hero { padding-top: 120px; text-align: center; }
.docs-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.docs-hero p:last-child { max-width: 780px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.6; }
code { color: var(--mint); }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: var(--max);
  margin: 50px auto 0;
  padding: 40px 24px 55px;
  border-top: 1px solid var(--line);
}
footer p { color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero, .split, .docs-callout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 70px; }
  .browser-preview { transform: none; }
  .feature-grid, .journey-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 14px; }
  .brand small { display: none; }
  .site-header .button { padding-inline: 10px; }
  .hero, .section, .docs-hero { padding-inline: 16px; padding-block: 65px; }
  .feature-grid, .download-grid, .journey-grid { grid-template-columns: 1fr; }
  .docs-callout { margin-inline: 12px; padding: 28px 20px; }
  .preview-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
}
