﻿/* TalkBot, premium landing styles */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Light theme defaults, overridden by [data-theme="dark"] */
  --bg: oklch(0.985 0.004 80);
  --bg-elev: oklch(0.97 0.005 80);
  --bg-card: oklch(1 0 0);
  --ink: oklch(0.18 0.01 260);
  --ink-2: oklch(0.36 0.01 260);
  --ink-3: oklch(0.55 0.01 260);
  --line: oklch(0.9 0.005 80);
  --line-strong: oklch(0.82 0.008 80);
  --accent: oklch(0.72 0.16 70);   /* saffron */
  --accent-2: oklch(0.58 0.18 270); /* indigo */
  --accent-ink: oklch(0.18 0.01 260);
  --grid: oklch(0.92 0.005 80);
  --code-bg: oklch(0.96 0.005 80);
  --shadow-card: 0 1px 0 rgba(20, 22, 30, 0.04), 0 12px 30px -12px rgba(20, 22, 30, 0.10);
  --shadow-pop: 0 24px 60px -20px rgba(20, 22, 30, 0.18);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.012 260);
  --bg-elev: oklch(0.20 0.014 260);
  --bg-card: oklch(0.22 0.014 260);
  --ink: oklch(0.97 0.004 80);
  --ink-2: oklch(0.78 0.008 80);
  --ink-3: oklch(0.58 0.012 260);
  --line: oklch(0.28 0.014 260);
  --line-strong: oklch(0.36 0.018 260);
  --accent: oklch(0.78 0.16 70);
  --accent-2: oklch(0.68 0.18 270);
  --accent-ink: oklch(0.16 0.012 260);
  --grid: oklch(0.24 0.014 260);
  --code-bg: oklch(0.20 0.014 260);
  --shadow-card: 0 1px 0 rgba(0,0,0,0.3), 0 18px 40px -16px rgba(0,0,0,0.5);
  --shadow-pop: 0 30px 80px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace; }
.dev { font-family: 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ─────────── Nav ─────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Instrument Serif', serif; font-size: 22px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--bg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 32%) no-repeat;
          mask: radial-gradient(circle at 50% 50%, #000 30%, transparent 32%) no-repeat;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: color-mix(in oklch, var(--ink) 88%, var(--accent)); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink);
  border-color: color-mix(in oklch, var(--accent) 70%, var(--ink));
  box-shadow: inset 0 1px 0 color-mix(in oklch, white 30%, transparent), 0 4px 12px -4px var(--accent);
}
.btn-accent:hover { filter: brightness(1.04); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ─────────── Eyebrows / chips ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg-card);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
}
.chip svg { width: 12px; height: 12px; }

/* ─────────── Hero (home) ─────────── */
.hero {
  position: relative; padding: 112px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
/* layered grid + radial vignette */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.45;
}
/* additional ambient: dual-tone aurora glow + top spotlight */
.hero-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: min(1200px, 110%); height: 760px; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 55% at 35% 35%, color-mix(in oklch, var(--accent) 36%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 55% 55% at 70% 45%, color-mix(in oklch, var(--accent-2) 30%, transparent) 0%, transparent 62%);
  filter: blur(56px); opacity: 0.95;
}
.hero-glow::after {
  content: ""; position: absolute; inset: 30% 20% auto 20%; height: 40%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, white 14%, transparent) 0%, transparent 70%);
  filter: blur(40px);
}
:root[data-theme="light"] .hero-glow::after {
  background: radial-gradient(ellipse at 50% 0%, color-mix(in oklch, var(--accent) 18%, transparent) 0%, transparent 70%);
}

.hero-inner { position: relative; }

/* eyebrow refinement on hero */
.hero-inner > .fade-up:first-child .eyebrow,
.hero-inner > div:first-child .eyebrow {
  background: color-mix(in oklch, var(--bg-card) 80%, transparent);
  backdrop-filter: blur(10px);
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 24px 0 24px;
  max-width: 22ch;
  text-wrap: balance;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px color-mix(in oklch, var(--accent) 35%, transparent));
  animation: hero-shimmer 8s linear infinite;
}
@keyframes hero-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
:root[data-motion="calm"] .hero-headline em { animation: none; }

