@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* The Operator Design System */
  --bg-canvas: #050810;
  --bg-surface: #0C1120;
  --bg-elevated: #111827;
  --bg-glass: rgba(17, 24, 39, 0.4);
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --accent: #6366F1;
  --success: #10B981;
  --warning: #F59E0B;
  
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #4B5563;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Courier New', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

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

/* Typography Details */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.text-gradient {
  background: linear-gradient(135deg, #F9FAFB 0%, #9CA3AF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Animation System ───────────────────────────────────────────────────── */

/* Base reveal — elements start invisible, 48px below, faint blur */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(4px);
  transition:
    opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter   0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger helpers — apply to child elements inside a revealed parent */
.reveal-on-scroll.delay-1  { transition-delay: 0.08s; }
.reveal-on-scroll.delay-2  { transition-delay: 0.16s; }
.reveal-on-scroll.delay-3  { transition-delay: 0.26s; }
.reveal-on-scroll.delay-4  { transition-delay: 0.38s; }
.reveal-on-scroll.delay-5  { transition-delay: 0.52s; }

/* Slide-up variant for cards (shorter travel) */
.reveal-card {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-card.delay-1 { transition-delay: 0.10s; }
.reveal-card.delay-2 { transition-delay: 0.20s; }
.reveal-card.delay-3 { transition-delay: 0.32s; }
.reveal-card.delay-4 { transition-delay: 0.46s; }

/* Navigation - Frosted Glass */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s cubic-bezier(0.22,1,0.36,1), padding 0.4s cubic-bezier(0.22,1,0.36,1), backdrop-filter 0.4s cubic-bezier(0.22,1,0.36,1);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 96px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: #2563EB;
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--border-light);
  border-color: var(--border-hover);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  transition: all 0.2s;
}

.lang-switcher:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
}

.lang-dropdown a:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.hero-typewriter {
  font-size: 32px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 500;
  height: 48px;
}

#type-text {
  color: var(--primary);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background-color: var(--primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Code Terminal */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 48px;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 24px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-tabs {
  display: flex;
  gap: 24px;
}

.terminal-tab {
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 14px 0;
  position: relative;
  transition: color 0.2s;
}

.terminal-tab:hover {
  color: var(--text-secondary);
}

.terminal-tab.active {
  color: var(--text-primary);
}

.terminal-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 -2px 10px var(--primary-glow);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  height: 380px;
  display: flex;
  flex-direction: column;
}

.terminal-req {
  margin-bottom: 24px;
}

.terminal-res {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-top: 1px dashed var(--border-light);
  padding-top: 24px;
}

.terminal-res.visible {
  opacity: 1;
  transform: translateY(0);
}

