:root {
  --bg: #05070c;
  --bg-elev: #0b0f19;
  --card: rgba(14, 19, 31, 0.72);
  --card-hover: rgba(19, 25, 40, 0.84);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.17);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --text: #f1f5fb;
  --muted: #98a5bc;
  --dim: #66738c;
  --amber: #f59e0b;
  --amber-hi: #fcd34d;
  --teal: #2dd4bf;
  --blue: #38bdf8;
  --accent: #0a84ff;
  --accent-hi: #2b96ff;
  --green: #34d399;
  --radius: 20px;
  --radius-sm: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); }

/* Layered Telemetry Atmosphere */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(960px 540px at 50% -6%, rgba(10, 132, 255, 0.20), transparent 62%),
    radial-gradient(680px 460px at 14% 12%, rgba(245, 158, 11, 0.13), transparent 58%),
    radial-gradient(640px 440px at 88% 18%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(720px 500px at 50% 85%, rgba(10, 132, 255, 0.08), transparent 65%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}
.scanline {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), rgba(245, 158, 11, 0.45), transparent);
  opacity: 0.7;
}

/* Floating Liquid Glass Header */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 20px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 1140px; margin: 0 auto; padding: 10px 14px 10px 16px;
  border-radius: 16px;
  background: rgba(9, 13, 22, 0.74);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), var(--specular);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.brand-sub {
  font: 600 10.5px var(--mono); letter-spacing: 0.04em; color: var(--teal);
  padding: 2px 7px; border-radius: 999px;
  background: rgba(45, 212, 191, 0.10); border: 1px solid rgba(45, 212, 191, 0.24);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color .18s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-pill {
  font: 600 11.5px var(--mono); color: var(--muted);
  padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); transition: all .18s;
}
.lang-pill:hover { color: #fff; border-color: var(--border-hi); background: rgba(255, 255, 255, 0.06); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .18s, border-color .18s, box-shadow .18s;
}
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn.primary {
  background: linear-gradient(180deg, #1b91ff 0%, #0a84ff 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(10, 132, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #2d9cff 0%, #158bff 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(10, 132, 255, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.045); color: var(--text);
  border-color: rgba(255, 255, 255, 0.11); box-shadow: var(--specular);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

main { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { padding: 54px 0 28px; text-align: center; }
.release-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.12), var(--specular);
  font: 500 12.5px var(--mono); color: var(--amber-hi);
  transition: all .2s;
}
.release-badge:hover {
  background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.48);
  transform: translateY(-1px);
}
.release-pill-tag {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(45, 212, 191, 0.16); color: var(--teal);
  font-weight: 700; font-size: 11.5px; letter-spacing: 0.02em;
}
.release-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.hero h1 {
  margin: 24px auto 18px; max-width: 880px;
  font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 780;
  background: linear-gradient(180deg, #ffffff 25%, #b3c4df 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fcd34d 0%, #f59e0b 45%, #2dd4bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  margin: 0 auto 30px; max-width: 740px;
  font-size: clamp(16px, 1.85vw, 19px); color: var(--muted); line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
.spec-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 44px;
}
.spec-pills span {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px var(--mono); color: var(--muted);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}

/* Clean Glass Frame for Native macOS Screenshots (screenshots already include native macOS chrome) */
.app-frame {
  position: relative; margin: 0 auto;
  border-radius: 18px; overflow: hidden;
  background: #0a0e17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(10, 132, 255, 0.25);
}
.mac-hint { font: 500 11.5px var(--mono); color: var(--dim); white-space: nowrap; }
.mac-body { position: relative; }
.mac-body button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.mac-body img { width: 100%; height: auto; display: block; transition: opacity .22s ease; }
.frame-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; font: 500 12.5px var(--mono); color: var(--muted); text-align: left;
  background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Telemetry Metrics Strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px auto 0; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--specular);
  overflow: hidden;
}
.metric {
  padding: 22px 20px; text-align: left;
  border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric dt {
  font: 700 clamp(22px, 2.6vw, 30px) var(--mono); letter-spacing: -0.03em;
  color: #fff; margin: 0 0 4px;
}
.metric dt.amber { color: var(--amber-hi); }
.metric dt.teal { color: var(--teal); }
.metric dt.blue { color: var(--blue); }
.metric dd { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Sections */
.section { padding: 84px 0 8px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font: 600 11.5px var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber);
}
.eyebrow::before {
  content: ""; width: 16px; height: 1px; background: currentColor; opacity: 0.7;
}
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.03em; line-height: 1.12; font-weight: 740;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Asymmetric 12-Col Bento Grid */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  position: relative; overflow: hidden; min-width: 0;
  padding: 28px; border-radius: var(--radius);
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.11), transparent 44%),
    var(--card);
  border: 1px solid var(--border); box-shadow: var(--specular);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .22s, transform .22s, background-color .22s;
}
.bento-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.bento-card.amber {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 158, 11, 0.13), transparent 44%),
    var(--card);
}
.bento-card.teal {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 212, 191, 0.12), transparent 44%),
    var(--card);
}
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }

.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feat-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--teal); background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.25);
}
.bento-card.amber .feat-icon { color: var(--amber-hi); background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.28); }
.bento-card.blue .feat-icon { color: var(--blue); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.28); }
.bento-tag {
  font: 600 11px var(--mono); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
}
.bento-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 680; }
.bento-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.ico { width: 20px; height: 20px; }

