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

/* ═══════════════════════════════════════════
   STICKY NAV
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 30px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: height 0.3s;
}
.nav.scrolled .nav-inner {
  height: 52px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}
.nav-brand:hover { opacity: 0.8; }

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(255,23,68,0.4));
  transition: width 0.3s, height 0.3s;
}
.nav.scrolled .nav-logo {
  width: 24px;
  height: 24px;
}

.nav-9000 {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.nav-link.active {
  color: var(--red);
  background: var(--red-dim);
}

.nav-link.nav-gh {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.nav-link.nav-gh:hover {
  border-color: rgba(255,255,255,0.1);
  color: var(--text);
}
.nav-link.nav-gh svg {
  width: 16px;
  height: 16px;
}

/* ── Nav active indicator underline ── */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  transition: transform 0.3s;
}
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Mobile hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
  }

  .nav-link.nav-gh {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
    border: 1px solid var(--border);
  }
}

/* ── Offset body for fixed nav ── */
section.hero {
  scroll-margin-top: 0;
}
section:not(.hero) {
  scroll-margin-top: 60px;
}

:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --surface: #0e0e14;
  --surface-2: #141418;
  --border: #1e1e28;
  --text: #c8c8d0;
  --text-dim: #8a8a9a;
  --text-muted: #5a5a6a;
  --red: #ff4466;
  --red-bright: #ff1744;
  --red-glow: rgba(255, 23, 68, 0.35);
  --red-dim: rgba(255, 23, 68, 0.08);
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.08);
  --cyan: #00bcff;
  --cyan-dim: rgba(0, 188, 255, 0.08);
  --amber: #ffc107;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #1e1e28 #050507;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Global dot grid background (Affordance Studio style) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Cross-hatch overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* All sections above the bg patterns */
section, footer, nav { position: relative; z-index: 2; }

/* ── Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222230; border-radius: 3px; }

/* ── Utility ───────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 100%;
}

/* ── Scroll reveal with entry animations ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.98);
  filter: blur(3px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px) scale(0.98);
  filter: blur(3px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }

/* ── Staggered children reveal ── */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(2px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255,23,68,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,23,68,0.03) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-eye-wrap {
  position: relative;
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  margin: 0 auto 40px;
  will-change: transform;
}

.hero-eye {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(255,23,68,0.3))
          drop-shadow(0 0 80px rgba(255,23,68,0.15));
}

.hero-eye-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,23,68,0.25) 0%, transparent 60%);
  animation: heartbeat 0.85s ease-in-out infinite;
  z-index: 1;
}

/* Human heartbeat: lub-dub + rest (~72 BPM)
   0%   = rest (relaxed)
   12%  = lub  (first contraction — systole)
   24%  = between beats
   36%  = dub  (second contraction — diastole)
   48%  = start of rest
   100% = full rest before next beat */
@keyframes heartbeat {
  0%   { opacity: 0.35; transform: scale(1); }
  12%  { opacity: 1;    transform: scale(1.12); }
  24%  { opacity: 0.5;  transform: scale(1.02); }
  36%  { opacity: 0.9;  transform: scale(1.08); }
  48%  { opacity: 0.4;  transform: scale(1); }
  100% { opacity: 0.35; transform: scale(1); }
}

/* ── HAL Eye Glitch Effect ──────────────────── */
.hero-eye-ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

.hero-eye.is-glitching {
  animation: hal-glitch-main 0.65s steps(1, end) forwards;
}

.hero-eye-ghost--a.is-glitching {
  opacity: 1;
  mix-blend-mode: screen;
  filter: hue-rotate(175deg) saturate(6) brightness(2.5);
  animation: hal-glitch-a 0.65s steps(1, end) forwards;
}

.hero-eye-ghost--b.is-glitching {
  opacity: 1;
  mix-blend-mode: screen;
  filter: hue-rotate(310deg) saturate(6) brightness(2.5);
  animation: hal-glitch-b 0.65s steps(1, end) forwards;
}

