:root {
  --aeiom-yellow:  #F2B705;
  --aeiom-cyan:    #2EB6F0;
  --aeiom-magenta: #E5174A;
  --aeiom-light:   #D8DCE0;
  --aeiom-grey:    #5A6470;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

[data-theme="dark"] {
  --bg-0: #0A0E1A;
  --bg-1: #111827;
  --bg-2: #1A2233;
  --bg-3: #232C42;
  --bg-glass: rgba(17, 24, 39, 0.55);
  --text-primary:   #F4F6FA;
  --text-secondary: #A6AFBF;
  --text-muted:     #6A7589;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.45);
  --noise-opacity: 0.5;
  --noise-blend: overlay;
  --grad-cyan:    rgba(46, 182, 240, 0.12);
  --grad-magenta: rgba(229, 23, 74, 0.08);
  --grad-yellow:  rgba(242, 183, 5, 0.04);
}

[data-theme="light"] {
  --bg-0: #FAFBFC;
  --bg-1: #FFFFFF;
  --bg-2: #F4F6FA;
  --bg-3: #E8ECF2;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-primary:   #0E1525;
  --text-secondary: #4A5468;
  --text-muted:     #8B95A8;
  --border-subtle: rgba(14, 21, 37, 0.06);
  --border-strong: rgba(14, 21, 37, 0.14);
  --shadow-card: 0 24px 60px rgba(14, 21, 37, 0.08), 0 2px 8px rgba(14, 21, 37, 0.04);
  --noise-opacity: 0.25;
  --noise-blend: multiply;
  --grad-cyan:    rgba(46, 182, 240, 0.08);
  --grad-magenta: rgba(229, 23, 74, 0.05);
  --grad-yellow:  rgba(242, 183, 5, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--grad-cyan), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--grad-magenta), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 50%, var(--grad-yellow), transparent 70%);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.3s var(--ease-out-expo);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav__logo-waves { display: flex; align-items: end; gap: 3px; height: 24px; }
.nav__logo-waves span { display: block; width: 4px; border-radius: 2px; background: var(--c); animation: navwave 2.4s var(--ease-in-out) infinite; animation-delay: var(--d); }
.nav__logo-waves span:nth-child(1) { --c: var(--aeiom-yellow);  --d: 0s;   height: 40%; }
.nav__logo-waves span:nth-child(2) { --c: var(--aeiom-cyan);    --d: 0.2s; height: 70%; }
.nav__logo-waves span:nth-child(3) { --c: var(--aeiom-magenta); --d: 0.4s; height: 100%; }
.nav__logo-waves span:nth-child(4) { --c: var(--aeiom-light);   --d: 0.6s; height: 60%; }
.nav__logo-waves span:nth-child(5) { --c: var(--aeiom-grey);    --d: 0.8s; height: 30%; }
@keyframes navwave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.4); } }
.nav__links { display: flex; gap: 32px; align-items: center; font-size: 14px; color: var(--text-secondary); }
.nav__links a { position: relative; transition: color 0.25s var(--ease-out-expo); }
.nav__links a:hover { color: var(--text-primary); }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out-expo); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--aeiom-cyan); box-shadow: 0 0 16px rgba(46, 182, 240, 0.3); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: transform 0.5s var(--ease-out-expo), opacity 0.3s; }
.theme-toggle .sun { opacity: 0; transform: rotate(90deg) scale(0.3); }
.theme-toggle .moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(0.3); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  transition: all 0.3s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.btn--primary { background: var(--text-primary); color: var(--bg-0); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--text-secondary); }
.btn--cyan { background: var(--aeiom-cyan); color: #051320; }
.btn--cyan:hover { box-shadow: 0 12px 30px rgba(46, 182, 240, 0.4); transform: translateY(-1px); }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeUp 1s var(--ease-out-expo) 0.2s both;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aeiom-cyan); box-shadow: 0 0 12px var(--aeiom-cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 1100px;
  margin-bottom: 28px;
}
.hero__title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--aeiom-cyan), var(--aeiom-magenta) 60%, var(--aeiom-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title .word { display: inline-block; animation: fadeUp 1.1s var(--ease-out-expo) both; }
.hero__title .word:nth-child(1) { animation-delay: 0.3s; }
.hero__title .word:nth-child(2) { animation-delay: 0.4s; }
.hero__title .word:nth-child(3) { animation-delay: 0.5s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.5;
  margin-bottom: 48px;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s both;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 80px; animation: fadeUp 1s var(--ease-out-expo) 1.1s both; }

.hero__waveform {
  display: flex; align-items: end; justify-content: center; gap: 14px;
  height: 200px; margin: 24px 0 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 1.3s both;
}
.hero__waveform .bar {
  width: 28px; border-radius: 14px;
  background: var(--c);
  box-shadow: 0 0 60px var(--c);
  animation: bigwave 2.8s var(--ease-in-out) infinite;
  animation-delay: var(--d);
  transform-origin: bottom;
}
.hero__waveform .bar:nth-child(1) { --c: var(--aeiom-yellow);  --d: 0s;   height: 50%; }
.hero__waveform .bar:nth-child(2) { --c: var(--aeiom-cyan);    --d: 0.2s; height: 75%; }
.hero__waveform .bar:nth-child(3) { --c: var(--aeiom-magenta); --d: 0.4s; height: 100%; }
.hero__waveform .bar:nth-child(4) { --c: var(--aeiom-light);   --d: 0.6s; height: 65%; }
.hero__waveform .bar:nth-child(5) { --c: var(--aeiom-grey);    --d: 0.8s; height: 40%; }
@keyframes bigwave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: fadeUp 1s var(--ease-out-expo) 1.6s both;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.4); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

