/* ═══════════════════════════════════════════
   V4 — OFFICIAL LP
   Hero from V2 + interactive grid CTA section
   with traveling pulses and mouse proximity.
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #07090D;
  --surface: #0B0E14;
  --card: #10141C;
  --surface-soft: rgba(255,255,255,0.035);
  --border: #181E2A;
  --border-mid: #1E2636;
  --border-strong: rgba(255,255,255,0.14);
  --blue: #2E73E0;
  --blue-light: #4F8FF5;
  --blue-dark: #1A5CC4;
  --blue-dim: rgba(46,115,224,0.07);
  --blue-mid: rgba(46,115,224,0.15);
  --blue-glow: rgba(46,115,224,0.25);
  --via-fill: #0D1420;
  --trace: rgba(46, 115, 224, 0.35);
  --trace-glow: rgba(46, 115, 224, 0.70);
  --blue-bright: #6BA3FF;
  --green: #4FD66E;
  --green-dim: rgba(79,214,110,0.16);
  --red: #EF4444;
  --yellow: #EAB308;
  --text: #EDF2F7;
  --text-2: #7A8BA0;
  --text-3: #3D4F66;
  --text-50: rgba(255,255,255,0.50);
  --text-35: rgba(255,255,255,0.35);
  --text-30: rgba(255,255,255,0.30);
  --text-65: rgba(255,255,255,0.65);
  --text-75: rgba(255,255,255,0.75);
  --text-88: rgba(255,255,255,0.88);
  --grid-size: 48px;
}

html { scroll-behavior: auto; overflow-x: hidden; }

/* Active nav link */
.nav-link.active { color: var(--text); }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.2px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ═══ NAV ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; padding: 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(7,9,13,0.80);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; }
.logo-img { height: 28px; width: auto; display: block; }

.nav-center { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.nav-dd::after { content: ' ▾'; font-size: 9px; opacity: 0.4; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-signin { font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.15s; }
.nav-signin:hover { color: var(--text); }
.nav-cta {
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 122px 44px 72px;
  position: relative; overflow: hidden;
  isolation: isolate;
}

/* Grid background — starts from center of hero text area, not from left edge */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,115,224,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,115,224,0.12) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

/* Grid intersection dots */
.hero-grid::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle 1px at center, rgba(46,115,224,0.10) 0%, transparent 100%);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
}

.hero-grid-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at 50% 30%, rgba(46,115,224,0.09) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Edge fades — z-index 3 to cover grid/trails but below hero-content (4) */
.hero-edge-fade-left,
.hero-edge-fade-top,
.hero-edge-fade-bottom,
.hero-edge-fade-right {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.hero-edge-fade-left {
  top: 0; left: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(to right, var(--bg) 0%, var(--bg) 40%, rgba(7,9,13,0.7) 60%, rgba(7,9,13,0.3) 78%, transparent 100%);
}
.hero-edge-fade-top {
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 30%, transparent 100%);
}
.hero-edge-fade-bottom {
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 30%, transparent 100%);
}
.hero-edge-fade-right {
  top: 0; right: 0; bottom: 0;
  width: 12%;
  background: linear-gradient(to left, var(--bg) 0%, var(--bg) 40%, transparent 100%);
}

/* ═══ CONNECTOR SYSTEM ═══ */
.hero-trail-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.connector-icon {
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: #0F1320;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  will-change: transform, opacity;
}

.connector-icon img {
  width: 30px; height: 30px;
  object-fit: contain;
  border-radius: 3px;
  pointer-events: none;
}

/* ═══ HERO CONTENT ═══ */
.hero-content {
  display: grid;
  grid-template-columns: minmax(500px, 560px) minmax(0, 1fr);
  align-items: center;
  column-gap: 120px;
  row-gap: 40px;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  position: relative; z-index: 4;
}

/* ═══ HERO LEFT ═══ */
.hero-left {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 700px;
}

h1 {
  font-size: clamp(52px, 5.5vw, 76px);
  font-weight: 580; line-height: 0.97;
  letter-spacing: -2.5px;
  font-variation-settings: 'wght' 580, 'opsz' 32;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
}

