/* =========================================================
   Synchratex — design system
   ========================================================= */

:root {
  --ink: #05070b;
  --ink-2: #080c13;
  --ink-3: #0b111a;
  --panel: rgba(12, 18, 27, 0.72);
  --panel-solid: #0a1018;
  --text: #f2f4ee;
  --muted: #8f9ba8;
  --muted-2: #65717e;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --acid: #c8ff3d;
  --acid-bright: #dcff8d;
  --acid-soft: rgba(200, 255, 61, 0.12);
  --cyan: #74e7ff;
  --cyan-soft: rgba(116, 231, 255, 0.11);
  --violet: #b29cff;
  --violet-soft: rgba(178, 156, 255, 0.11);
  --orange: #ff9b64;
  --radius: 22px;
  --radius-sm: 13px;
  --max: 1280px;
  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="en"],
html[lang="ja"] {
  --font-body: "Noto Sans JP", "Noto Sans SC", "PingFang SC", sans-serif;
}

html[lang="ja"] {
  --font-display: "Space Grotesk", "Noto Sans JP", "Noto Sans SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

o-app {
  display: block;
  min-height: 100vh;
}

o-app > o-page,
o-page {
  display: block;
}

:host {
  display: block;
}

::slotted(o-page) {
  display: block;
}

.site-main {
  position: relative;
  display: block;
  min-height: 62vh;
}

.page-root {
  position: relative;
  display: block;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: #071006;
  background: var(--acid);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #071006;
  background: var(--acid);
  border-radius: 8px;
  font-size: 13px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   Ambient field
   ========================================================= */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(80% 56% at 72% -4%, rgba(79, 96, 38, 0.2), transparent 62%),
    radial-gradient(52% 38% at 100% 30%, rgba(34, 98, 112, 0.12), transparent 70%),
    linear-gradient(180deg, #05070b 0%, #05080d 46%, #05070b 100%);
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 0%, transparent 40%, rgba(5, 7, 11, 0.6) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  will-change: transform;
}

/* =========================================================
   Typography & utilities
   ========================================================= */

.container {
  width: min(var(--max), calc(100% - 64px));
  margin-inline: auto;
}

.container--wide {
  width: min(1440px, calc(100% - 64px));
}

.section {
  position: relative;
  padding: clamp(88px, 11vw, 148px) 0;
}

.section--tight {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow {
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200, 255, 61, 0.8);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(200, 255, 61, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2.4s ease-out infinite;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.5vw, 7.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.accent {
  color: var(--acid);
}

.page-noneos .accent {
  color: var(--cyan);
}

.page-mazmot .accent {
  color: var(--violet);
}

.page-vision .accent {
  color: var(--acid);
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.text-link:hover {
  color: var(--acid);
  border-color: var(--acid);
  gap: 15px;
}

.text-link svg {
  width: 13px;
  height: 13px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.section-head .label {
  align-self: start;
  padding-top: 0.7em;
}

.section-head__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-head__body .lead {
  max-width: 580px;
}

.section-title {
  text-wrap: balance;
}

.kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.35s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #071006;
  background: var(--acid);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.2), 0 10px 36px rgba(200, 255, 61, 0.14);
}

.btn--primary:hover {
  background: var(--acid-bright);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.4), 0 14px 42px rgba(200, 255, 61, 0.22);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--line-strong);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.6;
  transform: none !important;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

/* =========================================================
   Header / navigation
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.82), rgba(5, 7, 11, 0));
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 7, 11, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 64px));
  height: 76px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--acid);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-word {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
}

.brand-suffix {
  margin-left: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  vertical-align: top;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  margin-left: auto;
  margin-right: clamp(20px, 3vw, 44px);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--acid);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-switch a {
  display: grid;
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a.is-active {
  color: #071006;
  background: var(--acid);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 15px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
}

.site-header.is-open .menu-toggle span {
  opacity: 0;
}

.site-header.is-open .menu-toggle::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-open .menu-toggle::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 32px 48px;
  overflow-y: auto;
  background: rgba(5, 7, 11, 0.97);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.mobile-nav a.is-active {
  color: var(--acid);
}

.mobile-nav__cta-wrap {
  margin-top: 26px;
}

.mobile-nav .mobile-nav__cta-wrap .btn {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: #071006;
}

.mobile-nav__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mobile-nav .mobile-nav__foot a {
  display: inline;
  padding: 0;
  border-bottom: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.mobile-nav__foot a:hover {
  color: var(--acid);
}

/* =========================================================
   Home hero
   ========================================================= */

.home-hero {
  position: relative;
  padding: clamp(142px, 17vh, 190px) 0 clamp(72px, 9vw, 112px);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(200, 255, 61, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(200, 255, 61, 0.018),
    0 0 0 160px rgba(200, 255, 61, 0.012);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(390px, 0.89fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
}

.hero-title .outline {
  color: rgba(242, 244, 238, 0.055);
  -webkit-text-stroke: 0.8px rgba(242, 244, 238, 0.58);
}

.hero-title .accent {
  text-shadow: 0 0 54px rgba(200, 255, 61, 0.18);
}

.hero-lede {
  max-width: 590px;
  margin-top: 34px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(44px, 6vw, 66px);
  border-top: 1px solid var(--line);
}

.hero-fact {
  position: relative;
  min-width: 0;
  padding: 18px 16px 0 0;
}

.hero-fact + .hero-fact {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-fact__key {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero-fact__value {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* Agent console */

.hero-console-wrap {
  position: relative;
  width: 100%;
  perspective: 1200px;
}

.agent-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(18, 26, 37, 0.95), rgba(7, 11, 17, 0.97)),
    var(--panel-solid);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.54),
    0 0 0 1px rgba(200, 255, 61, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(-2.5deg) rotateX(1.2deg);
  transform-origin: 50% 50%;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.hero-console-wrap:hover .agent-console {
  transform: rotateY(0) rotateX(0);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(200, 255, 61, 0.055);
}

.agent-console::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(200, 255, 61, 0.09), transparent);
  pointer-events: none;
}

.console-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.19);
}

.console-dots i:first-child {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.6);
}

.console-path {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.live-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 2s ease-in-out infinite;
}

.console-body {
  position: relative;
  padding: 22px 22px 18px;
}

.console-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(#000, transparent 80%);
  -webkit-mask-image: linear-gradient(#000, transparent 80%);
}

.prompt-block {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(200, 255, 61, 0.2);
  border-radius: 11px;
  background: rgba(200, 255, 61, 0.045);
}

.prompt-tag {
  display: block;
  margin-bottom: 7px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.prompt-block p {
  color: rgba(242, 244, 238, 0.9);
  font-size: 12.5px;
  line-height: 1.7;
}

.agent-trace {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 0 14px 4px;
}

.trace-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.trace-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(200, 255, 61, 0.3);
  border-radius: 50%;
  color: var(--acid);
  font-family: var(--font-body);
  font-size: 8px;
}

.trace-key {
  margin-left: auto;
  color: var(--muted-2);
  text-align: right;
}

.build-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 8, 13, 0.6);
}

.build-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.build-title {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.peer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(116, 231, 255, 0.23);
  border-radius: 999px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.peer-badge i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.build-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.build-col {
  min-width: 0;
}

.build-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.build-col-title b {
  color: var(--muted);
  font-weight: 400;
}

.task-chip {
  min-height: 31px;
  margin-bottom: 5px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: rgba(242, 244, 238, 0.74);
  background: rgba(255, 255, 255, 0.027);
  font-size: 8px;
  line-height: 1.35;
}

.task-chip.is-done {
  color: var(--muted-2);
  text-decoration: line-through;
}

.task-chip.is-hot {
  border-color: rgba(200, 255, 61, 0.21);
  background: rgba(200, 255, 61, 0.045);
}

.build-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.build-foot span:last-child {
  color: var(--acid);
}

.console-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.console-caption span:last-child {
  color: var(--muted);
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 12, 19, 0.86);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.float-chip b {
  color: var(--text);
  font-weight: 500;
}

.float-chip--top {
  top: -18px;
  right: -14px;
}

.float-chip--bottom {
  bottom: 38px;
  left: -28px;
  animation-delay: -2.4s;
}

.float-chip svg {
  width: 12px;
  height: 12px;
  color: var(--acid);
}

.float-chip--bottom svg {
  color: var(--cyan);
}

/* =========================================================
   Marquee
   ========================================================= */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ticker-item::after {
  content: "✦";
  color: var(--acid);
  font-size: 8px;
}

/* =========================================================
   Shift section
   ========================================================= */

.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.shift-card {
  position: relative;
  min-width: 0;
  padding: 28px clamp(18px, 2.3vw, 32px) 34px;
  border-bottom: 1px solid var(--line);
}

.shift-card + .shift-card {
  border-left: 1px solid var(--line);
}

.shift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(54px, 7vw, 92px);
}

.shift-index {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.shift-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.shift-icon svg {
  width: 15px;
  height: 15px;
}

.shift-card:hover .shift-icon {
  color: var(--acid);
  border-color: rgba(200, 255, 61, 0.35);
  background: var(--acid-soft);
}

.shift-title {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.shift-copy {
  max-width: 330px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.82;
}

.shift-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.shift-detail::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
   Stack
   ========================================================= */

.stack-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.stack-side {
  position: sticky;
  top: 126px;
}

.stack-side .label {
  margin-bottom: 24px;
}

.stack-side h2 {
  max-width: 430px;
  margin-bottom: 22px;
}

.stack-side p {
  max-width: 390px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.stack-side .text-link {
  margin-top: 28px;
}

.stack-list {
  border-top: 1px solid var(--line);
}

.stack-card {
  position: relative;
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 36px;
  gap: 20px;
  align-items: start;
  padding: clamp(26px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease), background-color 0.3s ease;
}

.stack-card::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--acid);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.stack-card:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.024), transparent 70%);
}

