/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg-dark: #0F172A;
  --bg-mid: #1E293B;
  --bg-light: #F8FAFC;
  --amber: #E7971F;
  --amber-glow: rgba(231, 151, 31, 0.15);
  --blue: #3B82F6;
  --teal: #14B8A6;
  --red: #EF4444;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --text-white: #F1F5F9;
  --text-dark: #0F172A;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg-dark); color: var(--text-white); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); color: inherit; }

/* ── Nav ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(231, 151, 31, 0.1);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate-400); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-white); }
.nav-cta {
  font-size: 14px; font-weight: 600; padding: 8px 20px;
  border: 1px solid var(--amber); border-radius: 8px; color: var(--amber);
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--amber); color: var(--bg-dark); }

/* ── Hero ─────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center; padding: 120px 24px 80px;
}
#particles { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  padding: 6px 18px; border-radius: 100px;
  background: rgba(231, 151, 31, 0.1); border: 1px solid rgba(231, 151, 31, 0.3);
  color: var(--amber); margin-bottom: 28px;
  animation: pill-glow 3s ease-in-out infinite;
}
@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(231,151,31,0); }
  50% { box-shadow: 0 0 30px rgba(231,151,31,0.15); }
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(135deg, var(--amber), #F59E0B, var(--amber));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 18px; color: var(--slate-300); max-width: 560px; margin: 0 auto 48px; line-height: 1.7; }

/* Meet Aria Button */
.meet-aria-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; }
#meet-aria-btn {
  width: 120px; height: 120px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, rgba(231,151,31,0.12), transparent);
  border: 2px solid rgba(231,151,31,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
#meet-aria-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(231,151,31,0.2), 0 0 80px rgba(231,151,31,0.08);
  border-color: var(--amber);
}
#meet-aria-btn::before, #meet-aria-btn::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid rgba(231,151,31,0.25);
  animation: pulse-ring 3s ease-in-out infinite;
}
#meet-aria-btn::before { inset: -14px; }
#meet-aria-btn::after { inset: -28px; animation-delay: 1.5s; }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0; }
}
.waveform-icon { width: 40px; height: 40px; color: var(--amber); }

/* Playing state */
#meet-aria-btn.playing { border-color: var(--amber); box-shadow: 0 0 60px rgba(231,151,31,0.3); }
#meet-aria-btn.playing .bar { animation: eq-bounce 0.6s ease-in-out infinite alternate; }
#meet-aria-btn.playing .bar-1 { animation-delay: 0s; }
#meet-aria-btn.playing .bar-2 { animation-delay: 0.15s; }
#meet-aria-btn.playing .bar-3 { animation-delay: 0.3s; }
#meet-aria-btn.playing .bar-4 { animation-delay: 0.1s; }
@keyframes eq-bounce {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.2); }
}
.bar { transform-origin: center; }

.meet-label { font-size: 13px; color: var(--slate-500); transition: opacity 0.4s; }
.meet-label.hidden { opacity: 0; }

.scroll-hint {
  color: var(--amber); opacity: 0.5;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 100px 24px; }
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-mid { background: var(--bg-mid); }
.section-cta { background: linear-gradient(180deg, var(--bg-dark), #000); }
.container { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--amber); margin-bottom: 16px; text-transform: uppercase;
}
.section-tag.center { display: block; text-align: center; }
.section-heading { font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-align: center; margin-bottom: 56px; }

/* ── Two Column ───────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.col-text h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.col-text p { color: var(--slate-300); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--slate-300); }
.feat-icon { font-size: 18px; width: 24px; text-align: center; }
.dark-list li { color: var(--slate-500); }

/* ── Aria Card ────────────────────────────────────────── */
.aria-card {
  background: rgba(30, 41, 59, 0.45); backdrop-filter: blur(24px);
  border: 1px solid rgba(231,151,31,0.15); border-radius: 20px;
  padding: 36px; position: relative;
  box-shadow: 0 0 60px rgba(231,151,31,0.04);
  transition: transform 0.15s ease-out;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-logo { height: 36px; }
.card-status { font-size: 12px; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px; background: var(--teal); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.card-name { font-size: 28px; font-weight: 700; margin-bottom: 2px; }
.card-title { font-size: 14px; color: var(--slate-400); margin-bottom: 20px; }
.card-entities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.entity-pill {
  font-size: 11px; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; background: rgba(231,151,31,0.1);
  border: 1px solid rgba(231,151,31,0.2); color: var(--amber);
}
.card-details { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.card-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-300); }
.card-label { color: var(--slate-500); font-weight: 500; }
.card-channels { display: flex; gap: 16px; font-size: 20px; color: var(--slate-400); }

/* ── Stats ────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
  background: white; border-radius: 16px; padding: 36px 24px; text-align: center;
  border-top: 3px solid var(--amber);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.stat-number { font-size: 48px; font-weight: 800; color: var(--text-dark); display: inline; font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: 48px; font-weight: 800; color: var(--text-dark); display: inline; }
.stat-label { font-size: 14px; color: var(--slate-500); margin-top: 8px; font-weight: 500; }

/* ── Capabilities Grid ────────────────────────────────── */
.capabilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card {
  background: rgba(30, 41, 59, 0.35); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
  padding: 32px 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cap-card:hover {
  border-color: rgba(231,151,31,0.35);
  box-shadow: 0 0 40px rgba(231,151,31,0.08);
  transform: translateY(-4px);
}
.cap-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--amber); }
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--slate-400); line-height: 1.6; }

