/* ═══════════════════════════════════════════════
   HELM Landing — Redesign
   Dark monochrome · Instrument Serif · Editorial
   Following antigravity.md strictly
   ═══════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,300..700;1,14..32,300..700&display=swap');

/* ── Tokens — use these, invent nothing ── */
:root {
  --bg:       #08090b;
  --surface:  #101217;
  --surface2: #181a20;
  --surface3: #20232a;

  --text:     #f0f0f0;
  --text2:    #a0a0a6;
  --text3:    #62636b;
  --text4:    #35353a;

  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  --divider:  rgba(255,255,255,0.1);

  --white:    #ffffff;
  --black:    #07080a;

  --ease:     cubic-bezier(.16, 1, .3, 1);
  --ease2:    cubic-bezier(.33, 1, .68, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

/* ── Layout ── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════
   NAVIGATION — Floating Capsule
   ══════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: padding 0.5s var(--ease);
}
nav.scrolled {
  padding: 12px 24px;
}

.nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 16px 24px;
  border-radius: 999px;
  background: rgba(13, 14, 18, 0.78);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow:
    0 2px 20px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease);
}
nav.scrolled .nav-inner {
  background: rgba(13, 14, 18, 0.94);
  box-shadow:
    0 6px 30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.07);
  border-color: var(--border2);
  padding: 12px 10px 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-right: 4px;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo.sm { font-size: 0.875rem; }
.logo-mark.sm { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-size: 0.8125rem;
  color: var(--text2);
  transition: color 0.2s, background 0.2s;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-cta {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem !important;
  transition: opacity 0.2s, transform 0.15s var(--ease), box-shadow 0.2s !important;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.nav-cta:hover {
  opacity: 0.92;
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(255,255,255,0.12);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.burger.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger.open span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7,8,10,0.96);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.6; transform: translateX(-50%) scale(1.05); }
}

/* Hero grid lines — subtle background texture */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.grid-line {
  position: absolute;
  background: rgba(255,255,255,0.025);
}
.gl-1 { left: 20%; top: 0; bottom: 0; width: 1px; }
.gl-2 { left: 40%; top: 0; bottom: 0; width: 1px; }
.gl-3 { left: 60%; top: 0; bottom: 0; width: 1px; }
.gl-4 { left: 80%; top: 0; bottom: 0; width: 1px; }
.gl-5 { left: 0; right: 0; top: 50%; height: 1px; }

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
  font-family: monospace;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 40%, #bdbdc4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f0f0f0; /* fallback */
}
h1 em { font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--text2);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ── Buttons ── */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 4px 14px rgba(0,0,0,0.25),
    0 1px 3px rgba(0,0,0,0.15);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.btn-main:hover::before { transform: translateX(100%); }
.btn-main:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 12px 32px rgba(255,255,255,0.08),
    0 2px 4px rgba(0,0,0,0.15);
}
.btn-main:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text2);
  padding: 12px 20px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text3);
  letter-spacing: 0.02em;
}

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--text);
  animation: pulse-ring 2.2s var(--ease) infinite;
}
.pulse.sm { width: 5px; height: 5px; }
.pulse.sm::after { inset: -3px; }

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

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text3), transparent);
  animation: scroll-bounce 2s var(--ease) infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%      { transform: scaleY(0.5); opacity: 0.2; }
}

/* ── Phone Mockup ── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-shell {
  width: 280px;
  height: 580px;
  border-radius: 40px;
  background: linear-gradient(170deg, #1e1e24, #0e0e11);
  padding: 8px;
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: perspective(800px) rotateY(-5deg) rotateX(3deg);
  animation: phone-float 8s ease-in-out infinite;
  position: relative;
}

@keyframes phone-float {
  0%, 100% { transform: perspective(800px) rotateY(-5deg) rotateX(3deg) translateY(0); }
  50%      { transform: perspective(800px) rotateY(-3deg) rotateX(5deg) translateY(-12px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Phone internals */
