/* ==========================================================================
   CULLTRON.TECH — public site design system  ·  "Gridlight Tron"
   Original Culltron work. Dark void, energy-line accents, holographic panels.
   Pure CSS · system fonts only · zero external requests · offline-first.
   Mobile-first · AA body contrast · focus-visible · reduced-motion · print-safe.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  --void: #04060c;
  --void-2: #070b14;
  --panel: #0b1220;
  --panel-2: #0e1628;
  --panel-3: #121c33;

  --ink: #e8f4ff;
  --dim: #8fa7bf;       /* AA on void for body text */
  --faint: #5b7390;

  --cyan: #00d4ff;
  --amber: #ffc24d;
  --ok: #3ddc97;
  --danger: #ff5a5a;
  --violet: #b86bff;
  --blue: #4da3ff;
  --ember: #ff7a45;

  --line: rgba(0, 212, 255, 0.16);
  --line-soft: rgba(0, 212, 255, 0.08);
  --line-strong: rgba(0, 212, 255, 0.38);

  --glow: 0 0 18px rgba(0, 212, 255, 0.30), 0 0 2px rgba(0, 212, 255, 0.65);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 8px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Ubuntu", "Cantarell", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Fira Code", "Ubuntu Mono", "Consolas", monospace;

  --maxw: 1200px;
  --measure: 70ch;
  --nav-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.01em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1rem; }

::selection { background: rgba(0, 212, 255, 0.28); color: #fff; }

/* skip + focus visibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--cyan); color: #03131c; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ----------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }

.measure { max-width: var(--measure); }
.center { text-align: center; }
.center.measure { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--line-strong);
  box-shadow: var(--glow);
}
.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--dim); max-width: var(--measure); }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* ----------------------------------------------------------------- void bg */
.voidbg { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.voidbg .glows {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 560px at 16% -8%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(900px 520px at 86% 8%, rgba(184, 107, 255, 0.09), transparent 62%),
    radial-gradient(760px 440px at 72% 96%, rgba(0, 212, 255, 0.06), transparent 60%),
    linear-gradient(180deg, var(--void-2), var(--void) 42%);
}
/* perspective grid floor receding to a horizon */
.voidbg .floor {
  position: absolute; left: -25%; right: -25%; bottom: -10%; height: 62vh;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(74deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 64%);
          mask-image: linear-gradient(180deg, transparent, #000 64%);
  opacity: 0.6;
  animation: floor-scroll 9s linear infinite;
}
@keyframes floor-scroll { to { background-position: 0 56px, 0 0; } }

/* faint hex motif top-right */
.voidbg .hex {
  position: absolute; top: -40px; right: -60px; width: 520px; height: 520px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(60% 60% at 70% 30%, #000, transparent 72%);
          mask-image: radial-gradient(60% 60% at 70% 30%, #000, transparent 72%);
}
/* horizon scanline sweep */
.voidbg .sweep {
  position: absolute; left: 0; right: 0; top: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);
  filter: blur(0.6px); opacity: 0.5;
  animation: sweep 13s linear infinite;
}
@keyframes sweep {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 0.6; } 55% { opacity: 0.22; }
  100% { transform: translateY(56vh); opacity: 0; }
}

/* hero-local particle canvas */
#particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ----------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 35%, transparent 80%);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.45)); }
.brand .bn { font-size: 1.05rem; }
.brand .bn b { color: var(--cyan); }

.nav-links { display: none; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--dim); font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: var(--radius-sm); transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(0, 212, 255, 0.07); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--cyan); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.9), rgba(0, 150, 200, 0.9));
  color: #03131c !important; font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent; transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.nav-cta:hover { box-shadow: 0 0 22px rgba(0, 212, 255, 0.45); transform: translateY(-1px); text-decoration: none; background: linear-gradient(180deg, rgba(0, 212, 255, 0.9), rgba(0, 150, 200, 0.9)); }

.ver-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--dim); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 212, 255, 0.05);
}
.ver-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 6px var(--amber); }

.nav-toggle {
  margin-left: auto; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 255, 0.06); border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav[data-open="true"] .nav-toggle span { background: transparent; }
