/* Jaya AI — site styles. Tokens first; everything below reads from them.
   Light by default, dark via OS preference or the header toggle (data-theme).
   No web fonts, no third-party requests. */

:root {
  color-scheme: light dark;

  --bg: #fbfaf8;
  --bg-2: #f3f1ec;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --border: #e6e2d8;
  --border-strong: #cdc8ba;
  --text: #0c1020;
  --muted: #565f77;
  --faint: #8a92a6;

  /* parent brand: violet -> saffron ("Jaya" = victory) */
  --brand-1: #6a5cff;
  --brand-2: #b45cff;
  --brand-3: #ff8f3a;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --grad: linear-gradient(110deg, var(--brand-1) 0%, var(--brand-2) 48%, var(--brand-3) 100%);

  /* product accents (match each product's own site) */
  --aja-1: #10b981;
  --aja-2: #06b6d4;
  --aja-ink: #047857;
  --led-1: #14b8a6;
  --led-2: #4f6bff;
  --led-ink: #0f766e;

  --good: #0b8f64;
  --good-bg: rgba(11, 143, 100, 0.1);
  --warn: #8f6205;
  --warn-bg: rgba(143, 98, 5, 0.12);
  --bad: #c43c3c;
  --bad-bg: rgba(196, 60, 60, 0.1);

  --glow-1: rgba(106, 92, 255, 0.2);
  --glow-2: rgba(255, 143, 58, 0.18);
  --glow-3: rgba(16, 185, 129, 0.14);
  --grid: rgba(12, 16, 32, 0.06);
  --shadow: 0 30px 70px -34px rgba(30, 27, 75, 0.35), 0 0 0 1px rgba(12, 16, 32, 0.04);
  --shadow-sm: 0 10px 30px -18px rgba(30, 27, 75, 0.3);

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}

/* dark tokens: applied by OS preference unless the user picked light, or by an explicit pick */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06070d;
    --bg-2: #0a0c16;
    --surface: #0e1120;
    --surface-2: #131731;
    --border: #1e2440;
    --border-strong: #2f3860;
    --text: #eceffa;
    --muted: #a3acc6;
    --faint: #6f7893;
    --brand-1: #8b7bff;
    --brand-2: #c77dff;
    --brand-3: #ffab5c;
    --accent: #a198ff;
    --accent-ink: #0a0820;
    --aja-1: #34d399;
    --aja-2: #22d3ee;
    --aja-ink: #34d399;
    --led-1: #34d3b6;
    --led-2: #6c8cff;
    --led-ink: #5eead4;
    --good: #34d399;
    --good-bg: rgba(52, 211, 153, 0.12);
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.12);
    --bad: #f87171;
    --bad-bg: rgba(248, 113, 113, 0.14);
    --glow-1: rgba(139, 123, 255, 0.22);
    --glow-2: rgba(255, 171, 92, 0.12);
    --glow-3: rgba(52, 211, 153, 0.12);
    --grid: rgba(148, 163, 184, 0.07);
    --shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    --shadow-sm: 0 12px 34px -18px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: #0e1120;
  --surface-2: #131731;
  --border: #1e2440;
  --border-strong: #2f3860;
  --text: #eceffa;
  --muted: #a3acc6;
  --faint: #6f7893;
  --brand-1: #8b7bff;
  --brand-2: #c77dff;
  --brand-3: #ffab5c;
  --accent: #a198ff;
  --accent-ink: #0a0820;
  --aja-1: #34d399;
  --aja-2: #22d3ee;
  --aja-ink: #34d399;
  --led-1: #34d3b6;
  --led-2: #6c8cff;
  --led-ink: #5eead4;
  --good: #34d399;
  --good-bg: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-bg: rgba(248, 113, 113, 0.14);
  --glow-1: rgba(139, 123, 255, 0.22);
  --glow-2: rgba(255, 171, 92, 0.12);
  --glow-3: rgba(52, 211, 153, 0.12);
  --grid: rgba(148, 163, 184, 0.07);
  --shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-sm: 0 12px 34px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--brand-1) 35%, transparent); }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -56px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