/* ── Pipeline ─────────────────────────────────────────── */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-bottom: 32px; }
.pipeline-step { text-align: center; position: relative; padding: 0 16px; }
.step-node {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  border: 2px solid var(--amber); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; position: relative; z-index: 1;
  background: var(--bg-mid);
}
.step-line {
  position: absolute; top: 28px; left: calc(50% + 32px); right: calc(-50% + 32px);
  height: 2px; background: linear-gradient(90deg, var(--amber), rgba(231,151,31,0.2));
}
.pipeline-step:last-child .step-line { display: none; }
.pipeline-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pipeline-step p { font-size: 14px; color: var(--slate-400); line-height: 1.5; }
.pipeline-note { text-align: center; font-size: 13px; color: var(--slate-500); font-style: italic; }

/* ── Tiers ────────────────────────────────────────────── */
.tiers { max-width: 700px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 16px; }
.tier-bar {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-radius: 12px; background: rgba(30,41,59,0.4);
  border-left: 4px solid transparent;
}
.tier-auto { border-left-color: var(--teal); }
.tier-approve { border-left-color: var(--amber); }
.tier-escalate { border-left-color: var(--red); }
.tier-badge {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; background: rgba(255,255,255,0.06); white-space: nowrap;
}
.tier-label { font-weight: 600; font-size: 15px; white-space: nowrap; min-width: 140px; }
.tier-desc { font-size: 13px; color: var(--slate-400); }
.trust-quote {
  text-align: center; font-size: 16px; color: var(--slate-300);
  font-style: italic; max-width: 600px; margin: 0 auto;
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Architecture Diagram ─────────────────────────────── */
.arch-diagram {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
}
.arch-col { display: flex; flex-direction: column; gap: 12px; }
.arch-node {
  padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: rgba(15,23,42,0.6); border: 1px solid rgba(231,151,31,0.15);
  text-align: center; color: var(--text-dark);
}
.section-light .arch-node { color: var(--text-dark); background: white; border-color: rgba(0,0,0,0.08); }
.arch-node-main {
  padding: 24px; font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, rgba(231,151,31,0.15), rgba(231,151,31,0.05));
  border-color: var(--amber); color: var(--amber) !important;
}
.arch-node-sub {
  font-size: 12px; font-weight: 600; color: var(--slate-500) !important;
  background: rgba(0,0,0,0.03); border-style: dashed;
}

/* ── Phone Demo ───────────────────────────────────────── */
.phone-frame {
  max-width: 380px; margin: 0 auto;
  background: var(--bg-mid); border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  padding: 12px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.phone-notch {
  width: 120px; height: 28px; background: var(--bg-dark);
  border-radius: 0 0 16px 16px; margin: 0 auto 8px;
}
.phone-screen { background: var(--bg-dark); border-radius: 24px; padding: 20px; min-height: 400px; }
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px; font-weight: 600; font-size: 15px;
}
.chat-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: rgba(231,151,31,0.1); padding: 4px; }
.chat-time { margin-left: auto; font-size: 12px; color: var(--slate-500); font-weight: 400; }
.chat-bubble {
  background: rgba(231,151,31,0.08); border-radius: 0 16px 16px 16px;
  padding: 16px; border: 1px solid rgba(231,151,31,0.1);
}
.chat-text { font-size: 13px; line-height: 1.7; color: var(--slate-300); white-space: pre-line; }
.chat-text b { color: var(--text-white); font-weight: 600; }

/* ── CTA ──────────────────────────────────────────────── */
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-inner h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-inner > p { font-size: 16px; color: var(--slate-400); line-height: 1.7; margin-bottom: 32px; }
.cta-button {
  display: inline-block; padding: 14px 36px;
  background: var(--amber); color: var(--bg-dark);
  font-size: 16px; font-weight: 700; border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(231,151,31,0.3);
}
.cta-sub { font-size: 13px; color: var(--slate-500); margin-top: 20px; }

/* ── Footer ───────────────────────────────────────────── */
footer { padding: 24px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--slate-500);
}

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .step-line { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .tier-bar { flex-wrap: wrap; }
  .tier-desc { width: 100%; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  h1 { font-size: 36px; }
  #meet-aria-btn { width: 96px; height: 96px; }
  .arch-diagram { grid-template-columns: 1fr; }
}
