/* ================================================================
   Signal Studio — shared styles
   ================================================================ */

:root {
  --bg:        #f7f3e8;
  --bg-soft:   #f1ece0;
  --bg-card:   #ffffff;
  --bg-tint:   #ecf0fa;
  --ink:       #0d0d0c;
  --ink-2:     #3a3835;
  --ink-3:     #6b6860;
  --ink-4:     #a09c92;
  --line:      #e0d9c5;
  --line-2:    #cfc6ad;
  --blue:      #1d4ed8;
  --blue-2:    #2a5fe8;
  --blue-soft: #dde6fa;
  --blue-deep: #14328a;
  --signal:    #1d4ed8;
  --serif: 'Instrument Serif', 'Newsreader', Georgia, serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection { background: var(--blue); color: #fff; }

a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Static paper grain — painted once, no per-frame cost */
html {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(13,13,12,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  background-attachment: fixed;
}

/* ============ NAV — fully transparent over the fluid ============ */
nav.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* Fully transparent so fluid is visible — glass shimmer only */
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background .3s, border-color .3s;
}
/* Scrolled state — only applied by JS after hero ends */
nav.topnav.scrolled {
  background: rgba(247, 243, 232, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(13,13,12,0.85);
  transition: color .3s;
}
nav.topnav.scrolled .brand { color: var(--ink); }
.brand-img {
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0);
  transition: filter .3s;
}
nav.topnav.scrolled .brand-img { filter: none; }
.brand b { font-weight: 600; }
.brand .v { opacity: 0.55; font-weight: 400; }
nav.topnav.scrolled .brand .v { color: var(--ink-3); opacity: 1; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(13,13,12,0.82);
  transition: color .3s;
}
nav.topnav.scrolled .nav-links { color: var(--ink-2); }
.nav-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  position: relative;
  color: inherit;
}
nav.topnav.scrolled .nav-links a { text-shadow: none; }
.nav-links a:hover { background: rgba(13,13,12,0.07); color: rgba(13,13,12,1); }
nav.topnav.scrolled .nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: rgba(13,13,12,1); }
nav.topnav.scrolled .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-link {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: rgba(13,13,12,0.65);
  transition: background .15s, color .15s;
}
.icon-link:hover { background: rgba(13,13,12,0.07); color: rgba(13,13,12,0.9); }
nav.topnav.scrolled .icon-link { color: var(--ink-2); }
nav.topnav.scrolled .icon-link:hover { background: var(--bg-soft); color: var(--ink); }
.icon-link svg { width: 17px; height: 17px; }

/* ---- Nav Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }

/* In transparent nav: secondary = solid semi-opaque (NO backdrop-filter — kills FPS over WebGL) */
.btn-secondary {
  background: rgba(247,243,232,0.72);
  color: rgba(13,13,12,0.85);
  border-color: rgba(13,13,12,0.14);
}
.btn-secondary:hover {
  background: rgba(247,243,232,0.92);
  border-color: rgba(13,13,12,0.25);
  color: rgba(13,13,12,1);
  transform: translateY(-1px);
}
nav.topnav.scrolled .btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: none;
}
nav.topnav.scrolled .btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}

/* Primary — always vibrant blue, but more luminous over fluid */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 0 rgba(99,140,255,0.5), 0 2px 8px rgba(29,78,216,0.35);
}
.btn-primary:hover {
  background: #2659f0;
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(99,140,255,0.2), 0 6px 20px rgba(29,78,216,0.4);
}
nav.topnav.scrolled .btn-primary {
  box-shadow: 0 1px 2px rgba(29,78,216,.2), inset 0 1px 0 rgba(255,255,255,.18);
}
nav.topnav.scrolled .btn-primary:hover {
  box-shadow: 0 6px 16px rgba(29,78,216,.25);
}

.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }

/* ============ LAYOUT ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 28px; }

section { position: relative; z-index: 2; }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.eyebrow-line {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.eyebrow-line::before, .eyebrow-line::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  max-width: 80px;
}

h1, h2, h3, h4 {
  font-family: var(--sans); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 28px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

/* ── Mobile background — clean, no WebGL ────────────────────────────────── */
.hero-css-bg {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(30,40,130,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 15%, rgba(30,40,130,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 90% 50% at 50% 95%, rgba(30,40,130,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 70%, rgba(30,40,130,0.05) 0%, transparent 50%),
    #f7f3e8;
}
/* Subtle dot texture via SVG data URI — evokes particles without any JS */
.hero-css-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23001050' opacity='.4'/%3E%3Ccircle cx='60' cy='10' r='0.7' fill='%23001050' opacity='.3'/%3E%3Ccircle cx='100' cy='30' r='1.1' fill='%23001050' opacity='.35'/%3E%3Ccircle cx='10' cy='70' r='0.8' fill='%23001050' opacity='.3'/%3E%3Ccircle cx='45' cy='55' r='1.2' fill='%23001050' opacity='.45'/%3E%3Ccircle cx='80' cy='80' r='0.9' fill='%23001050' opacity='.3'/%3E%3Ccircle cx='110' cy='60' r='1' fill='%23001050' opacity='.35'/%3E%3Ccircle cx='30' cy='100' r='0.7' fill='%23001050' opacity='.3'/%3E%3Ccircle cx='70' cy='110' r='1.1' fill='%23001050' opacity='.4'/%3E%3Ccircle cx='5' cy='45' r='0.6' fill='%23001050' opacity='.25'/%3E%3Ccircle cx='95' cy='105' r='0.8' fill='%23001050' opacity='.3'/%3E%3Ccircle cx='55' cy='85' r='0.6' fill='%23001050' opacity='.2'/%3E%3Ccircle cx='115' cy='90' r='1' fill='%23001050' opacity='.35'/%3E%3Ccircle cx='35' cy='40' r='0.7' fill='%23001050' opacity='.28'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* THE fluid canvas — 60fps key: own layer, alpha false context */
.hero-fluid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  /* Isolate in own compositing layer — GPU renders independently */
  transform: translateZ(0);
  will-change: transform;
  /* Canvas is alpha:false, bg is the fluid background color */
  background: #faebd7;
}

.hero-video-slot {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.12) 0%,
    transparent 15%,
    transparent 65%,
    rgba(247,243,232,0.5) 100%);
  z-index: 1;
}
.hero-signal-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.32;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,78,216,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 70%);
  z-index: 1;
}
.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 960px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: rgba(247,243,232,0.78);
  border: 1px solid rgba(13,13,12,0.14);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(13,13,12,0.72);
  margin-bottom: 32px;
}
.hero-badge .pill {
  background: var(--blue);
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero-badge a { display: inline-flex; align-items: center; gap: 4px; color: rgba(13,13,12,0.65); }
.hero-badge a:hover { color: rgba(13,13,12,0.9); }

.hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 28px;
  color: rgba(13,13,12,0.82);
}

.hero-line-1 { display: block; }
.rotating-list {
  display: block;
  position: relative;
  height: 1.1em;
  overflow: hidden;
  margin-top: 0.04em;
}
.rotating-list .word {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(29,78,216,0.85);
  transition: transform .55s cubic-bezier(.7,0,.3,1), opacity .55s;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  font-weight: 500;
  color: rgba(13,13,12,0.72);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-cta-row {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  font-weight: 500;
  color: rgba(13,13,12,0.52);
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ============ COMMON SECTIONS ============ */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-divider { border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.08;
  margin-bottom: 18px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.section-head p { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 620px; margin: 0 auto; }
.section-head-left { text-align: left; margin-bottom: 56px; max-width: 720px; }
.section-head-left h2 {
  font-size: clamp(28px, 3.8vw, 44px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px;
}
.section-head-left p { font-size: 16px; color: var(--ink-2); line-height: 1.55; }

/* ============ TICKER ============ */
.ticker-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.ticker-label {
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 32px;
}
.ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex; gap: 56px; align-items: center;
  animation: ticker-scroll 50s linear infinite;
  width: max-content;
}
@keyframes ticker-scroll { to { transform: translateX(calc(-50% - 28px)); } }
.inst-slot {
  width: 150px; height: 44px;
  border: 1px dashed var(--line-2); border-radius: 6px;
  display: grid; place-items: center;
  background: var(--bg-card);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--ink-4);
  flex-shrink: 0; text-transform: uppercase;
}

/* ============ PILLARS ============ */
.pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.pillar {
  background: var(--bg-card); padding: 32px 26px;
  position: relative; transition: background .25s;
}
.pillar:hover { background: var(--bg-tint); }
.pillar-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--blue); margin-bottom: 22px; }
.pillar-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 24px;
}
.pillar-icon svg { width: 20px; height: 20px; }
.pillar h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.25; }
.pillar p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============ SOFTWARE PREVIEW ============ */
.software-preview-wrap { margin-top: 64px; position: relative; }
.app-frame {
  background: var(--bg-card); border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 30px 80px -30px rgba(29,78,216,0.15), 0 12px 40px -12px rgba(0,0,0,0.08);
  position: relative;
}
.app-titlebar {
  display: flex; align-items: center;
  padding: 11px 14px; background: var(--bg-soft);
  border-bottom: 1px solid var(--line); gap: 12px;
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.app-dots i:nth-child(1) { background: #f08074; }
.app-dots i:nth-child(2) { background: #f0c163; }
.app-dots i:nth-child(3) { background: #6cc174; }
.app-title-text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); margin-left: 8px; }
.app-title-text b { color: var(--ink); font-weight: 500; }
.app-media-slot {
  aspect-ratio: 16 / 10; background: var(--bg);
  position: relative; display: grid; place-items: center;
  border-top: 1px dashed var(--line-2);
}
.app-media-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; text-align: center; }
.app-media-label small { display: block; font-size: 10px; margin-top: 6px; color: var(--ink-4); }
.app-annot {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 12px 6px 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-2); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08); z-index: 4;
}
.app-annot .num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 10px; font-weight: 500;
}
.app-annot.tl { top: -16px; left: 8%; }
.app-annot.tr { top: -16px; right: 8%; }
.app-annot.bl { bottom: -16px; left: 12%; }
.app-annot.br { bottom: -16px; right: 12%; }