@keyframes hal-glitch-main {
  0%,100% { transform: translateX(0)    scaleX(1);    opacity: 1;   }
  8%      { transform: translateX(-8px)  scaleX(1.02); opacity: 0.8; }
  16%     { transform: translateX(7px)   scaleX(0.98); opacity: 1;   }
  24%     { transform: translateX(-6px)  scaleX(1.01); opacity: 0.65;}
  32%     { transform: translateX(9px)   scaleX(1);    opacity: 1;   }
  40%     { transform: translateX(-4px)  scaleX(1.02); opacity: 0.5; }
  48%     { transform: translateX(6px)   scaleX(0.98); opacity: 1;   }
  56%     { transform: translateX(-7px)  scaleX(1.01); opacity: 0.85;}
  64%     { transform: translateX(3px)   scaleX(1);    opacity: 1;   }
  72%     { transform: translateX(-5px)  scaleX(1);    opacity: 0.9; }
  84%     { transform: translateX(4px)   scaleX(0.99); opacity: 1;   }
}

@keyframes hal-glitch-a {
  0%   { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);     opacity: 0; }
  7%   { clip-path: polygon(0 2%,100% 0,100% 18%,0 22%);      transform: translateX(-22px);  opacity: 1; }
  14%  { clip-path: polygon(0 38%,100% 34%,100% 54%,0 58%);   transform: translateX(16px);   opacity: 1; }
  21%  { clip-path: polygon(0 0,100% 0,100% 9%,0 13%);        transform: translateX(-26px);  opacity: 1; }
  28%  { clip-path: polygon(0 68%,100% 63%,100% 84%,0 88%);   transform: translateX(12px);   opacity: 1; }
  35%  { clip-path: polygon(0 12%,100% 8%,100% 28%,0 34%);    transform: translateX(-18px);  opacity: 1; }
  42%  { clip-path: polygon(0 48%,100% 44%,100% 64%,0 70%);   transform: translateX(20px);   opacity: 1; }
  49%  { clip-path: polygon(0 3%,100% 0,100% 6%,0 9%);        transform: translateX(-10px);  opacity: 1; }
  56%  { clip-path: polygon(0 77%,100% 73%,100% 93%,0 98%);   transform: translateX(16px);   opacity: 1; }
  63%  { clip-path: polygon(0 24%,100% 19%,100% 40%,0 46%);   transform: translateX(-24px);  opacity: 1; }
  70%  { clip-path: polygon(0 55%,100% 50%,100% 70%,0 76%);   transform: translateX(14px);   opacity: 1; }
  78%  { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);     opacity: 0; }
  100% { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);     opacity: 0; }
}

@keyframes hal-glitch-b {
  0%   { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);     opacity: 0; }
  9%   { clip-path: polygon(0 25%,100% 20%,100% 44%,0 50%);   transform: translateX(24px);  opacity: 1; }
  18%  { clip-path: polygon(0 55%,100% 50%,100% 74%,0 78%);   transform: translateX(-16px); opacity: 1; }
  27%  { clip-path: polygon(0 4%,100% 1%,100% 24%,0 28%);     transform: translateX(28px);  opacity: 1; }
  36%  { clip-path: polygon(0 82%,100% 77%,100% 97%,0 100%);  transform: translateX(-18px); opacity: 1; }
  45%  { clip-path: polygon(0 30%,100% 26%,100% 48%,0 54%);   transform: translateX(16px);  opacity: 1; }
  54%  { clip-path: polygon(0 10%,100% 6%,100% 28%,0 34%);    transform: translateX(-22px); opacity: 1; }
  63%  { clip-path: polygon(0 60%,100% 55%,100% 76%,0 82%);   transform: translateX(14px);  opacity: 1; }
  72%  { clip-path: polygon(0 1%,100% 0,100% 14%,0 18%);      transform: translateX(-28px); opacity: 1; }
  80%  { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);    opacity: 0; }
  100% { clip-path: polygon(0 0,100% 0,100% 0,0 0);           transform: translateX(0);    opacity: 0; }
}