.hero-label {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue);
  border: none;
  background: rgba(46,115,224,0.05);
  padding: 7px 15px; border-radius: 100px;
  margin-bottom: 32px;
  overflow: hidden;
  z-index: 0;
}
.hero-label::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    rgba(46,115,224,0.15),
    rgba(46,115,224,0.5),
    rgba(79,143,245,0.7),
    rgba(46,115,224,0.5),
    rgba(46,115,224,0.15)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  z-index: -1;
}
@keyframes borderSpin {
  to { --border-angle: 360deg; }
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-dot {
  display: none;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-2); line-height: 1.58;
  width: min(600px, calc(100% + 40px));
  max-width: none; letter-spacing: -0.3px;
  text-wrap: balance;
  margin-bottom: 32px;
}

/* CTAs */
.hero-actions {
  display: flex; align-items: center; gap: 16px;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 15px 32px; border-radius: 10px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--blue-dark); transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(46,115,224,0.25);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: var(--text-50);
  padding: 15px 24px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: rgba(46,115,224,0.30); color: var(--text); }

/* ═══ HERO RIGHT — flat dashboard, shorter ═══ */
.hero-right {
  position: relative;
  align-self: center;
  margin-top: 30px;
  min-width: 0;
  overflow: visible;
}


.dashboard-group {
  position: relative;
  width: max-content;
}

/* Bottom fades live inside each panel to preserve the rounded edges */

/* Back panel (sidebar) — opaque */
.back-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 256px;
  background: #0C0F18;
  border: 1px solid rgba(255,255,255,0.07);
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding: 16px 14px;
  z-index: 1;
  box-shadow: 0 36px 90px rgba(0,0,0,0.24);
  overflow: hidden;
}

.back-panel::after,
.main-panel::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 20%, transparent 100%);
  pointer-events: none;
}

.back-panel::after { z-index: 3; }

.bp-logo { display: flex; align-items: center; margin-bottom: 14px; }
.bp-logo-img { height: 18px; width: auto; display: block; opacity: 0.55; }

.bp-search {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-35);
  padding: 6px 10px;
  margin-bottom: 4px;
}
.bp-search svg { opacity: 0.4; }
.bp-search span {
  margin-left: auto;
  font-size: 10px; opacity: 0.3;
  background: rgba(255,255,255,0.06);
  padding: 1px 5px; border-radius: 3px;
}
.bp-search-label { font-size: 11px; color: var(--text-35); padding: 6px 0; }

.bp-nav { display: flex; flex-direction: column; gap: 2px; }
.bp-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-65);
}
.bp-item svg { width: 16px; height: 16px; opacity: 0.65; flex-shrink: 0; }
.bp-item.active { color: var(--text-75); }
.bp-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 10px 0; }

/* Main dashboard panel — flat, fully opaque, no mask */
.main-panel {
  position: relative; z-index: 2;
  background: #0D1018;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 56px 130px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.04);
  margin-left: 180px;
  min-width: 860px;
}

.main-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 60px; z-index: 10;
  background: linear-gradient(to right, #0D1018, transparent);
  pointer-events: none;
}

.main-panel::after { z-index: 11; }

/* Header */
.mp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: #0F1320;
}
.mp-header-left { display: flex; align-items: center; gap: 8px; }
.mp-header-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.mp-header-title { font-size: 14px; font-weight: 600; }
.mp-dots { color: var(--text-35); font-size: 18px; cursor: default; }

/* Stats strip */
.stats-strip {
  display: flex; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.strip-stat { display: flex; align-items: baseline; gap: 6px; }
.strip-num { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.8px; }
.strip-label { font-size: 11px; font-weight: 500; color: var(--text-35); }
.strip-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.08); margin: 0 18px; }

/* Agent grid */
.agent-grid-section { padding: 14px 18px; }
.agent-grid-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.agent-card {
  background: #111624;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 12px;
}
.agent-card.agent-off { opacity: 0.55; }

.agent-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.agent-card-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.agent-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.agent-status-dot.on { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,0.5); animation: dotPulse 2.5s ease-in-out infinite; }
.agent-status-dot.off { background: var(--text-35); }