.ph-status {
  padding: 10px 18px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  font-family: monospace;
  color: var(--text);
}
.ph-dots { display: flex; gap: 3px; }
.ph-dots i {
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text);
  font-style: normal;
}
.ph-dots i:nth-child(2) { opacity: 0.5; }
.ph-dots i:nth-child(3) { opacity: 0.3; }

.ph-chrome {
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.ph-chrome-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-family: monospace;
  color: var(--text3);
}
.ph-chrome-left b { color: var(--text2); }
.ph-icon {
  width: 16px; height: 16px;
  background: var(--white);
  color: var(--black);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-weight: 700;
  font-size: 7px;
}

.ph-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-family: monospace;
  color: var(--text2);
  background: var(--surface2);
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.ph-body {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  justify-content: flex-end;
}

.ph-agent-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  font-family: monospace;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ph-agent-tag i {
  display: inline-grid;
  place-items: center;
  width: 12px; height: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-style: normal;
  font-size: 6px;
  color: var(--text2);
}

.ph-bubble {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.4;
  min-height: 40px;
}
.ph-bubble-label {
  font-family: monospace;
  font-size: 7px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
  margin-bottom: 5px;
}

.ph-console {
  background: #08080b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: monospace;
  font-size: 8.5px;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.4s;
  flex: 0 0 auto;
  min-height: 80px;
  max-height: 120px;
  overflow: hidden;
}
.ph-console.visible { opacity: 1; }

.ph-console-head {
  display: flex;
  justify-content: space-between;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  margin-bottom: 3px;
}

.ph-console-lines {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.c-line {
  opacity: 0;
  transform: translateY(3px);
  animation: line-in 0.25s var(--ease) forwards;
}
.c-ok  { color: var(--text); }
.c-dim { color: var(--text3); }

@keyframes line-in {
  to { opacity: 1; transform: translateY(0); }
}

.ph-input {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text3);
}
.ph-send {
  width: 24px; height: 24px;
  background: var(--white);
  color: var(--black);
  border-radius: 6px;
  display: grid;
  place-items: center;
}

/* ── Completion overlay ── */
.ph-done {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
  animation: fade-up 0.4s var(--ease) forwards;
}
.ph-done-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}
.ph-done h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.ph-done p  { font-size: 0.65rem; color: var(--text2); margin-bottom: 12px; }
.ph-done-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
  margin-bottom: 12px;
}
.ph-done-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 7px;
  border-radius: 5px;
  text-align: left;
}
.ph-done-stat strong { font-family: monospace; font-size: 11px; display: block; }
.ph-done-stat small  { font-size: 6px; color: var(--text3); text-transform: uppercase; font-family: monospace; }
.ph-done-restart { font-family: monospace; font-size: 7px; color: var(--text3); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   MANIFESTO
   ══════════════════════════════════════════════ */
.manifesto {
  padding: clamp(64px, 7vw, 100px) 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}

.manifesto-line {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 600px;
}
.manifesto-line em { font-style: italic; }

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

.m-col {
  border-top: 1px solid var(--border2);
  padding-top: 20px;
  transition: transform 0.3s var(--ease);
}
.m-col:hover { transform: translateY(-4px); }
.m-num {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text3);
  display: block;
  margin-bottom: 12px;
}
.m-col h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.m-col p {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS — Asymmetric: sticky left, steps right
   ══════════════════════════════════════════════ */
.how {
  padding: clamp(56px, 6vw, 88px) 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.how-intro {
  position: sticky;
  top: 120px;
}
.how-intro .sec-sub { margin-bottom: 0; }

.label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
  display: block;
  font-family: monospace;
}

.sec-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.sec-sub {
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 48px;
  max-width: 420px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0;
  transition: transform 0.3s var(--ease);
}
.flow-step:hover { transform: translateX(6px); }

.flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text);
  flex-shrink: 0;
  background: var(--surface);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-step:hover .flow-num {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.flow-content h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.flow-content p {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.55;
}

.flow-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--border2), transparent);
  margin-left: 16px;
}