/* Hover trigger — single glitch per hover, not continuous */
.hero-eye-wrap:hover .hero-eye {
  animation: hal-glitch-main 0.65s steps(1, end) forwards;
}
.hero-eye-wrap:hover .hero-eye-ghost--a {
  opacity: 1;
  mix-blend-mode: screen;
  filter: hue-rotate(175deg) saturate(6) brightness(2.5);
  animation: hal-glitch-a 0.65s steps(1, end) forwards;
}
.hero-eye-wrap:hover .hero-eye-ghost--b {
  opacity: 1;
  mix-blend-mode: screen;
  filter: hue-rotate(310deg) saturate(6) brightness(2.5);
  animation: hal-glitch-b 0.65s steps(1, end) forwards;
}

.hero-ring {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  border: 1px solid rgba(255,23,68,0.1);
  animation: ringRotate 20s linear infinite;
}
.hero-ring-2 {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  border: 1px solid rgba(255,23,68,0.05);
  animation: ringRotate 30s linear infinite reverse;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 20px var(--red-glow),
    0 0 60px rgba(255,23,68,0.15);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--red);
}

.hero-tagline-wrap {
  position: relative;
  height: 32px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-waveform {
  position: absolute;
  width: clamp(200px, 40vw, 400px);
  height: 32px;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.hero-waveform.done {
  opacity: 0;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}
.hero-tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(255,23,68,0.3), 0 4px 20px rgba(0,0,0,0.5);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255,23,68,0.4), 0 8px 30px rgba(0,0,0,0.5);
}
.hero-cta--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-left: 12px;
  box-shadow: none;
}
.hero-cta--secondary:hover {
  border-color: var(--text-dim);
  box-shadow: none;
}

.hero-claim {
  font-family: var(--sans);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 0 30px rgba(255,23,68,0.4), 0 0 60px rgba(255,23,68,0.15);
}
.hero-claim-almost {
  color: #ff1744;
  font-style: italic;
  font-weight: 400;
}

/* Origin info button — small (i) icon after HAL 9000 title */
.origin-info-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  vertical-align: middle;
  padding: 4px;
  margin-left: 4px;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}
.origin-info-btn:hover {
  opacity: 1;
  color: var(--accent);
}

/* Custom tooltips for origin story triggers */
.hero-eye-wrap::after {
  content: 'Click to read the origin story';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: rgba(0,0,0,0.9);
  color: #ccc;
  font-family: var(--body);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  border: 1px solid rgba(255,23,68,0.2);
}
.hero-eye-wrap:hover::after {
  opacity: 1;
}

/* Origin story modal */
.origin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.origin-modal.open {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  pointer-events: all;
  opacity: 1;
}
.origin-modal-content {
  max-width: 520px;
  width: 90%;
  background: linear-gradient(145deg, rgba(30,30,38,0.95), rgba(18,18,24,0.98));
  border: 1px solid rgba(255,23,68,0.15);
  border-radius: 16px;
  padding: 48px 40px 40px;
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 80px rgba(255,23,68,0.1), 0 20px 60px rgba(0,0,0,0.5);
}
.origin-modal.open .origin-modal-content {
  transform: scale(1) translateY(0);
}
.origin-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.origin-modal-close:hover {
  color: var(--text);
}
.origin-modal-eye {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,23,68,0.3);
  animation: originPulse 3s ease-in-out infinite;
}
.origin-modal-eye img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes originPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255,23,68,0.2); }
  50% { box-shadow: 0 0 50px rgba(255,23,68,0.4); }
}
.origin-modal-title {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.origin-modal-body {
  text-align: left;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 28px 24px;
  margin-top: 4px;
}
.origin-modal-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #2a2a2e;
  margin-bottom: 14px;
  font-style: italic;
}
.origin-modal-body em {
  color: #111;
  font-style: normal;
  font-weight: 700;
}
.origin-modal-tribute {
  color: #111 !important;
  font-style: normal !important;
  font-weight: 600;
  font-size: 1rem !important;
  text-align: center;
  margin-top: 20px !important;
  margin-bottom: 4px !important;
}
.origin-modal-author {
  text-align: center;
  font-style: normal !important;
  color: #666 !important;
  font-size: 0.82rem !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}