.agent-card-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.agent-card-desc { font-size: 10px; color: var(--text-50); margin-bottom: 6px; }
.agent-card-meta { display: flex; justify-content: space-between; }
.agent-card-count { font-size: 9px; color: var(--text-35); font-weight: 600; }
.agent-card-time { font-size: 9px; color: var(--text-35); }

/* Feed */
.feed-section { padding: 10px 18px 14px; height: 195px; overflow: hidden; }
.feed-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.feed-list { display: flex; flex-direction: column; overflow: hidden; }
.feed-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 11px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.feed-enter {
  opacity: 0;
  transform: translateY(-16px);
}
.feed-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.feed-dot.on { background: var(--green); }
.feed-dot.off { background: var(--text-35); }
.feed-agent { font-weight: 700; white-space: nowrap; }
.feed-action { color: var(--text-50); flex: 1; }
.feed-time { color: var(--text-35); font-weight: 500; white-space: nowrap; font-size: 10px; margin-left: 12px; }

/* Dot pulse on icon arrival */
.card-pulse .agent-status-dot {
  animation: dotArrival 0.6s ease;
}
@keyframes dotArrival {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); transform: scale(1); }
  50%  { box-shadow: 0 0 8px 3px rgba(34,197,94,0.4); transform: scale(1.5); }
  100% { box-shadow: 0 0 6px rgba(34,197,94,0.5); transform: scale(1); }
}

/* Integrations bar */
.mp-integrations {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.04);
  opacity: 0.55;
}
.integ-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; color: var(--text-35);
  white-space: nowrap;
}
.integ-dot { width: 5px; height: 5px; border-radius: 50%; }
.integ-item.on .integ-dot { background: var(--green); }
.integ-item.off .integ-dot { background: var(--red); }

/* ═══ HERO ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label    { animation: fadeUp 0.5s ease both 0.1s; }
.hero-left h1  { animation: fadeUp 0.5s ease both 0.2s; }
.hero-sub      { animation: fadeUp 0.5s ease both 0.3s; }
.hero-actions  { animation: fadeUp 0.5s ease both 0.4s; }
.dashboard-group { animation: fadeUp 0.8s ease both 0.3s; }

/* ═══ LOGOS BAR ═══ */
.logos-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--surface);
  overflow: hidden;
}

.logos-label {
  font-size: 12px; font-weight: 500; color: var(--text-35);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding: 0 48px;
}
.mobile-br { display: none; }

/* Carousel wrapper — masks overflow, fades edges */
.logos-carousel {
  position: relative;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Sliding track — holds original + duplicate set */
.logos-track {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .logos-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: logos-scroll 30s linear infinite;
  }
  .logos-track:hover { animation-play-state: paused; }
}

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

.logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.45;
  transition: opacity 0.4s ease;
  flex-shrink: 0;
}
.logo-item:hover { opacity: 1; }
.logo-item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-item:hover img {
  filter: grayscale(0) brightness(1);
}
.logo-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0.7;
  transition: opacity 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.logo-more:hover {
  opacity: 1;
  border-color: rgba(46,115,224,0.3);
  color: var(--text);
}

/* ═══ SECTIONS ═══ */
.container { max-width: 1100px; margin: 0 auto; }
section { padding: 100px 24px; }

.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 580; letter-spacing: -1.6px; line-height: 1.08;
  font-variation-settings: 'wght' 580, 'opsz' 24;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-stat {
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 540px; letter-spacing: -0.3px; }
.section-lead { font-size: 16px; color: var(--text-2); line-height: 1.8; max-width: 660px; margin: 16px auto 56px; text-align: center; }

/* Platform */
.platform { text-align: center; }
.platform .container { display: flex; flex-direction: column; align-items: center; }
.platform h2 { max-width: 780px; }
.diagram { width: 100%; max-width: 1000px; }

.diagram-layer-label {
  margin: 36px 0 16px; font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(237,242,247,0.24); position: relative; display: inline-block; padding: 0 16px;
}
.diagram-layer-label::before, .diagram-layer-label::after {
  content: ''; position: absolute; top: 50%; width: 40px; height: 1px; background: rgba(255,255,255,0.10);
}
.diagram-layer-label::before { right: 100%; }
.diagram-layer-label::after { left: 100%; }