.nav[data-open="true"] .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.nav-mobile {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: rgba(4, 6, 12, 0.97); backdrop-filter: blur(8px);
  padding: 24px 20px; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line-soft);
}
.nav[data-open="true"] .nav-mobile { display: flex; }
.nav-mobile a {
  color: var(--ink); font-size: 1.15rem; font-weight: 600;
  padding: 14px 12px; border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a:hover { color: var(--cyan); text-decoration: none; }
.nav-mobile .nav-cta { margin-top: 16px; justify-content: center; font-size: 1.05rem; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid var(--line-strong); color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.14), rgba(0, 212, 255, 0.04));
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 212, 255, 0.22); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn .shine { position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-20deg); transition: left 0.5s var(--ease); pointer-events: none; }
.btn:hover .shine { left: 130%; }

.btn-primary {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.92), rgba(0, 150, 200, 0.92));
  color: #03131c; border-color: transparent;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(0, 212, 255, 0.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-lg { padding: 15px 32px; font-size: 1.06rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }

/* ----------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--dim); background: rgba(0, 212, 255, 0.05);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge.free { color: var(--ok); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08); }
.badge.pro { color: var(--amber); border-color: rgba(255, 194, 77, 0.4); background: rgba(255, 194, 77, 0.08); }
.badge.cyan { color: var(--cyan); border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.08); }
.badge.violet { color: var(--violet); border-color: rgba(184, 107, 255, 0.4); background: rgba(184, 107, 255, 0.08); }
.badge.lc { color: var(--amber); border-color: rgba(255, 194, 77, 0.45); background: rgba(255, 194, 77, 0.07); font-family: var(--mono); letter-spacing: 0.03em; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan), var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 38px rgba(0, 212, 255, 0.22);
}
.hero .lead { margin-top: 6px; }
.hero .btn-row { margin-top: 30px; }
.hero-wordmark { max-width: 480px; width: 70%; margin-bottom: 10px; }

/* typing terminal strip */
.term-strip {
  margin-top: 34px; max-width: 560px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(2, 4, 9, 0.78); box-shadow: var(--shadow);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft); background: rgba(14, 22, 40, 0.6);
}
.term-bar .tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.term-bar .tdot.r { background: rgba(255, 90, 90, 0.7); }
.term-bar .tdot.y { background: rgba(255, 194, 77, 0.7); }
.term-bar .tdot.g { background: rgba(61, 220, 151, 0.7); }
.term-bar .tlabel { margin-left: 8px; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.05em; }
.term-body { padding: 14px 16px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.9; min-height: 86px; }
.term-body .prompt { color: var(--ok); }
.term-body .out { color: var(--dim); }
.term-type { color: var(--cyan); }
.term-cur {
  display: inline-block; width: 8px; height: 1.05em; vertical-align: -0.18em;
  background: var(--cyan); margin-left: 2px; box-shadow: 0 0 8px var(--cyan);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* trust line under hero */
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--faint); font-size: 0.85rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ic { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* ----------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.card {
  position: relative; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 22, 40, 0.62), rgba(10, 16, 30, 0.72));
  box-shadow: var(--shadow); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, 0.34); box-shadow: var(--shadow), 0 0 26px rgba(0, 212, 255, 0.12); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--dim); margin-bottom: 0; font-size: 0.96rem; }