.token-method { color: #C678DD; }
.token-url { color: #98C379; }
.token-key { color: #E06C75; }
.token-string { color: #98C379; }
.token-number { color: #D19A66; }
.token-comment { color: #5C6370; }

/* Social Proof Ticker */
.ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.ticker-wrap::before, .ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 2;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.ticker-item i {
  color: var(--primary);
  font-size: 20px;
}

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

/* Sections General */
section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-size: 48px;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 20px;
  color: var(--text-secondary);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.5s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* Features Global Section Grid */
#features {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, #080f1e 0%, transparent 80%);
}

#features::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(1000px) rotateX(60deg) scale(1.5);
  transform-origin: top center;
  animation: gridMoveGlobal 30s linear infinite;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 60%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 60%);
}
@keyframes gridMoveGlobal {
  from { transform: perspective(1000px) rotateX(60deg) translateY(0) scale(1.5); }
  to { transform: perspective(1000px) rotateX(60deg) translateY(60px) scale(1.5); }
}

/* Interactive Features Tabs */
.features-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  z-index: 2;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-tab {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-tab:hover {
  background: rgba(255,255,255,0.02);
}

.feature-tab.active {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-tab h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-tab p {
  color: var(--text-secondary);
  font-size: 15px;
}

.feature-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-snippet {
  width: 100%;
  border-radius: var(--radius-lg);
  background: transparent;
  border: none;
  display: none;
}

.feature-snippet.active {
  display: block;
  animation: featureReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes featureReveal {
  from { opacity: 0; transform: translateY(20px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

/* legacy alias kept for any other usage */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.feature-snippet pre {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  overflow-x: auto;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.compare-card {
  padding: 48px;
}

.compare-card.highlight {
  background: linear-gradient(180deg, rgba(12, 17, 32, 1) 0%, rgba(5, 8, 16, 1) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}

.compare-title {
  font-size: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.compare-list {
  list-style: none;
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--text-secondary);
}

.compare-item i {
  margin-top: 4px;
  font-size: 14px;
}

.compare-item.cross i { color: #EF4444; }
.compare-item.check i { color: var(--success); }
.compare-card.highlight .compare-item { color: var(--text-primary); }

#architecture {
  padding-bottom: 20px;
}

#compare {
  padding-top: 40px;
}

/* Architecture Diagram */
.architecture-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.arch-node {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.arch-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.arch-node.center .arch-icon {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.arch-node h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.arch-node p {
  color: var(--text-secondary);
  font-size: 14px;
}

.arch-line {
  flex: 1;
  height: 2px;
  background: var(--border-light);
  position: relative;
  margin-top: -60px;
  overflow: hidden;
}

.arch-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: moveDot 2s linear infinite;
}

@keyframes moveDot {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Security Cards */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.security-card {
  text-align: center;
  padding: 48px 32px;
}

.sec-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-primary);
  position: relative;
}

.sec-icon::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Institutional Grade Performance 3D Visualization */
.infra-section {
  position: relative;
  width: 100%;
  min-height: 800px;
  background: radial-gradient(ellipse at 50% 50%, #0a1428 0%, #04080f 70%, #020407 100%);
  overflow: hidden;
  padding: 160px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-section::before,
.infra-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 20;
  pointer-events: none;
}

/* Fade top edge into the dark background above */
.infra-section::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-canvas, #050810) 0%, transparent 100%);
}

/* Fade bottom edge into the dark background below */
.infra-section::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-canvas, #050810) 0%, transparent 100%);
}

.infra-environment {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  perspective: 1200px;
  margin: 0 auto;
}

.infra-map-floor {
  position: absolute;
  top: 50%; left: 50%;
  width: 1000px; height: 500px;
  transform: translate(-50%, -50%) rotateX(65deg) translateZ(-100px);
  transform-style: preserve-3d;
}

.infra-world {
  width: 100%; height: 100%;
  overflow: visible;
}

.infra-continent {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.infra-conn {
  fill: none;
  stroke: url(#glowLine);
  stroke-width: 1.5;
  opacity: 0.6;
}

.infra-packet {
  fill: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
}

.p1 { animation: packetMove1 4s linear infinite; }
.p2 { animation: packetMove2 5s linear infinite; animation-delay: 1s; }
.p3 { animation: packetMove3 3.5s linear infinite; animation-delay: 2s; }
.p4 { animation: packetMove4 6s linear infinite; animation-delay: 0.5s; }

@keyframes packetMove1 {
  0% { transform: translate(275px, 130px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(525px, 115px); opacity: 0; }
}
@keyframes packetMove2 {
  0% { transform: translate(525px, 115px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(825px, 145px); opacity: 0; }
}
@keyframes packetMove3 {
  0% { transform: translate(275px, 130px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(650px, 320px); opacity: 0; }
}
@keyframes packetMove4 {
  0% { transform: translate(825px, 145px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(650px, 320px); opacity: 0; }
}

.infra-hub {
  fill: #fff;
}
.infra-hub.glow {
  animation: hubPulse 3s ease-in-out infinite alternate;
}
@keyframes hubPulse {
  from { opacity: 0.1; transform: scale(0.8); }
  to { opacity: 0.8; transform: scale(1.2); }
}

/* Levitating Institutional Dashboard */
.infra-dashboard {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%) translateZ(80px);
  width: 90%;
  max-width: 800px;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 10;
}

/* Custom Reveal Overrides for 3D Elements */
.infra-dashboard.reveal-on-scroll {
  transform: translate(-50%, -45%) translateZ(80px);
}
.infra-dashboard.reveal-on-scroll.is-revealed {
  transform: translate(-50%, -50%) translateZ(80px);
}

.infra-dash-header {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 16px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
}

.infra-live-status {
  color: var(--success);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.infra-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.infra-metric {
  display: flex;
  flex-direction: column;
}

.infra-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}
.infra-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-mono);
}

.infra-value {
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: -0.03em;
}
.infra-unit {
  font-size: 16px;
  color: var(--text-muted);
}

.infra-telemetry {
  height: 40px;
  width: 100%;
}

.infra-sparkline {
  fill: none;
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 200;
  animation: telemetryDraw 8s linear infinite;
}
@keyframes telemetryDraw {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

.infra-uptime-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  position: relative;
  margin-top: 15px;
}
.infra-uptime-fill {
  width: 99.95%;
  height: 100%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
}

.infra-activity-bars {
  display: flex;
  align-items: flex-end;
  height: 30px;
  gap: 3px;
  margin-top: 5px;
}
.ab {
  flex: 1;
  background: rgba(255,255,255,0.1);
  animation: barPulse 2.5s ease infinite alternate;
  border-radius: 1px 1px 0 0;
}
.b1 { height: 40%; animation-delay: 0.1s; }
.b2 { height: 60%; animation-delay: 0.3s; }
.b3 { height: 80%; animation-delay: 0.5s; background: rgba(59,130,246,0.5); }
.b4 { height: 30%; animation-delay: 0.2s; }
.b5 { height: 50%; animation-delay: 0.4s; }
.b6 { height: 90%; animation-delay: 0.6s; }
.b7 { height: 40%; animation-delay: 0.1s; }
.b8 { height: 70%; animation-delay: 0.8s; }
.b9 { height: 60%; animation-delay: 0.3s; background: rgba(59,130,246,0.5); }
.b10 { height: 100%; animation-delay: 0.5s; background: var(--success); }
.b11 { height: 80%; animation-delay: 0.2s; }
.b12 { height: 50%; animation-delay: 0.9s; }
.b13 { height: 60%; animation-delay: 0.1s; background: rgba(59,130,246,0.5); }
.b14 { height: 40%; animation-delay: 0.4s; }
.b15 { height: 70%; animation-delay: 0.7s; }
.b16 { height: 50%; animation-delay: 0.2s; }
.b17 { height: 90%; animation-delay: 0.6s; background: rgba(59,130,246,0.5); }
.b18 { height: 80%; animation-delay: 0.3s; }

@keyframes barPulse {
  0% { transform: scaleY(0.7); opacity: 0.4; }
  100% { transform: scaleY(1.1); opacity: 1; }
}

.infra-compliance {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 20px;
  z-index: 5;
}

.infra-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}
.infra-badge i {
  font-size: 24px;
  color: rgba(255,255,255,0.1);
}
.infra-badge-text span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 2px;
}

.infra-tagline {
  position: absolute;
  top: -90px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  z-index: 5;
  letter-spacing: -0.02em;
}

.sparkline-fill {
  fill: url(#spark-gradient);
  opacity: 0;
  animation: fillIn 1s ease forwards 0.5s;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { opacity: 0.2; } }

/* Bento Grid Use Cases */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 24px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bento-card.large { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, rgba(12,17,32,1) 0%, rgba(5,8,16,1) 100%); }
.bento-card.medium { grid-column: span 2; grid-row: span 1; }
.bento-card.small { grid-column: span 1; grid-row: span 1; }

.bento-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.bento-icon {
  font-size: 32px;
  margin-bottom: auto;
  color: var(--text-primary);
}

.bento-card h3 { font-size: 24px; margin-bottom: 8px; }
.bento-card.small h3 { font-size: 18px; }
.bento-card p { color: var(--text-secondary); font-size: 15px; }

/* Pricing */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  cursor: pointer;
}

.toggle-slider {
  position: absolute;
  top: 3px; left: 3px;
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input[type="checkbox"]#pricing-toggle:checked + .toggle-switch .toggle-slider {
  transform: translateX(24px);
}

.save-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pricing-card {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
  position: relative;
  transform: scale(1.05);
  z-index: 10;
  background: linear-gradient(180deg, rgba(12,17,32,1) 0%, rgba(5,8,16,1) 100%);
}

.pricing-card.popular::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.price-wrap {
  margin: 24px 0;
}

.price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.price-freq {
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 32px 0 auto;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

.pricing-features i { color: var(--success); }

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Testimonials Marquee */
.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  width: max-content;
}

.marquee-row.left { animation: marqueeLeft 40s linear infinite; }
.marquee-row.right { animation: marqueeRight 40s linear infinite; }

.marquee-container:hover .marquee-row {
  animation-play-state: paused;
}

.testimonial-card {
  width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
}

.testi-stars { color: var(--warning); margin-bottom: 16px; font-size: 14px;}
.testi-quote { font-size: 16px; color: var(--text-primary); margin-bottom: 24px; line-height: 1.6;}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center; justify-content: center;
  font-weight: 700;
}

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

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--bg-surface);
  overflow: hidden;
}

.accordion-header {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s;
}

.accordion-header:hover { background: rgba(255,255,255,0.02); }

.accordion-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-secondary);
}

.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-item.active { border-color: var(--primary); box-shadow: 0 0 24px rgba(59, 130, 246, 0.12); transition: border-color 0.35s ease, box-shadow 0.35s ease; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item.active .accordion-content { max-height: 500px; }

.accordion-text {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 160px 0;
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 { font-size: 64px; margin-bottom: 32px; letter-spacing: -0.04em; }

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 60px 0 40px;
  background: var(--bg-canvas);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-brand p { color: var(--text-secondary); margin-top: 16px; font-size: 14px;}
.footer-social { display: flex; gap: 16px; margin-top: 24px; }
.footer-social a { color: var(--text-secondary); font-size: 20px; transition: color 0.2s; }
.footer-social a:hover { color: var(--text-primary); }

.footer-col h4 { font-size: 16px; margin-bottom: 24px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.footer-status .live-dot { width: 6px; height: 6px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE SYSTEM — Tablet (≤1024px) → Mobile (≤767px)
   Strategy: each breakpoint is a deliberate compression, not an afterthought.
   Mobile goal: hero → ticker → features summary → pricing → CTA → footer.
   The path to Pricing should take no more than 2–3 swipes.
═══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger toggle (hidden by default) ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(5,8,16,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  padding: 88px 32px 40px;
  z-index: 150;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-drawer a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.mobile-nav-drawer a:last-of-type { border-bottom: none; }
.mobile-nav-drawer a:hover { color: var(--text-primary); }
.mobile-nav-drawer .drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.mobile-nav-drawer .drawer-ctas .btn { justify-content: center; width: 100%; }


/* ── Tablet (768px – 1023px) ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  section { padding: 80px 0; }

  .hero { padding-top: 140px; padding-bottom: 80px; min-height: auto; }
  .hero h1 { font-size: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .terminal { max-height: 340px; overflow: hidden; }
  .terminal-body { height: auto; }

  .features-container { grid-template-columns: 1fr; gap: 40px; }
  .anim-container { transform: scale(1); }

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

  .infra-section { padding: 80px 0; min-height: auto; }
  .infra-environment { height: auto; min-height: 440px; }
  .infra-map-floor { display: none; }
  .infra-dashboard { position: relative; top: auto; left: auto; transform: none; width: 100%; max-width: 700px; margin: 0 auto; }
  .infra-dashboard.reveal-on-scroll { transform: none; }
  .infra-dashboard.reveal-on-scroll.is-revealed { transform: none; }
  .infra-tagline { position: relative; top: auto; margin: 32px auto 0; max-width: 600px; font-size: 28px; }
  .infra-compliance { position: relative; bottom: auto; right: auto; justify-content: center; margin-top: 32px; }

  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pricing-card.popular { transform: scale(1); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }



  .architecture-container { flex-direction: column; align-items: center; gap: 0; }
  .arch-line { width: 2px; height: 48px; margin: 0 auto; }
  .arch-dot { top: 0; left: -3px; animation: moveDotVert 2s linear infinite; }
}


/* ── Mobile (≤767px) ──────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Nav ── */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav-drawer { display: flex; }

  header { padding: 16px 0; }
  header.scrolled { padding: 10px 0; }
  .logo img { height: 64px; }

  /* ── Global spacing compression ── */
  section { padding: 56px 0; }
  .container { padding: 0 20px; }

  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 30px; letter-spacing: -0.03em; }
  .section-desc { font-size: 16px; }

  /* Prevent blur-based reveals from getting stuck on iOS */
  .reveal-on-scroll {
    filter: none !important;
    transform: translateY(28px);
    transition:
      opacity  0.7s cubic-bezier(0.22,1,0.36,1),
      transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-on-scroll.is-revealed {
    filter: none !important;
    transform: translateY(0);
  }
  .reveal-card {
    filter: none !important;
    transform: translateY(16px);
    transition:
      opacity  0.6s cubic-bezier(0.22,1,0.36,1),
      transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-card.is-revealed { transform: translateY(0); filter: none !important; }

  /* ── Hero — compact, single column, no terminal ── */
  .hero {
    padding-top: 100px;
    padding-bottom: 48px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
  }
  .hero-typewriter {
    font-size: 20px;
    height: 32px;
    margin-bottom: 20px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-trust { gap: 10px; font-size: 12px; }
  .live-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 20px; }

  /* Hide the full terminal — show a compact code badge instead */
  .terminal { display: none; }
  .hero-mobile-code {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* ── Ticker — tighter ── */
  .ticker-wrap { padding: 16px 0; }
  .ticker-item { font-size: 14px; padding: 0 24px; gap: 8px; }

  /* ── Features section — tabs become accordion-style rows, animation hidden ── */
  #features { padding: 56px 0; }
  .features-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-tabs { gap: 8px; }
  .feature-tab { padding: 16px; }
  .feature-tab-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
  .feature-tab h3 { font-size: 16px; margin-bottom: 4px; }
  .feature-tab p { font-size: 13px; }

  /* Hide the heavy animated panels on mobile */
  .feature-display { display: none; }

  /* ── Architecture ── */
  #architecture { padding: 48px 0; }
  .architecture-container {
    flex-direction: column;
    padding: 24px 20px;
    gap: 0;
  }
  .arch-icon { width: 56px; height: 56px; font-size: 22px; margin-bottom: 12px; }
  .arch-node h4 { font-size: 15px; }
  .arch-line { width: 2px; height: 36px; margin: 0 auto; }
  .arch-dot { top: 0; left: -3px; animation: moveDotVert 2s linear infinite; }

  /* ── Compare ── */
  #compare { padding: 48px 0; }
  .comparison-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-card { padding: 28px 24px; }
  .compare-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 16px; }
  .compare-item { font-size: 14px; gap: 12px; margin-bottom: 16px; }

  /* ── Infra/Metrics — simplified to just the dashboard card ── */
  .infra-section {
    padding: 56px 0;
    min-height: auto;
  }
  .infra-environment {
    height: auto;
    perspective: none;
    padding: 0 20px;
  }
  .infra-map-floor { display: none; }
  .infra-dashboard {
    position: relative;
    top: auto; left: auto;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    margin: 0 auto;
  }
  .infra-metrics-grid { grid-template-columns: 1fr; gap: 24px; }
  .infra-value { font-size: 32px; }
  .infra-tagline {
    position: relative;
    top: auto;
    font-size: 20px;
    margin: 28px 20px 0;
    text-align: center;
  }
  .infra-compliance {
    position: relative;
    bottom: auto; right: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding: 0 20px;
  }
  .infra-badge { padding: 12px 16px; font-size: 11px; }

  /* ── Pricing — single column, compact, this is the conversion point ── */
  #pricing { padding: 56px 0 72px; }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }
  .pricing-card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
  }
  .pricing-card.popular {
    transform: none;
    border-color: var(--primary);
    order: -1; /* Most popular card first on mobile */
  }
  .price { font-size: 44px; }
  .pricing-features { margin: 20px 0 auto; }
  .pricing-features li { font-size: 14px; margin-bottom: 12px; }
  .pricing-card .btn { margin-top: 20px; width: 100%; justify-content: center; }

  /* ── CTA ── */
  .cta-section { padding: 72px 0; }
  .cta-content h2 { font-size: 36px; }
  .cta-section div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .cta-section .btn { width: 100%; justify-content: center; }

  /* ── Footer ── */
  footer { padding: 48px 0 32px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 24px;
  }
  .footer-col { display: none; } /* Collapse nav columns on mobile */
  .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { font-size: 10px; }

  /* ── Mobile code badge (shown instead of terminal) ── */
  .hero-mobile-code { display: block; }
}

/* ── Vertical dot animation for mobile arch ── */
@keyframes moveDotVert {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ── Very small phones (≤375px) ── */
@media (max-width: 375px) {
  .hero h1 { font-size: 30px; }
  .pricing-grid { gap: 12px; }
  .infra-metrics-grid { gap: 20px; }
}



/* Animated Account Dashboard */
.anim-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: transparent;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 20px;
  perspective: 1000px;
  transform: scale(1.2);
  transform-origin: right center;
}
.anim-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotateX(60deg) scale(2);
  transform-origin: bottom center;
  z-index: 0;
}
.anim-request {
  position: absolute;
  top: 30px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  z-index: 2;
  opacity: 0;
  transform: translateY(-20px);
}
.anim-server-node {
  position: absolute;
  top: 100px;
  width: 24px; height: 24px;
  background: #111;
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(59,130,246,0.2);
}
.anim-pulse-path {
  position: absolute;
  top: 75px;
  width: 2px;
  height: 25px;
  background: rgba(59,130,246,0.2);
  z-index: 1;
}
.anim-pulse-ball {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  position: absolute;
  top: 0; left: -2px;
  opacity: 0;
}
.anim-dashboard {
  width: 90%;
  max-width: 440px;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 20px;
  z-index: 3;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: rotateX(15deg) translateY(50px);
  opacity: 0;
}
.anim-dash-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.anim-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.anim-metric-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
}
.anim-metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.anim-metric-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}
.anim-metric-val.success { color: var(--success); }

.anim-graph-box {
  grid-column: span 2;
  height: 80px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}
.anim-circle-box {
  grid-column: span 1;
  height: 80px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.anim-svg-graph {
  width: 100%; height: 100%;
}
.anim-graph-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.anim-svg-circle {
  width: 80%; height: 80%;
  transform: rotate(-90deg);
}
.anim-circle-text {
  position: absolute;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
}
.anim-trades-box {
  grid-column: span 3;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.anim-trade-icon {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* KEYFRAMES for .active */
.feature-snippet.active .anim-request {
  animation: aReq 0.6s ease forwards 0.2s;
}
.feature-snippet.active .anim-pulse-ball {
  animation: aPulse 0.5s ease-in forwards 0.8s;
}
.feature-snippet.active .anim-server-node {
  animation: aNodeGlow 0.3s ease forwards 1.3s;
}
.feature-snippet.active .anim-dashboard {
  animation: aDashShow 0.8s cubic-bezier(0.16,1,0.3,1) forwards 1.6s;
}
.feature-snippet.active .anim-graph-line {
  animation: aDrawLine 1.5s ease-out forwards 2s;
}
.feature-snippet.active .anim-circle-val {
  animation: aDrawCircle 1s ease-out forwards 2s;
}

@keyframes aReq {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes aPulse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(25px); opacity: 0; }
}
@keyframes aNodeGlow {
  50% { background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); transform: scale(1.1); }
  100% { background: #111; box-shadow: 0 0 10px rgba(59,130,246,0.3); transform: scale(1); }
}
@keyframes aDashShow {
  to { transform: rotateX(0deg) translateY(0); opacity: 1; }
}
@keyframes aDrawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes aDrawCircle {
  to { stroke-dasharray: 65.2, 100; }
}

/* Animated Trade Execution Dashboard */
#snippet-trades .anim-container {
  background: transparent;
}

#snippet-trades .anim-order-req {
  position: absolute;
  top: 30px; left: 30px;
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 3;
  opacity: 0;
}
.anim-json-body div { opacity: 0; transform: translateX(-10px); }

#snippet-trades .anim-trade-pulse-line {
  position: absolute;
  top: 70px; left: 180px;
  width: 150px; height: 2px;
  background: rgba(59,130,246,0.1);
  z-index: 2;
  transform: rotate(20deg);
  transform-origin: left;
}
#snippet-trades .anim-trade-pulse {
  position: absolute;
  top: -2px; left: 0;
  width: 30px; height: 6px;
  background: var(--primary);
  border-radius: 6px;
  box-shadow: 0 0 15px var(--primary-glow);
  opacity: 0;
}

#snippet-trades .anim-market-dashboard {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 380px; height: 260px;
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  z-index: 4;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  flex-direction: column;
}

#snippet-trades .anim-dash-header {
  display: flex; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 11px; color: #fff; font-weight: 500;
}

#snippet-trades .anim-chart-container {
  flex: 1; position: relative; padding: 10px;
}