.diagram-inputs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.input-chip {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%), var(--card); border: none; border-radius: 8px; padding: 10px 18px;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 2px 10px rgba(0,0,0,0.15); min-width: 150px;
}
.input-chip::before { content: ''; position: absolute; inset: 0; border-radius: 8px; padding: 1px; background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; transition: background 0.4s cubic-bezier(0.22,1,0.36,1); }
.input-chip:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0,0,0,0.20); }
.input-chip:hover::before { background: linear-gradient(180deg, rgba(46,115,224,0.25) 0%, rgba(46,115,224,0.03) 100%); }
.chip-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.55; display: inline-flex; }
.chip-icon svg { width: 14px; height: 14px; stroke-width: 1.5; }
.diagram-fan { width: 100%; height: 56px; display: block; overflow: visible; margin: 0 auto; }
.fan-line { stroke-dasharray: 500; stroke-dashoffset: 500; opacity: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.16,1,0.3,1), opacity 0.6s ease; transition-delay: calc(var(--i) * 0.2s); }
.diagram-fan.revealed .fan-line { stroke-dashoffset: 0; opacity: 1; }
[data-reveal="fan"] { opacity: 1; }
[data-reveal="fan"].revealed { opacity: 1; }
.diagram-fan-top { max-width: 820px; }
.diagram-fan-bot { max-width: 720px; }

/* Core panel */
.core-panel {
  position: relative; width: 100%;
  padding: 72px clamp(24px, 5vw, 56px) 56px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 260px) minmax(160px, 1fr);
  align-items: center; gap: clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.98), rgba(8, 10, 16, 0.99));
  border: 1px solid rgba(46,115,224,0.10);
  border-radius: 24px;
  box-shadow: 0 0 120px rgba(46,115,224,0.05), inset 0 0 80px rgba(46,115,224,0.015);
  overflow: visible;
}

.core-panel-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 24px; pointer-events: none; z-index: 0;
}

.core-panel::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(46, 115, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 115, 224, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  pointer-events: none;
  border-radius: 24px;
  z-index: 0;
}

.core-panel::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(26, 79, 212, 0.08), transparent 45%);
  pointer-events: none;
  border-radius: 24px;
  z-index: 0;
}

.core-panel-label {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(237,242,247,0.18); white-space: nowrap; z-index: 2;
}

.capability-col { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 16px; }
.capability-col-left  { align-items: flex-end; }
.capability-col-right { align-items: flex-start; }

.capability-pill {
  position: relative; padding: 10px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)), var(--card);
  font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s cubic-bezier(0.22,1,0.36,1), color 0.5s cubic-bezier(0.22,1,0.36,1), border-color 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.8s cubic-bezier(0.16,1,0.3,1) !important;
}
.capability-pill:hover { transform: translateY(-1px); box-shadow: 0 3px 12px rgba(0,0,0,0.20); color: var(--text-75); border-color: rgba(46,115,224,0.25); }

.capability-col-left .capability-pill:nth-child(1) { margin-right: 12px; }
.capability-col-left .capability-pill:nth-child(2) { margin-right: 30px; }
.capability-col-left .capability-pill:nth-child(3) { margin-right: 12px; }
.capability-col-right .capability-pill:nth-child(1) { margin-left: 12px; }
.capability-col-right .capability-pill:nth-child(2) { margin-left: 30px; }
.capability-col-right .capability-pill:nth-child(3) { margin-left: 12px; }

/* Chip PCB */
.chip-wrapper {
  position: relative;
  width: 220px; height: 220px;
  justify-self: center;
  z-index: 2;
}

.chip-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 79, 212, 0.35) 0%, rgba(79, 143, 245, 0.12) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: glowBreathe 4s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

.chip-body {
  position: relative;
  width: 220px; height: 220px;
  background: linear-gradient(135deg, #0C1840 0%, #152B6E 30%, #1E4FA5 65%, #2B65CC 100%);
  border-radius: 20px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 10;
  overflow: hidden;
  border-top: 1.5px solid rgba(107, 163, 255, 0.5);
  border-left: 1.5px solid rgba(107, 163, 255, 0.45);
  border-bottom: 1.5px solid rgba(10, 30, 80, 0.6);
  border-right: 1.5px solid rgba(10, 30, 80, 0.5);
  box-shadow:
    0 0 60px rgba(26, 79, 212, 0.30),
    0 0 120px rgba(46, 115, 224, 0.15),
    inset 0 2px 6px rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25),
    0 6px 30px rgba(0, 0, 0, 0.5);
  animation: chipBreathe 4s ease-in-out infinite;
}