.stack-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.stack-num {
  padding-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.stack-content {
  min-width: 0;
}

.stack-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.stack-title {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.stack-desc {
  max-width: 540px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.stack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag--acid {
  color: var(--acid);
  border-color: rgba(200, 255, 61, 0.23);
  background: rgba(200, 255, 61, 0.055);
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(116, 231, 255, 0.23);
  background: rgba(116, 231, 255, 0.055);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(178, 156, 255, 0.23);
  background: rgba(178, 156, 255, 0.055);
}

.stack-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.4s var(--ease);
}

.stack-arrow svg {
  width: 13px;
  height: 13px;
}

.stack-card:hover .stack-arrow {
  color: #071006;
  border-color: var(--acid);
  background: var(--acid);
  transform: rotate(45deg);
}

/* =========================================================
   Demo / agent playground
   ========================================================= */

.demo-section {
  position: relative;
}

.demo-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(16, 24, 35, 0.78), rgba(6, 10, 16, 0.86)),
    var(--ink-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.demo-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.demo-toolbar-left .live-pill {
  margin-left: 0;
}

.demo-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.demo-toolbar-right span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.demo-body {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 520px;
}

.demo-panel {
  min-width: 0;
  padding: clamp(22px, 3.3vw, 38px);
}

.demo-panel--input {
  border-right: 1px solid var(--line);
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.demo-panel-head h3 {
  font-size: 18px;
  font-weight: 500;
}

.demo-panel-head span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.prompt-label em {
  font-style: normal;
  color: var(--muted-2);
}

.demo-textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: rgba(2, 5, 9, 0.48);
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-textarea::placeholder {
  color: var(--muted-2);
}

.demo-textarea:focus {
  border-color: rgba(200, 255, 61, 0.48);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.07);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 22px;
}

.chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.022);
  font-size: 10px;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.chip:hover,
.chip.is-active {
  color: var(--acid);
  border-color: rgba(200, 255, 61, 0.32);
  background: rgba(200, 255, 61, 0.055);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.demo-actions .btn {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 12px;
}

.demo-shortcut {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.demo-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.demo-status {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
}

.demo-status::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-shell.is-busy .demo-status::before {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.7);
  animation: blink 1.2s ease-in-out infinite;
}

.demo-shell.is-done .demo-status {
  color: var(--acid);
}

.demo-shell.is-done .demo-status::before {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.6);
}

.demo-output-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    radial-gradient(70% 60% at 50% 0%, rgba(200, 255, 61, 0.045), transparent 75%);
  background-size: 30px 30px, 30px 30px, auto;
}

.demo-output-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.demo-output-head span:nth-child(2) {
  color: var(--muted);
}

.demo-output-head .live-pill {
  margin-left: auto;
}

.demo-output {
  display: flex;
  flex: 1;
  min-height: 420px;
  padding: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.demo-placeholder {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  text-align: center;
}

.demo-placeholder__orb {
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(200, 255, 61, 0.16);
  border-radius: 50%;
}

.demo-placeholder__orb::before,
.demo-placeholder__orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(200, 255, 61, 0.1);
  border-radius: 50%;
}

.demo-placeholder__orb::before {
  inset: -14px;
}

.demo-placeholder__orb::after {
  inset: -30px;
  border-color: rgba(255, 255, 255, 0.055);
}

.demo-placeholder__orb span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 30px rgba(200, 255, 61, 0.85);
}

.demo-placeholder p {
  color: var(--muted);
  font-size: 12px;
}

.demo-placeholder small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.demo-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
}

.demo-progress__bar {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-progress__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  transition: width 0.5s var(--ease);
}