/* Candlesticks */
.anim-candles {
  display: flex; align-items: flex-end; justify-content: flex-start; gap: 8px; height: 100%; padding-left: 20px; padding-bottom: 20px;
}
.candle { position: relative; width: 6px; border-radius: 2px; }
.candle::before { content: ''; position: absolute; width: 1px; left: 2.5px; height: 30px; z-index: -1; }
.candle.red { background: var(--danger); }
.candle.red::before { background: var(--danger); top: -10px; }
.candle.green { background: var(--success); }
.candle.green::before { background: var(--success); top: -15px; height: 40px; }

.c1 { height: 40px; } .c2 { height: 60px; } .c3 { height: 30px; margin-bottom: 20px; }
.c4 { height: 50px; margin-bottom: -10px; } .c5 { height: 70px; } .c6 { height: 30px; }

/* Trade Lines */
.anim-trade-line {
  position: absolute;
  left: 0; right: 0; height: 1px;
  opacity: 0;
  display: flex; align-items: center;
}
.anim-trade-line::before {
  content: ''; flex: 1; border-top: 1px dashed;
}
.anim-trade-line .label {
  font-size: 9px; padding: 4px 6px; border-radius: 4px; font-weight: 600; color: #fff; margin-left: 8px; font-family: var(--font-mono);
}

