/* ==========================================================================
   Brimflow Labs — site styles
   ========================================================================== */

/* ---------- Fonts (self-hosted variable fonts, SIL OFL 1.1; see assets/fonts/LICENSE-*) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #0A0E17;
  --surface: #131A2A;
  --surface-2: #182136;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --cyan: #00D2FF;
  --teal: #00F5D4;
  --cobalt: #3A7BD5;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --glass: rgba(19, 26, 42, 0.62);
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--cobalt) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 210, 255, .16), rgba(0, 245, 212, .10) 50%, rgba(58, 123, 213, .16));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font-head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Background accents ---------- */

.bg-fluid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-fluid .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .32;
  animation: drift 22s var(--ease) infinite alternate;
}
.bg-fluid .blob.b1 { width: 520px; height: 520px; background: var(--cobalt); top: -160px; left: -120px; }
.bg-fluid .blob.b2 { width: 420px; height: 420px; background: var(--cyan); top: 30%; right: -160px; animation-delay: -6s; opacity: .2; }
.bg-fluid .blob.b3 { width: 380px; height: 380px; background: var(--teal); bottom: -180px; left: 30%; animation-delay: -12s; opacity: .14; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .975rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #04121C;
  box-shadow: 0 10px 30px -10px rgba(0, 210, 255, .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 36px -10px rgba(0, 245, 212, .6);
}

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(0, 210, 255, .55);
  background: rgba(0, 210, 255, .08);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 23, .78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(10, 14, 23, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; }
  .nav { background: rgba(10, 14, 23, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 110px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0; max-width: 640px; }
.section-head p { color: var(--muted); margin: 12px 0 0; max-width: 560px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 255, .3);
  background: rgba(0, 210, 255, .07);
  color: #BDF3FF;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 245, 212, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 212, .55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 245, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-head); font-size: 1.4rem; }
.hero-meta span { color: var(--muted); font-size: .88rem; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.orb {
  position: absolute;
  inset: 8%;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: var(--grad);
  opacity: .9;
  animation: morph 14s ease-in-out infinite, spin 40s linear infinite;
  box-shadow: 0 0 120px -10px rgba(0, 210, 255, .55), inset 0 0 60px rgba(255, 255, 255, .25);
}
.orb::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--bg);
  opacity: .82;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 63% 37% 41% 59% / 56% 62% 38% 44%; }
  66% { border-radius: 37% 63% 51% 49% / 37% 35% 65% 63%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-visual .glass-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: .86rem;
  animation: float 6s ease-in-out infinite;
}
.glass-chip small { display: block; color: var(--muted); font-size: .74rem; }
.glass-chip strong { font-family: var(--font-head); font-weight: 600; }
.glass-chip .ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, .3);
}
.glass-chip .ico svg { width: 18px; height: 18px; }
.chip-a { top: 6%; left: -6%; }
.chip-b { bottom: 10%; right: -8%; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
  opacity: .5;
}
.hero-wave path { animation: wave 12s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(-60px); } }

@media (max-width: 920px) {
  .hero { padding: 56px 0 90px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 280px; }
  .chip-a { left: -2%; }
  .chip-b { right: -2%; }
}

/* ---------- Filter tabs ---------- */

.tabs {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, background .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  color: #04121C;
  background: var(--grad);
}

/* ---------- Project cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
  isolation: isolate;
}
.card::before {
  /* gradient glow border on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  right: -110px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, .18), transparent 70%);
  z-index: -1;
  transition: transform .5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(0, 210, 255, .3);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scale(1.25); }

.card.featured {
  background: linear-gradient(160deg, rgba(0, 210, 255, .09), rgba(58, 123, 213, .05) 60%, transparent), var(--surface);
  border-color: rgba(0, 210, 255, .28);
}
.card.featured::before { opacity: .65; }

.card.is-hidden { display: none; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(0, 210, 255, .25);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, .1);
  color: #CBD5E1;
  border: 1px solid var(--border);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid;
}
.status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status.live    { color: var(--teal); border-color: rgba(0, 245, 212, .35); background: rgba(0, 245, 212, .08); }
.status.live::before { animation: pulse 2.2s infinite; }
.status.next    { color: var(--cyan); border-color: rgba(0, 210, 255, .35); background: rgba(0, 210, 255, .08); }
.status.planned { color: #8FB4EE; border-color: rgba(58, 123, 213, .4); background: rgba(58, 123, 213, .1); }

.card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card .codename { color: var(--muted); font-size: .9rem; margin: -2px 0 12px; }
.card p.desc { color: var(--muted); flex: 1; margin-bottom: 26px; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
  cursor: not-allowed;
  user-select: none;
}
.soon svg { width: 15px; height: 15px; opacity: .8; }

/* ---------- Roadmap ---------- */

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.roadmap::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--cyan) 18%, rgba(58, 123, 213, .5) 40%, rgba(148, 163, 184, .15) 100%);
}

