/* ==========================================================================
   Adferry — Enterprise Ad-Tech Infrastructure
   Design System v2.0 — Enterprise Light
   ========================================================================== */

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

:root {
  /* Surfaces */
  --bg: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #F1F5F9;
  --surface: #FFFFFF;

  /* Text */
  --text-primary: #0A0E1A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;

  /* Borders */
  --border: #E5E7EB;
  --border-soft: #EEF2F7;
  --border-strong: #CBD5E1;

  /* Brand */
  --brand: #0066FF;
  --brand-hover: #0052CC;
  --brand-soft: #EEF4FF;
  --brand-ring: rgba(0,102,255,0.15);

  /* AI / Accent */
  --plasma: #7C3AED;
  --plasma-soft: #F3EEFF;

  /* Signals */
  --success: #059669;
  --success-soft: #ECFDF5;
  --warning: #D97706;

  /* Gradients */
  --grad-hero: linear-gradient(180deg, #FFFFFF 0%, #EEF4FF 100%);
  --grad-accent: linear-gradient(90deg, #0066FF 0%, #7C3AED 100%);
  --grad-panel: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10,14,26,0.04);
  --shadow-sm: 0 1px 3px rgba(10,14,26,0.06), 0 1px 2px rgba(10,14,26,0.04);
  --shadow-md: 0 8px 24px -8px rgba(10,14,26,0.10), 0 2px 6px rgba(10,14,26,0.04);
  --shadow-lg: 0 24px 48px -16px rgba(10,14,26,0.16), 0 4px 12px rgba(10,14,26,0.04);
  --shadow-brand: 0 16px 40px -12px rgba(0,102,255,0.35);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);

  /* Fonts */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'DM Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 32px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; color: var(--text-primary); }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 20px; font-weight: 500; letter-spacing: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--brand); }

.section-header { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-header .eyebrow { margin-bottom: 20px; justify-content: center; }
.section-header p { color: var(--text-secondary); font-size: 18px; margin-top: 20px; }

section { padding: 120px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-weight: 600; font-size: 15px;
  border-radius: 8px;
  transition: all 240ms var(--ease-out-expo);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 300ms var(--ease-out-expo);
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: padding 300ms var(--ease-out-expo);
}
.nav.scrolled .nav-inner { padding: 12px var(--gutter); }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--text-primary); }
.logo-accent { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--text-secondary); border-radius: 6px;
  transition: all 180ms var(--ease-out-expo);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-muted); }
.nav-link.active { color: var(--brand); font-weight: 600; }

