/*
  style.css (FLOCSS-structured, nested CSS)
  - Foundation: variables, base
  - Layout (.l-*)
  - Object (.c-*)
  - Project (.p-*)
  - Utility (.u-*)
  Note: We map FLOCSS classes to existing HTML classes via :where(.flocss, .existing)
  so HTML can remain unchanged while enabling FLOCSS adoption.
*/

/* ========== Foundation ========== */


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "zen-kaku-gothic-new", sans-serif;
  color: var(--fg);
  line-height: 2;
}

/* Anchor offset for sticky header */
section { scroll-margin-top: 160px; }



/* ========== Layout ========== */
:where(.l-header, .site-header) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11,16,32,0.6);
  .site-nav, .l-nav {
    max-width: 100%; margin: 0 auto; padding: 16px 16px;
    display:grid; grid-template-columns: 1fr auto auto; align-items: center; justify-content: space-between; gap: 12px;
  }
  .logo-box { width: 64px; height: 64px; border: 1px dashed var(--stroke); border-radius: 10px; display:grid; place-items:center; color: var(--muted); font-size:12px; }
  .nav-links { display:flex; gap: 14px; }
  .nav-links a { color: var(--fg); text-decoration: none; font-size: 13px; opacity: .9; padding: 6px 8px; border-radius: 8px; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
}

:where(.l-hero, .hero) {
  position: relative;
  min-height: 88dvh;
  display: grid; place-items: center;
  padding: 24px; isolation: isolate;

  .bg-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  #webgl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .grain { position: absolute; inset: -10%; background-image: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140">\
      <filter id="n">\
        <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/>\
        <feColorMatrix type="saturate" values="0"/>\
        <feComponentTransfer>\
          <feFuncA type="table" tableValues="0 0 .02 .04 .02 0"/>\
        </feComponentTransfer>\
      </filter>\
      <rect width="100%" height="100%" filter="url(%23n)" opacity="0.4"/>\
    </svg>'); opacity: .22; mix-blend-mode: soft-light; }

  .hero-inner { max-width: 1320px; width: 100%; text-align: center; }
  .eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
}

:where(.l-hero, .hero) {
  .hero-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: center; max-width: 1320px; margin: 0 auto; text-align: left; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }
  .hero-copy { padding: 8px 4px; }
  .hero-visual { position: relative; }
  .hero-shot { margin: 0; max-width: 100%; }
}

/* Generic containers */
:where(.l-section, section) { padding: 72px 24px; }
:where(.l-container, .container) { max-width: 1100px; margin: 0 auto; }

/* Footer layout */
footer:where(.site-footer) {
  margin-top: 30px;
  background: radial-gradient(800px 400px at 20% 0%, rgba(255,71,126,.18), transparent 60%), radial-gradient(800px 400px at 80% 0%, rgba(79,176,255,.18), transparent 60%), linear-gradient(180deg, rgba(160,77,255,0.12), rgba(79,176,255,0.12));
  border-top: 1px solid var(--stroke);
  .footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 16px 40px; display:grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
  .footer-logo { width: 160px; height: 48px; border:1px dashed var(--stroke); border-radius: 12px; display:grid; place-items:center; color:var(--muted); }
  .footer-nav { display:flex; gap: 12px; flex-wrap: wrap; justify-content:flex-end; }
  .footer-nav a { color: var(--fg); opacity:.9; text-decoration:none; font-size:13px; padding:6px 8px; border-radius:8px; }
  .footer-nav a:hover { background: rgba(255,255,255,0.06); }
  .copyright { color: var(--muted); font-size:12px; grid-column: 1 / -1; text-align: center; opacity: .9; }
}

/* ========== Object ========== */

