/* ═══════════════════════════════════════════════════════════════════════
   ASTRA CostShield — World-Class Landing Page
   Designed for impact. Built for conversion.
   ═══════════════════════════════════════════════════════════════════════ */

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

:root {
  /* Base */
  --bg: #05060b;
  --bg-subtle: #0a0c14;
  --bg-card: rgba(14, 16, 26, 0.7);
  --bg-card-solid: #0e101a;
  --bg-card-hover: rgba(20, 23, 38, 0.8);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-active: rgba(99, 102, 241, 0.4);

  /* Text */
  --text: #e8e8f0;
  --text-secondary: #94949e;
  --text-muted: #5c5c6f;

  /* Brand */
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --purple: #a78bfa;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-text: linear-gradient(135deg, #818cf8, #a78bfa, #c4b5fd);

  /* Semantic */
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.1);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.1);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.1);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.1);
  --rose: #f43f5e;
  --rose-dim: rgba(244, 63, 94, 0.1);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.1);

  /* Spacing & Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-full: 100px;

  /* Shadows */
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  /* Fonts */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ─── Section Headers (CENTERED ALIGNMENT SYSTEM) ────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: 16px;
  font-family: var(--mono);
}

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

.section-desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  margin-bottom: 56px;
  text-align: center;
  text-wrap: balance;
}

.text-danger { color: var(--red); }

/* ─── Gradient Text ──────────────────────────────────────────────────── */
.hero-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dim {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

/* ─── Ambient Background ─────────────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 100%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation: orb-float 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  top: 60%;
  right: -200px;
  animation: orb-float 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
  bottom: 10%;
  left: -150px;
  animation: orb-float 30s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

/* ─── Noise Overlay ──────────────────────────────────────────────────── */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

/* ─── Floating Geometric Decorations ─────────────────────────────────── */
.geo-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.geo {
  position: absolute;
  will-change: transform;
}

.geo-hex-1 {
  width: 220px;
  height: 220px;
  top: 8%;
  right: 5%;
  animation: geo-drift-1 35s ease-in-out infinite, geo-rotate 60s linear infinite;
}

.geo-ring-1 {
  width: 180px;
  height: 180px;
  top: 30%;
  left: 3%;
  animation: geo-drift-2 40s ease-in-out infinite;
}

.geo-tri-1 {
  width: 140px;
  height: 140px;
  top: 55%;
  right: 8%;
  animation: geo-drift-3 30s ease-in-out infinite, geo-rotate-reverse 45s linear infinite;
}

.geo-cross-1 {
  width: 100px;
  height: 100px;
  top: 75%;
  left: 6%;
  animation: geo-drift-1 25s ease-in-out infinite reverse;
}

.geo-diamond-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 10%;
  animation: geo-drift-2 38s ease-in-out infinite, geo-rotate 50s linear infinite;
}

.geo-hex-2 {
  width: 160px;
  height: 160px;
  top: 45%;
  right: 2%;
  animation: geo-drift-3 32s ease-in-out infinite reverse;
}

.geo-ring-2 {
  width: 200px;
  height: 200px;
  top: 85%;
  right: 12%;
  animation: geo-drift-1 45s ease-in-out infinite;
}

.geo-dots-1 {
  width: 150px;
  height: 150px;
  top: 65%;
  left: 15%;
  animation: geo-drift-2 28s ease-in-out infinite reverse;
}

@keyframes geo-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -25px); }
  50% { transform: translate(-10px, -50px); }
  75% { transform: translate(20px, -15px); }
}

@keyframes geo-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, 30px); }
  66% { transform: translate(25px, -20px); }
}

@keyframes geo-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, 15px); }
  50% { transform: translate(-15px, 40px); }
  75% { transform: translate(-25px, -10px); }
}

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

@keyframes geo-rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ─── Section Dividers ───────────────────────────────────────────────── */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.divider-line {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.06) 15%,
    rgba(99, 102, 241, 0.2) 35%,
    rgba(139, 92, 246, 0.35) 50%,
    rgba(99, 102, 241, 0.2) 65%,
    rgba(99, 102, 241, 0.06) 85%,
    transparent 100%
  );
  position: relative;
}

.divider-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 102, 241, 0.08),
    transparent
  );
  filter: blur(3px);
}