.anim-entry-line { top: 60%; }
.anim-entry-line::before { border-color: var(--primary); }
.anim-entry-line .label { background: var(--primary); }
.pulse-ring {
  position: absolute;
  width: 40px; height: 40px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  left: -20px; top: -20px;
  opacity: 0;
}

.anim-tp-line { top: 30%; }
.anim-tp-line::before { border-color: var(--success); }
.anim-tp-line .label { background: var(--success); }

.anim-sl-line { top: 80%; }
.anim-sl-line::before { border-color: var(--danger); }
.anim-sl-line .label { background: var(--danger); }

/* Status Text Toggle */
.status-pending { position: absolute; right: 0; color: var(--text-secondary); }
.status-success { position: absolute; right: 0; opacity: 0; color: var(--success); }

/* Floating Ticks */
.anim-floating-ticks .ftick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.08);
  font-weight: 700;
  animation: floatTick 15s linear infinite;
  opacity: 0;
}
.f-t1 { top: 20%; left: 0%; animation-delay: 0s; }
.f-t2 { top: 60%; left: -20%; animation-delay: 5s; }
.f-t3 { top: 40%; left: 50%; animation-delay: 10s; }

/* KEYFRAMES SETUP for #snippet-trades.active */
#snippet-trades.active .anim-order-req { animation: aFadeInUp 0.6s ease forwards 0.2s; }
#snippet-trades.active .j1 { animation: aFadeInRight 0.3s forwards 0.6s; }
#snippet-trades.active .j2 { animation: aFadeInRight 0.3s forwards 0.7s; }
#snippet-trades.active .j3 { animation: aFadeInRight 0.3s forwards 0.8s; }
#snippet-trades.active .j4 { animation: aFadeInRight 0.3s forwards 0.9s; }
#snippet-trades.active .j5 { animation: aFadeInRight 0.3s forwards 1.0s; }
#snippet-trades.active .anim-trade-pulse { animation: aPulseShoot 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.4s; }