.origin-modal-author a {
  color: #cc1133;
  text-decoration: none;
  border-bottom: 1px solid rgba(204,17,51,0.3);
  transition: border-color 0.2s;
}
.origin-modal-author a:hover {
  border-bottom-color: #cc1133;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* ═══════════════════════════════════════════
   CAPABILITIES
═══════════════════════════════════════════ */
/* ── Section divider (reusable) ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), rgba(255,23,68,0.12), var(--border), transparent);
}

/* ── Parallax content wrapper ── */
[data-parallax-section] {
  will-change: transform;
}

/* ── Demo Video ─────────────────────────── */
.demo-video {
  padding: 100px 0 80px;
  position: relative;
}
.demo-video-wrap {
  max-width: 900px;
  margin: 40px auto 0;
}
.demo-video-player {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,23,68,0.15);
  box-shadow: 0 0 60px rgba(255,23,68,0.08), 0 20px 50px rgba(0,0,0,0.4);
}
.demo-video-player video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}
.demo-video-note {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}
.demo-video-heading {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.capabilities {
  padding: 140px 0 100px;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(14,14,20,0.4) 50%, var(--bg) 100%);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.cap-card {
  position: relative;
  padding: 32px 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.005) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cap-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-dim) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cap-card:hover {
  border-color: rgba(255,23,68,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cap-card:hover::before { opacity: 1; }

.cap-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
}
.cap-icon svg {
  width: 24px;
  height: 24px;
}

.cap-icon.red { background: var(--red-dim); color: var(--red); }
.cap-icon.green { background: var(--green-dim); color: var(--green); }
.cap-icon.cyan { background: var(--cyan-dim); color: var(--cyan); }

.cap-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
}

.cap-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
  position: relative;
}

/* ═══════════════════════════════════════════
   ARCHITECTURE
═══════════════════════════════════════════ */
.architecture {
  padding: 100px 0 120px;
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 60px;
  flex-wrap: wrap;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 155px;
  transition: all 0.3s;
}
.arch-node:hover {
  border-color: rgba(255,23,68,0.3);
  box-shadow: 0 0 30px rgba(255,23,68,0.05);
}

.arch-node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red-dim);
  color: var(--red);
}
.arch-node-icon svg { width: 26px; height: 26px; }

.arch-node-label {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.arch-node-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.arch-arrow {
  color: var(--red);
  font-size: 1.8rem;
  padding: 0 18px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════
   CO-WORK
═══════════════════════════════════════════ */
.cowork {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,10,14,0.6) 50%, var(--bg) 100%);
}

.cowork-strip {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}
.cowork-strip:last-child { border-bottom: none; }
.cowork-strip.reverse { flex-direction: row-reverse; }

.cowork-text { flex: 1; }
.cowork-visual {
  flex: 0 0 360px;
  height: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cowork-visual-inner {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 20px;
  line-height: 1.8;
}

.cowork-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cowork-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.cowork-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cowork-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--red-dim);
  color: var(--red);
}
.cowork-tag.green { background: var(--green-dim); color: var(--green); }
.cowork-tag.cyan { background: var(--cyan-dim); color: var(--cyan); }

/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat-number .counter-val { color: var(--red); }

.stat-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