/* universe app card */
.app-card { display: flex; flex-direction: column; gap: 0; }
.app-card .glyph {
  width: 48px; height: 48px; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 20%, rgba(0, 212, 255, 0.16), rgba(10, 16, 30, 0.6));
}
.app-card .glyph svg { width: 26px; height: 26px; }
.app-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.app-card .cat { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.app-card p { font-size: 0.9rem; }

/* feature columns */
.feat { display: flex; flex-direction: column; gap: 12px; }
.feat .fhead { display: flex; align-items: center; gap: 12px; }
.feat .fic {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(0, 212, 255, 0.07); color: var(--cyan);
}
.feat .fic svg { width: 22px; height: 22px; }
.feat h3 { margin: 0; font-size: 1.12rem; }
.feat p { color: var(--dim); margin: 0; font-size: 0.95rem; }

/* check list */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--dim); }
.check-list li svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 3px; }
.check-list li b { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------- manifesto strip */
.manifesto {
  text-align: center; padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(0, 212, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.5), transparent);
}
.manifesto h2 {
  font-size: clamp(1.8rem, 5vw, 3.2rem); max-width: 16ch; margin: 0 auto 18px;
}
.manifesto h2 .grad { background: linear-gradient(120deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.micro-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.micro-list .chip {
  font-size: 0.84rem; color: var(--dim); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 212, 255, 0.04);
}
.micro-list .chip b { color: var(--ink); }

/* ----------------------------------------------------------------- desktop mock */
.mock {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 40px rgba(0, 212, 255, 0.07);
  background: linear-gradient(180deg, var(--void-2), var(--void));
  aspect-ratio: 16 / 10; min-height: 320px;
}
.mock .wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(500px 260px at 80% 90%, rgba(184, 107, 255, 0.08), transparent 60%);
}
.mock .wall::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 30%, #000 40%, transparent 80%);
          mask-image: radial-gradient(110% 90% at 50% 30%, #000 40%, transparent 80%);
}
.mock-window {
  position: absolute; top: 12%; left: 8%; width: 56%;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.96), rgba(10, 16, 30, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.mock-window .wtitle {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft); background: rgba(0, 212, 255, 0.04);
  font-size: 0.74rem; color: var(--dim); font-weight: 600;
}
.mock-window .wtitle .wd { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.mock-window .wbody { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mock-app {
  aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 20%, rgba(0, 212, 255, 0.12), rgba(10, 16, 30, 0.7));
  display: flex; align-items: center; justify-content: center;
}
.mock-app svg { width: 22px; height: 22px; color: var(--cyan); opacity: 0.92; }
.mock-card {
  position: absolute; right: 7%; bottom: 16%; width: 30%; min-width: 180px;
  padding: 14px; border-radius: 10px; border: 1px solid rgba(61, 220, 151, 0.4);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.96), rgba(10, 16, 30, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.mock-card .mh { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--ok); margin-bottom: 8px; }
.mock-card .mh svg { width: 16px; height: 16px; }
.mock-card .mr { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--dim); padding: 3px 0; }
.mock-card .mr b { color: var(--ink); }
.mock-task {
  position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border-top: 1px solid var(--line); background: rgba(7, 11, 20, 0.92); backdrop-filter: blur(6px);
}
.mock-task .start {
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: rgba(0, 212, 255, 0.12);
}
.mock-task .start svg { width: 17px; height: 17px; color: var(--cyan); }
.mock-task .tpill { width: 30px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: rgba(0, 212, 255, 0.05); }
.mock-task .clock { margin-left: auto; font-family: var(--mono); font-size: 0.74rem; color: var(--dim); }

/* ----------------------------------------------------------------- mode chips */
.mode-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0, 212, 255, 0.05); font-weight: 600; color: var(--ink); font-size: 0.95rem;
}
.mode-chip .md { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.mode-chip.off { color: var(--faint); } .mode-chip.off .md { background: var(--faint); box-shadow: none; }
.mode-chip.rules { color: var(--ok); } .mode-chip.rules .md { background: var(--ok); }
.mode-chip.local { color: var(--violet); } .mode-chip.local .md { background: var(--violet); }
.mode-chip.api { color: var(--cyan); } .mode-chip.api .md { background: var(--cyan); }

/* ----------------------------------------------------------------- tiers */
.tier {
  display: flex; flex-direction: column; padding: 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.6), rgba(10, 16, 30, 0.7));
  box-shadow: var(--shadow);
}
.tier.featured { border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 30px rgba(0, 212, 255, 0.1); }
.tier .tname { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.tier .tprice { font-family: var(--mono); font-size: 0.9rem; color: var(--amber); margin-bottom: 4px; }
.tier .tdesc { color: var(--dim); font-size: 0.92rem; margin-bottom: 18px; }
.tier ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.tier ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.93rem; }
.tier ul li svg { width: 18px; height: 18px; flex: none; color: var(--cyan); margin-top: 3px; }
.tier .btn { margin-top: auto; }