.hero-sub {
  font-size: clamp(17px, 1.55vw, 20px);
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
}

/* hero showcase: dashboard mock + waveform, premium chrome */
.hero-showcase {
  margin-top: 64px;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  box-shadow:
    0 60px 120px -40px color-mix(in oklch, var(--accent) 30%, rgba(0,0,0,0.55)),
    0 1px 0 color-mix(in oklch, white 8%, transparent) inset;
  overflow: hidden;
  isolation: isolate;
}
.hero-showcase::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, transparent 70%, color-mix(in oklch, var(--bg) 50%, transparent) 100%);
}
.hero-showcase::after {
  /* subtle reflective top-edge */
  content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, white 28%, transparent), transparent);
  z-index: 3;
}

@media (max-width: 720px) {
  .hero { padding: 76px 0 48px; }
  .hero-headline { font-size: clamp(36px, 9vw, 52px); margin: 18px 0 16px; max-width: 14ch; }
  .hero-sub { font-size: 15.5px; margin-bottom: 24px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-showcase { margin-top: 36px; border-radius: 16px; }
  .hero-glow { height: 500px; top: -180px; filter: blur(40px); }
}

/* ─────────── Section frame ─────────── */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  font-size: 18px; color: var(--ink-2);
  max-width: 60ch; line-height: 1.55; margin: 0;
  text-wrap: pretty;
}
.divider {
  height: 1px; background: var(--line);
  margin: 0;
}

/* ─────────── Cards & grids ─────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent);
}
.card-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.card-body { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─────────── Compare table ─────────── */
.compare {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.compare-row:first-child { border-top: none; }
.compare-row > div {
  padding: 16px 18px;
  display: flex; align-items: center;
  border-left: 1px solid var(--line);
}
.compare-row > div:first-child { border-left: none; color: var(--ink-2); }
.compare-row.head > div {
  background: var(--bg-elev);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-3);
}
.compare-row.head .us {
  color: var(--ink); position: relative;
}
.compare-row.head .us::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 14%, transparent), transparent);
  pointer-events: none;
}
.compare .us { background: color-mix(in oklch, var(--accent) 6%, transparent); position: relative; }
.cell-yes { color: var(--accent); font-weight: 600; }
.cell-no { color: var(--ink-3); }
.cell-half { color: var(--ink-2); }
@media (max-width: 800px) {
  .compare-row { grid-template-columns: 1.3fr repeat(4, 1fr); font-size: 12px; }
  .compare-row > div { padding: 12px 10px; }
}

/* ─────────── Pricing ─────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; background: var(--bg-card);
  display: flex; flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 8%, var(--bg-card)) 0%, var(--bg-card) 60%);
  position: relative;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-card);
}
.plan-badge {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan-name { font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.plan-price { font-family: 'Instrument Serif', serif; font-size: 38px; line-height: 1; margin: 4px 0 4px; letter-spacing: -0.02em; }
.plan-price .unit { font-family: 'Geist', sans-serif; font-size: 13px; color: var(--ink-3); margin-left: 4px; }
.plan-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; font-family: 'JetBrains Mono', monospace; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.plan-features li { padding: 6px 0; border-top: 1px dashed var(--line); display: flex; gap: 8px; }
.plan-features li:first-child { border-top: none; }
.plan-features li::before { content: "+"; color: var(--accent); font-weight: 600; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ─────────── Footer ─────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--ink-3); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace; color: var(--ink-2);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}

/* ─────────── Tiny utilities ─────────── */
.kbd {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px;
  color: var(--ink-2);
}
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* ─────────── Animations ─────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 1; }

/* in-view reveal, visible by default, enhanced when JS+IO is ready */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-armed { opacity: 0; transform: translateY(16px); }
.reveal-armed.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

/* scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