.stats-attribution {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.stats-attribution a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.stats-attribution a:hover { color: var(--red); }

/* ═══════════════════════════════════════════
   INTEGRATION
═══════════════════════════════════════════ */
.integration {
  padding: 120px 0 80px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.terminal {
  background: #0c0c10;
  border: 1px solid #222230;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #16161e;
  border-bottom: 1px solid #222230;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #28ca42; }
.terminal-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 12px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--green);
  white-space: pre-wrap;
}
.terminal-body .comment { color: var(--text-muted); }
.terminal-body .prompt { color: var(--text-dim); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .flag { color: var(--cyan); }
.terminal-body .url { color: var(--amber); }

/* ═══════════════════════════════════════════
   GUIDE
═══════════════════════════════════════════ */
.guide {
  padding: 100px 0 120px;
}

.guide-steps {
  display: grid;
  gap: 24px;
  margin-top: 60px;
}

.guide-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}
.guide-step:hover {
  border-color: rgba(255,23,68,0.15);
}

.guide-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--red-dim);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-step-content { flex: 1; }
.guide-step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.guide-step-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.guide-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: #0c0c10;
  border: 1px solid #222230;
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--green);
  line-height: 1.8;
  overflow-x: auto;
}
.guide-code .dim { color: var(--text-muted); }

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 8px;
}
.guide-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.guide-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(30,30,40,0.5);
  color: var(--text-dim);
}
.guide-table td:first-child {
  font-family: var(--mono);
  color: var(--text);
  font-weight: 500;
}
.guide-table .required { color: var(--red); font-weight: 600; }
.guide-table .optional { color: var(--text-muted); }

/* ── Guide platform panels ── */
.guide-panel {
  display: none;
  animation: tutFadeIn 0.5s ease;
}
.guide-panel.active { display: block; }

/* ═══════════════════════════════════════════
   TUTORIAL
═══════════════════════════════════════════ */
.tutorial {
  padding: 100px 0 120px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
}

/* ── Scenario Tabs ── */
.tut-tabs {
  display: flex;
  gap: 4px;
  margin: 50px 0 0;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  overflow-x: auto;
}
.tut-tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tut-tab svg { width: 20px; height: 20px; }
.tut-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.tut-tab.active {
  background: var(--red-dim);
  color: var(--red);
  box-shadow: 0 0 20px rgba(255,23,68,0.08);
}

.demo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 4px;
}
.tut-tab.active .demo-count {
  background: rgba(255,23,68,0.15);
  color: var(--red);
}

.demo-indicator {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: opacity 0.3s;
}

/* ── Scenario Panels ── */
.tut-panels { margin-top: 32px; }
.tut-panel {
  display: none;
  animation: tutFadeIn 0.5s ease;
}
.tut-panel.active { display: block; }

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

/* ── Content Frame ── */
.tut-content-frame {
  margin-top: 24px;
  padding: 32px;
  border-radius: 16px;
  background: #16161e;
  border: 1px solid #222230;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ── Conversation Flow ── */
.tut-convo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.tut-msg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tut-msg.from-hal {
  flex-direction: row-reverse;
  transform: translateX(20px);
}
.tut-msg.visible {
  opacity: 1;
  transform: translateX(0);
}

.tut-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--mono);
  font-weight: 700;
  border: 1px solid var(--border);
}
.tut-avatar.user { background: var(--cyan-dim); color: var(--cyan); }
.tut-avatar.hal { background: var(--red-dim); color: var(--red); }