/* Headings and badges */
:where(h1) {
  font-family: "zen-kaku-gothic-antique", sans-serif;
  font-weight: 400; font-size: clamp(36px, 6.2vw, 64px);
  line-height: 1.2; margin: 10px 0 40px; text-wrap: balance; letter-spacing: .01em;
}
:where(h2) { font-family: "zen-kaku-gothic-antique", sans-serif; font-weight: 400; letter-spacing: .03em; text-align: center; margin: 40px 0; font-size: clamp(36px, 5.4vw, 56px); line-height: 1.2; }
:where(h3) { font-family: "zen-kaku-gothic-antique", sans-serif; font-weight: 400; font-size: 20px; }
:where(.lead) { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.75; color: #cfdaef; opacity: .95; margin: 40px auto ; }
:where(.badges) { display:flex; justify-content:center; gap:8px; margin-top:24px; flex-wrap:wrap; }
:where(.pill) { font-size:12px; color: var(--muted); background: rgba(255,255,255,0.06); border:1px solid var(--stroke); border-radius:999px; padding:6px 10px; }

/* Buttons */
:where(.c-cta, .cta) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 40px;
  background: #ffffff;
  color: var(--fg); text-decoration: none;
  box-shadow: none;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
  &.big {
    padding: 14px 24px;
    font-size: 20px;
    letter-spacing: .02em;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
  }
  .icon { width: 18px; height: 18px; }
  &:hover { transform: translateY(-1px); background: #f8fafc; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  &:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
  &.secondary { background: transparent; color: var(--fg); border: 1px solid var(--stroke); box-shadow: none; }
}

:where(.cta-row) { display: block; text-align: left; }


.c-reveal{
    & .c-reveal__lead{
        text-align: center;
        margin-bottom: 40px;
    }
    & .c-reveal__sticky{
        position: sticky;
        top: 160px;
    }
}

/* Cards */
:where(.c-card, .card) {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px; padding: 18px 18px 16px;
  backdrop-filter: blur(6px);
  transform: translateY(6px);
  animation: float-in .8s ease both;
  h3 { margin: 6px 0 8px; font-size: 18px; }
  p { margin: 0; color: var(--muted); font-size: 14px; }
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(6px); }
}

/* Grid helpers */
:where(.cards) { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Media showcase */
:where(.media-grid) { display:grid; grid-template-columns: 1.2fr 1fr; gap:14px; align-items:start; }
@media (max-width: 900px) { .media-grid { grid-template-columns: 1fr; } }
:where(.c-media-box, .media-box) {
  > img, > video { display:block; width:100%; height:auto; border-radius:12px; }
}
:where(.hero-shot) { max-width: 1240px; margin: 18px auto 0; }
:where(.cap) { margin:8px 6px 4px; font-size:12px; color: var(--muted); }

/* AI assistant side panel */
:where(.c-ai-aside, .ai-aside) { background: transparent !important; border: 0 !important; padding: 4px 0 0 0 !important; border-radius: 0 !important; }
:where(.c-ai-point, .ai-point) { display:flex; gap:10px; align-items:flex-start; font-weight: 400; padding:40px 4px; border-bottom:1px solid var(--stroke);
  &:last-child { border-bottom: 0; }
  .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24; font-size:20px; line-height:1; opacity:.6; position: relative; top: 0.7em; }
  h4 { margin:0; font-size:16px; }
  p { margin:0; color:var(--muted); font-size:14px; }
  strong {font-family: "zen-kaku-gothic-antique", sans-serif;  display:block; font-size:20px; margin-bottom:16px; font-weight: 600; }
  .desc { color:var(--muted); font-size:14px; }
}