.demo-skeleton {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(3, 6, 10, 0.48);
}

.skeleton-line {
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}

.skeleton-line:nth-child(1) {
  width: 42%;
}

.skeleton-line:nth-child(2) {
  width: 70%;
}

.skeleton-line:nth-child(3) {
  width: 88%;
  height: 58px;
}

.skeleton-line:nth-child(4) {
  width: 55%;
}

/* generated app preview */

.app-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #080d14;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: preview-in 0.6s var(--ease) both;
}

.app-preview__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.app-preview__logo {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: #071006;
  background: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
}

.app-preview__title {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.app-preview__badge {
  margin-left: auto;
}

.app-preview__body {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.app-preview__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.app-preview__foot span:last-child {
  color: var(--cyan);
}

.mini-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  height: 100%;
}

.mini-col {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.mini-col h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.mini-col h4 span {
  color: var(--muted-2);
}

.mini-task {
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.033);
}

.mini-task b {
  display: block;
  margin-bottom: 5px;
  color: rgba(242, 244, 238, 0.8);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
}

.mini-task span {
  display: inline-block;
  width: 72%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-task.is-accent {
  border-color: rgba(200, 255, 61, 0.17);
  background: rgba(200, 255, 61, 0.035);
}

.mini-task.is-accent span {
  background: rgba(200, 255, 61, 0.24);
}

.mini-avatars {
  display: flex;
  margin-top: 9px;
}

.mini-avatars i {
  display: grid;
  width: 17px;
  height: 17px;
  margin-left: -4px;
  place-items: center;
  border: 1px solid #080d14;
  border-radius: 50%;
  color: rgba(7, 16, 6, 0.8);
  background: var(--acid);
  font-family: var(--font-mono);
  font-size: 6px;
  font-style: normal;
}

.mini-avatars i:nth-child(2) {
  background: var(--cyan);
}

.mini-avatars i:nth-child(3) {
  color: var(--text);
  background: #2c3948;
}

.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
}

.chat-line {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.chat-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #071006;
  background: var(--cyan);
  font-family: var(--font-mono);
  font-size: 7px;
}

.chat-bubble {
  max-width: 84%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 2px 8px 8px 8px;
  color: rgba(242, 244, 238, 0.8);
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  line-height: 1.5;
}

.chat-line.is-mine {
  flex-direction: row-reverse;
}

.chat-line.is-mine .chat-bubble {
  border-color: rgba(200, 255, 61, 0.16);
  border-radius: 8px 2px 8px 8px;
  color: #071006;
  background: var(--acid);
}

.chat-line.is-mine .chat-avatar {
  background: #38465a;
  color: var(--text);
}

.chat-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted-2);
  font-size: 8px;
}

.chat-input span:last-child {
  margin-left: auto;
  color: var(--acid);
}

.mini-library {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  height: 100%;
}

.library-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 255, 61, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(80% 80% at 20% 10%, rgba(200, 255, 61, 0.15), transparent 65%),
    rgba(255, 255, 255, 0.025);
}

.library-cover::before {
  content: "SYNCHRATEX / LIBRARY";
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.library-cover b {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.library-cover span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.library-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
}

.library-item i {
  width: 5px;
  height: 26px;
  border-radius: 2px;
  background: var(--acid);
  opacity: 0.65;
}

.library-item:nth-child(2) i {
  background: var(--cyan);
}

.library-item:nth-child(3) i {
  background: var(--violet);
}

.library-item b {
  display: block;
  color: rgba(242, 244, 238, 0.82);
  font-size: 8px;
  font-weight: 500;
}

.library-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
}

.mini-generic {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  justify-content: center;
}

.mini-generic__hero {
  padding: 14px;
  border: 1px solid rgba(200, 255, 61, 0.18);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(200, 255, 61, 0.08), rgba(116, 231, 255, 0.035));
}

.mini-generic__hero b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.mini-generic__hero span {
  color: var(--muted);
  font-size: 8px;
}

.mini-generic__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mini-generic__cell {
  min-height: 48px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
}

.mini-generic__cell b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
}

/* =========================================================
   Architecture panel
   ========================================================= */

.arch-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4.4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 70% at 72% 20%, rgba(116, 231, 255, 0.05), transparent 70%),
    linear-gradient(145deg, rgba(15, 22, 32, 0.8), rgba(6, 10, 16, 0.9));
}

.arch-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 85%);
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
}

.arch-panel-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(48px, 7vw, 86px);
}

.arch-panel-head h2 {
  max-width: 620px;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
}

.arch-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 30px minmax(130px, 0.8fr) 30px minmax(220px, 1.25fr) 30px minmax(140px, 0.9fr);
  align-items: center;
  gap: 0;
}

.arch-node {
  position: relative;
  z-index: 1;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 16, 0.72);
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}

.arch-node:hover {
  border-color: rgba(200, 255, 61, 0.26);
  background: rgba(12, 18, 26, 0.9);
  transform: translateY(-4px);
}

.arch-node__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.arch-node__top svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.arch-node h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.arch-node p {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
}

.arch-node--accent {
  border-color: rgba(200, 255, 61, 0.26);
  background:
    linear-gradient(145deg, rgba(200, 255, 61, 0.08), rgba(6, 10, 16, 0.8));
  box-shadow: 0 0 36px rgba(200, 255, 61, 0.045);
}

.arch-node--accent .arch-node__top svg {
  color: var(--acid);
}

.arch-node__modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 14px;
}

.arch-node__modules span {
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.arch-connector {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(200, 255, 61, 0.25), rgba(255, 255, 255, 0.08));
}

.arch-connector::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -1px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--acid);
  border-right: 1px solid var(--acid);
  transform: rotate(45deg);
  opacity: 0.8;
}

.arch-peers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.peer-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 10, 16, 0.7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.peer-node i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(116, 231, 255, 0.7);
}

.peer-node:nth-child(2) i {
  background: var(--acid);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.7);
}

.peer-node span {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 7px;
}

.arch-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(36px, 5vw, 62px);
  border-top: 1px solid var(--line);
}

.arch-metric {
  padding: 20px 18px 0 0;
}

.arch-metric + .arch-metric {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.arch-metric b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.arch-metric span {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

/* =========================================================
   Vision teaser
   ========================================================= */

.vision-teaser {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(44% 90% at 85% 50%, rgba(200, 255, 61, 0.045), transparent 70%),
    rgba(255, 255, 255, 0.014);
}

.vision-teaser__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding: clamp(76px, 10vw, 132px) 0;
}

.vision-copy .label {
  margin-bottom: 26px;
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.vision-quote .accent {
  position: relative;
}

.vision-copy > p {
  max-width: 520px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.vision-copy .text-link {
  margin-top: 30px;
}

.network-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 7, 11, 0.55);
}

.compare-card--active {
  border-color: rgba(200, 255, 61, 0.2);
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(200, 255, 61, 0.06), transparent 75%),
    rgba(6, 10, 16, 0.6);
}