@keyframes chipBreathe {
  0%, 100% {
    box-shadow:
      0 0 60px rgba(26, 79, 212, 0.30),
      0 0 120px rgba(46, 115, 224, 0.15),
      inset 0 2px 6px rgba(255, 255, 255, 0.08),
      inset 0 -2px 6px rgba(0, 0, 0, 0.25),
      0 6px 30px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow:
      0 0 80px rgba(26, 79, 212, 0.45),
      0 0 160px rgba(46, 115, 224, 0.22),
      inset 0 2px 6px rgba(255, 255, 255, 0.10),
      inset 0 -2px 6px rgba(0, 0, 0, 0.25),
      0 6px 30px rgba(0, 0, 0, 0.5);
  }
}

.chip-ripple-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 18px; pointer-events: none; z-index: 1;
}

.chip-circuit-overlay {
  position: absolute; inset: 0;
  border-radius: 18px;
  opacity: 0.06;
  pointer-events: none; z-index: 1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 14px 14px;
}

.chip-body::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10) 0%, transparent 40%, transparent 70%, rgba(0,0,0,0.12) 100%);
  pointer-events: none; z-index: 2;
}

.chip-body::after {
  content: "";
  position: absolute;
  top: 16px; left: 16px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
}

.chip-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; z-index: 5;
}

.core-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.4);
  margin-bottom: 10px;
  animation: corePulse 3.5s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.4); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(255,255,255,1), 0 0 60px rgba(255,255,255,0.6); transform: scale(1.15); }
}

.chip-powered {
  font-size: 8px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60);
}

.chip-name {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-size: 34px; line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.15);
  margin: 2px 0;
}

.chip-subtitle {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60);
}

.chip-part {
  position: absolute;
  bottom: 16px; right: 18px;
  font-size: 6.5px; letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.20);
  font-family: "Inter", monospace; z-index: 5;
}

/* Pins */
.pins { position: absolute; z-index: 8; }
.pin {
  position: absolute;
  border-radius: 1px;
  opacity: 0;
  animation: pinReveal 0.5s ease forwards;
}

@keyframes pinReveal { to { opacity: 1; } }

.pins-left { top: 0; left: -10px; width: 10px; height: 220px; }
.pins-left .pin {
  width: 10px; height: 3px; left: 0;
  background: linear-gradient(to right, rgba(30,40,65,0.7), rgba(80,100,140,0.9), rgba(50,65,95,0.8));
  box-shadow: 0 0 4px rgba(46,115,224,0.20);
  border-radius: 1px 0 0 1px;
}

.pins-right { top: 0; right: -10px; width: 10px; height: 220px; }
.pins-right .pin {
  width: 10px; height: 3px; right: 0;
  background: linear-gradient(to left, rgba(30,40,65,0.7), rgba(80,100,140,0.9), rgba(50,65,95,0.8));
  box-shadow: 0 0 4px rgba(46,115,224,0.20);
  border-radius: 0 1px 1px 0;
}

.pins-top { top: -10px; left: 0; width: 220px; height: 10px; }
.pins-top .pin {
  width: 3px; height: 10px; top: 0;
  background: linear-gradient(to bottom, rgba(30,40,65,0.7), rgba(80,100,140,0.9), rgba(50,65,95,0.8));
  box-shadow: 0 0 4px rgba(46,115,224,0.20);
  border-radius: 1px 1px 0 0;
}

.pins-bottom { bottom: -10px; left: 0; width: 220px; height: 10px; }
.pins-bottom .pin {
  width: 3px; height: 10px; bottom: 0;
  background: linear-gradient(to top, rgba(30,40,65,0.7), rgba(80,100,140,0.9), rgba(50,65,95,0.8));
  box-shadow: 0 0 4px rgba(46,115,224,0.20);
  border-radius: 0 0 1px 1px;
}