/* ══════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════ */
.product {
  padding: clamp(64px, 7vw, 100px) 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.card-wide .card-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card terminal visual */
.card-visual {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card-terminal {
  width: 100%;
  max-width: 320px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: monospace;
  font-size: 0.75rem;
}
.ct-bar {
  padding: 8px 10px;
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
}
.ct-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface3);
}
.ct-lines { padding: 10px 12px; }
.ct-line {
  color: var(--text3);
  line-height: 1.8;
}
.ct-ok { color: var(--text); }
.ct-dim { color: var(--text3); }
.ct-cursor {
  color: var(--text);
  animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.card-label {
  font-family: monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--text3);
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 0.8125rem;
  color: var(--text2);
  line-height: 1.55;
}

.card-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.card-tech span {
  font-family: monospace;
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: border-color 0.2s;
}
.card:hover .card-tech span { border-color: var(--border2); }

/* ══════════════════════════════════════════════
   ARCHITECTURE — full-bleed diagram
   ══════════════════════════════════════════════ */
.arch {
  padding: clamp(56px, 6vw, 88px) 0;
}

.arch-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.arch-header {
  margin-bottom: 40px;
}
.arch-header .label { margin-bottom: 10px; }
.arch-header .sec-title {
  max-width: 500px;
  margin: 0 auto;
}

.arch-diagram-full {
  width: 100%;
  max-width: 720px;
  margin-bottom: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.arch-footnotes {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.arch-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.arch-note-label {
  font-family: monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
.arch-note span:last-child {
  font-size: 0.8125rem;
  color: var(--text2);
}

/* ══════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════ */
.cta {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
  animation: cta-glow-pulse 5s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}

.cta-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.cta-title em { font-style: italic; }

.cta-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-plat {
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--text4);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
  background: var(--bg);
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand p {
  font-size: 0.75rem;
  color: var(--text4);
  margin-top: 10px;
  line-height: 1.4;
  font-family: monospace;
}

.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-heading {
  font-family: monospace;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 0.75rem;
  color: var(--text3);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.6875rem;
  font-family: monospace;
  color: var(--text4);
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   ANIMATIONS — gated behind html.js
   Content visible without JS. JS enables
   reveal on scroll with failsafe.
   ══════════════════════════════════════════════ */
html.js .anim-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease2), transform 0.7s var(--ease2);
}
html.js .anim-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
html.js .d1 { transition-delay: 0.08s; }
html.js .d2 { transition-delay: 0.16s; }
html.js .d3 { transition-delay: 0.24s; }
html.js .d4 { transition-delay: 0.32s; }

/* Parallax-enabled elements */
.parallax-el {
  will-change: transform;
  transition: transform 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  html.js .anim-in { opacity: 1; transform: none; transition: none; }
  .phone-shell { animation: none; }
  .hero-bg-glow { animation: none; }
  .cta-glow { animation: none; }
  .scroll-line { animation: none; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text { align-items: center; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-visual { order: -1; }

  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-intro { position: static; top: auto; }

  .manifesto-cols { grid-template-columns: 1fr; gap: 24px; }

  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .card-visual { border-left: none; border-top: 1px solid var(--border); }

  .arch-footnotes { gap: 24px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { gap: 36px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-inner { padding: 8px 14px; max-width: 100%; }

  h1 { font-size: 2.6rem; }
  .hero { padding-top: 90px; }
  .scroll-hint { display: none; }

  .phone-shell { width: 240px; height: 500px; border-radius: 34px; }
  .phone-screen { border-radius: 26px; }

  .hero-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-actions a { width: 100%; justify-content: center; }

  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions a { width: 100%; max-width: 260px; justify-content: center; }

  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-links { flex-direction: column; gap: 24px; }

  .arch-footnotes { flex-direction: column; gap: 16px; }
  .grid-line { display: none; }
}