/* Nav dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link.has-dropdown::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-out-expo);
  margin-bottom: 2px;
}
.nav-item:hover .nav-link.has-dropdown::after { transform: rotate(225deg); margin-bottom: -2px; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(0);
  min-width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; margin-top: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-out-expo), visibility 220ms;
  z-index: 200; visibility: hidden;
}
.nav-dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto; visibility: visible;
}
.nav-dropdown a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 8px;
  color: var(--text-primary); font-size: 14px; font-weight: 500;
  transition: background 150ms;
}
.nav-dropdown a:hover { background: var(--bg-muted); }
.nav-dd-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 8px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.nav-dd-text strong { display: block; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }
.nav-dd-text span { color: var(--text-secondary); font-size: 12px; font-weight: 400; }

.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }

/* Announcement bar */
.announce-bar {
  background: linear-gradient(90deg, #0A0E1A, #0B1F3A);
  color: #F9FAFB;
  font-size: 13px;
  padding: 9px var(--gutter);
  text-align: center;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.announce-bar a { color: var(--signal-cyan, #00D4FF); font-weight: 600; margin-left: 8px; }
.announce-bar a:hover { text-decoration: underline; }
.announce-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #00D4FF; margin-right: 8px;
  box-shadow: 0 0 8px #00D4FF;
  animation: pulse 2s infinite;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text-primary); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; padding-top: 140px; padding-bottom: 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--grad-hero);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(0,102,255,0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(124,58,237,0.10), transparent 60%);
  pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,14,26,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,14,26,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }

.hero-content { position: relative; z-index: 2; max-width: 960px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(5,150,105,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}

.hero-title {
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.02;
  margin-bottom: 28px;
}
.hero-title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-secondary);
  max-width: 720px; line-height: 1.55;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  max-width: 900px;
}
.metric-item { display: flex; flex-direction: column; gap: 6px; }
.metric-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.metric-label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 6px var(--success);
  animation: pulse 2s infinite;
}
.metric-value {
  font-family: var(--font-mono); font-size: 22px; font-weight: 500;
  color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.metric-unit { font-size: 13px; color: var(--text-tertiary); margin-left: 4px; font-weight: 500; }

/* Floating hero cards */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floater {
  position: absolute;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  animation: floatUp 6s ease-in-out infinite;
}
.floater-1 { top: 18%; right: 6%; animation-delay: 0s; }
.floater-2 { top: 52%; right: 2%; animation-delay: 2s; }
.floater-3 { bottom: 14%; right: 14%; animation-delay: 4s; }
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floater-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.floater-2 .floater-icon { background: var(--plasma-soft); color: var(--plasma); }
.floater-3 .floater-icon { background: #ECFDF5; color: var(--success); }
.floater strong { color: var(--text-primary); font-weight: 700; font-size: 15px; font-family: var(--font-mono); }
.floater span { display: block; color: var(--text-tertiary); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
@media (max-width: 1024px) { .hero-floaters { display: none; } }

/* Feature highlight band */
.feature-band { background: var(--bg); padding: 100px 0; border-bottom: 1px solid var(--border-soft); }
.fb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.fb-item { padding-right: 20px; border-right: 1px solid var(--border-soft); }
.fb-item:last-child { border-right: none; }
.fb-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fb-item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.fb-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 1024px) { .fb-grid { grid-template-columns: repeat(2, 1fr); } .fb-item { border-right: none; } }
@media (max-width: 600px) { .fb-grid { grid-template-columns: 1fr; } }

/* Globe / map section */
.global-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
  overflow: hidden;
}
.globe-wrap { position: relative; margin-top: 40px; display: flex; justify-content: center; align-items: center; }
.globe-svg { max-width: 780px; width: 100%; height: auto; }
.globe-svg .globe-dot { animation: globePulse 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.globe-svg .globe-dot:nth-child(2) { animation-delay: 0.5s; }
.globe-svg .globe-dot:nth-child(3) { animation-delay: 1s; }
.globe-svg .globe-dot:nth-child(4) { animation-delay: 1.5s; }
.globe-svg .globe-dot:nth-child(5) { animation-delay: 2s; }
.globe-svg .globe-dot:nth-child(6) { animation-delay: 2.5s; }
@keyframes globePulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.globe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 820px; margin-left: auto; margin-right: auto; }
.globe-stat { text-align: center; padding: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-xs); }
.globe-stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--brand); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.globe-stat-label { font-size: 13px; color: var(--text-secondary); }

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: 64px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-label {
  text-align: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 36px; font-weight: 600;
}
.trust-logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center;
}
.trust-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--text-muted); text-align: center;
  transition: color 240ms;
}
.trust-logo:hover { color: var(--text-primary); }

.compliance-strip {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px dashed var(--border);
}
.compliance-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.compliance-badge svg { color: var(--brand); }

/* ---------- Platform Preview ---------- */
.platform-preview { background: var(--bg); }
.command-center {
  margin-top: 56px; padding: 28px;
  border: 1px solid var(--border);
  background: var(--grad-panel);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.command-center::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-accent); opacity: 0.8;
}
.cc-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}
.cc-dots { display: flex; gap: 6px; }
.cc-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.cc-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }

.cc-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
}
.cc-pane {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 20px;
  min-height: 230px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.cc-pane-title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.cc-pane-title .live { color: var(--success); display: inline-flex; align-items: center; gap: 6px; }
.cc-pane-title .live::before { content:""; width:5px;height:5px;border-radius:50%;background:var(--success); animation: pulse 2s infinite; }

.bid-stream { font-family: var(--font-mono); font-size: 11px; }
.bid-row {
  display: grid; grid-template-columns: 60px 1fr 56px;
  gap: 10px; padding: 5px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}
.bid-row:last-child { border-bottom: none; }
.bid-row .win { color: var(--success); font-weight: 600; }
.bid-row .loss { color: var(--text-muted); }

.waterfall-bars { display: flex; flex-direction: column; gap: 10px; }
.wf-bar { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.wf-bar-label { font-family: var(--font-mono); color: var(--text-secondary); width: 60px; }
.wf-bar-fill {
  flex: 1; height: 8px; background: var(--bg-muted); border-radius: 4px; overflow: hidden;
}
.wf-bar-inner { height: 100%; background: var(--grad-accent); border-radius: 4px; transition: width 1.2s var(--ease-out-expo); }
.wf-bar-val { font-family: var(--font-mono); font-size: 11px; color: var(--text-primary); width: 40px; text-align: right; font-weight: 600; }

.ivt-shield {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  height: 100%;
}
.shield-ring {
  width: 118px; height: 118px; border-radius: 50%;
  border: 2px solid var(--brand);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brand-soft);
  box-shadow: 0 0 32px rgba(0,102,255,0.15), inset 0 0 24px rgba(0,102,255,0.08);
}
.shield-ring::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px dashed rgba(0,102,255,0.35); animation: rotate 10s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.shield-value { font-family: var(--font-mono); font-size: 22px; color: var(--brand); font-weight: 600; }
.shield-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 600; margin-top: 4px; }