.section { position: relative; padding: 120px 40px; z-index: 2; }
.container { max-width: 1280px; margin: 0 auto; }
.section__label {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--aeiom-cyan); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.section__label::before { content: ''; width: 24px; height: 1px; background: var(--aeiom-cyan); }
.section__title {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: -0.03em; line-height: 1.05;
  font-weight: 600; max-width: 900px; margin-bottom: 28px;
}
.section__title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.section__lead { font-size: 20px; color: var(--text-secondary); max-width: 720px; line-height: 1.5; margin-bottom: 64px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
  cursor: pointer;
}
.pillar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-glow), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease-out-expo); pointer-events: none;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 60px -20px var(--accent-shadow); }
.pillar:hover::before { opacity: 1; }
.pillar--voice    { --accent: var(--aeiom-magenta); --accent-glow: rgba(229,23,74,0.18); --accent-shadow: rgba(229,23,74,0.35); }
.pillar--ops      { --accent: var(--aeiom-cyan);    --accent-glow: rgba(46,182,240,0.16); --accent-shadow: rgba(46,182,240,0.35); }
.pillar--training { --accent: var(--aeiom-yellow);  --accent-glow: rgba(242,183,5,0.16);  --accent-shadow: rgba(242,183,5,0.35); }
.pillar__num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.pillar__num::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pillar__icon { display: flex; align-items: end; gap: 4px; height: 56px; margin-bottom: 28px; }
.pillar__icon span { width: 8px; border-radius: 4px; background: var(--c); }
.pillar--voice .pillar__icon span:nth-child(1) { --c: var(--aeiom-magenta); height: 30%; }
.pillar--voice .pillar__icon span:nth-child(2) { --c: var(--aeiom-magenta); height: 100%; }
.pillar--voice .pillar__icon span:nth-child(3) { --c: var(--aeiom-magenta); opacity: 0.7; height: 60%; }
.pillar--voice .pillar__icon span:nth-child(4) { --c: var(--aeiom-magenta); opacity: 0.4; height: 40%; }
.pillar--ops .pillar__icon span:nth-child(1) { --c: var(--aeiom-cyan); height: 70%; }
.pillar--ops .pillar__icon span:nth-child(2) { --c: var(--aeiom-cyan); height: 45%; }
.pillar--ops .pillar__icon span:nth-child(3) { --c: var(--aeiom-cyan); height: 100%; }
.pillar--ops .pillar__icon span:nth-child(4) { --c: var(--aeiom-cyan); height: 65%; }
.pillar--training .pillar__icon span:nth-child(1) { --c: var(--aeiom-yellow); height: 40%; }
.pillar--training .pillar__icon span:nth-child(2) { --c: var(--aeiom-yellow); height: 60%; }
.pillar--training .pillar__icon span:nth-child(3) { --c: var(--aeiom-yellow); height: 80%; }
.pillar--training .pillar__icon span:nth-child(4) { --c: var(--aeiom-yellow); height: 100%; }
.pillar__title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 12px; font-weight: 600; }
.pillar__desc { color: var(--text-secondary); font-size: 15px; line-height: 1.55; margin-bottom: 28px; }
.pillar__list { list-style: none; border-top: 1px solid var(--border-subtle); padding-top: 20px; }
.pillar__list li { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); padding: 6px 0; display: flex; align-items: center; gap: 10px; }
.pillar__list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.stack__visual {
  position: relative; height: 480px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overflow: hidden; margin-top: 48px;
}
.stack__node {
  position: absolute;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out-expo);
}
.stack__node:hover { transform: scale(1.05); }
.stack__node .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--aeiom-cyan)); box-shadow: 0 0 12px var(--c, var(--aeiom-cyan)); }
.stack__node--telnyx   { top: 12%; left: 8%;  --c: var(--aeiom-cyan); }
.stack__node--retell   { top: 8%; right: 12%; --c: var(--aeiom-magenta); }
.stack__node--openai   { top: 38%; right: 6%; --c: var(--aeiom-yellow); }
.stack__node--claude   { bottom: 18%; right: 22%; --c: var(--aeiom-light); }
.stack__node--stripe   { bottom: 12%; left: 18%; --c: var(--aeiom-cyan); }
.stack__node--google   { bottom: 32%; left: 4%; --c: var(--aeiom-yellow); }
.stack__node--wp       { top: 42%; left: 32%; --c: var(--aeiom-magenta); }

