/* ==========================================================================
   Diode Logic — design system
   Plain CSS, no build step. Tokens on :root, dark overrides on [data-theme].
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #F6F8FB;
  --bg-elev: #FFFFFF;
  --bg-sunken: #EDF1F6;
  --ink: #0E1220;
  --ink-2: #4B5568;
  --ink-3: #7A8699;
  --line: #E2E7EF;
  --line-strong: #CBD3DF;
  --accent: #0E7C9A;
  --accent-strong: #0891B2;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(8, 145, 178, .10);
  --glow: #D97706;
  --glow-soft: rgba(245, 158, 11, .16);
  /* the "board": always dark, used by the hero and the footer */
  --board: #0B1020;
  --board-2: #121B30;
  --board-ink: #EDF2F8;
  --board-ink-2: #A9B4C6;
  --trace: #2A3A5C;
  --trace-2: #3B4D73;
  --pulse: #22D3EE;
  --led: #FBBF24;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 18, 32, .06);
  --shadow: 0 1px 2px rgba(14, 18, 32, .04), 0 14px 36px -18px rgba(14, 18, 32, .28);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, "Liberation Mono", monospace;
  --container: 1140px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F17;
  --bg-elev: #121826;
  --bg-sunken: #070A10;
  --ink: #EDF2F8;
  --ink-2: #A9B4C6;
  --ink-3: #6F7B91;
  --line: #1F2837;
  --line-strong: #2C3748;
  --accent: #22D3EE;
  --accent-strong: #67E8F9;
  --accent-ink: #06202A;
  --accent-soft: rgba(34, 211, 238, .12);
  --glow: #FBBF24;
  --glow-soft: rgba(251, 191, 36, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
}

/* No-JS fallback: follow the system when no explicit theme is stamped */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0F17;
    --bg-elev: #121826;
    --bg-sunken: #070A10;
    --ink: #EDF2F8;
    --ink-2: #A9B4C6;
    --ink-3: #6F7B91;
    --line: #1F2837;
    --line-strong: #2C3748;
    --accent: #22D3EE;
    --accent-strong: #67E8F9;
    --accent-ink: #06202A;
    --accent-soft: rgba(34, 211, 238, .12);
    --glow: #FBBF24;
    --glow-soft: rgba(251, 191, 36, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
strong { font-weight: 650; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-alt { background: var(--bg-sunken); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: "// "; color: var(--ink-3); font-weight: 400; }
.lead { font-size: 19px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* --------------------------------------------------------------------------
   Buttons, chips, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-elev); }
.btn-on-board { color: var(--board-ink); border-color: rgba(255, 255, 255, .18); }
.btn-on-board:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .34); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-sunken); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-weight: 500; line-height: 1.4;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-soon { background: var(--glow-soft); color: var(--glow); }
.badge-live { background: rgba(16, 185, 129, .14); color: #059669; }
[data-theme="dark"] .badge-live { color: #34D399; }
.badge-dev { background: var(--accent-soft); color: var(--accent); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.on-board { background: color-mix(in srgb, var(--board) 70%, transparent); color: var(--board-ink); }
.nav.on-board.scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--board); color: var(--pulse); display: grid; place-items: center; flex-shrink: 0; }
.brand .mark svg { width: 22px; height: 22px; }
.brand b { font-weight: 800; color: var(--accent); }
.nav.on-board .brand b { color: var(--pulse); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav.on-board .nav-links a { color: var(--board-ink-2); }
.nav.on-board .nav-links a:hover { color: var(--board-ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 9px 16px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); cursor: pointer; font: inherit; font-weight: 600; font-size: 13px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--bg-sunken); color: var(--ink); }
.nav.on-board .icon-btn { color: var(--board-ink-2); }
.nav.on-board .icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--board-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-switch { font-family: var(--mono); letter-spacing: .04em; }
#theme-toggle .icon-sun { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun { display: block; }
[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
.nav-burger { display: none; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }
.nav-burger[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-burger { display: inline-grid; }
  .nav-actions .btn-cta { display: none; }
}

/* --------------------------------------------------------------------------
   Hero (the board)
   -------------------------------------------------------------------------- */
.board {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% 0%, rgba(34, 211, 238, .16), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(251, 191, 36, .10), transparent 58%),
    var(--board);
  color: var(--board-ink);
}
.board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .3) 60%, transparent);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .3) 60%, transparent);
}
.hero { position: relative; z-index: 1; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--pulse); }
.hero .eyebrow::before { color: var(--board-ink-2); }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin-top: 18px; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--pulse); }
.hero .lead { color: var(--board-ink-2); font-size: clamp(17px, 2vw, 20px); margin-top: 22px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 38px; font-family: var(--mono); font-size: 13px; color: var(--board-ink-2); letter-spacing: .03em; }
.hero-platforms li { display: inline-flex; align-items: center; gap: 8px; }
.hero-platforms li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pulse); opacity: .7; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
}