@keyframes pinGlow {
  0%, 100% { box-shadow: 0 0 2px rgba(46,115,224,0.10); }
  50% { box-shadow: 0 0 6px rgba(46,115,224,0.30); }
}

/* SVG traces */
.traces-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* App cards */
.diagram-apps { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Mobile connectors (hidden on desktop) */
.dm-connector { display: none; flex-direction: column; align-items: center; gap: 0; }
.dm-conn-label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.dm-conn-line { width: 2px; height: 36px; }

/* How */
.how-header { max-width: 620px; margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; transition: border-color 0.2s; }
.step:hover { border-color: rgba(46,115,224,0.25); }
.step-num { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); background: var(--blue-dim); border: 1px solid rgba(46,115,224,0.15); padding: 5px 10px; border-radius: 6px; margin-bottom: 20px; }
.step h3 { font-size: 17px; font-weight: 580; letter-spacing: -0.5px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* Trust */
.trust-header { max-width: 620px; margin-bottom: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-top: 48px; }
.trust-card { background: var(--card); padding: 48px 36px; }
.trust-stat { font-size: clamp(26px, 3.5vw, 40px); font-weight: 580; letter-spacing: -1.5px; line-height: 1; font-variation-settings: 'wght' 580, 'opsz' 32; margin-bottom: 14px; }
.trust-label { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.trust-label strong { color: var(--text); font-weight: 500; }

/* Use cases */
.usecases {
  padding: 120px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.usecases-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  overflow: visible;
}

.uc-grid-wrapper {
  position: relative;
  width: 100%; max-width: 500px;
  aspect-ratio: 1;
  overflow: visible;
}

.uc-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

.uc-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%; height: 100%;
}

.uc-cell {
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 12px 16px 16px;
  overflow: hidden;
  border-radius: 6px;
  isolation: isolate;
  transition: background-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.uc-glow {
  position: absolute;
  inset: -28%;
  border-radius: 32px;
  background: radial-gradient(circle at 46% 42%, rgba(59,130,246,0.32) 0%, rgba(59,130,246,0.14) 28%, transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.uc-cell:hover .uc-glow { opacity: 1; transform: scale(1.05); }

.uc-cell::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, transparent 28%, rgba(255,255,255,0.015) 36%, rgba(160,200,255,0.045) 44%, rgba(200,225,255,0.065) 50%, rgba(160,200,255,0.045) 56%, rgba(255,255,255,0.015) 64%, transparent 72%, transparent 100%);
  pointer-events: none;
  opacity: 0; z-index: 1;
  animation: none;
}

.uc-cell:hover::before { animation: ucSheen 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1 both; }

@keyframes ucSheen {
  0% { opacity: 0; left: -100%; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; left: 180%; }
}

.uc-cell:hover {
  background: linear-gradient(180deg, rgba(59,130,246,0.10), rgba(59,130,246,0.03));
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.18), 0 4px 20px rgba(59,130,246,0.08);
}

.uc-name {
  position: relative; z-index: 2;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600; color: var(--text-2);
  text-align: left; line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.25s ease;
}

.uc-cell:hover .uc-name {
  color: rgba(255,255,255,0.98);
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(59,130,246,0.25);
}

.uc-active {
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 0 0 1px rgba(79,143,245,0.38);
  border-radius: 6px;
}
.uc-active .uc-name { color: var(--blue-light); }
.uc-active:hover {
  background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(59,130,246,0.06));
  box-shadow: inset 0 0 0 1px rgba(79,143,245,0.8), 0 4px 24px rgba(59,130,246,0.12);
}

.uc-center {
  background: rgba(255,255,255,0.015);
  cursor: default;
}
.uc-center::before, .uc-center::after { display: none; }
.uc-center:hover { background: rgba(255,255,255,0.015); }

.uc-text h2 { margin-bottom: 28px; }
.uc-text .lead { max-width: 460px; }

/* ═══ CTA FINAL — Interactive grid ═══ */
.cta-final {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.cta-final-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.cta-final-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 40%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 15%, black 40%, black 100%);
}

.cta-final-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 80px 24px;
  pointer-events: none;
}

.cta-final-content a {
  pointer-events: auto;
}

.cta-final-logo {
  margin-bottom: 36px;
}

