:root {
  --bg: #12121f;
  --surface: #1a1a2e;
  --surface-2: #16213e;
  --border: #2a2f4a;
  --text: #eef0f6;
  --muted: #a4a9c0;
  --accent: #e94560;
  --accent-strong: #dc2645;
  --green: #4ade80;
  --radius: 12px;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-style: italic; font-size: 20px; text-decoration: none; letter-spacing: -0.02em;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px;
  background:
    conic-gradient(var(--text) 25%, var(--surface) 0 50%, var(--text) 0 75%, var(--surface) 0) 0 0 / 11px 11px;
  box-shadow: 0 0 0 2px var(--accent);
}
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav nav { gap: 14px; font-size: 14px; } }
@media (max-width: 420px) { .nav nav a[href="#ecosystem"] { display: none; } }

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

/* Hero */
.hero {
  padding: 80px 0 40px; text-align: center; overflow: hidden;
  background:
    radial-gradient(800px 400px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; max-width: 900px; margin: 0 auto 16px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 48px; }
.hero-shot { max-width: 1040px; margin: 0 auto; }
.hero-shot .frame { box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px var(--border); }

/* Screenshot frame */
.fig { margin: 0; }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.shot { display: block; cursor: zoom-in; }
.frame {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding-top: 26px; position: relative;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.8);
  transition: transform .2s, border-color .2s;
}
.frame::before {
  content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57; box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}
.frame:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }

/* Sections */
.features, .ecosystem { padding: 72px 0; }
.section-title { font-size: clamp(28px, 4.4vw, 40px); text-align: center; margin-bottom: 16px; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.feature {
  display: grid; gap: 28px; align-items: center;
  padding: 44px 0; border-top: 1px solid var(--border);
}
.features .section-title { margin-bottom: 40px; }
.feature h3 { font-size: 28px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0 0 14px; font-size: 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.shot-stack { display: grid; gap: 24px; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 56px; }
  .feature:nth-of-type(even) .copy { order: 2; }
}

/* Ecosystem */
.ecosystem { background: var(--surface); border-block: 1px solid var(--border); }
.cards { display: grid; gap: 20px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 20px; margin: 16px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 40px; height: 40px; padding: 8px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* About */
.about { padding: 24px 0 8px; }
.about-inner { max-width: 720px; text-align: center; }
.about h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 18px; }
.about p { color: var(--muted); margin: 0 0 16px; font-size: 18px; }

/* Coming soon */
.coming { padding: 72px 0 24px; }
@media (min-width: 800px) { .cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; } }

/* Beta */
.beta { padding: 48px 0 80px; }
.beta-inner { max-width: 720px; text-align: center; }
.beta h2 { font-size: 22px; margin-bottom: 10px; }
.beta p { color: var(--muted); margin: 0; font-size: 18px; }
.beta a { color: var(--accent); text-underline-offset: 3px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; text-align: center; }

/* Lightbox */
dialog#lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible;
}
dialog#lightbox::backdrop { background: rgba(6, 6, 14, .88); }
dialog#lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
dialog#lightbox form { position: absolute; top: -14px; right: -14px; }
dialog#lightbox .close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
@media (max-width: 600px) { dialog#lightbox form { top: 6px; right: 6px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame { transition: none; }
}