.compare-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.compare-card--active .compare-card__head {
  color: var(--acid);
}

.compare-card__head span:last-child {
  opacity: 0.55;
}

.network-svg {
  width: 100%;
  height: auto;
}

.network-svg line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 0.7;
}

.network-svg circle {
  fill: #182330;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 0.7;
}

.network-svg .is-core {
  fill: var(--muted);
  stroke: none;
}

.compare-card--active .network-svg line {
  stroke: rgba(200, 255, 61, 0.28);
}

.compare-card--active .network-svg circle {
  fill: rgba(200, 255, 61, 0.16);
  stroke: rgba(200, 255, 61, 0.65);
}

.compare-card--active .network-svg .is-core {
  fill: var(--acid);
  stroke: none;
}

.compare-caption {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.compare-card--active .compare-caption {
  color: var(--muted);
}

/* =========================================================
   Roadmap preview
   ========================================================= */

.roadmap-teaser {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.roadmap-intro .label {
  margin-bottom: 22px;
}

.roadmap-intro h2 {
  max-width: 440px;
  margin-bottom: 22px;
}

.roadmap-intro p {
  max-width: 390px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.roadmap-intro .text-link {
  margin-top: 28px;
}

.phase-list {
  position: relative;
  border-top: 1px solid var(--line);
}

.phase-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.phase-marker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.phase-marker i {
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.phase-item:first-child .phase-marker {
  color: var(--acid);
}

.phase-item:first-child .phase-marker i {
  background: var(--acid);
  box-shadow: 0 0 10px rgba(200, 255, 61, 0.7);
}

.phase-content h3 {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 500;
}

.phase-content p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.phase-tag {
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 130px);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 105px) clamp(26px, 6vw, 86px);
  border: 1px solid rgba(200, 255, 61, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(65% 95% at 80% 50%, rgba(200, 255, 61, 0.1), transparent 65%),
    linear-gradient(135deg, rgba(18, 26, 35, 0.9), rgba(5, 8, 13, 0.95));
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -160px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(200, 255, 61, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 60px rgba(200, 255, 61, 0.022),
    0 0 0 120px rgba(200, 255, 61, 0.014);
  pointer-events: none;
}

.cta-panel::after {
  content: "S";
  position: absolute;
  right: 8%;
  bottom: -20%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(220px, 30vw, 480px);
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.cta-panel .label {
  margin-bottom: 22px;
  color: var(--acid);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.cta-copy {
  max-width: 500px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 8, 0.6);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 1.8fr);
  gap: clamp(46px, 8vw, 120px);
  padding-bottom: 62px;
}

.footer-brand .brand {
  margin-bottom: 24px;
}

.footer-tagline {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.footer-tagline strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.6);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  margin-bottom: 17px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: var(--acid);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-bottom span:nth-child(2) {
  color: var(--muted-2);
}

/* =========================================================
   Generic subpage hero
   ========================================================= */

.page-hero {
  position: relative;
  padding: clamp(138px, 16vh, 180px) 0 clamp(64px, 8vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 4%;
  width: min(680px, 60vw);
  height: min(680px, 60vw);
  border: 1px solid rgba(200, 255, 61, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(200, 255, 61, 0.02), 0 0 0 160px rgba(200, 255, 61, 0.012);
  pointer-events: none;
}

.page-noneos .page-hero::before {
  border-color: rgba(116, 231, 255, 0.12);
  box-shadow: 0 0 0 80px rgba(116, 231, 255, 0.02), 0 0 0 160px rgba(116, 231, 255, 0.012);
}

.page-mazmot .page-hero::before {
  border-color: rgba(178, 156, 255, 0.12);
  box-shadow: 0 0 0 80px rgba(178, 156, 255, 0.02), 0 0 0 160px rgba(178, 156, 255, 0.012);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.breadcrumbs a {
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--acid);
}

.breadcrumbs span {
  opacity: 0.55;
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8.3rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.07em;
}

.page-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(242, 244, 238, 0.7);
}

.page-title .accent {
  text-shadow: 0 0 50px rgba(200, 255, 61, 0.14);
}

.page-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 8px;
}

.page-lede {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--acid);
}

/* spec panel used in page hero aside */

.spec-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(6, 10, 16, 0.58);
  backdrop-filter: blur(8px);
}

.spec-panel::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(200, 255, 61, 0.13);
  border-radius: 50%;
}

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
}