/* ---------- Solutions Switcher ---------- */
.solutions { background: var(--bg-subtle); }
.switcher-wrap { text-align: center; margin-bottom: 56px; }
.switcher {
  display: inline-flex; padding: 4px;
  border: 1px solid var(--border); background: var(--bg);
  border-radius: 10px; gap: 2px;
  box-shadow: var(--shadow-xs);
}
.switcher-btn {
  padding: 10px 22px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); border-radius: 7px;
  transition: all 200ms var(--ease-out-expo);
}
.switcher-btn.active { background: var(--brand); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.switcher-btn:not(.active):hover { color: var(--text-primary); }

.solution-content { display: none; }
.solution-content.active { display: block; animation: fadeInSwap 400ms var(--ease-out-expo); }
@keyframes fadeInSwap { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: scale(1); } }

.solution-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.solution-copy h2 { margin: 18px 0 20px; }
.solution-copy > p { color: var(--text-secondary); font-size: 17px; margin-bottom: 28px; }
.solution-bullets { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.solution-bullet {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--border-soft);
  background: var(--bg); border-radius: 10px;
  box-shadow: var(--shadow-xs);
}
.bullet-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 7px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.bullet-text strong { display: block; color: var(--text-primary); margin-bottom: 4px; font-weight: 600; }
.bullet-text span { color: var(--text-secondary); font-size: 14px; }

.solution-visual {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(0,102,255,0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(124,58,237,0.12), transparent 60%),
    var(--bg);
  border-radius: 20px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.solution-visual svg { width: 80%; height: 80%; }

/* ---------- AI Pillars ---------- */
.ai-pillars { background: var(--bg); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  position: relative; overflow: hidden;
  transition: all 300ms var(--ease-out-expo);
  box-shadow: var(--shadow-xs);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 10px; background: var(--brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--brand);
}
.pillar-card:nth-child(2) .pillar-icon { background: var(--plasma-soft); color: var(--plasma); }
.pillar-card h3 { margin-bottom: 12px; }
.pillar-card > p { color: var(--text-secondary); margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
.pillar-stat {
  padding-top: 20px; border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary);
}
.pillar-stat strong { color: var(--brand); font-weight: 600; }

/* ---------- Proof / Metrics Wall ---------- */
.proof {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.proof-item { text-align: left; }
.proof-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 4.8vw, 68px);
  letter-spacing: -0.03em; line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.proof-label { font-size: 14px; color: var(--text-secondary); max-width: 220px; }

/* ---------- Ecosystem ---------- */
.ecosystem { background: var(--bg); }
.ecosystem-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 48px;
}
.eco-logo {
  padding: 28px 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  text-align: center;
  font-family: var(--font-display); font-weight: 600;
  color: var(--text-secondary);
  transition: all 240ms var(--ease-out-expo);
  box-shadow: var(--shadow-xs);
}
.eco-logo:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Case Studies ---------- */
.cases { background: var(--bg-subtle); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  display: flex; flex-direction: column;
  transition: all 300ms var(--ease-out-expo);
  box-shadow: var(--shadow-xs);
}
.case-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 20px;
}
.case-metric {
  font-family: var(--font-display); font-size: 56px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text-primary); margin-bottom: 8px;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-metric-label { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; font-weight: 500; }
.case-quote { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 24px; flex: 1; }
.case-footer {
  padding-top: 20px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-tertiary); font-weight: 500;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse 60% 50% at center, rgba(0,102,255,0.08), transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,14,26,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,14,26,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.final-cta-content { position: relative; text-align: center; max-width: 780px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; }
.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 3fr; gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 18px; max-width: 340px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h5 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 18px; font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; transition: color 180ms; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--text-tertiary); font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--brand); }

/* ---------- Generic Page Header ---------- */
.page-hero {
  padding: 180px 0 100px;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(0,102,255,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(124,58,237,0.08), transparent 60%);
}
.page-hero-content { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.page-hero p { font-size: 19px; color: var(--text-secondary); max-width: 640px; }

/* ---------- Form / Contact ---------- */
.form-section { background: var(--bg-subtle); }
.form-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.form-info .eyebrow { margin-bottom: 20px; }
.form-info h2 { text-align: left; margin-bottom: 18px; }
.form-info > p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; }