.cta-final-logo-img {
  height: 48px;
  width: auto;
  display: inline-block;
}

.cta-final-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #ffffff;
  max-width: 15ch;
  margin: 0 auto 24px;
  text-wrap: balance;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #ffffff;
}

.cta-final-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 36px;
}

.cta-final .cta-btn {
  background: var(--blue) !important;
  color: #fff !important;
}
.cta-final .cta-btn:hover {
  background: var(--blue-dark) !important;
  box-shadow: 0 10px 40px rgba(46,115,224,0.25);
}

@media (max-width: 900px) {
  .cta-final { padding: 56px 0; }
  .cta-final-frame { min-height: 480px; }
}

@media (max-width: 640px) {
  .cta-final { padding: 40px 0; }
  .cta-final-frame { min-height: 380px; }
  .cta-final-content { padding: 56px 16px; }
  .cta-final-title { font-size: 36px; letter-spacing: -1px; }
  .cta-final-sub br { display: none; }
  .cta-final-logo-img { height: 36px; }
}

/* ═══ FOOTER ═══ */
footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: #111;
}

/* --- Top content row --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1148px;
  margin: 0 auto;
  padding: 56px 48px 20px;
  position: relative;
  z-index: 2;
}

/* Left column */
.footer-left { display: flex; flex-direction: column; gap: 32px; max-width: 440px; }
.footer-tagline p { font-size: 20px; font-weight: 600; color: #e5e5e5; line-height: 1.45; }

.footer-social { display: flex; flex-direction: column; gap: 20px; }
.footer-social-icons { display: inline-flex; gap: 24px; }
.footer-social-icons a { color: #a3a3a3; transition: color 0.15s; }
.footer-social-icons a:hover { color: #e5e5e5; }
.footer-social-icons svg { display: block; }

.footer-legal { display: flex; align-items: center; gap: 28px; }
.footer-legal span { font-size: 13px; color: #525252; }
.footer-legal a { font-size: 13px; color: #525252; transition: color 0.15s; }
.footer-legal a:hover { color: #d4d4d4; }

/* Right columns */
.footer-columns { display: flex; justify-content: flex-end; text-align: right; }
.footer-col h3 { font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.footer-nav a { font-size: 14px; color: #525252; transition: color 0.15s; white-space: nowrap; }
.footer-col nav a:hover { color: #d4d4d4; }

/* --- Binary art area --- */
.footer-binary-area {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: -72px;
  overflow: hidden;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
}
.footer-binary-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.footer-binary-ambient {
  opacity: 1;
  filter: blur(0.15px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 16%, rgba(0,0,0,0.68) 52%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 16%, rgba(0,0,0,0.68) 52%, rgba(0,0,0,1) 100%);
}
.footer-binary-spotlight {
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══ SCROLL REVEAL SYSTEM ═══ */

/* Base hidden state — all reveal elements start invisible */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter  0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fade up (default) */
[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-up"].revealed { opacity: 1; transform: translateY(0); }

/* Fade in (no movement) */
[data-reveal="fade"].revealed { opacity: 1; }

/* Fade up short (subtle) */
[data-reveal="fade-up-sm"] { transform: translateY(20px); }
[data-reveal="fade-up-sm"].revealed { opacity: 1; transform: translateY(0); }

/* Scale fade (zoom in slightly) */
[data-reveal="scale-fade"] { transform: scale(0.92); filter: blur(4px); }
[data-reveal="scale-fade"].revealed { opacity: 1; transform: scale(1); filter: blur(0px); }

/* Fade from left */
[data-reveal="fade-left"] { transform: translateX(-40px); }
[data-reveal="fade-left"].revealed { opacity: 1; transform: translateX(0); }

/* Fade from right */
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="fade-right"].revealed { opacity: 1; transform: translateX(0); }

/* Stagger children via delay variable */
[data-reveal][style*="--d"] {
  transition-delay: var(--d);
}

/* Faster duration for small items */
[data-reveal="fade-up-sm"] {
  transition-duration: 0.6s;
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 1280px) {
  .hero { padding: 112px 32px 64px; }
  .hero-content { grid-template-columns: minmax(420px, 500px) minmax(0, 1fr); }
  .main-panel { min-width: 690px; margin-left: 158px; }
  h1 { font-size: clamp(60px, 6vw, 88px); }
  .hero-sub { font-size: 17px; width: auto; max-width: 460px; }
}

@media (max-width: 1100px) {
  .hero { padding: 100px 24px 60px; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-left { align-items: center; }
  .hero-sub { max-width: 520px; }
  .hero-actions { justify-content: center; }
  .hero-right { margin-top: 40px; }
  .main-panel { min-width: unset; margin-left: 124px; }
  .hero-connectors, .hero-trail-canvas,
  .hero-edge-fade-left, .hero-edge-fade-top, .hero-edge-fade-bottom, .hero-edge-fade-right { display: none; }
}

@media (max-width: 960px) {
  .core-panel {
    grid-template-columns: 1fr;
    justify-items: center; gap: 16px; padding: 72px 20px 40px;
  }
  .traces-svg { display: none; }
  .capability-col {
    flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px;
  }
  .capability-col .capability-pill { margin: 0 !important; }
  .chip-wrapper { width: 200px; height: 200px; }
  .chip-body { width: 200px; height: 200px; }
  .chip-name { font-size: 30px; }
  .chip-glow { width: 280px; height: 280px; }
  .pins-left, .pins-right { height: 200px; }
  .pins-top, .pins-bottom { width: 200px; }
}

@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .nav-cta { padding: 12px 16px; border-radius: 12px; }
  .back-panel { display: none; }
  .main-panel { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .diagram-inputs, .diagram-fan-top, .capability-col, .traces-svg, .core-panel-canvas, .core-panel-label { display: none; }
  .pins-left, .pins-right { height: 200px; }
  .pins-top, .pins-bottom { width: 200px; }
  .pins-left { left: -10px; }
  .pins-right { right: -10px; }
  .pins-top { top: -10px; }
  .pins-bottom { bottom: -10px; }
  .core-panel { padding: 40px 20px; background: linear-gradient(180deg, rgba(10,13,20,0.98), rgba(8,10,16,0.99)); border: 1px solid rgba(46,115,224,0.10); border-radius: 24px; box-shadow: 0 0 120px rgba(46,115,224,0.05); display: flex; align-items: center; justify-content: center; grid-template-columns: none; }
  .core-panel::before, .core-panel::after { display: none; }
  .chip-wrapper { width: 200px; height: 200px; flex-shrink: 0; }
  .chip-body { width: 200px; height: 200px; }
  .diagram-layer-label:first-of-type { display: none; }
  .diagram-layer-label::before, .diagram-layer-label::after { display: none; }
  .dm-connector-in { display: flex; }
  .dm-connector-out { display: none; }
  .platform { padding-bottom: 48px; }
  .diagram-fan-bot { display: block; height: 60px; margin-bottom: -8px; }
  .diagram-apps { gap: 6px; }
  .diagram-fan-bot path { stroke-width: 1.5; opacity: 0.8; }
  .footer-top { flex-direction: column; padding: 40px 20px 20px; }
  .footer-columns { grid-template-columns: repeat(3,1fr); gap: 32px; }
  .footer-binary-area { height: 220px; margin-top: -48px; }
  .usecases-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .uc-grid-wrapper { max-width: 380px; width: 100%; }
  .uc-text { text-align: center; }
  .uc-text .lead { margin: 0 auto; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(40px, 11vw, 56px); line-height: 0.96; letter-spacing: -2px; }
  .hero-title span { display: inline; white-space: normal; }
  .hero-sub { font-size: 17px; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 48px; }
  .hero-right { display: none; }
  .mobile-br { display: block; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { flex-wrap: wrap; gap: 8px; }
  .strip-sep { display: none; }
}

@media (max-width: 560px) {
  .diagram-fan-top { display: none; }
  .trust-card { padding: 32px 24px; }
  .input-chip { font-size: 12px; padding: 8px 14px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a { width: 100%; text-align: center; display: flex; justify-content: center; }
  .uc-name { font-size: 11px; }
  .uc-grid-wrapper { max-width: 280px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-binary-area { height: 150px; margin-top: -28px; }
  .nav-cta { font-size: 12px; padding: 10px 14px; white-space: nowrap; }
}
