/* ============================================================
   Catalation / Synapse — Landing
   Modern, light-first with full dark mode.
   Theme is driven by [data-theme] on <html>.
   ============================================================ */

/* ---------- Theme tokens ---------- */

:root {
  /* Brand accents (shared, tuned per theme below) */
  --teal:   #0EA5A0;
  --violet: #6D5DE0;

  /* Light theme (default) */
  --bg:          #F6F7FB;
  --bg-grad-a:   #FFFFFF;
  --bg-grad-b:   #EEF1F8;
  --surface:     #FFFFFF;
  --surface-2:   #F2F4FA;
  --surface-3:   #FFFFFF;
  --text-strong: #0B0D1A;
  --text:        #2C2F45;
  --body:        #565A77;
  --muted:       #9AA0BD;
  --border:      #E5E8F2;
  --border-soft: #EEF0F7;
  --accent:        var(--teal);
  --accent-2:      var(--violet);
  --accent-soft:   rgba(14, 165, 160, 0.08);
  --accent-2-soft: rgba(109, 93, 224, 0.08);
  --on-accent:     #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(13, 18, 40, 0.04), 0 2px 8px rgba(13, 18, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(13, 18, 40, 0.06), 0 12px 40px rgba(13, 18, 40, 0.07);
  --shadow-lg: 0 12px 32px rgba(13, 18, 40, 0.10), 0 24px 70px rgba(13, 18, 40, 0.12);
  --glow: 0 0 0 1px rgba(14,165,160,0.18), 0 12px 40px rgba(14,165,160,0.18);
  --grid-line: rgba(13, 18, 40, 0.05);
  --code-bg: #0E1020;
  --code-text: #C9D1E9;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 16px;
  --text-lg:   20px;
  --text-xl:   28px;
  --text-2xl:  40px;
  --text-hero: clamp(44px, 6.4vw, 92px);

  --font-head: 'Syne', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-w: 1200px;
  --reading-w: 65ch;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --teal:   #2DD4BF;
  --violet: #8B7BE8;

  --bg:          #08090F;
  --bg-grad-a:   #0C0E1A;
  --bg-grad-b:   #060710;
  --surface:     #0E1020;
  --surface-2:   #12152A;
  --surface-3:   #0A0C16;
  --text-strong: #F2F4FF;
  --text:        #D6D9EC;
  --body:        #9094B0;
  --muted:       #4A4D6B;
  --border:      #1B1E33;
  --border-soft: #15172A;
  --accent:        var(--teal);
  --accent-2:      var(--violet);
  --accent-soft:   rgba(45, 212, 191, 0.10);
  --accent-2-soft: rgba(139, 123, 232, 0.12);
  --on-accent:     #050810;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.55);
  --glow: 0 0 0 1px rgba(45,212,191,0.25), 0 12px 50px rgba(45,212,191,0.20);
  --grid-line: rgba(255, 255, 255, 0.035);
  --code-bg: #060710;
  --code-text: #C9D1E9;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* ---------- Ambient background ---------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 460px at 12% 4%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 540px 440px at 88% 8%, var(--accent-2-soft), transparent 62%),
    radial-gradient(ellipse 700px 520px at 80% 95%, var(--accent-soft), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s var(--ease);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

nav, main, footer { position: relative; z-index: 2; }

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- Navigation ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), padding 0.3s var(--ease);
}

nav.is-scrolled {
  border-bottom-color: var(--border);
  padding: 11px 0;
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--text-strong);
}

.brand-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.16em;
  color: var(--text-strong);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-right: 12px;
}

.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text-strong); }
.nav-links a:hover::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); position: absolute; }
.theme-toggle .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--ease), color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
}

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

/* gradient text helper */
.grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */

main { padding-bottom: 40px; }
section[id] { scroll-margin-top: 88px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 18px;
  font-size: var(--text-lg);
  color: var(--body);
  line-height: 1.55;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
  text-align: center;
}
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  max-width: 17ch;
}
.hero h1 .accent { font-style: italic; font-weight: 700; }

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--body);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta {
  margin-top: 26px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* Hero pipeline visual */
.flow {
  margin: 64px auto 0;
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.flow-k {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.flow-step h4 { font-size: var(--text-lg); margin: 12px 0 6px; }
.flow-step p { font-size: var(--text-sm); color: var(--body); }
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  padding: 0 8px;
}
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* ---------- Logo / trust strip ---------- */

.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust p {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  flex-wrap: wrap;
}
.trust-row span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.trust-row span:hover { opacity: 1; }

/* ---------- Bento concept grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--text-xl); margin-bottom: 10px; }
.card p { color: var(--body); font-size: var(--text-base); line-height: 1.55; }

.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-2, .col-4, .col-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .col-3, .col-2, .col-4, .col-6 { grid-column: span 1; }
}

/* ---------- Pillars (legacy + reused) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.pillar h3 { font-size: var(--text-xl); }
.pillar p { color: var(--body); line-height: 1.55; }

@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Org chart ---------- */

.org {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 24px;
  box-shadow: var(--shadow-sm);
}
.org-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.org-row + .org-row { margin-top: 14px; }
.org-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--surface-2);
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  min-width: 96px;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.org-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.org-node.is-top {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.org-node.is-ceo {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--accent-2-soft);
  font-weight: 600;
}
.org-arrow { text-align: center; color: var(--muted); font-size: 18px; line-height: 1; margin: 8px 0; }

/* ---------- Journey timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.tl-item {
  position: relative;
  padding: 0 16px;
}
.tl-item::before {
  content: '';
  position: absolute;
  top: 13px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.tl-item:first-child::before { left: 50%; }
.tl-item:last-child::before { right: 50%; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 5px var(--bg);
}
.tl-k { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display:block; text-align:center; margin-bottom: 6px;}
.tl-item h4 { font-size: var(--text-lg); text-align: center; margin-bottom: 8px; }
.tl-item p { font-size: var(--text-sm); color: var(--body); text-align: center; line-height: 1.5; }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .tl-item { padding: 18px 0 18px 52px; text-align: left; }
  .tl-item::before { top: 0; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .tl-item:first-child::before { top: 14px; left: 13px; }
  .tl-item:last-child::before { bottom: 50%; left: 13px; }
  .tl-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .tl-k, .tl-item h4, .tl-item p { text-align: left; }
}

/* ---------- Modes (tabs) ---------- */

.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--body);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 9px;
}
.tab .tab-k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tab:hover { border-color: var(--accent); color: var(--text-strong); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.tab.is-active .tab-k { color: var(--on-accent); opacity: 0.8; }

.tab-panels { position: relative; }
.tab-panel { display: none; animation: fadeUp 0.5s var(--ease); }
.tab-panel.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mode {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.mode-info .badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.mode-info h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 14px; }
.mode-info p { color: var(--body); font-size: var(--text-lg); line-height: 1.55; margin-bottom: 20px; }
.mode-spec {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.mode-spec div { display: flex; flex-direction: column; gap: 2px; }
.mode-spec dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mode-spec dd { font-size: var(--text-base); color: var(--text-strong); font-weight: 600; }

@media (max-width: 820px) {
  .mode { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

/* ---------- Code / terminal block ---------- */

.code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.code-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.code-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.code-bar i:nth-child(1){ background:#FF5F57; }
.code-bar i:nth-child(2){ background:#FEBC2E; }
.code-bar i:nth-child(3){ background:#28C840; }
.code-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: #6A7290; }
.code pre {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--code-text);
  overflow-x: auto;
}
.code pre .c-key { color: #8B7BE8; }
.code pre .c-fn  { color: #2DD4BF; }
.code pre .c-str { color: #E2B36A; }
.code pre .c-dim { color: #5C6385; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.tier.is-featured {
  border-color: var(--accent);
  box-shadow: var(--glow);
  position: relative;
}
.tier.is-featured::before {
  content: 'Best value';
  position: absolute;
  top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tier-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-strong);
  letter-spacing: 0.02em;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 4px;
}
.tier-price b { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--text-strong); letter-spacing: -0.03em; }
.tier-price span { font-size: var(--text-sm); color: var(--muted); }
.tier-tagline { font-size: var(--text-sm); color: var(--body); min-height: 38px; }
.tier-mode {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
}
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.tier li { font-size: var(--text-sm); color: var(--body); display: flex; gap: 9px; line-height: 1.4; }
.tier li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.tier .btn { margin-top: auto; }
.tier-foot { margin-top: 18px; }

@media (max-width: 1080px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
}

/* ---------- Principles list ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}
.principle {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: baseline;
}
.principle-n {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  flex-shrink: 0;
  width: 30px;
}
.principle h4 { font-size: var(--text-lg); margin-bottom: 4px; }
.principle p { font-size: var(--text-sm); color: var(--body); }

@media (max-width: 720px) { .principles { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.marquee-track span::after { content: '·'; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 500px 300px at 85% 100%, var(--accent-2-soft), transparent 60%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.03em; margin-bottom: 16px; }
.cta p { font-size: var(--text-lg); color: var(--body); max-width: 50ch; margin: 0 auto 8px; }

/* ---------- Waitlist form ---------- */

.waitlist { margin: 32px auto 0; max-width: 480px; }
.waitlist label { display: block; font-size: var(--text-sm); color: var(--body); margin-bottom: 12px; }
.waitlist-row {
  display: flex;
  gap: 8px;
}
.waitlist input[type="email"] {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 14px 16px;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.waitlist .btn { padding: 14px 22px; }
.waitlist .note { margin-top: 12px; font-size: var(--text-xs); color: var(--muted); }
.waitlist .success {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text-strong);
  font-size: var(--text-sm);
  border-radius: 10px;
}
.waitlist.is-success .success { display: block; }
.waitlist.is-success .waitlist-row,
.waitlist.is-success .note { display: none; }
.waitlist .error { display: none; margin-top: 10px; font-size: var(--text-xs); color: #E5484D; }
.waitlist.is-error .error { display: block; }

@media (max-width: 480px) {
  .waitlist-row { flex-direction: column; }
  .waitlist .btn { width: 100%; }
}

/* ---------- About: split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { font-size: var(--text-lg); line-height: 1.6; margin-bottom: 18px; color: var(--body); }
.split p:last-child { margin-bottom: 0; }
.split p strong, .split strong { color: var(--text-strong); font-weight: 600; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Steps (about) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; display: block; }
.step h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.step p { font-size: var(--text-sm); color: var(--body); line-height: 1.55; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Disciplines ---------- */

.disciplines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.discipline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.discipline:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.discipline-tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.16em; color: var(--muted); }
.discipline h3 { font-size: var(--text-lg); }
@media (max-width: 720px) { .disciplines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .disciplines { grid-template-columns: 1fr; } }

/* ---------- Audience ---------- */

.audience { font-size: var(--text-lg); color: var(--body); max-width: 60ch; line-height: 1.7; }
.audience strong { color: var(--text-strong); font-weight: 600; }

/* ---------- Manifesto ---------- */

.quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
  padding: 80px 0;
}
.quote .accent { font-style: italic; }
.manifesto-body { max-width: var(--reading-w); margin: 0 auto; padding: 0 0 80px; }
.manifesto-body p { font-size: var(--text-lg); line-height: 1.7; margin-bottom: 28px; color: var(--body); }
.manifesto-body p strong { color: var(--text-strong); font-weight: 600; }
.closing {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 46px);
  text-align: center;
  color: var(--accent);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.2;
  padding: 40px 0 80px;
}

/* ---------- Back link ---------- */

.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--body); text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
  padding: 4px 0; position: relative;
  transition: color 0.2s ease;
}
.back-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.25s var(--ease);
}
.back-link:hover { color: var(--text-strong); }
.back-link:hover::after { width: 100%; }
.back-link span { font-size: 16px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .brand-mark { font-size: 20px; }
.footer-brand p { margin-top: 14px; font-size: var(--text-sm); color: var(--body); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--body);
  text-decoration: none;
  font-size: var(--text-sm);
  margin-bottom: 11px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.footer-bot .copy { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; }
.footer-bot a { color: var(--body); text-decoration: none; font-size: var(--text-xs); }
.footer-bot a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
