/* ─────────────────────────────────────────────────────────────
   Tara — Landing page styles
   Apple-inspired: large type, generous space, subtle motion
───────────────────────────────────────────────────────────── */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── TOKENS ─── */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.7);
  --text-tertiary: rgba(245, 245, 247, 0.45);
  --accent: #2AABEE;
  --accent-glow: rgba(42, 171, 238, 0.35);
  --accent-soft: rgba(42, 171, 238, 0.1);
  --success: #30D158;
  --danger: #FF453A;
  --gradient-1: linear-gradient(135deg, #2AABEE 0%, #6B5BFF 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(42, 171, 238, 0.18) 0%, transparent 50%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(255, 255, 255, 0.05) inset;
  --shadow-glow: 0 0 60px rgba(42, 171, 238, 0.25);
}

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: #54bdef;
  transform: translateY(-1px);
}

/* ─── TICKER TAPE ─── */
.ticker-tape {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 10px 0;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 90s linear infinite;
  will-change: transform;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.ticker-sym {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ticker-item .up { color: var(--success); }
.ticker-item .down { color: var(--danger); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-tape:hover .ticker-track { animation-play-state: paused; }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 120px 0 140px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle grid pattern overlay */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 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;
  z-index: 0;
}

/* Candlestick chart background — procedurally generated by JS */
.hero-chart-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, transparent 5%, black 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 5%, black 70%);
}


/* Animated mesh gradient orbs */
.hero-mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.mesh-orb-1 {
  width: 600px;
  height: 600px;
  background: #2AABEE;
  top: -150px;
  left: -100px;
  animation: meshFloat1 18s ease-in-out infinite;
}
.mesh-orb-2 {
  width: 500px;
  height: 500px;
  background: #6B5BFF;
  top: 100px;
  right: -100px;
  animation: meshFloat2 22s ease-in-out infinite;
}
.mesh-orb-3 {
  width: 400px;
  height: 400px;
  background: #FF6B9D;
  bottom: -100px;
  left: 30%;
  opacity: 0.2;
  animation: meshFloat3 26s ease-in-out infinite;
}
@keyframes meshFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.1); }
}
@keyframes meshFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 100px) scale(0.9); }
}
@keyframes meshFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(150px, -80px) scale(1.15); }
}

/* Cursor-following spotlight */
.hero-spotlight {
  position: absolute;
  pointer-events: none;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  transition: left 0.15s ease-out, top 0.15s ease-out;
  z-index: 0;
  mix-blend-mode: screen;
}
.hero .container { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 36px;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  line-height: 1.05;
}
.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(42, 171, 238, 0.3);
}
.btn-primary:hover {
  background: #54bdef;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(42, 171, 238, 0.4);
}
.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
}