/* Circuit animation */
.trace { stroke: var(--trace); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pad { fill: var(--board); stroke: var(--trace-2); stroke-width: 2; }
.chipbody { fill: var(--board-2); stroke: var(--trace-2); stroke-width: 2; }
.silk { font-family: var(--mono); font-size: 11px; fill: var(--trace-2); letter-spacing: .08em; }
.diode-tri { fill: var(--board-2); stroke: var(--trace-2); stroke-width: 2.2; stroke-linejoin: round; }
.diode-bar { stroke: var(--trace-2); stroke-width: 4; stroke-linecap: round; }
.pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 100; stroke-dashoffset: 14; }
.pulse-a { stroke: var(--pulse); animation: pulse-a 4.2s linear infinite; }
.pulse-c { stroke: var(--led); animation: pulse-c 4.2s linear infinite; }
.pulse-b1 { stroke: var(--pulse); opacity: .55; animation: pulse-b1 4.2s linear infinite; }
.pulse-b2 { stroke: var(--led); opacity: .55; animation: pulse-b2 4.2s linear infinite; }
.led-glow { fill: var(--led); opacity: 0; animation: led 4.2s ease-in-out infinite; filter: url(#glow); }
.led-core { fill: var(--led); opacity: 0; animation: led 4.2s ease-in-out infinite; }

@keyframes pulse-a { 0% { stroke-dashoffset: 14; } 34% { stroke-dashoffset: -100; } 100% { stroke-dashoffset: -100; } }
@keyframes pulse-c { 0%, 36% { stroke-dashoffset: 14; } 70% { stroke-dashoffset: -100; } 100% { stroke-dashoffset: -100; } }
@keyframes pulse-b1 { 0%, 12% { stroke-dashoffset: 14; } 40% { stroke-dashoffset: -100; } 100% { stroke-dashoffset: -100; } }
@keyframes pulse-b2 { 0%, 50% { stroke-dashoffset: 14; } 82% { stroke-dashoffset: -100; } 100% { stroke-dashoffset: -100; } }
@keyframes led { 0%, 30% { opacity: 0; } 38% { opacity: 1; } 62% { opacity: 0; } 100% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 24px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--board-ink); letter-spacing: -.02em; }
.stat b small { font-size: 16px; color: var(--pulse); margin-left: 2px; }
.stat span { display: block; font-size: 13px; color: var(--board-ink-2); margin-top: 2px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Cards and grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: 19px; margin-top: 18px; }
.card p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.icon-badge svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card-tech span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); background: var(--bg-sunken); padding: 3px 8px; border-radius: 6px; }

/* Products */
.product-card { display: flex; flex-direction: column; padding: 24px; }
.product-card:hover .product-arrow { transform: translateX(4px); color: var(--accent); }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon {
  width: 60px; height: 60px; border-radius: 15px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-sunken); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.app-icon img, .app-icon svg { width: 100%; height: 100%; object-fit: cover; }