.step { position: relative; }
.step-marker {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  margin-bottom: 22px;
}
.step.current .step-marker {
  background: var(--grad);
  color: #04121C;
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(0, 210, 255, .12), 0 0 30px rgba(0, 210, 255, .45);
}
.step-body {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  height: calc(100% - 70px);
  transition: border-color .3s, transform .3s var(--ease);
}
.step:hover .step-body { border-color: var(--border-strong); transform: translateY(-3px); }
.step.current .step-body { border-color: rgba(0, 210, 255, .35); background: linear-gradient(180deg, rgba(0, 210, 255, .07), transparent 70%), var(--surface); }
.step-phase {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step.current .step-phase { color: var(--teal); }
.now-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 245, 212, .14);
  color: var(--teal);
  letter-spacing: .08em;
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step code {
  font-size: .85em;
  color: var(--cyan);
  background: rgba(0, 210, 255, .08);
  padding: 1px 6px;
  border-radius: 5px;
}

@media (max-width: 960px) {
  .roadmap { grid-template-columns: 1fr; gap: 18px; padding-left: 0; }
  .roadmap::before {
    top: 24px; bottom: 24px; left: 23px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--teal), var(--cyan) 20%, rgba(58, 123, 213, .5) 45%, rgba(148, 163, 184, .15));
  }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
  .step-marker { margin: 0; }
  .step-body { height: auto; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-grid h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.about-grid .lead { color: var(--muted); font-size: 1.08rem; }

.pillars { display: grid; gap: 16px; }
.pillar {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s var(--ease);
}
.pillar:hover { border-color: rgba(0, 210, 255, .35); transform: translateX(4px); }
.pillar .card-icon { margin: 0; flex: none; width: 46px; height: 46px; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: .94rem; margin: 0; }

@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Beta banner ---------- */

.beta {
  position: relative;
  margin-top: 90px;
  padding: 56px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 210, 255, .22), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(58, 123, 213, .28), transparent 55%),
    var(--surface);
  border: 1px solid rgba(0, 210, 255, .25);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.beta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.beta p { color: var(--muted); margin: 0; }
.beta-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  opacity: .35;
  pointer-events: none;
}

.signup { position: relative; z-index: 1; }
.signup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(10, 14, 23, .7);
  border: 1px solid var(--border-strong);
  transition: border-color .25s, box-shadow .25s;
}
.signup-row:focus-within {
  border-color: rgba(0, 210, 255, .6);
  box-shadow: 0 0 0 4px rgba(0, 210, 255, .12);
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
}
.signup input::placeholder { color: #64748B; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-note { margin-top: 12px; font-size: .84rem; color: var(--muted); padding-left: 18px; }
.signup-note a { color: var(--cyan); }
.signup-note a:hover { text-decoration: underline; }
.form-msg { min-height: 1.4em; margin-top: 10px; padding-left: 18px; font-size: .92rem; font-weight: 500; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #FCA5A5; }

@media (max-width: 880px) {
  .beta { grid-template-columns: 1fr; padding: 36px 26px; gap: 28px; }
}
@media (max-width: 480px) {
  .signup-row { flex-direction: column; border-radius: 20px; }
  .signup-row .btn { width: 100%; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 40px;
  background: rgba(10, 14, 23, .6);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-left small { color: var(--muted); font-size: .88rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--muted);
  font-size: .92rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ---------- Privacy page ---------- */

.legal { padding: 64px 0 40px; }
.legal .container { max-width: 820px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: .94rem;
  margin-bottom: 36px;
  transition: color .2s, gap .2s var(--ease);
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--cyan); gap: 12px; }

.legal-head { margin-bottom: 40px; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
}
.legal-meta strong { color: var(--text); font-weight: 600; }

.legal-body {
  padding: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.legal-body section + section {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.legal-body h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.legal-body h2 .num {
  font-size: .9rem;
  color: var(--cyan);
  font-weight: 600;
  min-width: 1.6em;
}
.legal-body p, .legal-body li { color: #CBD5E1; }
.legal-body ul { padding-left: 1.2em; margin: 0; }
.legal-body li { margin-bottom: 12px; }
.legal-body li::marker { color: var(--cyan); }
.legal-body li strong, .legal-body p strong { color: var(--text); }
.legal-body a { color: var(--cyan); }
.legal-body a:hover { text-decoration: underline; }

.contact-card {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 23, .55);
  border: 1px solid var(--border);
  font-style: normal;
  line-height: 1.9;
}
.contact-card strong { color: var(--text); }
.contact-card span { color: var(--muted); }

@media (max-width: 600px) {
  .legal-body { padding: 26px 20px; }
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