#snippet-trades.active .anim-market-dashboard { animation: aDashScaleIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards 1.7s; }

/* Exec Status Transitions */
#snippet-trades.active .status-pending { animation: aHideMsg 0.1s forwards 2.3s; }
#snippet-trades.active .status-success { animation: aShowMsg 0.1s forwards 2.3s; }

/* DOM Interactions */
#snippet-trades.active .pulse-ring { animation: aPing 1s ease-out forwards 2.5s; }
#snippet-trades.active .anim-entry-line { animation: aLineIn 0.4s ease forwards 2.5s; }
#snippet-trades.active .anim-tp-line { animation: aLineIn 0.4s ease forwards 3.0s, aTpMod 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 4.5s; }
#snippet-trades.active .anim-sl-line { animation: aLineIn 0.4s ease forwards 3.2s, aSlMod 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 4.5s; }
#snippet-trades.active .c6 { animation: aCandleGrow 2s ease forwards 3.5s; }

@keyframes floatTick {
  from { transform: translateX(-50px) translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateX(500px) translateY(-50px); opacity: 0; }
}
@keyframes aFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aFadeInRight { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes aPulseShoot { 0% { left: 0; opacity: 1; width: 0; } 50% { width: 40px; } 100% { left: 100%; opacity: 0; width: 0; } }
@keyframes aDashScaleIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes aHideMsg { to { opacity: 0; visibility: hidden; } }
@keyframes aShowMsg { to { opacity: 1; visibility: visible; } }
@keyframes aPing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes aLineIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes aTpMod { to { top: 20%; } }
@keyframes aSlMod { to { top: 85%; } }
@keyframes aCandleGrow { 0% { height: 30px; background: var(--success); } 50% { height: 45px; margin-bottom: 5px; } 100% { height: 60px; margin-bottom: 20px; } }

/* Animated WebSocket Streams */
#snippet-stream .anim-container {
  background: transparent;
  perspective: 1200px;
}