.stack__center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  box-shadow: 0 0 80px rgba(46,182,240,0.15);
}
.stack__center::before { content: ''; position: absolute; inset: -20px; border-radius: 50%; border: 1px solid var(--border-subtle); animation: ringPulse 4s ease-in-out infinite; }
.stack__center::after { content: ''; position: absolute; inset: -40px; border-radius: 50%; border: 1px solid var(--border-subtle); animation: ringPulse 4s ease-in-out infinite 1s; }
@keyframes ringPulse { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 0.15; transform: scale(1.15); } }
.stack__center-waves { display: flex; align-items: end; gap: 3px; height: 36px; }
.stack__center-waves span { width: 4px; border-radius: 2px; }
.stack__center-waves span:nth-child(1) { background: var(--aeiom-yellow);  height: 40%; }
.stack__center-waves span:nth-child(2) { background: var(--aeiom-cyan);    height: 70%; }
.stack__center-waves span:nth-child(3) { background: var(--aeiom-magenta); height: 100%; }
.stack__center-waves span:nth-child(4) { background: var(--aeiom-light);   height: 60%; }
.stack__center-waves span:nth-child(5) { background: var(--aeiom-grey);    height: 30%; }
.stack__center-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; }
.stack__lines { position: absolute; inset: 0; pointer-events: none; }

.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.proof__card {
  position: relative;
  padding: 40px 36px;
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s;
}
.proof__card:hover { transform: translateY(-4px); border-color: var(--accent); }
.proof__card--bpcsf { --accent: var(--aeiom-cyan); }
.proof__card--dmtl  { --accent: var(--aeiom-magenta); }
.proof__rank {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  background: var(--accent);
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; letter-spacing: 0.1em; margin-bottom: 20px;
}
.proof__card--bpcsf .proof__rank { color: #051320; }
.proof__card--dmtl .proof__rank  { color: #fff; }
.proof__name { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 6px; }
.proof__url { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 28px; }
.proof__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.proof__metric { display: flex; flex-direction: column; gap: 4px; }
.proof__metric-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.proof__metric-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }

.final-cta { position: relative; padding: 140px 40px; text-align: center; z-index: 2; }
.final-cta__title { font-size: clamp(40px, 5.5vw, 80px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin-bottom: 24px; }
.final-cta__title .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, var(--aeiom-cyan), var(--aeiom-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final-cta__sub { font-size: 20px; color: var(--text-secondary); margin-bottom: 48px; max-width: 560px; margin-left: auto; margin-right: auto; }
.final-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.footer { position: relative; z-index: 2; padding: 60px 40px 40px; border-top: 1px solid var(--border-subtle); background: var(--bg-1); }
.footer__inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.footer__links { display: flex; gap: 28px; font-size: 13px; color: var(--text-secondary); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .hero { padding: 120px 20px 60px; }
  .section { padding: 80px 20px; }
  .pillars { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .stack__visual { height: 600px; }
  .stack__node { font-size: 11px; padding: 10px 12px; }
  .footer { padding: 40px 20px 30px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