.feature-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center; margin-top: 96px; }
.feature-pair.reverse { grid-template-columns: 1.4fr 1fr; }
.feature-pair.reverse .feature-pair-text { order: 2; }
.feature-pair-text h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.feature-pair-text p { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.feature-pair-text ul { list-style: none; margin-top: 24px; }
.feature-pair-text li {
  font-size: 14.5px; color: var(--ink-2);
  padding: 10px 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.feature-pair-text li::before {
  content: ''; width: 14px; height: 14px;
  background: var(--blue-soft); border: 1.5px solid var(--blue);
  border-radius: 4px; flex-shrink: 0;
}
.feature-media {
  aspect-ratio: 4 / 3; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--bg-card);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.feature-media-inner { text-align: center; }

/* ============ WORKFLOW CARDS ============ */
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wf-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: all .2s; cursor: pointer;
  display: flex; flex-direction: column;
}
.wf-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 14px 32px -14px rgba(0,0,0,0.08); }
.wf-thumb { aspect-ratio: 4/3; background: var(--bg); border-bottom: 1px dashed var(--line-2); display: grid; place-items: center; }
.wf-thumb-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-4); text-transform: uppercase; }
.wf-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.wf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.wf-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 4px; }
.wf-card h4 { font-size: 16px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.wf-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.wf-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em; }
.wf-meta-left { display: flex; align-items: center; gap: 6px; }
.wf-author-dot { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); font-size: 9px; display: grid; place-items: center; color: #fff; font-weight: 500; }
.wf-meta-right { display: flex; gap: 12px; }
.wf-meta-right span { display: inline-flex; align-items: center; gap: 4px; }