#snippet-stream .anim-ws-bg {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background-image: radial-gradient(rgba(59,130,246,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: bgPan 20s linear infinite;
  opacity: 0.5;
}

#snippet-stream .anim-ws-lines {
  position: absolute; top:0; left:0; width:100%; height:100%;
  z-index: 1; opacity: 0;
}
.ws-line { position: absolute; background: rgba(59,130,246,0.05); }
.ws-line.l1 { top: 30%; left: 0; width: 100%; height: 1px; }
.ws-line.l2 { top: 60%; left: 0; width: 100%; height: 2px; }
.ws-line.l3 { left: 40%; top: 0; width: 1px; height: 100%; }
.ws-particle { position:absolute; background:var(--primary); box-shadow: 0 0 10px var(--primary-glow); }
.ws-line.l1 .ws-particle { top: -1px; width: 20px; height: 3px; border-radius: 3px; animation: pTravelX 2s linear infinite; }
.ws-line.l2 .ws-particle { top: -1px; width: 40px; height: 4px; border-radius: 4px; animation: pTravelX 1.5s linear infinite reverse; }
.ws-line.l3 .ws-particle { left: -1px; width: 3px; height: 30px; border-radius: 3px; animation: pTravelY 3s linear infinite; }

#snippet-stream .anim-ws-setup {
  position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  z-index: 2; opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.ws-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,0.5); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ws-ring-outer { width: 450px; height: 450px; border-width: 1px; border-style: dashed; animation: rSpin 30s linear infinite; opacity: 0.2; }