.tut-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 480px;
  position: relative;
}
.tut-msg:not(.from-hal) .tut-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.tut-msg.from-hal .tut-bubble {
  background: linear-gradient(135deg, rgba(255,23,68,0.06), rgba(255,23,68,0.02));
  border: 1px solid rgba(255,23,68,0.12);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.tut-bubble-label {
  display: block;
  font-size: 0.65rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  opacity: 0.5;
}
.tut-bubble code {
  font-family: var(--mono);
  font-size: 0.78rem;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}

/* ── Tool Call Indicator ── */
.tut-tool-call {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 4px 0 4px 50px;
  border-radius: 8px;
  background: rgba(0,188,255,0.04);
  border: 1px dashed rgba(0,188,255,0.15);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
}
.tut-tool-call.visible {
  opacity: 1;
  transform: scale(1);
}
.tut-tool-call svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.tut-tool-result {
  color: var(--text-dim);
  margin-left: 4px;
}

/* ── Choice Sheet Demo ── */
.tut-choice-sheet {
  margin: 8px 0 8px 50px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 320px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.tut-choice-sheet.visible {
  opacity: 1;
  transform: translateY(0);
}
.tut-choice-sheet h5 {
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 10px;
}
.tut-choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.tut-choice-item:hover {
  background: var(--red-dim);
  border-color: rgba(255,23,68,0.12);
  color: var(--text);
}
.tut-choice-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Flow Diagram ── */
.tut-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 40px auto 30px;
  max-width: 700px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.tut-flow-node {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  min-width: 85px;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tut-flow-node.visible { opacity: 1; transform: translateY(0); }
.tut-flow-node small {
  display: block;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.tut-flow-node.accent {
  border-color: rgba(255,23,68,0.2);
  box-shadow: 0 0 20px rgba(255,23,68,0.05);
}
.tut-flow-node.accent-cyan {
  border-color: rgba(0,188,255,0.2);
  box-shadow: 0 0 20px rgba(0,188,255,0.05);
}
.tut-flow-node.accent-green {
  border-color: rgba(0,230,118,0.2);
  box-shadow: 0 0 20px rgba(0,230,118,0.05);
}

.tut-flow-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0 8px;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}
.tut-flow-arrow.visible { opacity: 1; }

/* ── Use Case Cards ── */
.tut-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.tut-usecase {
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
}
.tut-usecase:hover {
  border-color: rgba(255,23,68,0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.tut-usecase h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tut-usecase h5 .tut-uc-icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}
.tut-usecase p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.tut-usecase .tut-uc-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}
.tut-usecase.open .tut-uc-expand {
  max-height: 400px;
  margin-top: 14px;
}
.tut-uc-detail {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(30,30,40,0.5);
}
.tut-uc-detail .tut-uc-cmd {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--green);
  margin-bottom: 8px;
  display: block;
}
.tut-uc-detail .tut-uc-result {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.tut-usecase .tut-uc-chevron {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.tut-usecase.open .tut-uc-chevron {
  transform: rotate(180deg);
}

/* ── Scenario Subtitle ── */
.tut-scenario-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.tut-scenario-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

/* ── Replay Button ── */
.tut-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}
.tut-replay:hover {
  border-color: rgba(255,23,68,0.2);
  color: var(--red);
}
.tut-replay svg { width: 14px; height: 14px; }

/* ── Memory Timeline ── */
.tut-timeline {
  position: relative;
  padding-left: 30px;
  margin: 30px 0;
  max-width: 600px;
}
.tut-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--cyan), var(--green));
  border-radius: 1px;
}
.tut-tl-item {
  position: relative;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.5s ease;
}
.tut-tl-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.tut-tl-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--bg);
}
.tut-tl-item:nth-child(2)::before { border-color: var(--cyan); }
.tut-tl-item:nth-child(3)::before { border-color: var(--green); }
.tut-tl-item:nth-child(4)::before { border-color: var(--amber); }
.tut-tl-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.tut-tl-label.fact { color: var(--red); }
.tut-tl-label.decision { color: var(--cyan); }
.tut-tl-label.session { color: var(--green); }
.tut-tl-label.pref { color: var(--amber); }
.tut-tl-content { color: var(--text-dim); line-height: 1.5; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

/* ── Scroll-to-top FAB ── */
.fab-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.fab-top svg {
  width: 20px;
  height: 20px;
}
.fab-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-top:hover {
  border-color: rgba(255, 23, 68, 0.3);
  color: var(--red);
  box-shadow: 0 4px 24px rgba(255, 23, 68, 0.15), 0 4px 20px rgba(0,0,0,0.4);
}
.fab-top:active {
  transform: translateY(0) scale(0.92);
}


/* ── CTA install block ── */
.cta-install {
  position: relative;
  padding: 18px 24px;
  border-radius: 12px;
  background: #0c0c10;
  border: 1px solid #222230;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: left;
  overflow: hidden;
}
.cta-install:hover {
  border-color: rgba(255,23,68,0.3);
  box-shadow: 0 0 30px rgba(255,23,68,0.08);
}
.cta-install code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green);
  line-height: 1.8;
  word-break: break-all;
}
.cta-copy-label {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s;
}
.cta-install:hover .cta-copy-label { color: var(--red); }
.cta-copy-label.copied { color: var(--green) !important; }

