/* ============================================================
   PalmX — styles.css
   Fully responsive: 320px → 4K
   ============================================================ */

:root {
  --bg: #050805;
  --bg-2: #0a100c;
  --bg-3: #0e1410;
  --ink: #e8efe9;
  --ink-dim: #8a9890;
  --ink-faint: #4a554d;
  --line: rgba(232, 239, 233, 0.08);
  --line-strong: rgba(232, 239, 233, 0.16);
  --palm-bright: #2ee685;
  --palm-glow: #6ee7a8;
  --accent: #d4ff5a;
  --danger: #ff6b6b;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 12vw, 160px);

  --h1-size: clamp(44px, 9vw, 140px);
  --h2-size: clamp(36px, 6vw, 80px);
  --h3-size: clamp(28px, 4vw, 48px);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

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

::selection { background: var(--palm-bright); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- OVERLAYS ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* ============================================================
   BOOT SEQUENCE (fades after 1.6s)
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-logo {
  width: clamp(80px, 14vw, 120px);
  height: clamp(80px, 14vw, 120px);
  animation: bootFlicker 1.6s steps(8) forwards;
  filter: drop-shadow(0 0 40px rgba(46, 230, 133, 0.5));
}

.boot-logo img { width: 100%; height: 100%; object-fit: contain; }

@keyframes bootFlicker {
  0%, 100% { opacity: 1; }
  10%, 30%, 50% { opacity: 0.4; transform: translateX(2px); }
  20%, 40%, 60% { opacity: 1; transform: translateX(-1px); }
  70% { opacity: 1; transform: translateX(0); }
}

.boot-bar {
  width: clamp(180px, 25vw, 280px);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.boot-bar-fill {
  width: 0;
  height: 100%;
  background: var(--palm-bright);
  box-shadow: 0 0 12px var(--palm-bright);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.boot-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.3em;
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ============================================================
   SCAN RAIL (right-side scroll indicator)
   ============================================================ */
.scan-rail {
  position: fixed;
  top: 0;
  right: 12px;
  width: 1px;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
}

.scan-rail-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 133, 0.15) 20%, rgba(46, 230, 133, 0.15) 80%, transparent);
}

.scan-rail-bead {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 24px;
  background: linear-gradient(180deg, transparent, var(--palm-bright), transparent);
  box-shadow: 0 0 16px var(--palm-bright);
  transition: top 0.1s linear;
}

.scan-rail-bead::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--palm-bright);
  box-shadow: 0 0 8px var(--palm-bright);
}

@media (max-width: 640px) {
  .scan-rail { display: none; }
}

/* ============================================================
   CURSOR
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  button, a { cursor: none; }
}

.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transition: transform 0.15s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--palm-bright);
  box-shadow: 0 0 12px var(--palm-bright);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(46, 230, 133, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(46, 230, 133, 0.8);
  background: rgba(46, 230, 133, 0.05);
}

.cursor-ring.click {
  width: 28px;
  height: 28px;
  background: rgba(46, 230, 133, 0.15);
}

.aurora {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 133, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(40px);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .aurora { display: block; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px var(--pad-x);
  padding-top: calc(18px + var(--safe-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 8, 5, 0.5);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: clamp(32px, 3.5vw, 40px);
  height: clamp(32px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(46, 230, 133, 0.4));
  transition: filter 0.4s, transform 0.4s;
}

.logo:hover .logo-mark img {
  filter: drop-shadow(0 0 16px rgba(46, 230, 133, 0.7));
  transform: rotate(3deg) scale(1.06);
}

.logo em { font-style: italic; color: var(--palm-bright); font-weight: 300; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--ink-dim);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--palm-bright);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta:hover {
  background: var(--palm-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46, 230, 133, 0.3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(110px, 14vh, 160px) var(--pad-x) clamp(80px, 12vh, 120px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 133, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 133, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 11px);
  color: var(--ink-dim);
  margin-bottom: clamp(28px, 5vw, 48px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.meta-sep { color: var(--ink-faint); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--palm-bright);
  box-shadow: 0 0 12px var(--palm-bright);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

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

.hero-title {
  font-family: var(--serif);
  font-size: var(--h1-size);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 3vw, 32px);
}

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

.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.45s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.6s; }

.hero-title em {
  font-style: italic;
  color: var(--palm-bright);
  font-weight: 300;
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--palm-bright), transparent);
  opacity: 0.4;
}

.hero-sub {
  max-width: 540px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-dim);
  line-height: 1.55;
  margin-bottom: clamp(32px, 5vw, 56px);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s ease 1.1s forwards;
}

/* ============================================================
   BUTTONS (with magnetic class)
   ============================================================ */