.ws-ring-inner { width: 350px; height: 350px; animation: rSpin 20s linear infinite reverse; opacity: 0.3; }
.ws-setup-code {
  background: rgba(10, 15, 29, 0.9);
  padding: 12px 20px; border-radius: 12px; font-family: var(--font-mono); font-size: 11px;
  border: 1px solid rgba(59,130,246,0.3); font-weight: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 20px rgba(59,130,246,0.2) inset;
}

#snippet-stream .anim-ws-handler {
  position: absolute; top: 38%; left: 5%;
  background: rgba(10, 15, 29, 0.85); padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05); font-family: var(--font-mono); font-size: 10px;
  color: #a1a1aa; z-index: 3; opacity: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: rotateY(15deg);
}

#snippet-stream .anim-ws-ecosystem {
  position: absolute; top: 40%; right: 5%; width: 50%; height: 50%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  z-index: 3; opacity: 0;
}
.ws-card {
  background: rgba(10, 15, 29, 0.7); backdrop-filter: blur(15px); border-radius: 10px;
  border: 1px solid rgba(59,130,246,0.15); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  padding: 12px; display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px);
}
.ws-market-widget { grid-column: 1 / 3; grid-row: 1; }
.ws-equity-widget { grid-column: 1; grid-row: 2; }
.ws-order-widget { grid-column: 2; grid-row: 2; }