/* ── Demo terminal typewriter cursor ── */
.demo-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--green);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   PRO LICENSE MODAL
═══════════════════════════════════════════ */
.pro-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.pro-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.pro-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #12121a;
  border: 1px solid #222230;
  border-radius: 20px;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,23,68,0.06);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pro-modal-overlay.open .pro-modal {
  transform: translateY(0) scale(1);
}

.pro-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.pro-modal-close:hover {
  background: rgba(255,23,68,0.1);
  color: var(--red);
}
.pro-modal-close svg { width: 16px; height: 16px; }

.pro-modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.pro-modal-eye {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(255,23,68,0.4));
  margin-bottom: 16px;
}
.pro-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.pro-modal-header p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.pro-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pro-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pro-field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pro-field input,
.pro-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #222230;
  background: #0a0a0e;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.pro-field input::placeholder,
.pro-field textarea::placeholder {
  color: var(--text-muted);
}
.pro-field input:focus,
.pro-field textarea:focus {
  border-color: rgba(255,23,68,0.4);
  box-shadow: 0 0 0 3px rgba(255,23,68,0.08);
}

.pro-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  box-shadow: 0 0 20px rgba(255,23,68,0.2);
  margin-top: 4px;
}
.pro-submit:hover {
  background: #e01540;
  box-shadow: 0 0 30px rgba(255,23,68,0.3);
  transform: translateY(-1px);
}
.pro-submit:active {
  transform: translateY(0);
}

.pro-modal-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .pro-modal {
    padding: 32px 24px 28px;
    border-radius: 16px;
  }
}

/* ═══════════════════════════════════════════
   IMAGE LIGHTBOX
═══════════════════════════════════════════ */
.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s;
}
.zoomable:hover {
  transform: scale(1.02);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.open img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,23,68,0.15);
  color: var(--red);
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   SECTION MARQUEE TICKER
═══════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  background: #000;
  position: relative;
}
/* Override default reveal for marquees — just fade, no translate/scale/blur */
.marquee.reveal {
  transform: none;
  filter: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.marquee.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #000, transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, #000, transparent); }

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
  animation-play-state: paused;
}
.marquee.visible .marquee-track {
  animation-play-state: running;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0 28px;
}
.marquee-track span::before {
  content: '◆';
  margin-right: 28px;
  font-size: 0.55rem;
  vertical-align: middle;
}

/* Color accents for diamonds */
.marquee.red .marquee-track span::before { color: var(--red); }
.marquee.cyan .marquee-track span::before { color: var(--cyan); }
.marquee.green .marquee-track span::before { color: var(--green); }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 580px) {
  .marquee-track span { font-size: 0.55rem; padding: 0 16px; letter-spacing: 0.1em; }
  .marquee-track span::before { margin-right: 16px; }
}

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #030305 100%);
}