/* ----------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 460px; }
table.spec th, table.spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
table.spec th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); background: rgba(0, 212, 255, 0.04); }
table.spec td { color: var(--ink); }
table.spec td:first-child { color: var(--dim); font-weight: 600; }
table.spec tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------------- FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.55), rgba(10, 16, 30, 0.65));
  overflow: hidden;
}
.faq details[open] { border-color: rgba(0, 212, 255, 0.32); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  width: 22px; height: 22px; flex: none; position: relative;
  border: 1px solid var(--line-strong); border-radius: 6px;
}
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; background: var(--cyan); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq summary .pm::before { width: 10px; height: 2px; }
.faq summary .pm::after { width: 2px; height: 10px; transition: transform 0.2s var(--ease); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) scaleY(0); }
.faq .ans { padding: 0 22px 20px; color: var(--dim); }
.faq .ans p { margin-bottom: 0; max-width: var(--measure); }

/* ----------------------------------------------------------------- app catalog (apps.html) */
.app-section {
  padding: clamp(40px, 6vw, 64px) 0; scroll-margin-top: calc(var(--nav-h) + 12px);
}
.app-section .ahead { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.app-section .aglyph {
  width: 60px; height: 60px; flex: none; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 120% at 30% 20%, rgba(0, 212, 255, 0.18), rgba(10, 16, 30, 0.7));
}
.app-section .aglyph svg { width: 32px; height: 32px; }
.app-section .ameta { flex: 1; min-width: 220px; }
.app-section h2 { margin-bottom: 6px; }
.app-section .abadges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bullets { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; color: var(--dim); font-size: 0.96rem; }
.bullets li svg { width: 18px; height: 18px; flex: none; color: var(--cyan); margin-top: 4px; }

/* in-page nav chips for apps catalog */
.jumpnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jumpnav a {
  font-size: 0.82rem; color: var(--dim); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 212, 255, 0.04); font-weight: 600;
}
.jumpnav a:hover { color: var(--cyan); border-color: var(--line-strong); text-decoration: none; }

/* ----------------------------------------------------------------- CTA band */
.cta-band {
  text-align: center; padding: clamp(48px, 8vw, 88px) 26px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(0, 212, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(14, 22, 40, 0.7), rgba(10, 16, 30, 0.8));
  box-shadow: var(--shadow);
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 12px; }
.cta-band p { max-width: var(--measure); margin: 0 auto 24px; color: var(--dim); }

/* ----------------------------------------------------------------- legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal-card {
  max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.6), rgba(10, 16, 30, 0.7));
  box-shadow: var(--shadow);
}
.legal-card h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.legal-card h2 { font-size: 1.3rem; margin: 32px 0 10px; color: var(--ink); }
.legal-card p { color: var(--dim); max-width: var(--measure); }
.legal-card a { color: var(--cyan); }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: rgba(7, 11, 20, 0.6); padding: clamp(48px, 7vw, 72px) 0 32px; position: relative; }
.footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 35%, transparent 75%);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--dim); font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--dim); font-size: 0.93rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 0.84rem;
}
.footer-bottom .ver-badge { font-size: 0.7rem; }

/* ----------------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ----------------------------------------------------------------- scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.18); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.34); background-clip: content-box; }

/* ----------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { font-size: 0.88rem; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .split.rev > :first-child { order: 2; }
  .bullets { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 2fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .grid-3.apps { grid-template-columns: repeat(4, 1fr); }
}

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

/* ----------------------------------------------------------------- print */
@media print {
  .nav, .nav-mobile, .voidbg, #particles, .term-strip, .cta-band, .footer::before, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .tier, .legal-card, .faq details { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .lead, .card p, p { color: #222; }
  h1 .grad, h2 .grad { color: #000 !important; -webkit-text-fill-color: #000; }
}

/* apps.html feature lists */
.app-card .feature-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-card .feature-list li { font-size: 0.84rem; color: var(--dim, #8fa7bf); padding-left: 18px; position: relative; }
.app-card .feature-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border: 1px solid #00d4ff; border-radius: 2px; transform: rotate(45deg); }
.badge.pro { color: #00d4ff; }