.hero-microcopy {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─── SECTION ─── */
.section {
  padding: 120px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── WHY TARA (BIG NUMBER CONTRAST) ─── */
.section-comparison {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

/* Big "45 → 2" number contrast */
.contrast-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 auto 72px;
  max-width: 760px;
}
.contrast-num {
  flex: 1;
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s ease;
}
.contrast-num:hover { transform: translateY(-4px); }
.contrast-num-bad {
  background: linear-gradient(135deg, rgba(255, 69, 58, 0.06) 0%, rgba(255, 69, 58, 0.02) 100%);
  border: 1px solid rgba(255, 69, 58, 0.18);
}
.contrast-num-good {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.12) 0%, rgba(107, 91, 255, 0.06) 100%);
  border: 1px solid rgba(42, 171, 238, 0.4);
  box-shadow: 0 0 48px rgba(42, 171, 238, 0.18);
}
.num-value {
  font-size: clamp(72px, 11vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 10px;
}
.contrast-num-bad .num-value {
  color: var(--danger);
  text-shadow: 0 0 60px rgba(255, 69, 58, 0.4);
}
.contrast-num-good .num-value {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(42, 171, 238, 0.5);
}
.num-unit {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.num-label {
  font-size: 14px;
  color: var(--text-secondary);
}
.contrast-arrow {
  font-size: 40px;
  color: var(--accent);
  font-weight: 200;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Quick before/after rows */
.contrast-rows {
  max-width: 880px;
  margin: 0 auto 72px;
  display: grid;
  gap: 12px;
}
.contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contrast-cell {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}
.contrast-cell:hover { transform: translateY(-2px); }
.contrast-cell.bad {
  background: rgba(255, 69, 58, 0.05);
  border: 1px solid rgba(255, 69, 58, 0.18);
  color: var(--text-secondary);
}
.contrast-cell.good {
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.3);
  color: var(--text);
  font-weight: 500;
}
.cell-emoji {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

/* Big closing stat */
.contrast-stat {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.08) 0%, rgba(107, 91, 255, 0.04) 100%);
  border: 1px solid rgba(42, 171, 238, 0.25);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contrast-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
}
.stat-big {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-sub {
  color: var(--text-tertiary);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── PILLARS ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.8) 0%, rgba(17, 17, 17, 0.4) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: inline-block;
}
.pillar-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.pillar-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── FEATURED CAPABILITIES ─── */
.section-featured {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  position: relative;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.92) 0%, rgba(17, 17, 17, 0.5) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.featured-card-highlight {
  border-color: rgba(42, 171, 238, 0.4);
  background: linear-gradient(135deg, rgba(22, 22, 22, 0.92) 0%, rgba(42, 171, 238, 0.08) 100%);
  box-shadow: 0 0 40px rgba(42, 171, 238, 0.12);
}
.featured-card-highlight:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 48px rgba(42, 171, 238, 0.28);
}
.featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 11px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}
.featured-icon {
  font-size: 40px;
  margin-bottom: 18px;
  display: inline-block;
  line-height: 1;
}
.featured-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.featured-card > p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.featured-card > p strong {
  color: var(--text);
  font-weight: 600;
}
.featured-mock {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  margin-top: auto;
}
.mock-title {
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 600;
}
.mock-item {
  color: var(--text);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.mock-item:last-child { border-bottom: none; }
.mock-item-check {
  color: var(--text-secondary);
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.mock-ticker {
  color: var(--accent);
  font-weight: 700;
  min-width: 50px;
  letter-spacing: 0.03em;
}
.mock-detail {
  color: var(--text-secondary);
  flex: 1;
  font-size: 12px;
}
.mock-up { color: var(--success); font-weight: 700; min-width: 56px; }
.mock-down { color: var(--danger); font-weight: 700; min-width: 56px; }
.featured-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  padding: 12px;
  background: rgba(42, 171, 238, 0.08);
  border-radius: var(--radius-sm);
}

/* ─── INTERACTIVE DEMO (CHAT) ─── */
.section-demo {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.chat-container {
  max-width: 540px;
  margin: 0 auto;
}
.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.chat-header {
  background: #1a1a1a;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.chat-info { flex: 1; line-height: 1.2; }
.chat-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-verified {
  color: var(--accent);
  font-size: 13px;
}
.chat-status {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.online-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.chat-body {
  height: 380px;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.msg {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
  animation: msgIn 0.3s ease-out;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 6px;
  font-weight: 500;
}
.msg.bot {
  align-self: flex-start;
  background: #262626;
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.msg .ticker {
  color: var(--accent);
  font-weight: 600;
}
.msg-typing {
  align-self: flex-start;
  background: #262626;
  padding: 14px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  display: flex;
  gap: 4px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-suggestions-wrap {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(42, 171, 238, 0.06) 0%, rgba(42, 171, 238, 0.02) 100%);
  padding: 14px 18px 16px;
}
.chat-suggestions-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chat-suggestions-label span {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
}
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.suggestion-chip {
  padding: 8px 14px;
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.35);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.suggestion-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 171, 238, 0.4);
}
.suggestion-chip:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(42, 171, 238, 0.3);
}

/* Subtle one-time attention pulse on the first chip when demo enters view */
.suggestion-chip:nth-child(1) {
  animation: chipAttention 2.5s ease-out 1s 2;
}
@keyframes chipAttention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0); }
  50% { box-shadow: 0 0 0 6px rgba(42, 171, 238, 0.15); }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: #1a1a1a;
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  background: #262626;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.chat-input:focus {
  border-color: var(--accent);
  background: #2a2a2a;
}
/* When auto-play is typing into the input, show a subtle glow + caret */
.chat-input.auto-typing {
  border-color: rgba(42, 171, 238, 0.5);
  background: #2a2a2a;
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.1);
}
.chat-input.auto-typing::after {
  content: '|';
  color: var(--accent);
  animation: caretBlink 0.7s infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.chat-input::placeholder { color: var(--text-tertiary); }
.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send:hover {
  background: #54bdef;
  transform: scale(1.05);
}
.chat-send:active { transform: scale(0.95); }

.demo-caption {
  text-align: center;
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ─── HOW IT WORKS ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.2s;
}
.step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.step-num {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
}
.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.step code {
  font-size: 12px;
  background: rgba(42, 171, 238, 0.12);
  color: var(--accent);
  border: 1px solid rgba(42, 171, 238, 0.2);
}

/* ─── LANGUAGES (top-of-page switcher) ─── */
.section-languages {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  padding: 64px 0 80px;  /* tighter than other sections — it's a switcher, not a feature pitch */
}
.section-languages .section-header { margin-bottom: 40px; }
.language-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.lang-pill {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.lang-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}
.lang-pill[data-active="true"] {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.3);
}
.lang-pill[data-active="true"]:hover {
  background: #54bdef;
  color: #000;
}
.lang-disclaimer {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 12px;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}