/* Feature columns (archived alt layout kept) */
:where(.feat-columns) { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; }
@media (max-width: 1100px) { .feat-columns { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .feat-columns { grid-template-columns: 1fr; } }
:where(.feat-col) { background: var(--card); border:1px solid var(--stroke); border-radius:16px; padding:16px; }
:where(.feat-col) {
  h3 { margin:4px 0 8px; font-size:16px; }
  ul { margin: 0 0 0 18px; color: var(--muted); font-size:14px; }
  li + li { margin-top: 6px; }
}

/* Feature table */
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
:where(.c-table, table.features) {
  width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden;
  th, td { text-align: left; padding: 12px 14px; font-size: 14px; }
  thead th { background: rgba(255,255,255,0.04); color: var(--muted); position: sticky; top: 0; backdrop-filter: blur(6px); }
  tbody tr + tr td { border-top: 1px solid var(--stroke); }
  tbody tr:hover td { background-color: rgba(255,255,255,0.03); }
}
/* Group rows */
:where(table.features) tbody tr.group td { background: rgba(255,255,255,0.04); color:#cfdaef; font-weight:700; letter-spacing:.01em; }
/* Column width hints */
:where(table.features) td:nth-child(1) { width: 18%; }
:where(table.features) td:nth-child(3),
:where(table.features) th:nth-child(3) { width: 110px; }

/* Status badges */
:where(.c-badge, .badge) { display:inline-block; padding:4px 8px; border-radius:999px; font-size:12px; font-weight:600; letter-spacing:.02em; }
.badge.ok { background: rgba(64, 201, 148, 0.18); color:#7be0b7; border:1px solid rgba(64,201,148,.35); }
.badge.beta { background: rgba(255, 196, 87, 0.16); color:#ffd27a; border:1px solid rgba(255,196,87,.35); }
.badge.plan { background: rgba(122, 168, 255, 0.16); color:#aaccff; border:1px solid rgba(122,168,255,.35); }
.badge.done { background: rgba(64, 201, 148, 0.18); color:#7be0b7; border:1px solid rgba(64,201,148,.35); }
.badge.todo { background: rgba(255,255,255,0.10); color:#cfd8ea; border:1px solid rgba(255,255,255,.22); }

/* Roadmap */
:where(.p-roadmap, .roadmap) { display:grid; gap:12px; }
:where(.p-roadmap_item, .roadmap-item) {
  background: var(--card); border:1px solid var(--stroke); border-radius:14px; padding:14px;  gap:12px; align-items:flex-start;
  time { display:inline-block; font-size:12px; color:var(--muted); min-width:80px; }
  h3 { margin:2px 0 6px; font-size:16px; }
  p { margin:0; color:var(--muted); font-size:14px; }
  ul { margin:0px; padding: 0; color:var(--muted); font-size:14px; }
  p, li { display: flex; align-items: baseline; gap: 8px; }
  .badge { margin-left: auto; }
}

/* Content SEO blocks */
:where(.content) {
  h3 { font-size:18px; margin:14px 0 6px; }
  p { margin:0 0 10px; color:var(--muted); }
  ul { margin:8px 0 12px 18px; color:var(--muted); }
}

/* Prose page headings (privacy, terms) */
.prose h1 {
  font-size: 30px;
  text-align: left;
  line-height: 1.8;
  margin: 16px 0 40px;
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-size: 16px;
  text-align: left;
  line-height: 1.8;
  margin: 16px 0 8px;
}
/* Prose body text color unify */
.prose p, .prose ul, .prose ol, .prose li {
  color: var(--fg);
}

/* Guide band */
:where(.band) {
  background: linear-gradient(170deg, rgba(160,77,255,0.08), rgba(79,176,255,0.08));
  border: 1px solid var(--stroke); border-radius: 16px; padding: 18px;
}

/* FAQ */
:where(.p-faq, .faq) {
  details { background: var(--card); border:1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; }
  details + details { margin-top: 10px; }
  summary { list-style: none; cursor: pointer; display:flex; align-items:center; gap:8px; }
  summary::-webkit-details-marker { display:none; }
  .qicon { font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24; font-size:18px; opacity:.8; }
  .answer { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
  details[open] .answer { opacity: 1; }
}

/* ========== Utility ========== */
:where(.u-reveal, .reveal) { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
:where(.u-reveal, .reveal).show { opacity: 1; transform: translateY(0); }
:where(.u-reveal-trend, .reveal-trend) { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(6px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1), filter .8s; }
:where(.u-reveal-trend, .reveal-trend).show { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Body offset for fixed header */
body.with-fixed-header { padding-top: var(--header-h, 64px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-trend { transition: none; }
  .cta { animation: none !important; }
  #webgl-canvas { display: none; }
}


/* === Inline style extractions (index.html) === */
.badges.is-left { justify-content: flex-start; }
.badges.is-aside { justify-content: flex-start; margin: 10px 0 0 4px; }

.feature-vert { display: grid; gap: 40px; }
.feature-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature-row h3 { margin: 0 0 8px; font-size: 22px; }
.feature-row p { margin: 0; color: var(--muted); font-size: 14px; }
.feature-row.center { align-items: center; }

.illu-box { position: static; width: 100%; aspect-ratio: 4/3; display: grid; place-items: center; border: 1px dashed var(--stroke); border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--muted); }

/* FAQ answer styling moved from inline */
.faq .answer { margin: 8px 0 0; color: var(--muted); }

/* Utility helpers */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }

/* Override invalid margin value in earlier definition */
.lead { margin: 40px auto; }

/* Sub lead variant */
.lead.sub { text-align: center; margin: 4px auto 12px; max-width: 760px; font-size: 14px; color: var(--muted); }


/* ==== Theme: White Minimal Preview ===================================== */
/* Toggle by adding class="theme-white" on <body>. */
body.theme-white {
  /* Color tokens */
  --bg: #ffffff;
  --bg1: #ffffff;
  --bg2: #ffffff;
  --fg: #1f2937;          /* slate-800 */
  --muted: #6b7280;       /* gray-500 */
  --card: #ffffff;
  --stroke: #e5eaf1;      /* subtle divider */
  --grad-start: #dbe7ff;  /* very soft brand tints */
  --grad-mid:   #e6eeff;
  --grad-end:   #dbe7ff;

    background-color: #fff;
  color: var(--fg);
}


/* Layout spacing and width for generous whitespace */
.theme-white section { padding: 96px 24px; }
.theme-white :where(.l-container, .container) { max-width: 980px; }

/* Header */
.theme-white :where(.l-header, .site-header) {
  background: rgba(255,255,255,0.85);
}
.theme-white :where(.l-header, .site-header)::after {
  opacity: 1;
}
.theme-white .nav-links a { color: var(--fg); }
.theme-white .nav-links a:hover { background: #f3f6fb; }

/* Hero */
.theme-white :where(.l-hero, .hero) { background: transparent; }
.theme-white :where(.l-hero, .hero) .bg-wrap,
.theme-white #webgl-canvas,
.theme-white :where(.l-hero, .hero) .grain { display: none !important; }
.theme-white .eyebrow { color: var(--muted); }
.theme-white h1, .theme-white h2, .theme-white h3 { color: #111827; }
.theme-white .lead { color: #5b677a; }


/* Pills */
.theme-white :where(.pill) { background: #f3f6fb; border-color: var(--stroke); color: #74829a; }

/* Cards and common surfaces */
.theme-white :where(.c-card, .card,
  .c-media-box, .media-box,
  .band,
  .faq details) {
  background: #ffffff;
  border-color: var(--stroke);
}
.theme-white .band { background: #f8fafc; }

/* Tables */
.theme-white :where(.c-table, table.features) { background: #fff; border-color: var(--stroke); }
.theme-white table.features thead th { background: #f7f9fc; color: #74829a; }
.theme-white table.features tbody tr + tr td { border-top-color: var(--stroke); }
.theme-white table.features tbody tr:hover td { background: #fafbfe; }

/* Roadmap (timeline) */
.theme-white :where(.p-roadmap, .roadmap)::before { background: #eef2f7; }
.theme-white :where(.p-roadmap_item, .roadmap-item) {
  background: #fff; border-color: var(--stroke);
}
.theme-white :where(.p-roadmap_item, .roadmap-item)::before { background: #e3e9f3; opacity: 1; }
.theme-white :where(.p-roadmap_item, .roadmap-item)::after { background: #c9d6ea; box-shadow: 0 0 0 2px #fff; }
.theme-white :where(.p-roadmap_item, .roadmap-item):hover { background: #fafbfe; border-color: #dde5f0; box-shadow: 0 6px 18px rgba(15,23,42,0.06); }

/* Badges */
.theme-white .badge.ok,
.theme-white .badge.done { background: #eaf8f1; color: #2f8f6a; border-color: #cbeedd; }
.theme-white .badge.beta { background: #fff4e6; color: #ad6a00; border-color: #ffe1b7; }
.theme-white .badge.plan { background: #eef4ff; color: #3563c8; border-color: #dbe6ff; }
.theme-white .badge.todo { background: #f2f4f8; color: #7a8797; border-color: var(--stroke); }

/* Content text */
.theme-white .content p,
.theme-white .feature-row p,
.theme-white .faq .answer { color: var(--muted); }

/* Footer */
.theme-white footer:where(.site-footer) {
  background: #ffffff;
  border-top: 1px solid var(--stroke);
}
.theme-white .footer-nav a { color: var(--fg); }
.theme-white .footer-nav a:hover { background: #f3f6fb; }
.theme-white .footer-logo { border-color: var(--stroke); color: #9aa3b2; }
.theme-white .copyright { color: #9aa3b2; }


/* === Web3 Accent (partial, subtle) ================================ */
:root {
  /* Fixed, vibrant Web3 gradient accents unaffected by theme overrides */
  --w3-start: #FF0000; /* magenta */
  --w3-mid:   #FF00DD; /* violet */
  --w3-end:   #0051FF; /* cyan */
}

/* Hero title: small gradient underline for visual anchor */
.theme-white :where(.l-hero, .hero) h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--w3-start), var(--w3-mid), var(--w3-end));
  border-radius: 999px;
  opacity: .55;
}

/* Section titles: shorter center underline */
.theme-white section h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--w3-start), var(--w3-end));
  border-radius: 999px;
}

/* CTA (primary big) keeps white fill but gets gradient border */
.theme-white .cta.big {
  border: 1px solid transparent;
  transition: .16s 0s;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, var(--w3-start), var(--w3-mid), var(--w3-end)) border-box;
}
.theme-white .cta.big:hover {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(120deg, var(--w3-start), var(--w3-mid), var(--w3-end)) border-box;
}


/* CTA band: thin left accent bar only */
.theme-white .band { position: relative; }
.theme-white .band::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--w3-start), var(--w3-end));
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  opacity: .6;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .theme-white :where(.l-hero, .hero) h1::after,
  .theme-white section h2::after { transition: none; }
}


/* === Additions for header auth buttons, roadmap separators, FAQ tweaks, and contrast fixes === */
/* Header: auth buttons and divider */
.site-header .nav-actions { display: flex; align-items: center; gap: 8px; }
.site-header .nav-divider { width: 1px; height: 20px; background: var(--stroke); margin: 0 2px 0 6px; }
.site-header .nav-btn { color: var(--fg); text-decoration: none; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--stroke); background: rgba(255,255,255,0.04); }
.site-header .nav-btn:hover { background: rgba(255,255,255,0.08); }
.site-header .nav-btn.signup { border: 1px solid transparent; background:
  linear-gradient(#0a0e15, #05070b) padding-box,
  linear-gradient(120deg, var(--w3-start), var(--w3-end)) border-box; color: #fff; }

/* Theme white overrides for header */
.theme-white .nav-actions { gap: 8px; }
.theme-white .nav-divider { background: #e9eef5; }
.theme-white .nav-btn { background: #ffffff; border-color: #e5e7eb; color: var(--fg); }
.theme-white .nav-btn:hover { background: #f3f6fb; }
.theme-white .nav-btn.signup { border: 1px solid transparent; color: #111827; background:
  linear-gradient(#ffffff, #ffffff) padding-box,
  linear-gradient(120deg, var(--w3-start), var(--w3-end)) border-box; }

/* Feature table group title contrast (white theme) */
.theme-white table.features tbody tr.group td { color: #374151; background: #f7f9fc; font-weight: 600; }

/* Roadmap: right-aligned badges and item separators */
.roadmap-item ul li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.roadmap-item ul li:last-child { border-bottom: 0; }
.roadmap-item li .badge { margin-left: auto; }

/* FAQ: no bold titles and remove leading question icon */
.faq summary strong { font-weight: 400; }
.faq .qicon { display: none !important; }


/* === Logo image integration === */
.logo-box, .footer-logo { border: 0 !important; background: transparent !important; display: inline-flex; align-items: center; justify-content: flex-start; padding: 0; }
.logo-box img { display: block; height: 64px; width: auto; }
.footer-logo img { display: block; height: 64px; width: auto; }
.theme-white .logo-box, .theme-white .footer-logo { border: 0 !important; }


/* Page loading overlay (top page) */
body.is-loading { overflow: hidden; }
body.skip-loading { overflow: auto; }
.skip-loading .loading-overlay { display: none !important; }
.loading-overlay { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; 
  background: radial-gradient(800px 400px at 20% 0%, rgba(255,71,126,.18), transparent 60%),
              radial-gradient(800px 400px at 80% 0%, rgba(79,176,255,.18), transparent 60%),
              linear-gradient(180deg, #0b1020, #0d1424); }
.loading-overlay img { width: 96px; height: 96px; opacity: 0; transform: translateY(6px) scale(.98); animation: logo-fade 900ms ease forwards; filter: drop-shadow(0 4px 16px rgba(0,0,0,.25)); }
@keyframes logo-fade { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.loading-overlay.hide { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .loading-overlay img { animation: none; opacity: 1; transform: none; } .loading-overlay.hide { transition: none; } }


/* === Responsive header (hamburger) and mobile sticky overrides === */
.site-header .nav-toggle { display: none; background: transparent; border: 1px solid var(--stroke); border-radius: 8px; padding: 6px 10px; color: var(--fg); }
.site-header .nav-toggle .icon { width: 20px; height: 20px; }
/* On desktop, keep original grid by flattening wrapper */
.site-header .nav-menu { display: contents; }

@media (max-width: 900px) {
  .site-header .site-nav { grid-template-columns: auto 1fr auto; }
  .site-header .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* Stack menu below header bar */
  .site-header .nav-menu { display: none; grid-column: 1 / -1; padding-top: 8px; }
  .site-header.menu-open .nav-menu { display: grid; gap: 8px; }
  .site-header .nav-links { display: flex; flex-direction: column; gap: 6px; }
  .site-header .nav-actions { display: flex; align-items: center; gap: 8px; }
  /* Make sticky parts static on mobile */
  .c-reveal__sticky { position: static; top: auto; }
  table.features thead th { position: static; top: auto; backdrop-filter: none; }
}