.btn {
  padding: clamp(13px, 1.5vw, 16px) clamp(20px, 2.5vw, 28px);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, background 0.4s, color 0.4s, border-color 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.btn-primary {
  background: var(--palm-bright);
  color: var(--bg);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--palm-glow);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(46, 230, 133, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--palm-bright);
  color: var(--palm-bright);
}

/* ============================================================
   HERO LOGO + HALO
   ============================================================ */
.hero-logo {
  position: relative;
  aspect-ratio: 1;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  justify-self: center;
  opacity: 0;
  animation: logoIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-halo {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  z-index: 2;
  pointer-events: none;
}

.halo-ticks { animation: haloSpinSlow 60s linear infinite; transform-origin: 300px 300px; }
.halo-beams { animation: haloSpin 28s linear infinite; transform-origin: 300px 300px; }
.beam-set { animation: beamPulse 4s ease-in-out infinite; transform-origin: 0 0; }
.halo-shards { animation: haloSpinSlow 40s linear infinite reverse; transform-origin: 300px 300px; }
.shard { animation: shardPulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.shard.s2 { animation-delay: 0.5s; }
.shard.s3 { animation-delay: 1s; }
.shard.s4 { animation-delay: 1.5s; }

@keyframes haloSpin { to { transform: translate(300px, 300px) rotate(360deg); } }
@keyframes haloSpinSlow { to { transform: rotate(360deg); } }
@keyframes beamPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes shardPulse {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(0.6) rotate(45deg); }
}

.hero-logo-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  animation: floatLogo 7s ease-in-out infinite;
  will-change: transform;
}

.hero-logo-inner img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(46, 230, 133, 0.5)) drop-shadow(0 0 100px rgba(46, 230, 133, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--palm-bright);
  box-shadow: 0 0 10px var(--palm-bright);
  margin: -3px 0 0 -3px;
}

.orbit-dot.d1 { animation: orbit1 18s linear infinite; }
.orbit-dot.d2 { animation: orbit2 26s linear infinite; opacity: 0.7; }
.orbit-dot.d3 { animation: orbit3 14s linear infinite reverse; opacity: 0.5; }

@keyframes orbit1 {
  from { transform: rotate(0deg) translateX(46%) rotate(0deg); }
  to { transform: rotate(360deg) translateX(46%) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: rotate(120deg) translateX(38%) rotate(-120deg); }
  to { transform: rotate(480deg) translateX(38%) rotate(-480deg); }
}
@keyframes orbit3 {
  from { transform: rotate(240deg) translateX(32%) rotate(-240deg); }
  to { transform: rotate(600deg) translateX(32%) rotate(-600deg); }
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(46, 230, 133, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* ============================================================
   THREAT PULSE — live ops widget
   ============================================================ */
.threat-pulse {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 6;
  width: clamp(220px, 22vw, 280px);
  padding: 14px 16px;
  background: rgba(10, 16, 12, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(46, 230, 133, 0.25);
  border-radius: 12px;
  font-family: var(--mono);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 230, 133, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  animation: tpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
  overflow: hidden;
}

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

.threat-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 133, 0.08), transparent);
  animation: tpSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tpSweep {
  0%, 100% { left: -60%; }
  50% { left: 100%; }
}

.tp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(46, 230, 133, 0.1);
  margin-bottom: 10px;
}

.tp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--palm-bright);
  box-shadow: 0 0 8px var(--palm-bright);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

.tp-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--palm-bright);
  font-weight: 500;
}

.tp-time {
  margin-left: auto;
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

.tp-stream {
  min-height: 38px;
  position: relative;
  overflow: hidden;
}

.tp-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 0.3s, transform 0.3s;
}

.tp-line-1 {
  font-size: 11px;
  margin-bottom: 4px;
}

.tp-key {
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  font-size: 10px;
}

.tp-val {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.tp-line-2 {
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.tp-status { color: var(--ink-faint); }

/* When swapping content, fade old out and new in */
.tp-stream.swapping .tp-line {
  opacity: 0;
  transform: translateY(-4px);
}

.tp-bars {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.tp-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--palm-bright), rgba(46, 230, 133, 0.3));
  border-radius: 1px;
  height: 20%;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 2px;
}

