/*
 * AeroNotch site styles.
 *
 * Same visual language as the Alpha-C Bell System site (its tailwind.config.js
 * palette and index.css components: card, chip, eyebrow, gradient-text, the
 * release timeline), written as plain CSS so this site needs no build step and
 * deploys to Cloudflare Pages as static files.
 */

:root {
  color-scheme: dark;
  --bg: #07090e;
  --surface: #0d1018;
  --panel: #111420;
  --card: #151929;
  --bdr: #1a1e30;
  --bdr2: #232840;
  --bdr3: #2e3455;
  --ink: #d8deef;
  --ink-muted: #7b85a8;
  --ink-dim: #3d4460;
  --brand: #4f7ef7;
  --purple: #9b6df7;
  --cyan: #22d3ee;
  --green: #22c55e;
  --amber: #f5a623;
  --red: #ef4444;
  /* AeroNotch's own notch-state colours, from the plugin's Theme.h */
  --notch-live: #ff5a4e;
  --notch-hold: #ffb020;
  --notch-decay: #58d68d;
  --notch-fixed: #3fa9ff;
  --container: 1200px;
  --shadow-card: 0 18px 50px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px rgba(79, 126, 247, 0.18), 0 24px 60px -24px rgba(79, 126, 247, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(79, 126, 247, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(155, 109, 247, 0.1), transparent 60%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

::selection { background: rgba(79, 126, 247, 0.35); color: #fff; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.container-x { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px)  { .container-x { padding: 0 24px; } }
@media (min-width: 1024px) { .container-x { padding: 0 32px; } }

/* ── Components (mirroring the Alpha-C site) ─────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--bdr2); background: rgba(21, 25, 41, 0.6); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(79, 126, 247, 0.6); background: var(--card); transform: translateY(-2px); }

.card {
  border-radius: 16px; border: 1px solid var(--bdr);
  background: rgba(21, 25, 41, 0.7); box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
}

.chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid var(--bdr2); background: rgba(17, 20, 32, 0.7);
  padding: 4px 12px; font-size: 12px; font-weight: 500; color: var(--ink-muted);
}
.chip-brand { border-color: rgba(79, 126, 247, 0.4); color: var(--brand); }
.chip-amber { border-color: rgba(245, 166, 35, 0.4); color: var(--amber); }

.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--brand); }

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--bdr); background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--ink-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── Sections ────────────────────────────────────────────────────────────── */

section { padding: 72px 0; }
.section-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { font-size: clamp(28px, 4vw, 38px); }
.section-heading p.sub { margin-top: 16px; color: var(--ink-muted); font-size: 16px; }

.hero { padding-top: 140px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.05; font-weight: 800; }
.hero .lede { max-width: 720px; margin: 22px auto 0; font-size: 18px; color: var(--ink-muted); }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .chips { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.screenshot { margin: 56px auto 0; max-width: 1080px; padding: 10px; }
.screenshot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.screenshot figcaption { padding: 12px 6px 4px; font-size: 13px; color: var(--ink-muted); text-align: left; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.feature { padding: 26px; }
.feature h3 { font-size: 18px; margin-top: 14px; }
.feature p { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(79, 126, 247, 0.12); border: 1px solid rgba(79, 126, 247, 0.3); color: var(--brand);
  font-weight: 800;
}

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 18px; margin-top: 14px; }
.step p { margin-top: 8px; color: var(--ink-muted); font-size: 15px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--ink-muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--bdr); vertical-align: top; }
.spec th { color: var(--ink-muted); font-weight: 500; width: 38%; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }

.kbd {
  display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; text-align: center;
  border: 1px solid var(--bdr3); background: var(--panel); font: 600 12px ui-monospace, Consolas, monospace;
}

.cta-band { padding: 40px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); }
.cta-band p { margin: 12px auto 0; max-width: 620px; color: var(--ink-muted); }
.cta-band .ctas { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

footer { border-top: 1px solid var(--bdr); padding: 36px 0 48px; font-size: 13px; color: var(--ink-muted); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--ink-muted); }

/* ── Release timeline (the Alpha-C "What's New" pins) ────────────────────── */

.release-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; max-width: 820px; margin: 0 auto 56px; padding: 28px 32px; }
.release-banner .ver { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.release-banner .divider { width: 1px; height: 64px; background: var(--bdr); }
@media (max-width: 640px) { .release-banner .divider { display: none; } }

.timeline { max-width: 820px; margin: 0 auto; display: grid; gap: 22px; }
.release { position: relative; padding-left: 48px; }
.release .rail { position: absolute; left: 11px; top: 14px; width: 1px; height: calc(100% + 22px); background: var(--bdr); }
.release:last-child .rail { display: none; }
.release .pin {
  position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 999px;
  border: 1px solid var(--bdr2); background: var(--surface); display: grid; place-items: center;
}
.release .pin::after { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-dim); }
.release.current .pin { border-color: rgba(79, 126, 247, 0.6); background: rgba(79, 126, 247, 0.2); }
.release.current .pin::after { width: 10px; height: 10px; background: var(--brand); animation: pulse 2s ease-in-out infinite; }
.release.milestone .pin { border-color: var(--bdr3); background: var(--panel); }
.release.milestone .pin::after { background: var(--ink-muted); width: 8px; height: 8px; }
.release .card { padding: 26px 28px; }
.release.current .card { box-shadow: var(--shadow-card), 0 0 0 1px rgba(79, 126, 247, 0.3); }
.release .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.release .head h3 { font-size: 20px; }
.release .date { font-size: 12px; color: var(--ink-dim); }
.release .headline { margin-top: 8px; font-weight: 600; }
.release .toggle { margin-top: 8px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.release .toggle:hover { color: var(--ink); }
.release .summary { margin-top: 8px; font-size: 14px; color: var(--ink-muted); }
.release ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.release li { display: flex; gap: 16px; }
@media (max-width: 640px) { .release li { flex-direction: column; gap: 8px; } }
.kind {
  flex: none; height: fit-content; width: 78px; text-align: center; border-radius: 6px; border: 1px solid;
  padding: 2px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.kind-new      { color: var(--green);  border-color: rgba(34, 197, 94, 0.3);   background: rgba(34, 197, 94, 0.1); }
.kind-improved { color: var(--cyan);   border-color: rgba(34, 211, 238, 0.3);  background: rgba(34, 211, 238, 0.1); }
.kind-fixed    { color: var(--amber);  border-color: rgba(245, 166, 35, 0.3);  background: rgba(245, 166, 35, 0.1); }
.kind-security { color: var(--purple); border-color: rgba(155, 109, 247, 0.3); background: rgba(155, 109, 247, 0.1); }
.release li .t { font-size: 14px; font-weight: 600; }
.release li .d { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: fade-up 0.6s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