/* ─── Navigation ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 6, 11, 0.6);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 6, 11, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease);
}

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

.nav-cta {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease) !important;
}

.nav-cta:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
}

.btn-primary:hover {
  background: #818cf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.btn-full { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ─── HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 80px;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.badge-arrow {
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-badge:hover .badge-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.hero h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
  text-wrap: balance;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ─── Metrics Bar (FIXED ALIGNMENT) ─────────────────────────────────── */
.hero-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  max-width: 780px;
  margin: 0 auto 64px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
}

.metric-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--mono);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.metric-plus {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.metric-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
}

.metric-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Terminal ───────────────────────────────────────────────────────── */
.hero-terminal, .sim-terminal {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.9);
  box-shadow: var(--shadow), var(--shadow-glow);
}

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

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-line {
  white-space: pre;
}

.terminal-highlight {
  background: rgba(99, 102, 241, 0.08);
  margin: 0 -24px;
  padding: 2px 24px;
  border-left: 2px solid var(--indigo);
}

.terminal-blank { opacity: 0; }

/* Terminal syntax colors */
.t-comment { color: #5c5c6f; }
.t-var { color: #818cf8; }
.t-fn { color: #c4b5fd; }
.t-key { color: #818cf8; }
.t-str { color: #4ade80; }
.t-op { color: #94949e; }
.t-num { color: #f59e0b; }
.t-green { color: #22c55e; }
.t-bold { color: var(--text); font-weight: 600; }

/* Sim terminal line reveal */
.sim-body .sim-line {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sim-body.revealed .sim-line {
  opacity: 1;
  transform: translateY(0);
}

.sim-result { margin-top: 4px; }

/* ─── PROBLEM ────────────────────────────────────────────────────────── */
.problem {
  padding: 120px 0;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  margin-top: 8px;
}

.problem-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(239, 68, 68, 0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.08);
}

.problem-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--red-dim);
  color: var(--red);
  margin-bottom: 20px;
}

.problem-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.problem-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.problem-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.stat-big {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--red);
}

.stat-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── FEATURES (Bento) ───────────────────────────────────────────────── */
.features {
  padding: 120px 0;
  text-align: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.bento-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated gradient border on hover */
.bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 30%,
    rgba(99, 102, 241, 0.3) 50%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
  animation: border-spin 3s linear infinite;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* Chrome/Safari fallback for @property */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Top glow line */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card:hover {
  border-color: rgba(99, 102, 241, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(99, 102, 241, 0.04);
}

.bento-wide {
  grid-column: span 2;
}

.bento-wide p {
  max-width: 680px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-icon.indigo { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.bento-icon.red { background: var(--red-dim); color: #f87171; }
.bento-icon.amber { background: var(--amber-dim); color: #fbbf24; }
.bento-icon.green { background: var(--green-dim); color: #4ade80; }
.bento-icon.violet { background: rgba(139, 92, 246, 0.1); color: #a78bfa; }
.bento-icon.cyan { background: var(--cyan-dim); color: #22d3ee; }
.bento-icon.rose { background: var(--rose-dim); color: #fb7185; }
.bento-icon.blue { background: var(--blue-dim); color: #60a5fa; }

.bento-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.bento-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--purple);
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--mono);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* ─── PIPELINE ───────────────────────────────────────────────────────── */
.pipeline-section {
  padding: 120px 0;
  text-align: center;
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.flow-endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.flow-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 26px;
  height: 26px;
}

.flow-app { color: var(--cyan); border-color: rgba(6, 182, 212, 0.2); }
.flow-shield {
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
}
.flow-provider { color: var(--green); border-color: rgba(34, 197, 94, 0.2); }

.flow-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.flow-pulse {
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
  animation: flow-pulse 2s ease-in-out infinite;
}

@keyframes flow-pulse {
  0% { left: -30px; }
  100% { left: 60px; }
}

/* Pipeline Steps */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}

.pipe-step {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pipe-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pipe-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 10px;
  opacity: 0.8;
}

.pipe-content h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pipe-content p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ─── PROVIDERS ──────────────────────────────────────────────────────── */
.providers-section {
  padding: 120px 0;
  text-align: center;
}

.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.provider-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.billing-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.billing-chip {
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--purple);
  font-family: var(--mono);
}

/* ─── DoW DEFENSE ────────────────────────────────────────────────────── */
.defense-section {
  padding: 120px 0;
  text-align: center;
}

.attack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
  margin-bottom: 48px;
}

.attack-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.attack-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.attack-card-full {
  grid-column: span 3;
  text-align: center;
}

.attack-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  opacity: 0.7;
}

.attack-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.attack-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.sim-terminal {
  max-width: 720px;
  text-align: left;
}

/* ─── TECH ───────────────────────────────────────────────────────────── */
.tech-section {
  padding: 120px 0;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.tech-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Animated gradient border on tech cards too */
.tech-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 35%,
    rgba(99, 102, 241, 0.2) 50%,
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tech-card:hover::before {
  opacity: 1;
  animation: border-spin 3s linear infinite;
}

.tech-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.tech-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tech-stack {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 14px;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ─── SDK ────────────────────────────────────────────────────────────── */
.sdk-section {
  padding: 120px 0;
  text-align: center;
}

.sdk-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.sdk-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.sdk-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.sdk-tab.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--purple);
}

.sdk-panels {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.sdk-panel {
  display: none;
}

.sdk-panel.active {
  display: block;
}

.code-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.9);
}

.code-pre {
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
  margin: 0;
}

/* ─── DEPLOY ─────────────────────────────────────────────────────────── */
.deploy-section {
  padding: 100px 0;
  text-align: center;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.deploy-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.deploy-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.deploy-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--text-secondary);
}

.deploy-icon svg {
  width: 100%;
  height: 100%;
}

.deploy-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.deploy-card code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

/* ─── PRICING ────────────────────────────────────────────────────────── */
.pricing-section {
  padding: 120px 0;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}

.pricing-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.pricing-featured {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.06);
}

.pricing-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  position: relative;
  padding-left: 22px;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo);
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
}

.cta-inner {
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
}

.cta-inner::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  position: relative;
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  position: relative;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

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

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-built {
  font-size: 0.75rem;
}

.footer-built strong {
  color: var(--text-secondary);
}

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
[data-delay="50"] { transition-delay: 50ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="350"] { transition-delay: 350ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="450"] { transition-delay: 450ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="550"] { transition-delay: 550ms; }

/* ─── PREMIUM: Shimmer Effect on Hover ───────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── PREMIUM: Subtle Glow Pulse on Flow Shield ─────────────────────── */
.flow-shield {
  animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.08); }
  50% { box-shadow: 0 0 50px rgba(99, 102, 241, 0.15); }
}

/* ─── PREMIUM: Card Reveal Glow ──────────────────────────────────────── */
.bento-card.visible,
.problem-card.visible,
.tech-card.visible {
  animation: card-reveal-glow 0.8s ease-out;
}

@keyframes card-reveal-glow {
  0% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
  30% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.06); }
  100% { box-shadow: none; }
}

/* ─── MOBILE MENU ────────────────────────────────────────────────────── */
.nav-links.mobile-open {
  display: flex !important;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 24px;
  background: rgba(5, 6, 11, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pipeline-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .deploy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .geo-decor {
    display: none;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .metric-sep {
    width: 40px;
    height: 1px;
  }

  .problem-grid,
  .bento-grid,
  .pipeline-steps,
  .attack-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .attack-card-full {
    grid-column: span 1;
    text-align: left;
  }

  .tech-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-connector {
    width: 2px;
    height: 40px;
  }

  .flow-pulse {
    width: 2px;
    height: 20px;
    top: -20px;
    left: 0;
    animation: flow-pulse-v 2s ease-in-out infinite;
  }

  @keyframes flow-pulse-v {
    0% { top: -20px; }
    100% { top: 40px; }
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .problem, .features, .pipeline-section,
  .providers-section, .defense-section,
  .tech-section, .sdk-section, .pricing-section {
    padding: 80px 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

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

  .cta-inner {
    padding: 48px 24px;
  }

  .sdk-tabs {
    flex-wrap: wrap;
  }

  .section-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-terminal {
    border-radius: var(--radius-sm);
  }

  .terminal-body {
    font-size: 0.6875rem;
    padding: 16px;
  }
}