.app-icon.pad img { padding: 6px; }
.product-card h3 { font-size: 21px; margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.product-card .tagline { color: var(--ink-2); margin-top: 6px; font-size: 15.5px; flex-grow: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-arrow { color: var(--ink-3); transition: transform .2s ease, color .2s ease; }
.product-arrow svg { width: 20px; height: 20px; }
.product-card > a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); }
.principle { padding: 34px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle:nth-child(2n) { border-right: 0; }
.principle:nth-last-child(-n+2) { border-bottom: 0; }
.principle .num { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: .06em; }
.principle h3 { font-size: 20px; margin-top: 10px; }
.principle p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; }
  .principle:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
}

/* Company */
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.company-grid .prose p + p { margin-top: 16px; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 900px) { .company-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 18px; }
.contact-card a.big, .contact-card .big { font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); word-break: break-word; }
.contact-card a.big:hover { color: var(--accent); }
.contact-card p { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Product & content pages
   -------------------------------------------------------------------------- */
.page-hero { padding: 64px 0 56px; }
.page-hero .container { position: relative; z-index: 1; }
.app-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero .app-icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.app-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.app-hero .lead { color: var(--board-ink-2); margin-top: 10px; max-width: 620px; }
.app-hero .chip-row { margin-top: 18px; }
.app-hero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--board-ink-2); }
.app-hero .badge-soon { background: rgba(251, 191, 36, .16); color: var(--led); }
.app-hero .badge-dev { background: rgba(34, 211, 238, .14); color: var(--pulse); }
.app-hero .badge-live { background: rgba(52, 211, 153, .14); color: #34D399; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 640px) { .app-hero { grid-template-columns: 1fr; } .app-hero .app-icon { width: 84px; height: 84px; border-radius: 20px; } }

.crumbs { font-family: var(--mono); font-size: 13px; color: var(--board-ink-2); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--board-ink); }
.crumbs span { opacity: .5; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 16.5px; margin-top: 12px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.feature .icon-badge { width: 38px; height: 38px; border-radius: 10px; }
.feature .icon-badge svg { width: 19px; height: 19px; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.panel h2 { font-size: 22px; }
.panel h2 + p { margin-top: 10px; color: var(--ink-2); }
ul.checks { margin-top: 16px; display: grid; gap: 10px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
ul.checks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C9A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); background-size: 11px; background-repeat: no-repeat; background-position: center; }
[data-theme="dark"] ul.checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.panel .links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; font-size: 15.5px; max-width: 720px; }
.faq details p + p { margin-top: -8px; }

/* Prose (legal & long text) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.prose .updated { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.prose h2 { font-size: 22px; margin-top: 44px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p { margin-top: 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin-top: 12px; padding-left: 22px; color: var(--ink-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose .summary { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius); padding: 18px 22px; margin-top: 26px; color: var(--ink); }
.prose .summary p { color: var(--ink); margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.prose dl div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prose dt { font-weight: 600; color: var(--ink); }
.prose dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .prose dl div { grid-template-columns: 1fr; gap: 2px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--board); color: var(--board-ink-2); padding: 64px 0 36px; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--board-ink); }
.footer .brand b { color: var(--pulse); }
.footer .brand .mark { background: rgba(255, 255, 255, .06); }
.footer-tag { margin-top: 16px; max-width: 320px; font-size: 14.5px; }
.footer h4 { color: var(--board-ink); font-size: 13px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; font-size: 14.5px; }
.footer ul a:hover { color: var(--board-ink); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-legal a:hover { color: var(--board-ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-a, .pulse-c, .pulse-b1, .pulse-b2 { animation: none; stroke-dasharray: none; opacity: .5; }
  .led-glow, .led-core { animation: none; opacity: .9; }
  .card, .btn { transition: none; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-family: var(--mono); font-size: clamp(64px, 14vw, 140px); font-weight: 700; color: var(--accent); letter-spacing: -.04em; line-height: 1; }

/* Diode outline lights up together with the LED */
.diode-lit { fill: none; stroke: var(--led); stroke-width: 2.4; stroke-linejoin: round; opacity: 0; animation: led 4.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .diode-lit { animation: none; opacity: .8; } }