/* ─── PRICING ─── */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
}
.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pricing-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}
.pricing-currency {
  font-size: 28px;
  color: var(--text-secondary);
}
.pricing-amount {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-period {
  font-size: 18px;
  color: var(--text-secondary);
}
.pricing-trial {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  position: relative;
  padding-left: 26px;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-cta { width: 100%; justify-content: center; }

/* ─── WAITLIST ─── */
.section-waitlist {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}
.waitlist-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}
.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  background: #1a1a1a;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.waitlist-input:focus {
  border-color: var(--accent);
  background: #1f1f1f;
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.15);
}
.waitlist-input::placeholder { color: var(--text-tertiary); }
.waitlist-submit { padding: 14px 24px; }
.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.waitlist-microcopy {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 8px;
}
.waitlist-message {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin: 16px auto 0;
  max-width: 440px;
  font-size: 14px;
  animation: msgIn 0.3s ease-out;
}
.waitlist-message.success {
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: var(--success);
}
.waitlist-message.error {
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.3);
  color: var(--danger);
}

/* ─── BOUNDARY ─── */
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.boundary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.boundary-yes { border-color: rgba(48, 209, 88, 0.3); }
.boundary-no { border-color: rgba(255, 69, 58, 0.3); }
.boundary-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}
.boundary-yes h3 { color: var(--success); }
.boundary-no h3 { color: var(--danger); }
.boundary-card ul { list-style: none; }
.boundary-card li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.boundary-card li:last-child { border-bottom: none; }
.boundary-card li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.boundary-yes li::before { background: var(--success); }
.boundary-no li::before { background: var(--danger); }

/* ─── FAQ ─── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--text-tertiary);
  transition: transform 0.2s;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 28px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── FINAL CTA ─── */
.section-final-cta {
  text-align: center;
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}
.final-cta-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta-sub {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}
.footer-tagline {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-disclaimer {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 16px;
  text-align: center;
  font-style: italic;
}
.footer-copy {
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: center;
}

/* ─── SCROLL-TRIGGERED ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children fade-ins */
.fade-in-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-children.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mesh-orb, .pulse-dot, .ticker-track { animation: none !important; }
  .fade-in, .fade-in-children > * { opacity: 1; transform: none; }
}

/* ─── MOBILE ─── */
@media (max-width: 880px) {
  .pillars-grid, .steps { grid-template-columns: 1fr; }
  .boundary-grid, .featured-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 28px 24px; }
  /* Comparison contrast: stack vertically on mobile */
  .contrast-numbers { flex-direction: column; gap: 16px; }
  .contrast-arrow { transform: rotate(90deg); font-size: 32px; }
  .contrast-num { padding: 28px 16px; }
  .contrast-row { grid-template-columns: 1fr; gap: 8px; }
  .contrast-cell { padding: 14px 18px; font-size: 14px; }
  .contrast-stat { padding: 36px 20px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 100px; }
  .pricing-card, .waitlist-card { padding: 36px 24px; }
  .chat-body { height: 320px; }
  .footer-inner { flex-direction: column; }
  .ticker-tape { font-size: 12px; padding: 8px 0; }
  .ticker-item { padding: 0 20px; }
  .hero-spotlight { display: none; }  /* No mouse on mobile, skip */
  .mesh-orb { filter: blur(60px); opacity: 0.25; }
}