.spec-row span {
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.spec-row b {
  color: var(--muted);
  font-weight: 400;
  text-align: right;
}

.spec-row b.is-accent {
  color: var(--acid);
}

.spec-row b.is-cyan {
  color: var(--cyan);
}

/* =========================================================
   Agent page
   ========================================================= */

.page-agent .page-hero::before {
  border-color: rgba(200, 255, 61, 0.12);
}

.agent-thesis {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.agent-thesis h2 {
  max-width: 580px;
}

.thesis-copy {
  padding-top: 9px;
}

.thesis-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.thesis-copy p + p {
  margin-top: 18px;
}

.thesis-compare {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.thesis-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.thesis-row .is-old {
  color: var(--muted-2);
}

.thesis-row .is-new {
  color: var(--text);
}

.thesis-row .arrow {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
}

.thesis-row span:first-child {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bento-card {
  position: relative;
  min-height: 220px;
  padding: clamp(20px, 2.6vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(14, 21, 30, 0.72), rgba(5, 8, 13, 0.6));
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(200, 255, 61, 0.24);
  transform: translateY(-4px);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--accent {
  border-color: rgba(200, 255, 61, 0.16);
  background:
    radial-gradient(100% 110% at 100% 0%, rgba(200, 255, 61, 0.08), transparent 60%),
    linear-gradient(145deg, rgba(14, 21, 30, 0.72), rgba(5, 8, 13, 0.6));
}

.bento-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.bento-card__icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--acid);
  background: rgba(255, 255, 255, 0.02);
}

.bento-card__icon svg {
  width: 14px;
  height: 14px;
}

.bento-card h3 {
  margin-bottom: 9px;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem);
  font-weight: 500;
}

.bento-card p {
  max-width: 440px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.bento-card__bottom {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.bento-card--accent .bento-card__bottom {
  color: var(--acid);
}

.anatomy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: center;
}

.anatomy-copy h2 {
  max-width: 480px;
  margin-bottom: 22px;
}

.anatomy-copy > p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.anatomy-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.anatomy-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}

.anatomy-list li span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.anatomy-list li b {
  color: var(--muted);
  font-weight: 400;
}

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060a10;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.code-dots {
  display: flex;
  gap: 4px;
}

.code-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.code-title {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.copy-btn {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted-2);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.07em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  color: var(--acid);
  border-color: rgba(200, 255, 61, 0.3);
}

.code-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #c8d3df;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.9;
  tab-size: 2;
}

.code-body code {
  font-family: inherit;
}

.token-comment {
  color: #526170;
}

.token-keyword {
  color: var(--violet);
}

.token-string {
  color: var(--acid);
}

.token-fn {
  color: var(--cyan);
}

.token-num {
  color: var(--orange);
}

.token-prop {
  color: #d9e7b8;
}

.file-tree {
  margin-top: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(6, 10, 16, 0.72);
  background-size: 24px 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 2.15;
  white-space: pre;
  overflow-x: auto;
}

.file-tree .tree-root {
  color: var(--text);
}

.file-tree .tree-dir {
  color: var(--cyan);
}

.file-tree .tree-comment {
  color: var(--muted-2);
}

.file-tree .tree-file {
  color: var(--muted);
}

.file-tree .tree-accent {
  color: var(--acid);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.security-card {
  padding: 24px;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}

.security-card__index {
  display: block;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.security-card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 500;
}

.security-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 21px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 18px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
}

.faq-item summary span {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.faq-answer {
  max-width: 760px;
  padding: 0 0 24px 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* =========================================================
   NoneOS page
   ========================================================= */

.noneos-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: start;
}

.noneos-intro h2 {
  max-width: 480px;
}

.noneos-intro .lead {
  max-width: 580px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}

.principle {
  min-width: 0;
  padding: 22px;
  background: var(--ink);
}

.principle b {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.principle span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.module-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.module-card:hover {
  border-color: rgba(116, 231, 255, 0.25);
  background: rgba(116, 231, 255, 0.03);
}

.module-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.module-card__top svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.module-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 500;
}

.module-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.module-card code {
  display: inline-block;
  margin-top: 13px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.arch-diagram {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(50% 60% at 70% 20%, rgba(116, 231, 255, 0.05), transparent 70%),
    rgba(5, 9, 14, 0.7);
}

.arch-diagram__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 30px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.arch-layer {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.arch-layer:last-child {
  border-bottom: 0;
}

.arch-layer__label {
  padding-top: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.arch-layer__content {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.arch-chip {
  flex: 1 1 130px;
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.022);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.35;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.arch-chip:hover {
  color: var(--cyan);
  border-color: rgba(116, 231, 255, 0.3);
}

.arch-chip--accent {
  border-color: rgba(116, 231, 255, 0.22);
  color: var(--cyan);
  background: rgba(116, 231, 255, 0.04);
}

.arch-chip b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.65;
  vertical-align: top;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.025);
}

.compare-table th.is-highlight {
  color: var(--cyan);
  background: rgba(116, 231, 255, 0.04);
}

.compare-table td:first-child {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.compare-table td.is-highlight {
  color: var(--text);
  background: rgba(116, 231, 255, 0.025);
}

.compare-table td.is-highlight strong {
  color: var(--cyan);
  font-weight: 500;
}

.compare-table .is-muted {
  color: var(--muted-2);
}

/* =========================================================
   Mazmot page
   ========================================================= */

.share-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  align-items: center;
  gap: 0;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(178, 156, 255, 0.06), transparent 70%),
    rgba(6, 10, 16, 0.7);
}

.share-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 13, 20, 0.85);
  text-align: center;
}

.share-node__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--violet);
  background: rgba(178, 156, 255, 0.055);
}

.share-node__icon svg {
  width: 17px;
  height: 17px;
}

.share-node h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
}

.share-node p {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.share-link {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(178, 156, 255, 0.1), rgba(178, 156, 255, 0.4), rgba(178, 156, 255, 0.1));
}

.share-link::after {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--violet);
  border-right: 1px solid var(--violet);
  transform: rotate(45deg);
}

.share-link span {
  position: absolute;
  top: -17px;
  left: 50%;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.share-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.7;
}

.share-note i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--violet);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.feature-card__top svg {
  width: 15px;
  height: 15px;
  color: var(--violet);
}

.feature-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 500;
}

.feature-card p {
  max-width: 430px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.security-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.anchor {
  padding: clamp(20px, 2.7vw, 30px);
  background: var(--ink);
}

.anchor__num {
  display: block;
  margin-bottom: 32px;
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.anchor h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 500;
}

.anchor p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

/* =========================================================
   Ecosystem page
   ========================================================= */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-height: 320px;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(15, 22, 32, 0.72), rgba(5, 8, 13, 0.68));
  transition: border-color 0.3s ease, transform 0.45s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 255, 61, 0.26);
}

.product-card--large {
  grid-column: span 6;
  min-height: 360px;
}