/* ============ EXTENSIONS / DEV ============ */
.dev-band {
  background: var(--ink); color: var(--bg);
  border-radius: 22px; padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
}
.dev-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(29,78,216,0.4), transparent 50%), radial-gradient(ellipse at bottom left, rgba(29,78,216,0.15), transparent 60%);
  pointer-events: none;
}
.dev-band > * { position: relative; z-index: 2; }
.dev-band-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #7fa0ec; margin-bottom: 18px; }
.dev-band h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 18px; color: #fff; }
.dev-band p { font-size: 16px; line-height: 1.6; color: #c0bbb0; margin-bottom: 24px; }
.dev-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dev-btn-primary { background: #fff; color: var(--ink); padding: 11px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.dev-btn-primary:hover { background: var(--blue-soft); }
.dev-btn-ghost { border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; }
.dev-btn-ghost:hover { background: rgba(255,255,255,0.08); }
.dev-btn-ghost svg { width: 14px; height: 14px; }

.code-block { background: #161514; border: 1px solid #2a2825; border-radius: 12px; overflow: hidden; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; }
.code-head { padding: 10px 14px; background: #1f1d1a; border-bottom: 1px solid #2a2825; display: flex; align-items: center; justify-content: space-between; }
.code-head-left { display: flex; align-items: center; gap: 8px; color: #8a877f; font-size: 11px; letter-spacing: 0.08em; }
.code-head-dots { display: flex; gap: 5px; }
.code-head-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3833; }
.code-head-right { color: #5a5853; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.code-body { padding: 16px 18px; color: #d8d4c8; }
.code-body .c-key { color: #b794f4; }
.code-body .c-fn { color: #7fa0ec; }
.code-body .c-str { color: #98c379; }
.code-body .c-num { color: #e5c07b; }
.code-body .c-c { color: #6a665e; font-style: italic; }
.code-body .c-pn { color: #c0bbb0; }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; }
.stat-item { text-align: left; }
.stat-num { font-family: var(--serif); font-style: italic; font-size: clamp(38px, 4vw, 56px); font-weight: 400; color: var(--blue); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; margin-top: 10px; }
.stat-sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ============ MANIFESTO ============ */
.manifesto { text-align: center; padding: 80px 0; }
.manifesto blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -0.015em; max-width: 900px; margin: 0 auto; color: var(--ink); }
.manifesto cite { display: block; margin-top: 32px; font-family: var(--mono); font-style: normal; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; }

/* ============ FINAL CTA ============ */
.final-cta { text-align: center; padding: 140px 28px; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 600px; background: radial-gradient(ellipse, rgba(29,78,216,0.08), transparent 65%); pointer-events: none; }
.final-cta h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; position: relative; z-index: 2; margin-bottom: 24px; }
.final-cta p { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 0 auto 36px; line-height: 1.55; position: relative; z-index: 2; }
.final-cta-actions { display: inline-flex; gap: 10px; position: relative; z-index: 2; flex-wrap: wrap; justify-content: center; }

/* ============ FOOTER ============ */
footer.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 72px 28px 32px; position: relative; z-index: 2; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.35; margin-bottom: 18px; max-width: 280px; letter-spacing: -0.01em; }
.footer-brand .small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col li a { font-size: 13.5px; color: var(--ink-2); transition: color .15s; display: inline-flex; align-items: center; gap: 4px; }
.footer-col li a:hover { color: var(--blue); }
.footer-col svg { width: 10px; height: 10px; opacity: 0.6; }
.footer-bot { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.footer-bot a { color: var(--ink-3); }
.footer-bot a:hover { color: var(--ink); }

/* ============ PAGE HERO (other pages) ============ */
.page-hero { padding: 160px 28px 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(29,78,216,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,0.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at center top, black 25%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at center top, black 25%, transparent 65%); }
.page-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 18px; }
.page-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue); }
.page-hero p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 580px; margin: 0 auto; }

/* ============ FILTER BAR ============ */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 7px 12px; border-radius: 6px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.filter-tab:hover { background: var(--bg-soft); }
.filter-tab.active { background: var(--ink); color: var(--bg); }
.filter-search { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: 11px; color: var(--ink-3); min-width: 200px; }

/* ============ PLATFORM CARDS ============ */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 60px; }
.platform-card { padding: 36px 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; transition: all .2s; display: flex; flex-direction: column; }
.platform-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.08); }
.platform-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-tint); display: grid; place-items: center; margin-bottom: 22px; color: var(--blue); }
.platform-icon svg { width: 24px; height: 24px; }
.platform-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.015em; }
.platform-card .ver { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 18px; }
.platform-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 24px; flex: 1; }
.platform-card .btn { width: 100%; justify-content: center; }
.platform-card .req { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-3); }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; cursor: pointer; }
.faq-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.faq-head h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: all .25s; color: var(--ink-2); }
.faq-item.open .faq-toggle { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-body-inner { padding-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 680px; }
.faq-item.open .faq-body { max-height: 260px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-pair, .feature-pair.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-pair.reverse .feature-pair-text { order: unset; }
  .dev-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .container, .container-narrow { padding: 0 18px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .wf-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bot { flex-direction: column; gap: 12px; }
  .section { padding: 80px 0; }
  .hero { padding: 110px 18px 60px; }
  .page-hero { padding: 120px 18px 60px; }
  .app-annot { display: none; }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ CURSOR GLOW ============ */
.hero-cursor-glow {
  position: absolute; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), rgba(29,78,216,0.05) 35%, transparent 65%);
  left: 0; top: 0; z-index: 1; will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}
@media (hover: none) { .hero-cursor-glow { display: none; } }

/* ============ LIQUID GLASS CTAs ============ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.12);
  background: rgba(247,243,232,0.78);
  border: 1px solid rgba(13,13,12,0.14);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 12px 30px -12px rgba(0,0,0,0.3);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 22%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 58%, rgba(255,255,255,0.18) 78%, rgba(255,255,255,0.55) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-cta-glass {
  color: rgba(13,13,12,0.88) !important; font-family: var(--sans);
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  padding: 18px 34px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; transition: transform .25s cubic-bezier(.16,.84,.44,1), background .25s;
  text-shadow: none;
}
.hero-cta-glass:hover { transform: scale(1.04); background: rgba(247,243,232,0.92); }

.hero-cta-ghost {
  color: rgba(13,13,12,0.65);
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.005em; padding: 18px 22px;
  background: transparent; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; transition: color .2s, transform .25s;
}
.hero-cta-ghost:hover { color: rgba(13,13,12,0.9); transform: translateX(3px); }

/* ============ FADE-RISE ============ */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise         { animation: fade-rise .9s cubic-bezier(.16,.84,.44,1) both; }
.animate-fade-rise-delay   { animation: fade-rise .9s cubic-bezier(.16,.84,.44,1) .15s both; }
.animate-fade-rise-delay-2 { animation: fade-rise .9s cubic-bezier(.16,.84,.44,1) .30s both; }
.animate-fade-rise-delay-3 { animation: fade-rise .9s cubic-bezier(.16,.84,.44,1) .50s both; }
.animate-fade-rise-delay-4 { animation: fade-rise .9s cubic-bezier(.16,.84,.44,1) .70s both; }

/* ============ AUTH MODAL ============ */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.auth-modal.open { display: flex; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(13,13,12,0.55); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); animation: auth-backdrop-in .35s ease-out both; }
@keyframes auth-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.auth-card { position: relative; width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4), 0 8px 24px -8px rgba(29,78,216,0.18), inset 0 1px 0 rgba(255,255,255,0.5); animation: auth-rise .4s cubic-bezier(.16,.84,.44,1) both; }
@keyframes auth-rise { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background .15s, color .15s; border: 1px solid transparent; }
.auth-close:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.auth-close svg { width: 14px; height: 14px; }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 14px; display: block; }
.auth-header h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 6px; color: var(--ink); }
.auth-header p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; max-width: 320px; margin: 0 auto; }
.auth-providers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.auth-provider { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; padding: 13px 18px 13px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .15s; text-align: left; }
.auth-provider:hover { background: var(--bg-soft); border-color: var(--ink-3); transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08); }
.auth-icon { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; }
.auth-icon svg { width: 20px; height: 20px; }
.auth-label { flex: 1; }
.auth-chevron { color: var(--ink-4); display: grid; place-items: center; transition: transform .2s, color .2s; }
.auth-chevron svg { width: 14px; height: 14px; }
.auth-provider:hover .auth-chevron { color: var(--ink-2); transform: translateX(3px); }
.auth-icon-google { color: #4285F4; }
.auth-icon-github { color: #1a1a1a; }
.auth-icon-discord { color: #5865F2; }
.auth-icon-orcid { color: #A6CE39; }
.auth-icon-huggingface { color: #FFD21E; }
.auth-icon-x { color: #0a0a0a; }
.auth-footer { text-align: center; padding-top: 18px; border-top: 1px solid var(--line); }
.auth-footer p { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin-bottom: 8px; }
.auth-footer p:last-child { margin-bottom: 0; }
.auth-footer .auth-terms { font-size: 11px; color: var(--ink-4); }
.auth-footer a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); transition: color .15s, text-decoration-color .15s; }
.auth-footer a:hover { color: var(--blue); text-decoration-color: var(--blue); }
@media (max-width: 480px) { .auth-card { padding: 28px 22px 22px; border-radius: 18px; } .auth-header h3 { font-size: 19px; } }

/* ============ PREFERS-REDUCED-MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-signal-canvas, .hero-cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
  .rotating-list .word { transition: none; }
}

/* Stat counter tabular nums */
.stat-num[data-counter] { font-variant-numeric: tabular-nums; min-width: 1ch; display: inline-block; }