/* Inline Telemetry Visuals inside Bento Cards */
.mini-asm {
  margin-top: auto; padding: 12px 14px; border-radius: 12px;
  background: rgba(4, 6, 11, 0.8); border: 1px solid rgba(255, 255, 255, 0.07);
  font: 500 12px/1.7 var(--mono); color: var(--muted); overflow-x: auto;
}
.mini-asm .addr { color: var(--dim); margin-right: 10px; }
.mini-asm .op { color: var(--amber-hi); }
.mini-asm .reg { color: var(--teal); }
.mini-asm .cmt { color: var(--blue); }

.palette-bar {
  margin-top: auto; display: flex; flex-direction: column; gap: 8px;
}
.palette-grad {
  height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #06b6d4 28%, #10b981 52%, #f59e0b 78%, #ef4444 100%);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip {
  font: 500 11.5px var(--mono); color: #d5e0f2;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
}
.chip.ok { color: var(--green); background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.28); }
.chip.amber { color: var(--amber-hi); background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.26); }

/* Gallery with Filmstrip Thumbnails */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gallery-tabs button {
  padding: 9px 15px; border-radius: 11px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font: 500 13.5px var(--sans); cursor: pointer; transition: all .18s;
}
.gallery-tabs button:hover { color: #fff; border-color: var(--border-hi); }
.gallery-tabs button[aria-selected="true"] {
  background: rgba(10, 132, 255, 0.18); color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.18);
}
.gallery-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.gallery-footer strong { font-size: 15px; display: block; margin-bottom: 2px; }
.gallery-footer p { margin: 0; font-size: 13.5px; color: var(--muted); }
.thumbs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin-top: 14px;
}
.thumb {
  all: unset; cursor: pointer; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); opacity: 0.55;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.thumb:hover { opacity: 0.9; transform: translateY(-1px); }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Formats Table */
.formats-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--specular);
}
.formats-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.formats-table th, .formats-table td {
  padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.formats-table tr:last-child th, .formats-table tr:last-child td { border-bottom: none; }
.formats-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.formats-table th { width: 210px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.022); }
.formats-table td { color: var(--muted); }
.formats-table code {
  font-size: 12.5px; padding: 2px 6px; border-radius: 6px;
  background: rgba(56, 189, 248, 0.09); border: 1px solid rgba(56, 189, 248, 0.16); color: #d8ecff;
}

/* Install & CLI */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel {
  min-width: 0;
  padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--specular);
  display: flex; flex-direction: column; gap: 16px;
}
.panel h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.panel p { margin: 0; font-size: 14.5px; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; }
.steps strong { color: #fff; }

.codebox {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  min-width: 0; max-width: 100%;
  border-radius: var(--radius-sm);
  background: #04060b; border: 1px solid rgba(255, 255, 255, 0.09); padding: 14px 14px 14px 16px;
}
.codebox pre {
  margin: 0; flex: 1; min-width: 0; overflow-x: auto;
  font-size: 12.6px; line-height: 1.7; color: #cbd5e1;
}
.copy-btn {
  flex-shrink: 0;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(16, 21, 34, 0.92); color: var(--muted);
  font: 500 11.5px var(--mono); cursor: pointer; transition: all .18s;
}
.copy-btn:hover { color: #fff; border-color: var(--border-hi); }

.warning-box {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 13.5px; color: #fde68a;
}

/* CTA Banner */
.cta-banner {
  position: relative; overflow: hidden;
  margin: 84px 0 24px; padding: 52px 32px; border-radius: 24px; text-align: center;
  background:
    radial-gradient(640px 280px at 50% 0%, rgba(10, 132, 255, 0.24), transparent 72%),
    radial-gradient(420px 220px at 85% 100%, rgba(245, 158, 11, 0.14), transparent 70%),
    var(--card);
  border: 1px solid rgba(56, 189, 248, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), var(--specular);
}
.cta-banner h2 { margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; }
.cta-banner p { margin: 0 auto 26px; max-width: 560px; color: var(--muted); font-size: 16px; }
.cta-banner .hero-ctas { margin-bottom: 0; }

/* Footer */
.foot {
  max-width: 1140px; margin: 48px auto 0; padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--dim);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { transition: color .18s; }
.foot a:hover { color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px;
  background: rgba(3, 5, 10, 0.94); backdrop-filter: blur(14px);
}
.lightbox.open { display: grid; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; max-width: min(1440px, 94vw); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.8); }
.lightbox-cap { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.lightbox-btn {
  position: fixed; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(14, 19, 31, 0.9); color: #fff;
  font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background-color .18s;
}
.lightbox-btn:hover { background: rgba(30, 41, 66, 0.95); }
.lightbox-close { top: 20px; right: 22px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 404 utility */
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.page-404 h1 { font-size: 44px; margin: 10px 0 12px; }
.page-404 p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 960px) {
  .span-7, .span-6, .span-5 { grid-column: span 12; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav-wrap { padding: 10px 12px 0; }
  .nav { padding: 8px 10px 8px 12px; gap: 10px; }
  .brand-sub { display: none; }
  .nav-actions { flex-shrink: 0; white-space: nowrap; }
  main { padding: 0 16px; }
  .panel { padding: 20px; }
  .bento-card { padding: 22px; }
  .hero { padding-top: 34px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formats-table th, .formats-table td { display: block; width: 100%; }
  .formats-table th { padding-bottom: 4px; border-bottom: none; }
  .formats-table td { padding-top: 4px; }
  .lightbox-prev, .lightbox-next { display: none; }
}