.ws-card-header { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; }
.ws-market-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12px; }
.sym { font-weight: bold; color: #fff; }
.ws-bid-ask { display: flex; gap: 8px; }
.bid, .ask { padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.03); }
.flash-green { animation: tickPulseG 2s infinite; }
.flash-red { animation: tickPulseR 3s infinite 1s; }

.ws-equity-val { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.ws-eq-chart { flex: 1; display:flex; align-items:flex-end; }
.ws-eq-path { stroke: var(--primary); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--primary)); stroke-dasharray: 200; stroke-dashoffset: 200; }

.ws-order-item { font-family: var(--font-mono); font-size: 10px; color: #fff; margin-bottom: 6px; background: rgba(255,255,255,0.02); padding: 4px 6px; border-radius: 4px; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(10px); }

/* KEYFRAMES SETUP for #snippet-stream.active */
#snippet-stream.active .anim-ws-setup { animation: wFadeDn 0.6s cubic-bezier(0.16,1,0.3,1) forwards 0.2s; }
#snippet-stream.active .anim-ws-lines { animation: wFadeIn 1s forwards 0.6s; }
#snippet-stream.active .anim-ws-handler { animation: wFlyInLeft 0.8s cubic-bezier(0.16,1,0.3,1) forwards 1.2s; }

#snippet-stream.active .anim-ws-ecosystem { animation: wShowEco 0.1s forwards 1.6s; }
#snippet-stream.active .ws-market-widget { animation: wPopUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards 1.7s; }
#snippet-stream.active .ws-equity-widget { animation: wPopUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards 1.9s; }
#snippet-stream.active .ws-order-widget  { animation: wPopUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards 2.1s; }

#snippet-stream.active .ws-eq-path { animation: aDrawLine 2s ease-out forwards 2.5s; }
#snippet-stream.active .ws-oi-1 { animation: wSlideIn 0.4s forwards 2.4s; }
#snippet-stream.active .ws-oi-2 { animation: wSlideIn 0.4s forwards 3.0s; }

@keyframes bgPan { from { background-position: 0 0; } to { background-position: 40px 40px; } }
@keyframes pTravelX { from { left: -10%; } to { left: 110%; } }
@keyframes pTravelY { from { top: -10%; } to { top: 110%; } }
@keyframes rSpin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

@keyframes wFadeDn { from { opacity: 0; transform: translate(-50%, -20px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1.1); } }
@keyframes wFadeIn { to { opacity: 1; } }
@keyframes wFlyInLeft { from { opacity: 0; transform: translateX(-40px) rotateY(15deg); } to { opacity: 1; transform: translateX(0) rotateY(15deg); } }
@keyframes wShowEco { to { opacity: 1; } }
@keyframes wPopUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wSlideIn { to { opacity: 1; transform: translateX(0); } }

@keyframes tickPulseG { 0%, 100% { background: rgba(16,185,129,0.03); color: #fff; } 50% { background: rgba(16,185,129,0.2); color: var(--success); } }
@keyframes tickPulseR { 0%, 100% { background: rgba(239,68,68,0.03); color: #fff; } 50% { background: rgba(239,68,68,0.2); color: var(--danger); } }