@supports (background: color-mix(in srgb, red, blue)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
  }
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-display); font-weight: 750; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.nav-links a:not(.btn) { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; transition: color 0.15s, background 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
.nav-links .nav-cta-mobile { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--text) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--text) 70%, transparent); }
.btn-brand { color: #fff; background: var(--grad); box-shadow: 0 14px 34px -14px var(--brand-1); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px var(--brand-2); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.9; }
.aurora i:nth-child(1) { width: 560px; height: 420px; left: -6%; top: -8%; background: var(--glow-1); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 480px; height: 380px; right: -4%; top: 4%; background: var(--glow-2); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 420px; height: 340px; left: 38%; bottom: -14%; background: var(--glow-3); animation: drift-a 30s ease-in-out infinite alternate-reverse; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 20%, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 84px 0 100px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--muted); font-size: 0.86rem; font-weight: 500;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--glow-1); animation: pulse 2.4s ease-in-out infinite; }

h1, h2, h3 { font-family: var(--font-display); }
h1 { margin-top: 24px; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 780; text-wrap: balance; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: sheen 9s ease-in-out infinite alternate; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.assure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; color: var(--muted); font-size: 0.92rem; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 17px; height: 17px; color: var(--good); flex: none; }

/* hero stage: two floating product previews */
.stage { position: relative; min-height: 540px; perspective: 1200px; }
.fcard {
  position: absolute; width: min(100%, 410px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fcard-a { left: 0; top: 0; z-index: 2; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-2deg); animation: float-a 9s ease-in-out infinite; }
.fcard-b { right: 0; bottom: 0; z-index: 1; transform: translate3d(calc(var(--px, 0px) * -1), calc(var(--py, 0px) * -1), 0) rotate(2.2deg); animation: float-b 11s ease-in-out infinite; }
.fbar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.fbar img { width: 22px; height: 22px; border-radius: 6px; }
.fbar b { color: var(--text); font-weight: 650; }
.fbar .tag { margin-left: auto; }
.fbody { padding: 16px 18px 18px; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 600 0.78rem var(--mono); color: var(--muted); }
.meter .bar { position: relative; height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--aja-1), var(--aja-2)); }
.meter .bar i.ghost { background: var(--border-strong); opacity: 0.7; }
.meter b { color: var(--text); }
.claims { margin-top: 16px; display: grid; gap: 8px; }
.claim { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg-2); font-size: 0.86rem; }
.claim .m { flex: none; }
.claim span { flex: 1; min-width: 0; }
.claim small { display: block; color: var(--faint); font-size: 0.74rem; }
.claim.blocked { background: var(--bad-bg); }
.claim.blocked span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.claim.blocked small { text-decoration: none; color: var(--bad); }
.m { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.m svg { width: 13px; height: 13px; }
.m.ok { background: var(--good-bg); color: var(--good); }
.m.no { background: var(--bad-bg); color: var(--bad); }
.m.na { color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.mini-table th, .mini-table td { padding: 10px 6px; text-align: left; border-top: 1px solid var(--border); }
.mini-table thead th { border-top: 0; padding-top: 0; font: 600 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.mini-table tbody th { font: 600 0.8rem var(--mono); }
.mini-table td.c, .mini-table th.c { text-align: center; }
.caption { margin-top: 14px; font-size: 0.8rem; color: var(--faint); }
.stage-note { position: absolute; left: 0; bottom: -6px; z-index: 3; }

/* ---------- marquee ---------- */
.ticker { border-block: 1px solid var(--border); background: var(--bg-2); padding: 18px 0; overflow: hidden; }
.ticker-row { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.ticker-row + .ticker-row { margin-top: 12px; animation-direction: reverse; animation-duration: 56s; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-label { margin-bottom: 12px; text-align: center; font: 600 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pill-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.pill-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--faint)); }
.ticker-row.aja { --c: var(--aja-1); }
.ticker-row.led { --c: var(--led-1); }

/* ---------- sections ---------- */
.section { padding: 100px 0; position: relative; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 { margin-top: 16px; font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 760; max-width: 26ch; text-wrap: balance; }
.sub { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }

/* spotlight cards: JS sets --mx/--my; falls back to a plain card */
.card, .product, .bento > div, .status-card {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before, .product::before, .bento > div::before, .status-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot, var(--glow-1)), transparent 65%);
}
.card:hover::before, .product:hover::before, .bento > div:hover::before, .status-card:hover::before { opacity: 1; }
.card:hover, .bento > div:hover { border-color: var(--border-strong); }

/* products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.product { padding: 34px; display: flex; flex-direction: column; }
.product.aja { --spot: color-mix(in srgb, var(--aja-1) 22%, transparent); --a1: var(--aja-1); --a2: var(--aja-2); --ink: var(--aja-ink); }
.product.led { --spot: color-mix(in srgb, var(--led-2) 22%, transparent); --a1: var(--led-1); --a2: var(--led-2); --ink: var(--led-ink); }
.product::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-top img { width: 52px; height: 52px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a1, var(--good)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1, var(--good)) 25%, transparent); }
.product h3 { margin-top: 26px; font-size: 1.7rem; letter-spacing: -0.03em; font-weight: 750; }
.product h3 em { font-style: normal; color: var(--ink); }
.product .tagline { margin-top: 6px; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.product p.desc { margin-top: 14px; color: var(--muted); }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); font-size: 0.97rem; }
.ticks li svg { width: 19px; height: 19px; margin-top: 2px; color: var(--ink, var(--good)); flex: none; }
.ticks li b { color: var(--text); font-weight: 600; }
.product .actions { margin-top: auto; padding-top: 32px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink, var(--accent)); text-decoration: none; }
.text-link svg { width: 17px; height: 17px; transition: transform 0.2s; }
.text-link:hover svg.arrow { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.bento > div { padding: 30px; }
.bento .s2 { grid-column: span 2; }
.bento .s3 { grid-column: span 3; }
.bento .s4 { grid-column: span 4; }
.bento h3 { margin-top: 20px; font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 700; }
.bento p { margin-top: 10px; color: var(--muted); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--accent); background: var(--glow-1); border: 1px solid var(--border); }
.ico svg { width: 23px; height: 23px; }
.ico.aja { color: var(--aja-ink); background: color-mix(in srgb, var(--aja-1) 14%, transparent); }
.ico.led { color: var(--led-ink); background: color-mix(in srgb, var(--led-1) 14%, transparent); }
.who { display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font: 600 0.68rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

.trail { margin: 22px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); overflow-x: auto; font: 500 0.84rem/1.85 var(--mono); color: var(--text); }
.trail code { font: inherit; white-space: pre; }
.t-dim { color: var(--faint); }
.t-ok { color: var(--good); font-weight: 700; }
.t-bad { color: var(--bad); font-weight: 700; }

.tag.plain { background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.job .end { display: grid; justify-items: end; gap: 5px; }
.notice { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-size: 0.88rem; }
.notice svg { width: 20px; height: 20px; flex: none; }
.notice b { font-weight: 650; }
.mini-h { margin-top: 20px; font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.skill-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; border: 1px solid var(--border); background: var(--bg-2); }
.skill-chips li svg { width: 14px; height: 14px; }
.skill-chips li.ok { color: var(--good); background: var(--good-bg); border-color: transparent; }
.skill-chips li.no { color: var(--bad); background: var(--bad-bg); border-color: transparent; text-decoration: line-through; }
.mini-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.mini-note .tag { margin-right: 8px; }
.styles { display: grid; gap: 16px; }
.styles p { margin-top: 8px; font-size: 0.95rem; color: var(--text); }
.prose-block { display: grid; gap: 18px; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.prose-block b { color: var(--text); font-weight: 650; }
.page-hero-inner { padding: 88px 0 72px; }
.page-hero-inner h1 { max-width: 18ch; }
.chip + h1 { margin-top: 24px; }

/* generic 3-up cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top: 18px; font-size: 1.1rem; letter-spacing: -0.015em; font-weight: 700; }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font: 600 0.68rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.pill.sev-critical { color: var(--bad); border-color: transparent; background: var(--bad-bg); }
.pill.sev-high { color: var(--warn); border-color: transparent; background: var(--warn-bg); }
.pill.beta { color: var(--warn); border-color: transparent; background: var(--warn-bg); }
.pill.soon { color: var(--accent); border-color: transparent; background: var(--glow-1); }
.footnote { margin-top: 26px; color: var(--faint); font-size: 0.9rem; }

/* status board */
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.status-card { padding: 30px; }
.status-card.aja { --spot: color-mix(in srgb, var(--aja-1) 18%, transparent); --a1: var(--aja-1); --ink: var(--aja-ink); }
.status-card.led { --spot: color-mix(in srgb, var(--led-2) 18%, transparent); --a1: var(--led-1); --ink: var(--led-ink); }
.status-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.status-card h3 img { width: 30px; height: 30px; border-radius: 8px; }
.status-card h4 { margin-top: 24px; font: 600 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.status-card ul { margin-top: 12px; display: grid; gap: 10px; }
.status-card li { display: flex; gap: 11px; color: var(--muted); font-size: 0.96rem; }
.status-card li svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--ink); }
.status-card li.later svg { color: var(--faint); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; margin-top: 54px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--border); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px; font: 700 2.3rem/1 var(--mono); letter-spacing: -0.05em; color: var(--ink, var(--accent)); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: linear-gradient(90deg, var(--a1, var(--brand-1)), var(--a2, var(--brand-3))); }
.step h3 { font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }
.steps.aja { --a1: var(--aja-1); --a2: var(--aja-2); --ink: var(--aja-ink); }
.steps.led { --a1: var(--led-1); --a2: var(--led-2); --ink: var(--led-ink); }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* product hero accents */
.hero.aja { --a1: var(--aja-1); --a2: var(--aja-2); --ink: var(--aja-ink); --glow-1: color-mix(in srgb, var(--aja-1) 22%, transparent); --glow-2: color-mix(in srgb, var(--aja-2) 18%, transparent); --glow-3: color-mix(in srgb, #6366f1 16%, transparent); }
.hero.led { --a1: var(--led-1); --a2: var(--led-2); --ink: var(--led-ink); --glow-1: color-mix(in srgb, var(--led-1) 22%, transparent); --glow-2: color-mix(in srgb, var(--led-2) 20%, transparent); --glow-3: color-mix(in srgb, #8b5cf6 14%, transparent); }
.hero.aja .grad, .hero.led .grad { background-image: linear-gradient(105deg, var(--a1), var(--a2)); }
.hero.aja .chip i, .hero.led .chip i { background: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 25%, transparent); }
.btn-product { color: #04120d; background: linear-gradient(120deg, var(--a1), var(--a2)); box-shadow: 0 14px 34px -16px var(--a1); }
.btn-product:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px var(--a1); }
.hero.product-hero .hero-grid { padding: 76px 0 90px; }
.panel { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.panel-bar span { margin-left: 8px; font: 500 0.76rem var(--mono); color: var(--faint); }
.panel-body { padding: 18px 20px 20px; }
.scroll-x { overflow-x: auto; }
.recon { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 0.88rem; }
.recon thead th { padding: 14px 12px 10px; text-align: center; font: 600 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.recon thead th:first-child { text-align: left; padding-left: 18px; }
.recon tbody th { padding: 13px 12px 13px 18px; text-align: left; border-top: 1px solid var(--border); font: 600 0.84rem var(--mono); }
.recon td { padding: 13px 12px; text-align: center; border-top: 1px solid var(--border); }
.recon thead th:last-child, .recon td:last-child { text-align: left; padding-right: 18px; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; }
.panel-foot b { color: var(--text); font-weight: 650; }

.job-list { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--bg-2); }
.job .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--aja-1), var(--aja-2)); color: #04120d; font-weight: 800; font-size: 0.9rem; }
.job b { display: block; font-size: 0.9rem; font-weight: 650; }
.job small { color: var(--faint); font-size: 0.78rem; }
.score { font: 700 0.92rem var(--mono); color: var(--aja-ink); }
.score small { color: var(--faint); font-weight: 600; }

/* boards grid */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; margin-top: 40px; }
.board { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.95rem; }
.board small { white-space: nowrap; font: 600 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); padding: 2px 8px; border-radius: 999px; }
.board small.plain { color: var(--faint); background: transparent; border: 1px solid var(--border); }