.footer-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.footer-built {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-built a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.footer-built a:hover { color: var(--red); }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 30px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--red); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .cowork-strip, .cowork-strip.reverse { flex-direction: column; gap: 24px; }
  .cowork-visual { flex: none; width: 100%; }
  .arch-flow { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .arch-node { padding: 20px 22px; min-width: 120px; }
  .arch-node-icon { width: 40px; height: 40px; }
  .arch-node-icon svg { width: 22px; height: 22px; }
  .arch-node-label { font-size: 0.78rem; }
  .arch-arrow { padding: 0 8px; font-size: 1.2rem; }
  .tut-flow { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .tut-flow-node { min-width: 70px; padding: 8px 10px; font-size: 0.68rem; }
  .tut-flow-arrow { padding: 0 4px; font-size: 0.9rem; }
  .tut-content-frame { padding: 24px 20px; }
  .tut-bubble { max-width: 380px; }
  section { padding-left: 0; padding-right: 0; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤580px)
═══════════════════════════════════════════ */
@media (max-width: 580px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-subtitle { font-size: 0.95rem; padding: 0 8px; }
  .hero-tagline { font-size: 0.72rem; }
  .hero-cta { font-size: 0.72rem; padding: 12px 20px; }
  .hero-eye-wrap { width: 120px; height: 120px; margin-bottom: 28px; }

  /* Capabilities */
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { padding: 24px 20px; }

  /* Architecture */
  .arch-flow { flex-direction: column; gap: 6px; }
  .arch-node { min-width: 100%; padding: 16px 20px; flex-direction: row; gap: 12px; }
  .arch-node-label { font-size: 0.8rem; }
  .arch-node-sub { font-size: 0.72rem; }
  .arch-arrow { transform: rotate(90deg); padding: 4px 0; font-size: 1rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 2rem; }

  /* Co-Work */
  .cowork-strip { padding: 32px 0; }
  .cowork-text h3 { font-size: 1.15rem; }
  .cowork-text p { font-size: 0.88rem; }
  .cowork-tags { gap: 6px; }

  /* Guide */
  .guide-step { flex-direction: column; gap: 12px; padding: 20px 18px; }
  .guide-code { font-size: 0.7rem; padding: 10px 12px; }
  .guide-table td, .guide-table th { padding: 6px 8px; font-size: 0.75rem; }

  /* Tutorial */
  .tut-tabs { flex-wrap: wrap; gap: 2px; }
  .tut-tab { min-width: 0; flex: 1 1 calc(33% - 4px); font-size: 0.65rem; padding: 8px 6px; gap: 4px; }
  .tut-tab svg { width: 16px; height: 16px; }
  .tut-content-frame { padding: 16px 14px; }
  .tut-scenario-title { font-size: 0.95rem; }
  .tut-scenario-desc { font-size: 0.78rem; }
  .tut-flow { flex-direction: column; gap: 4px; }
  .tut-flow-node { min-width: 100%; }
  .tut-flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .tut-msg { gap: 10px; }
  .tut-avatar { width: 30px; height: 30px; font-size: 0.6rem; }
  .tut-bubble { padding: 10px 14px; font-size: 0.82rem; max-width: 100%; }
  .tut-tool-call { margin-left: 0; font-size: 0.65rem; padding: 8px 10px; }
  .tut-choice-sheet { margin-left: 0; max-width: 100%; }
  .tut-usecases { grid-template-columns: 1fr; }
  .tut-usecase { padding: 16px 18px; }
  .tut-timeline { padding-left: 24px; }

  /* Demo terminal */
  .demo-count { font-size: 0.55rem; min-width: 16px; height: 16px; padding: 0 4px; }
  .demo-indicator { font-size: 0.58rem; padding: 2px 6px; }

  /* Pricing */
  .pro-submit { font-size: 0.75rem; padding: 12px; }

  /* Section spacing */
  .capabilities { padding: 80px 0 60px; }
  .architecture { padding: 60px 0 80px; }
  .cowork { padding: 60px 0 40px; }
  .stats { padding: 50px 0; }
  .tutorial { padding: 60px 0 80px; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-desc { font-size: 0.9rem; }

  /* FAB */
  .fab-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
  .fab-top svg { width: 16px; height: 16px; }

  /* Lightbox */
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
}