.form-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary); font-weight: 700;
}
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary); font-family: inherit; font-size: 15px;
  transition: all 200ms var(--ease-out-expo);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.intake-steps { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.intake-step { display: flex; align-items: center; gap: 14px; }
.intake-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.intake-step span { color: var(--text-secondary); font-size: 15px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 14px; overflow: hidden;
  transition: all 300ms var(--ease-out-expo);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.blog-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 16/9;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.blog-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(0,102,255,0.22), transparent 60%);
}
.blog-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 12px;
}
.blog-card h3 { font-size: 20px; margin-bottom: 12px; }
.blog-card p { color: var(--text-secondary); font-size: 14px; flex: 1; }
.blog-readmore {
  margin-top: 18px; font-size: 13px; color: var(--brand); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-toggle {
  width: 100%; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  text-align: left;
}
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform 300ms var(--ease-out-expo);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 400ms var(--ease-out-expo); }
.faq-answer p { padding: 0 24px 24px; color: var(--text-secondary); font-size: 15px; }
.faq-item.open .faq-answer { max-height: 320px; }

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-link { padding: 16px 8px; border-bottom: 1px solid var(--border-soft); }
  .cc-grid { grid-template-columns: 1fr; }
  .pillars-grid, .case-grid, .blog-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-grid, .form-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .trust-logos { grid-template-columns: repeat(3, 1fr); }
  .ecosystem-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 80px 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .proof-grid, .hero-metrics { grid-template-columns: 1fr; }
  .trust-logos, .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 24px; }
}

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

/* ---------- Platform page: Request Lifecycle Pipeline ---------- */
.pipeline-section { background: var(--bg-subtle); }
.pipeline {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0; margin-top: 56px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 20px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.pipeline::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 70px;
  height: 2px; background: linear-gradient(90deg, transparent, var(--brand) 10%, var(--plasma) 90%, transparent);
  opacity: 0.35;
}
.pipe-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px; position: relative; z-index: 1;
}
.pipe-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,102,255,0.18); margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.pipe-step.ai .pipe-ico { background: var(--plasma-soft); color: var(--plasma); border-color: rgba(124,58,237,0.18); }
.pipe-step h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pipe-step span { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ---------- Stack Grid (Demand / Creative / Identity) ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.stack-card {
  padding: 32px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: all 240ms var(--ease-out-expo);
}
.stack-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stack-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.stack-head .stack-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.stack-head h3 { font-size: 20px; }
.stack-head .stack-sub { font-size: 12px; color: var(--text-tertiary); font-family: var(--font-mono); margin-top: 2px; }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-list li {
  display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.spec-list li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px;
  background: var(--success-soft);
  border-radius: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23059669' stroke-width='2.5'><path d='M3 8l3 3 7-7'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.spec-list li strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Protocol / spec badges ---------- */
.proto-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.proto-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 6px 10px; border-radius: 6px;
  background: var(--bg-muted); color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  letter-spacing: 0.04em;
}
.proto-chip.brand { background: var(--brand-soft); color: var(--brand); border-color: rgba(0,102,255,0.15); }
.proto-chip.plasma { background: var(--plasma-soft); color: var(--plasma); border-color: rgba(124,58,237,0.15); }
.proto-chip.success { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,0.15); }

/* ---------- Feature Split (AI / IVT panels) ---------- */
.feat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.feat-panel {
  padding: 36px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--grad-panel); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.feat-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-accent); }
.feat-panel .eyebrow { margin-bottom: 14px; }
.feat-panel h3 { font-size: 24px; margin-bottom: 12px; }
.feat-panel > p { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.feat-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.feat-metric strong { font-family: var(--font-mono); font-size: 22px; color: var(--brand); display: block; font-weight: 600; }
.feat-metric span { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

/* ---------- Integration / API Grid ---------- */
.api-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 48px; align-items: stretch; }
.code-block {
  background: #0A0E1A; color: #E5E7EB; border-radius: 14px; padding: 24px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  border: 1px solid #1F2937;
  overflow: auto;
  box-shadow: var(--shadow-md);
}
.code-block .tk { color: #60A5FA; }
.code-block .st { color: #34D399; }
.code-block .cm { color: #6B7280; }
.code-block .kw { color: #C084FC; }
.code-block .nm { color: #FBBF24; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #1F2937;
}
.code-head .lang { color: #94A3B8; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.api-side { display: flex; flex-direction: column; gap: 14px; }
.api-item { padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.api-item h4 { font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.api-item p { font-size: 13px; color: var(--text-tertiary); }

/* ---------- Compliance Strip ---------- */
.compliance-section { background: var(--bg); }
.compliance-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px;
}
.compliance-cell {
  padding: 20px 12px; text-align: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
  transition: all 200ms var(--ease-out-expo);
}
.compliance-cell:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.compliance-cell strong { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 4px; }
.compliance-cell span { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.04em; }

@media (max-width: 1024px) {
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .pipeline::before { display: none; }
  .stack-grid, .feat-split, .api-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}