/* connector chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.chips li small { margin-left: 8px; font: 600 0.66rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* split layout (text + visual) */
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }

/* cta */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 84px 28px; border-radius: 28px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(560px 280px at 18% 0%, var(--glow-1), transparent 70%), radial-gradient(560px 280px at 88% 100%, var(--glow-2), transparent 70%); }
.cta h2 { margin-inline: auto; }
.cta .sub { margin-inline: auto; }
.cta .actions { justify-content: center; }
.cta .eyebrow { justify-content: center; }

/* about */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 34px; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.avatar { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: var(--grad); color: #fff; font: 800 2rem var(--font-display); letter-spacing: -0.04em; box-shadow: 0 18px 40px -18px var(--brand-1); }
.founder h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.founder .role { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.founder p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.promises { display: grid; gap: 14px; margin-top: 40px; }
.promises li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.promises li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.promises b { display: block; font-weight: 650; }
.promises span { color: var(--muted); font-size: 0.96rem; }

/* prose (legal) */
.prose { max-width: 760px; margin-inline: auto; padding: 80px 0 104px; }
.prose h1 { margin-top: 14px; font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.prose .updated { margin-top: 12px; color: var(--faint); font-size: 0.95rem; }
.prose h2 { margin-top: 46px; max-width: none; font-size: 1.4rem; letter-spacing: -0.02em; }
.prose p, .prose li { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.prose ul { margin-top: 10px; padding-left: 1.3rem; list-style: disc; }
.prose li { margin-top: 10px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 650; }

/* 404 */
.nf-page { min-height: calc(100vh - 70px); display: grid; align-items: center; }
.nf { display: grid; place-items: center; text-align: center; padding: 48px 0; }
.nf .code { margin: 0; font: 800 clamp(5rem, 18vw, 10rem)/1 var(--font-display); letter-spacing: -0.06em; }
.nf p { margin: 14px auto 30px; max-width: 42ch; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot p.about { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 0.94rem; }
.foot h4 { font: 600 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.foot ul { margin-top: 14px; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--faint); font-size: 0.86rem; }

/* ---------- motion ---------- */
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, 40px, 0) scale(1.15); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-60px, 50px, 0) scale(0.9); } }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 12px; } }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--glow-1); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.26s; } .d4 { animation-delay: 0.36s; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .grad, .chip i, .fcard, .ticker-row { animation: none !important; }
  .btn, .card, .product { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 56px 0 80px; }
  .stage { min-height: 500px; max-width: 560px; margin-inline: auto; width: 100%; }
  .products, .status-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .s2, .bento .s3, .bento .s4 { grid-column: span 2; }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 76px 0; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 18px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, 0.35); display: none; }
  .js .nav-links[data-open="true"] { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 14px; font-size: 1.02rem; }
  .nav-links .btn { margin-top: 8px; }
  html:not(.js) .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; box-shadow: none; border: 0; background: none; }
  html:not(.js) .nav { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav-cta-desktop { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), 100% - 36px); }
  .cards, .cards.two, .cards.four, .steps, .steps.three { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .s2, .bento .s3, .bento .s4 { grid-column: auto; }
  .product, .status-card, .bento > div { padding: 24px; }
  .cta { padding: 56px 20px; border-radius: 22px; }
  .actions .btn { flex: 1 1 100%; }
  .founder { grid-template-columns: minmax(0, 1fr); text-align: left; padding: 26px; }
  .stage { min-height: 560px; }
  .fcard { width: min(100%, 360px); }
  .fcard-b { right: 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding: 44px 0 64px; }
}