.hero-strip {
  margin-top: clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.strip-item { display: flex; flex-direction: column; gap: 6px; }

.strip-num {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.strip-num em { font-style: italic; color: var(--palm-bright); }

.strip-label {
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 10px);
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px) 0;
  position: relative;
  z-index: 2;
}

.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  gap: clamp(24px, 3vw, 40px);
  white-space: nowrap;
  animation: marqueeScroll 50s linear infinite;
  align-items: center;
  width: max-content;
}

.marquee-item {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-dim);
  letter-spacing: -0.01em;
}

.marquee-dot {
  color: var(--palm-bright);
  font-size: clamp(8px, 1vw, 10px);
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-y) var(--pad-x);
  position: relative;
  z-index: 2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(48px, 8vw, 80px);
  gap: clamp(24px, 4vw, 48px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 11px);
  color: var(--palm-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--palm-bright);
}

.section-title {
  font-family: var(--serif);
  font-size: var(--h2-size);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.section-title em {
  font-style: italic;
  color: var(--palm-bright);
  font-weight: 300;
}

.section-meta {
  font-size: clamp(13px, 1.3vw, 14px);
  color: var(--ink-dim);
  max-width: 360px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ============================================================
   PILLARS (with 3D tilt)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  perspective: 1200px;
}

.pillar {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
  min-height: clamp(420px, 60vw, 540px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
}

.tilt-card .pillar-inner {
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(46, 230, 133, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.pillar:hover::before { opacity: 1; }
.pillar:hover { background: var(--bg-2); }

.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  transform: translateZ(10px);
}

.pillar-icon {
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  margin-top: clamp(20px, 3vw, 24px);
  margin-bottom: clamp(24px, 4vw, 32px);
  transform: translateZ(30px);
}

.pillar-icon svg { width: 100%; height: 100%; color: var(--palm-bright); }

.pillar-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.1;
  transform: translateZ(20px);
}

.pillar-title em { font-style: italic; color: var(--palm-bright); }

.pillar-desc {
  color: var(--ink-dim);
  line-height: 1.6;
  font-size: clamp(14px, 1.3vw, 15px);
  margin-bottom: clamp(24px, 4vw, 32px);
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateZ(10px);
}

.pillar-list li {
  font-size: clamp(12px, 1.2vw, 13px);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
}

.pillar-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--palm-bright);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   SHOWCASE
   ============================================================ */
.showcase-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showcase {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}

.showcase::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46, 230, 133, 0.3) 0%, transparent 50%, rgba(46, 230, 133, 0.1) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.showcase-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.showcase-tab {
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  text-align: left;
  color: var(--ink-dim);
  transition: color 0.4s, background 0.4s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.showcase-tab:hover { color: var(--ink); background: rgba(255,255,255,0.02); }
.showcase-tab.active { color: var(--ink); background: rgba(46, 230, 133, 0.04); }

.tab-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}

.showcase-tab.active .tab-num { color: var(--palm-bright); }

.tab-label {
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 19px);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 33.333%;
  background: var(--palm-bright);
  box-shadow: 0 0 12px var(--palm-bright);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(380px, 50vw, 560px);
}