.product-card--wide {
  grid-column: span 8;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.product-card__top svg {
  width: 20px;
  height: 20px;
  color: var(--acid);
}

.product-card:nth-child(2) .product-card__top svg {
  color: var(--cyan);
}

.product-card:nth-child(3) .product-card__top svg {
  color: var(--violet);
}

.product-card:nth-child(4) .product-card__top svg {
  color: var(--orange);
}

.product-card__body {
  margin-top: 64px;
}

.product-card h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.product-card__role {
  margin-bottom: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.product-card p {
  max-width: 450px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle-card {
  padding: 26px 22px 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle-card + .principle-card {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.principle-card span {
  display: block;
  margin-bottom: 42px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.principle-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 500;
}

.principle-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
}

.app-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.app-tile {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.app-tile:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.app-tile__glyph {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
}

.app-tile:nth-child(2) .app-tile__glyph {
  color: var(--cyan);
}

.app-tile:nth-child(3) .app-tile__glyph {
  color: var(--violet);
}

.app-tile:nth-child(4) .app-tile__glyph {
  color: var(--orange);
}

.app-tile h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.app-tile p {
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.65;
}

/* =========================================================
   Vision page
   ========================================================= */

.page-vision .page-hero {
  padding-bottom: clamp(80px, 11vw, 130px);
}

.vision-title {
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 9.4vw, 9.8rem);
  font-weight: 500;
  line-height: 0.89;
  letter-spacing: -0.075em;
}

.vision-title .serif {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.06em;
}

.vision-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(42px, 6vw, 70px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.vision-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: start;
}

.chapter-nav {
  position: sticky;
  top: 126px;
  border-left: 1px solid var(--line);
}

.chapter-nav__title {
  padding: 0 0 15px 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.chapter-link {
  display: flex;
  gap: 11px;
  padding: 8px 0 8px 18px;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.6;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-left: 1px solid transparent;
  margin-left: -1px;
}

.chapter-link span {
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.chapter-link:hover,
.chapter-link.is-active {
  color: var(--text);
  border-left-color: var(--acid);
}

.vision-article {
  min-width: 0;
  max-width: 760px;
}

.vision-section {
  padding: 0 0 clamp(66px, 8vw, 100px);
  scroll-margin-top: 110px;
}

.vision-section + .vision-section {
  padding-top: 8px;
}

.vision-section__num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.vision-section__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.vision-section h2 {
  max-width: 650px;
  margin-bottom: 25px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 500;
}

.vision-section h3 {
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.vision-section p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.vision-section p strong {
  color: var(--text);
  font-weight: 500;
}

.vision-section p em {
  color: var(--acid);
  font-style: normal;
}

.pullquote {
  position: relative;
  margin: 34px 0;
  padding: 24px 0 24px 28px;
  border-left: 1px solid var(--acid);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.vision-section ul {
  margin: 20px 0 24px;
}

.vision-section ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.vision-section ul li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 5px;
  height: 5px;
  border: 1px solid var(--acid);
  transform: rotate(45deg);
}

.vision-section ul li strong {
  color: var(--text);
  font-weight: 500;
}

.era-list {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.era {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.era__year {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.era h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 500;
}

.era p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

.era--now {
  background: linear-gradient(90deg, rgba(200, 255, 61, 0.035), transparent);
}

.era--now .era__year {
  color: var(--acid);
}

.vision-section__diagram {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(6, 10, 16, 0.6);
  background-size: 32px 32px;
}

.diagram-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.diagram-label span:last-child {
  color: var(--acid);
}

.diagram-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.diagram-cell {
  min-width: 0;
}

.diagram-cell__caption {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.7;
}

.diagram-cell__caption b {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.manifesto {
  margin: clamp(30px, 5vw, 56px) 0;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(200, 255, 61, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(200, 255, 61, 0.08), transparent 65%),
    rgba(8, 13, 20, 0.65);
}

.manifesto p {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.manifesto p + p {
  margin-top: 18px;
}

.manifesto .accent {
  color: var(--acid);
}

.vision-stack {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}

.vision-layer {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.vision-layer__index {
  padding-top: 3px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.vision-layer__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 7px;
}

.vision-layer__name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vision-layer__tag {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.vision-layer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}


/* =========================================================
   Roadmap page
   ========================================================= */

.roadmap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap-stat {
  padding: 20px 20px 20px 0;
}

.roadmap-stat + .roadmap-stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.roadmap-stat strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.roadmap-stat span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.roadmap-stat--done strong {
  color: var(--acid);
}

.roadmap-stat--active strong {
  color: var(--cyan);
}

.roadmap-stat--planned strong {
  color: var(--muted);
}

.roadmap-stat--considering strong {
  color: var(--violet);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 32px 0 28px;
}

.filter-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-btn.is-active {
  color: #071006;
  border-color: var(--acid);
  background: var(--acid);
}

.filter-note {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.roadmap-card {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.017);
  transition: border-color 0.25s ease, background-color 0.25s ease, opacity 0.3s ease, transform 0.3s ease;
}

.roadmap-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.032);
}

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

.roadmap-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.3;
  letter-spacing: 0.06em;
}

.roadmap-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.roadmap-status--done {
  color: var(--acid);
}

.roadmap-status--active {
  color: var(--cyan);
}

.roadmap-status--planned {
  color: var(--muted);
}

.roadmap-status--considering {
  color: var(--violet);
}

.roadmap-card__id {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.roadmap-card h3 {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 500;
}

.roadmap-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.roadmap-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
}

.roadmap-card__foot span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
}

.status-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.status-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.status-note .done {
  background: var(--acid);
}

.status-note .active {
  background: var(--cyan);
}

.status-note .planned {
  background: var(--muted);
}

.status-note .considering {
  background: var(--violet);
}

/* =========================================================
   404
   ========================================================= */

.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 120px 0 80px;
}

.error-code {
  margin-bottom: 22px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.error-title {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.error-copy {
  max-width: 420px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-26px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

/* =========================================================
   Keyframes
   ========================================================= */

@keyframes pulse-ring {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70% {
    opacity: 0;
    transform: scale(1.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes preview-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1160px) {
  .desktop-nav {
    gap: 17px;
    margin-right: 20px;
  }

  .nav-link {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(3.35rem, 6.5vw, 5.8rem);
  }

  .arch-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .arch-connector {
    display: none;
  }

  .arch-node,
  .arch-peers {
    min-height: 0;
  }

  .arch-node {
    height: 100%;
  }

  .arch-peers {
    justify-content: center;
  }

  .float-chip--bottom {
    left: -12px;
  }
}

@media (max-width: 980px) {
  .container,
  .container--wide,
  .header-inner {
    width: calc(100% - 48px);
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(3.5rem, 9.2vw, 6.7rem);
  }

  .hero-console-wrap {
    max-width: 620px;
    margin-inline: auto;
  }

  .float-chip--top {
    right: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head .label {
    padding-top: 0;
  }

  .section-head__body {
    max-width: 680px;
  }

  .shift-grid {
    grid-template-columns: 1fr;
  }

  .shift-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    padding: 24px 0;
  }

  .shift-card + .shift-card {
    border-left: 0;
  }

  .shift-top {
    display: contents;
  }

  .shift-index {
    grid-row: span 3;
    padding-top: 5px;
  }

  .shift-icon {
    display: none;
  }

  .shift-title {
    margin-bottom: 7px;
  }

  .shift-copy {
    max-width: 620px;
  }

  .shift-detail {
    margin-top: 12px;
  }

  .stack-layout,
  .vision-teaser__inner,
  .roadmap-teaser,
  .agent-thesis,
  .noneos-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .stack-side {
    position: static;
  }

  .stack-side h2 {
    max-width: 680px;
  }

  .stack-side p {
    max-width: 620px;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-panel--input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .demo-output-wrap {
    min-height: 470px;
  }

  .vision-teaser__inner {
    gap: 48px;
  }

  .network-compare {
    max-width: 480px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-cols {
    max-width: 620px;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .page-hero-aside {
    max-width: 620px;
  }

  .page-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
  }

  .anatomy {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--wide {
    grid-column: span 2;
  }

  .product-card {
    grid-column: span 6;
  }

  .product-card--wide {
    grid-column: span 12;
  }

  .product-card--large {
    grid-column: span 6;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-card:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .app-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .chapter-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 18px;
    padding-bottom: 12px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .chapter-nav__title {
    display: none;
  }

  .chapter-link {
    padding: 4px 0;
    border-left: 0;
    margin-left: 0;
  }

  .chapter-link.is-active {
    color: var(--acid);
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .share-flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .share-link {
    width: 1px;
    height: 30px;
    margin-inline: auto;
    background: linear-gradient(180deg, rgba(178, 156, 255, 0.1), rgba(178, 156, 255, 0.4), rgba(178, 156, 255, 0.1));
  }

  .share-link::after {
    top: auto;
    right: -2px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .share-link span {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
  }

  .share-node {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 15px;
    align-items: center;
    text-align: left;
  }

  .share-node__icon {
    grid-row: span 2;
    margin: 0;
  }

  .share-node p {
    grid-column: 2;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .security-anchors {
    grid-template-columns: 1fr;
  }

  .anchor {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 14px;
  }

  .anchor__num {
    grid-row: span 2;
    margin-bottom: 0;
    padding-top: 3px;
  }

  .anchor p {
    grid-column: 2;
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .security-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px 14px;
  }

  .security-card__index {
    grid-row: span 2;
    margin-bottom: 0;
    padding-top: 3px;
  }

  .security-card p {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .container,
  .container--wide,
  .header-inner {
    width: calc(100% - 36px);
  }

  .site-header .header-inner {
    height: 66px;
  }

  .brand-word {
    font-size: 12px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .home-hero {
    padding-top: 118px;
    padding-bottom: 70px;
  }

  .home-hero::before {
    right: -220px;
    width: 470px;
    height: 470px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 14.2vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.065em;
  }

  .hero-title .outline {
    -webkit-text-stroke-width: 0.7px;
  }

  .hero-lede {
    margin-top: 26px;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .hero-facts {
    margin-top: 36px;
  }

  .hero-fact {
    padding-right: 9px;
  }

  .hero-fact + .hero-fact {
    padding-left: 10px;
  }

  .hero-fact__key {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .hero-fact__value {
    font-size: 10px;
  }

  .console-body {
    padding: 16px 14px 14px;
  }

  .console-bar {
    height: 42px;
    padding: 0 12px;
  }

  .prompt-block p {
    font-size: 11px;
  }

  .trace-line {
    font-size: 8px;
  }

  .trace-key {
    display: none;
  }

  .build-columns {
    gap: 5px;
    padding: 9px;
  }

  .task-chip {
    font-size: 7px;
    padding: 5px;
  }

  .float-chip {
    font-size: 7px;
    padding: 7px 9px;
  }

  .float-chip--top {
    top: -14px;
    right: 0;
  }

  .float-chip--bottom {
    bottom: 24px;
    left: -6px;
  }

  .ticker {
    padding: 12px 0;
  }

  .section {
    padding: 72px 0;
  }

  .section--tight {
    padding: 56px 0;
  }

  .display {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  h2,
  .h2 {
    font-size: clamp(2rem, 9.5vw, 3.2rem);
  }

  .section-head {
    margin-bottom: 34px;
  }

  .shift-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .shift-copy {
    font-size: 12px;
  }

  .stack-card {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 26px 0;
  }

  .stack-card:hover {
    padding-left: 4px;
  }

  .stack-desc {
    font-size: 12px;
  }

  .stack-arrow {
    width: 28px;
    height: 28px;
  }

  .demo-toolbar {
    padding: 9px 12px;
  }

  .demo-toolbar-left {
    gap: 8px;
    font-size: 7.5px;
  }

  .demo-toolbar-right span {
    display: none;
  }

  .demo-panel {
    padding: 20px 14px;
  }

  .demo-panel-head h3 {
    font-size: 16px;
  }

  .demo-textarea {
    min-height: 100px;
    font-size: 12px;
  }

  .demo-output {
    padding: 16px 12px;
  }

  .demo-output-head {
    padding: 12px 14px;
  }

  .demo-output-wrap {
    min-height: 400px;
  }

  .demo-placeholder__orb {
    width: 68px;
    height: 68px;
  }

  .mini-kanban {
    gap: 4px;
  }

  .mini-col {
    padding: 6px;
  }

  .mini-task {
    padding: 5px;
  }

  .mini-task b {
    font-size: 7px;
  }

  .build-title {
    font-size: 8px;
  }

  .arch-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .arch-node {
    min-height: 0;
    padding: 16px;
  }

  .arch-node__top {
    margin-bottom: 18px;
  }

  .arch-peers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .peer-node {
    padding: 9px;
  }

  .arch-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .arch-metric {
    padding: 15px 12px 0 0;
  }

  .arch-metric + .arch-metric {
    padding-left: 12px;
  }

  .arch-metric:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    margin-top: 15px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
  }

  .arch-metric:nth-child(4) {
    margin-top: 15px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
  }

  .vision-teaser__inner {
    padding: 68px 0;
  }

  .vision-quote {
    font-size: clamp(2.1rem, 10.5vw, 3.4rem);
  }

  .vision-copy > p {
    font-size: 13px;
  }

  .network-compare {
    gap: 8px;
  }

  .compare-card {
    padding: 12px;
  }

  .compare-caption {
    font-size: 9px;
  }

  .phase-item {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  .phase-tag {
    display: none;
  }

  .cta-section {
    padding-top: 30px;
  }

  .cta-panel {
    padding: 46px 22px;
    border-radius: 18px;
  }

  .cta-title {
    font-size: clamp(2.35rem, 11.5vw, 3.8rem);
  }

  .cta-copy {
    font-size: 13px;
  }

  .footer-top {
    padding-bottom: 44px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    font-size: 7px;
  }

  .footer-bottom span:nth-child(2) {
    display: none;
  }

  .page-hero {
    padding-top: 108px;
    padding-bottom: 56px;
  }

  .page-hero::before {
    width: 430px;
    height: 430px;
    right: -190px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
  }

  .page-title {
    font-size: clamp(3rem, 14vw, 5.4rem);
    line-height: 0.96;
  }

  .page-lede {
    font-size: 13.5px;
  }

  .page-actions .btn {
    min-height: 46px;
    padding-inline: 16px;
    font-size: 11px;
  }

  .page-meta {
    gap: 7px 14px;
    font-size: 7px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--wide {
    grid-column: span 1;
    min-height: 200px;
  }

  .bento-card__top {
    margin-bottom: 32px;
  }

  .anatomy-list li {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .code-body {
    padding: 16px;
    font-size: 9px;
  }

  .security-card {
    padding: 18px;
  }

  .faq-item summary {
    gap: 12px;
    font-size: 13px;
  }

  .faq-answer {
    padding-left: 30px;
    font-size: 12px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 175px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .arch-layer {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .arch-layer__label {
    padding-top: 0;
  }

  .arch-chip {
    flex-basis: 120px;
  }

  .share-flow {
    padding: 18px;
  }

  .feature-card {
    padding: 20px;
  }

  .product-card,
  .product-card--large,
  .product-card--wide {
    grid-column: span 12;
    min-height: 280px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle-card,
  .principle-card + .principle-card {
    padding: 22px 0;
    border-left: 0;
  }

  .principle-card span {
    margin-bottom: 22px;
  }

  .app-strip {
    grid-template-columns: 1fr;
  }

  .app-tile {
    min-height: 160px;
  }

  .vision-title {
    font-size: clamp(3.2rem, 15.5vw, 5.7rem);
    line-height: 0.96;
  }

  .vision-hero-foot {
    font-size: 7px;
  }

  .vision-section {
    padding-bottom: 56px;
  }

  .vision-section p {
    font-size: 13px;
    line-height: 1.9;
  }

  .pullquote {
    padding-left: 18px;
  }

  .era {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .vision-layer {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .vision-layer__name {
    font-size: 17px;
  }

  .diagram-split {
    grid-template-columns: 1fr;
  }

  .manifesto {
    padding: 24px;
  }

  .roadmap-stats {
    grid-template-columns: 1fr 1fr;
  }

  .roadmap-stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .roadmap-stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .filter-note {
    width: 100%;
    margin-left: 0;
  }

  .roadmap-card {
    padding: 18px;
  }

  .error-page {
    min-height: 88vh;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(2.65rem, 13.5vw, 3.5rem);
  }

  .lang-switch {
    gap: 0;
    padding: 2px;
  }

  .lang-switch a {
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    font-size: 9px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .hero-fact + .hero-fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-fact__key {
    margin: 0;
  }

  .hero-fact__value {
    text-align: right;
  }

  .float-chip--bottom {
    display: none;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-col:last-child {
    grid-column: span 1;
  }

  .page-meta span:nth-child(3) {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }
}

/* Small refinements */
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
}

.status-dot.done {
  background: var(--acid);
  box-shadow: 0 0 7px rgba(200, 255, 61, 0.5);
}

.status-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(116, 231, 255, 0.5);
}

.status-dot.planned {
  background: var(--muted);
}

.status-dot.considering {
  background: var(--violet);
}

.spec-row b.is-violet {
  color: var(--violet);
}

[data-spotlight] {
  position: relative;
}

[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 61, 0.065), transparent 65%);
  transition: opacity 0.3s ease;
}

[data-spotlight]:hover::after {
  opacity: 1;
}

[data-spotlight] > * {
  position: relative;
  z-index: 1;
}


section[id],
[id="builder"],
[id="playground"] {
  scroll-margin-top: 92px;
}


@media (max-width: 420px) {
  .cta-title {
    font-size: clamp(2.15rem, 10.8vw, 3.2rem);
  }

  .menu-toggle span,
  .menu-toggle::before,
  .menu-toggle::after {
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
  }
}


@media (max-height: 780px) {
  .mobile-nav {
    justify-content: flex-start;
  }
}

.mobile-nav .mobile-nav__cta-wrap .btn {
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}


/* Roadmap inline resource links */
.roadmap-card p a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 255, 61, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.roadmap-card p a:hover {
  color: var(--acid-bright);
  text-decoration-color: var(--acid);
}


/* Ecosystem app strip with the current official apps */
.app-strip--six {
  grid-template-columns: repeat(3, 1fr);
}

.app-tile:nth-child(5) .app-tile__glyph {
  color: var(--acid-bright);
}

.app-tile:nth-child(6) .app-tile__glyph {
  color: var(--cyan);
}


@media (max-width: 1160px) {
  .app-strip.app-strip--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .app-strip.app-strip--six {
    grid-template-columns: 1fr;
  }
}


/* Roadmap readability: larger copy and meta below the hero */
.roadmap-stat strong {
  font-size: 38px;
}

.roadmap-stat span {
  font-size: 10px;
  letter-spacing: 0.07em;
}

.filter-btn {
  padding: 10px 15px;
  font-size: 11px;
}

.filter-note {
  font-size: 10px;
}

.roadmap-card {
  min-height: 190px;
  padding: 24px;
}

.roadmap-card__head {
  margin-bottom: 32px;
}

.roadmap-status {
  font-size: 10px;
  letter-spacing: 0.07em;
}

.roadmap-card__id {
  font-size: 9px;
}

.roadmap-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.roadmap-card p {
  font-size: 13px;
  line-height: 1.8;
}

.roadmap-card__foot {
  padding-top: 18px;
  gap: 8px;
}

.roadmap-card__foot span {
  padding: 4px 8px;
  font-size: 9px;
}

.status-note {
  font-size: 10px;
}

@media (max-width: 680px) {
  .roadmap-card {
    padding: 22px;
  }

  .roadmap-card h3 {
    font-size: 20px;
  }

  .roadmap-card p {
    font-size: 13px;
    line-height: 1.8;
  }

  .filter-btn {
    font-size: 10px;
  }

  .roadmap-stat span {
    font-size: 9.5px;
  }

  .status-note {
    font-size: 9.5px;
  }
}

/* =========================================================
   Root language gateway
   ========================================================= */

.gateway-body {
  display: flex;
  min-height: 100dvh;
  align-items: center;
  background:
    radial-gradient(80% 55% at 78% -5%, rgba(200, 255, 61, 0.1), transparent 62%),
    radial-gradient(55% 42% at 8% 100%, rgba(116, 231, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #05070b, #060910 55%, #05070b);
  overflow-x: hidden;
}

.gateway {
  position: relative;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding: clamp(56px, 8vh, 88px) 0 36px;
}

.gateway::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -18%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(200, 255, 61, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(200, 255, 61, 0.016),
    0 0 0 140px rgba(200, 255, 61, 0.01);
  pointer-events: none;
}

.gateway-brand {
  position: relative;
  z-index: 1;
}

.gateway-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-top: clamp(54px, 8vh, 92px);
}

.gateway-title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.8vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.gateway-title .accent {
  color: var(--acid);
}

.gateway-lede {
  max-width: 600px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.gateway-langs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(44px, 7vh, 72px);
}

.gateway-lang {
  position: relative;
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.45s var(--ease);
}

.gateway-lang:hover {
  border-color: rgba(200, 255, 61, 0.36);
  background: rgba(200, 255, 61, 0.055);
  transform: translateY(-4px);
}

.gateway-lang__code {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.gateway-lang__name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.gateway-lang__meta {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.gateway-lang:hover .gateway-lang__meta,
.gateway-lang:hover .gateway-lang__code {
  color: var(--acid);
}

.gateway-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

@media (max-width: 680px) {
  .gateway {
    width: calc(100% - 36px);
    padding-top: 44px;
  }

  .gateway::before {
    right: -290px;
    width: 430px;
    height: 430px;
  }

  .gateway-title {
    font-size: clamp(2.65rem, 13.2vw, 4.1rem);
  }

  .gateway-lede {
    margin-top: 22px;
    font-size: 14px;
  }

  .gateway-langs {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .gateway-lang {
    min-height: 112px;
    padding: 18px 20px;
  }

  .gateway-foot {
    flex-direction: column;
    gap: 8px;
  }
}
