:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5b6474;
  --line: #e2e6ee;
  --primary: #1d4ed8;
  --primary-ink: #ffffff;
  --accent: #10b981;
  --warn: #d97706;
  --danger: #dc2626;
  --hero-bg: #0b1226;
  --hero-text: #eef2ff;
  --hero-muted: #a9b4d0;
  --bubble-user: #e8eefc;
  --bubble-agent: #ecfdf5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f19;
    --bg-alt: #0f1525;
    --surface: #131a2b;
    --text: #e8ecf5;
    --muted: #98a2b7;
    --line: #232c42;
    --primary: #5b8cff;
    --primary-ink: #0b0f19;
    --accent: #34d399;
    --hero-bg: #070b16;
    --bubble-user: #1b2a4d;
    --bubble-agent: #133229;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-alt: #0f1525;
  --surface: #131a2b;
  --text: #e8ecf5;
  --muted: #98a2b7;
  --line: #232c42;
  --primary: #5b8cff;
  --primary-ink: #0b0f19;
  --accent: #34d399;
  --hero-bg: #070b16;
  --bubble-user: #1b2a4d;
  --bubble-agent: #133229;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 13v6M13 10v12M17 8v16M21 11v10M25 14v4' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.nav-links { display: flex; gap: 20px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(91, 140, 255, 0.35), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(16, 185, 129, 0.22), transparent 60%), var(--hero-bg); color: var(--hero-text); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.02em; }
.lead { color: var(--hero-muted); font-size: 19px; margin: 20px 0 28px; max-width: 580px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary { background: #ffffff; color: #0b1226; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hero-muted); font-size: 14px; }
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.call-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 10px; }
.call-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hero-muted); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.call-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.call-card .bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.call-card .bubble.user { background: rgba(255, 255, 255, 0.1); align-self: flex-start; border-bottom-left-radius: 4px; }
.call-card .bubble.agent { background: rgba(16, 185, 129, 0.18); align-self: flex-end; border-bottom-right-radius: 4px; }
.call-card .chip { align-self: center; font-size: 13px; color: var(--hero-muted); border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 4px 12px; }
.wave { display: flex; gap: 4px; align-items: center; justify-content: center; height: 28px; margin-top: 4px; }
.wave span { width: 4px; border-radius: 4px; background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
.wave span:nth-child(2) { animation-delay: 0.1s; } .wave span:nth-child(3) { animation-delay: 0.2s; } .wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; } .wave span:nth-child(6) { animation-delay: 0.5s; } .wave span:nth-child(7) { animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 28px; }
.section-lead { color: var(--muted); font-size: 18px; margin: -12px 0 28px; max-width: 760px; }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { font-size: 24px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); margin-bottom: 16px; }
.card.case { border-top: 4px solid var(--primary); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 2px solid var(--line); }
.feature span { color: var(--muted); font-size: 15px; }

/* Demo */
.demo-section { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.demo { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-left { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.biz { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.biz-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.biz-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.biz-option input { margin-top: 4px; accent-color: var(--primary); }
.biz-option span { display: flex; flex-direction: column; }
.biz-option small { color: var(--muted); font-size: 14px; }
.voice-box { margin: 0 0 18px; }
#voice { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
#code { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; letter-spacing: 0.04em; text-transform: uppercase; }
#code::placeholder { text-transform: none; letter-spacing: 0; }
.code-hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.code-hint a { color: var(--primary); font-weight: 600; }
.call-ctl { margin: 20px 0 8px; }
.call-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 999px; border: 0; background: var(--accent); color: #062b1f; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; transition: transform 0.1s, background 0.2s; }
.call-btn svg { width: 22px; height: 22px; fill: currentColor; }
.call-btn:active { transform: scale(0.98); }
.call-btn.active { background: var(--danger); color: #fff; }
.call-btn:disabled { opacity: 0.6; cursor: progress; }
.call-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; }
.orb { width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: none; }
.orb[data-state="connecting"], .orb[data-state="waiting"], .orb[data-state="thinking"] { background: var(--warn); animation: blink 1s infinite; }
.orb[data-state="listening"] { background: var(--accent); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); animation: pulse 1.6s infinite; }
.orb[data-state="speaking"] { background: var(--primary); animation: blink 0.5s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.tips { margin-top: 22px; }
.tips ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.tips li { margin-bottom: 4px; }
.fine { color: var(--muted); font-size: 13px; margin: 18px 0 0; }

.demo-right { display: grid; grid-template-rows: auto auto; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 12px 18px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.transcript { height: 340px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.transcript .msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; }
.transcript .msg small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.transcript .msg.user { background: var(--bubble-user); align-self: flex-end; border-bottom-right-radius: 4px; }
.transcript .msg.agent { background: var(--bubble-agent); align-self: flex-start; border-bottom-left-radius: 4px; }
.activity { max-height: 260px; min-height: 90px; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.event { border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.event.ok { border-left-color: var(--accent); }
.event.warn { border-left-color: var(--warn); }
.event strong { display: block; margin-bottom: 2px; }
.event .meta { color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; margin: auto 0; text-align: center; }

/* Pilot + FAQ + footer */
.pilot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.pilot-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 17px; display: grid; gap: 8px; }
.pilot-cta { display: flex; flex-direction: column; gap: 10px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero-grid, .demo, .pilot { grid-template-columns: minmax(0, 1fr); }
  .cards.three { grid-template-columns: minmax(0, 1fr); }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .transcript { height: 300px; }
}