.stage-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(ellipse at center, rgba(46, 230, 133, 0.04) 0%, transparent 70%);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.stage-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 133, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 133, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.visual {
  position: absolute;
  width: 90%;
  height: 90%;
  max-width: 480px;
  opacity: 0;
  transform: scale(0.9) rotate(-4deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.visual.active { opacity: 1; transform: scale(1) rotate(0deg); }

.visual-pen .pen-ring { animation: ringRotate 25s linear infinite; transform-origin: 200px 200px; }
.visual-pen.active .vector { stroke-dasharray: 30; stroke-dashoffset: 30; animation: vectorIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.visual-pen.active .vector.v1 { animation-delay: 0.2s; }
.visual-pen.active .vector.v2 { animation-delay: 0.4s; }
.visual-pen.active .vector.v3 { animation-delay: 0.6s; }
.visual-pen.active .vector.v4 { animation-delay: 0.8s; }
.visual-pen.active .vector.v5 { animation-delay: 1.0s; }
.visual-pen.active .impact { opacity: 0; animation: impactBlip 2.5s ease-in-out infinite; }
.visual-pen.active .impact.i1 { animation-delay: 0.5s; }
.visual-pen.active .impact.i2 { animation-delay: 1s; }
.visual-pen.active .impact.i3 { animation-delay: 1.5s; }

@keyframes ringRotate { to { transform: rotate(360deg); } }
@keyframes vectorIn { to { stroke-dashoffset: 0; } }
@keyframes impactBlip {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  20%, 50% { opacity: 1; transform: scale(1.4); }
}

.visual-ai.active .pulse-edge { stroke-dasharray: 8 8; animation: edgePulse 1.5s linear infinite; }
.visual-ai.active .pulse-edge.p2 { animation-delay: 0.3s; }
.visual-ai.active .pulse-edge.p3 { animation-delay: 0.6s; }
.visual-ai.active .node-active {
  animation: nodePulse 2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.visual-ai.active .node-active:nth-of-type(2) { animation-delay: 0.4s; }
.visual-ai.active .node-active:nth-of-type(3) { animation-delay: 0.8s; }
.visual-ai.active .node-active:nth-of-type(4) { animation-delay: 1.2s; }

@keyframes edgePulse { to { stroke-dashoffset: -16; } }
@keyframes nodePulse {
  0%, 100% { filter: drop-shadow(0 0 0px #2ee685); }
  50% { filter: drop-shadow(0 0 12px #2ee685); }
}

.visual-sw.active .module {
  animation: moduleGlow 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.visual-sw.active .module.m1 { animation-delay: 0s; }
.visual-sw.active .module.m2 { animation-delay: 0.5s; }
.visual-sw.active .module.m3 { animation-delay: 1s; }
.visual-sw.active .module.m4 { animation-delay: 1.5s; }
.visual-sw.active .module.m5 { animation-delay: 2s; }
.visual-sw.active .sw-cursor { animation: cursorPath 8s linear infinite; }

@keyframes moduleGlow {
  0%, 100% { fill: rgba(46, 230, 133, 0.05); }
  50% { fill: rgba(46, 230, 133, 0.2); }
}

@keyframes cursorPath {
  0%   { transform: translate(165px, 140px); }
  20%  { transform: translate(235px, 140px); }
  40%  { transform: translate(200px, 200px); }
  60%  { transform: translate(165px, 260px); }
  80%  { transform: translate(235px, 260px); }
  100% { transform: translate(165px, 140px); }
}

.stage-info {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.info-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--palm-bright);
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid rgba(46, 230, 133, 0.3);
  border-radius: 4px;
  background: rgba(46, 230, 133, 0.05);
}

.info-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.info-title {
  font-family: var(--serif);
  font-size: var(--h3-size);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: clamp(16px, 2vw, 24px);
  min-height: 2.2em;
}

.info-title em { font-style: italic; color: var(--palm-bright); }

.info-body {
  color: var(--ink-dim);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.6;
  margin-bottom: clamp(28px, 4vw, 40px);
  max-width: 480px;
  min-height: 4.8em;
}

.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 32px);
}

.info-stat-val {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--palm-bright);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.info-stat-label {
  font-family: var(--mono);
  font-size: clamp(9px, 1vw, 10px);
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.info-cycle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cycle-bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
}

.cycle-fill {
  height: 100%;
  width: 0;
  background: var(--palm-bright);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--palm-bright);
}

.cycle-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.info-fade { animation: infoFade 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes infoFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TERMINAL
   ============================================================ */
.terminal-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terminal-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.terminal {
  background: #0a0d0b;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 80px rgba(46, 230, 133, 0.06);
  position: relative;
}

.terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(46, 230, 133, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }

.term-name {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 11px);
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  padding: clamp(18px, 2.5vw, 28px);
  font-family: var(--mono);
  font-size: clamp(11px, 1.1vw, 13px);
  line-height: 1.8;
  min-height: clamp(320px, 45vw, 420px);
  overflow-x: auto;
}

.term-line { display: block; }
.term-prompt { color: var(--palm-bright); }
.term-cmd { color: var(--ink); }
.term-comment { color: var(--ink-faint); }
.term-out { color: var(--ink-dim); }
.term-ok { color: var(--palm-bright); }
.term-warn { color: var(--accent); }
.term-crit { color: var(--danger); }
.term-info { color: #6ee7a8; }

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--palm-bright);
  vertical-align: middle;
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

.terminal-heading {
  font-family: var(--serif);
  font-size: var(--h3-size);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.terminal-heading em { font-style: italic; color: var(--palm-bright); }

.terminal-lead {
  color: var(--ink-dim);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  margin-bottom: clamp(24px, 4vw, 32px);
  max-width: 480px;
}

.feature-list {
  display: grid;
  gap: clamp(16px, 2vw, 20px);
}

.feature-list li {
  display: flex;
  gap: 16px;
  padding-bottom: clamp(16px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
}

.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(46, 230, 133, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--palm-bright);
}

.feature-text strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: clamp(14px, 1.4vw, 15px);
}

.feature-text span {
  color: var(--ink-dim);
  font-size: clamp(12px, 1.3vw, 13px);
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric {
  background: var(--bg);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  transition: background 0.3s;
}

.metric:hover { background: var(--bg-2); }

.metric-val {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--palm-bright);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 11px);
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  padding: clamp(100px, 16vw, 180px) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.cta-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 60vw, 700px);
  height: clamp(300px, 60vw, 700px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.cta-bg-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: ctaRotate 60s linear infinite;
  filter: drop-shadow(0 0 40px rgba(46, 230, 133, 0.4));
}

@keyframes ctaRotate { to { transform: rotate(360deg); } }

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(400px, 80vw, 800px);
  height: clamp(400px, 80vw, 800px);
  background: radial-gradient(circle, rgba(46, 230, 133, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 104px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: clamp(20px, 3vw, 32px);
  position: relative;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.cta-title em { font-style: italic; color: var(--palm-bright); }

.cta-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  line-height: 1.55;
  font-weight: 300;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER (with logo shimmer)
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 60px) var(--pad-x) clamp(28px, 4vw, 40px);
  padding-bottom: calc(clamp(28px, 4vw, 40px) + var(--safe-bottom));
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: clamp(40px, 6vw, 60px);
}

.footer-brand { max-width: 340px; }

.footer-brand p {
  color: var(--ink-dim);
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.6;
  margin-top: 16px;
}

.logo-mark-shimmer {
  position: relative;
}

.logo-mark-shimmer::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(120deg, transparent 30%, rgba(46, 230, 133, 0.4) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 4px;
}

@keyframes shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-weight: 400;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--ink-dim);
  font-size: clamp(13px, 1.3vw, 14px);
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--palm-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 11px);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(5, 8, 5, 0.96);
    backdrop-filter: blur(20px);
    z-index: 99;
    gap: 32px;
    padding-top: var(--safe-top);
  }

  .nav-links.open a { font-size: 24px; font-family: var(--serif); }

  .hero-inner { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 60px); }
  .hero-logo { max-width: 380px; margin: 0 auto; order: -1; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px); }

  .threat-pulse {
    position: static;
    width: 100%;
    max-width: 380px;
    margin: 24px auto 0;
    order: 0;
  }

  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: auto; }

  .showcase-stage { grid-template-columns: 1fr; }
  .stage-visual { border-right: none; border-bottom: 1px solid var(--line); min-height: 340px; }

  .terminal-wrap { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root {
    --section-y: 72px;
    --pad-x: 20px;
  }

  .nav { padding-top: calc(14px + var(--safe-top)); padding-bottom: 14px; }
  .hero { min-height: 100svh; padding-top: 110px; padding-bottom: 60px; }
  .hero-meta { font-size: 9px; gap: 8px; }
  .hero-logo { max-width: 280px; }
  .hero-strip { grid-template-columns: 1fr 1fr; gap: 20px 16px; }

  .marquee-item { font-size: 22px; }

  .showcase-tabs { grid-template-columns: 1fr; }
  .tab-indicator { width: 100%; height: 2px; transform: translateY(0); }
  .stage-visual { min-height: 280px; padding: 20px; }
  .info-title { min-height: auto; }
  .info-body { min-height: auto; }
  .info-stats { grid-template-columns: 1fr; gap: 12px; }
  .info-cycle { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cycle-bar { width: 100%; }

  .feature-list li { flex-direction: column; gap: 10px; }
  .metrics { grid-template-columns: 1fr 1fr; }

  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .particle-canvas { opacity: 0.4; }
}

@media (max-width: 380px) {
  :root { --pad-x: 16px; }
  .hero-title { font-size: 42px; line-height: 0.95; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .strip-num { font-size: 18px; }
}

@media (min-width: 1920px) {
  :root {
    --pad-x: clamp(64px, 8vw, 160px);
    --section-y: clamp(160px, 14vw, 220px);
  }
  body { font-size: 17px; }
  .hero-inner { max-width: 1800px; margin: 0 auto; }
}

@media (min-width: 2560px) {
  body { font-size: 18px; }
  .hero-inner, .section-header, .pillars, .showcase, .terminal-wrap, .metrics, .footer-grid {
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .hero { padding-top: 90px; padding-bottom: 40px; min-height: auto; }
  .hero-logo { max-width: 240px; }
}
