/* VOXDESK - modern SaaS theme, technical support palette */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --amber: #0ea5e9;
  --green: #10b981;
  --red: #ef4444;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --wash-1: rgba(37, 99, 235, 0.08);
  --wash-2: rgba(14, 165, 233, 0.08);
  --console-accent: #2563eb;
  --scan: #bfdbfe;
  --busy-bg: #e0f2fe;
  --busy-line: #bae6fd;
  --cta-bg:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(14, 165, 233, 0.22), transparent),
    radial-gradient(ellipse 70% 90% at 15% 90%, rgba(37, 99, 235, 0.40), transparent),
    linear-gradient(135deg, #0b1329, #131d3b);
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- type helpers --- */
.text-accent { color: var(--accent); }

/* --- layout --- */
.container { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem; }
section { position: relative; padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-sub { font-size: 1.08rem; line-height: 1.75; color: var(--muted); max-width: 42rem; }

/* --- header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon { color: var(--accent); transition: color 0.2s; }
.brand-clapper { fill: var(--amber); }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -0.01em; color: var(--text);
}
.brand-name span { color: var(--accent); }
.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a.nav-link {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
.site-nav a.nav-link:hover { color: var(--text); }
@media (max-width: 768px) { .site-nav a.nav-link { display: none; } }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all 0.2s ease;
}
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.32);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 26px rgba(29, 78, 216, 0.38); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.98); }

/* --- hero --- */
.hero {
  padding-top: 11rem;
  min-height: 96vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 70% 45% at 30% 0%, var(--wash-1), transparent),
    radial-gradient(ellipse 50% 35% at 90% 20%, var(--wash-2), transparent);
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 4rem; align-items: center; }
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; } }

.status-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.led {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: led-pulse 1.8s ease-in-out infinite;
}
@keyframes led-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 34rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* --- terminal console --- */
.terminal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: #fbfdfe;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 500; color: var(--muted);
}
.terminal-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body {
  padding: 1.6rem;
  min-height: 25rem;
  font-size: 0.92rem;
  line-height: 1.9;
  font-family: var(--font-body);
}
.terminal-line { display: block; white-space: pre-wrap; word-break: break-word; }
.t-dim { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.t-gold { color: var(--accent-dark); font-weight: 500; }
.t-coral { color: var(--text); font-weight: 600; }
.t-led { color: var(--green); font-weight: 600; }
.t-white { color: var(--text); font-weight: 600; }
.cursor {
  display: inline-block; width: 2px; height: 1.05em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.avail-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin: 1rem 0;
}
.avail-cell {
  aspect-ratio: 1; border-radius: 7px;
  background: #eef4f9; border: 1px solid var(--line);
  transition: all 0.25s;
}
.avail-cell.cell-busy { background: var(--busy-bg); border-color: var(--busy-line); }
.avail-cell.cell-picked {
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.avail-cell.cell-scan { background: var(--scan); }

/* --- stats --- */
.stats-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.stat-label { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* --- two-col split --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } }

/* --- call stack --- */
.call-stack { display: flex; flex-direction: column; gap: 0.9rem; position: relative; }
.badge-247 {
  position: absolute; top: -1.4rem; right: -0.5rem; z-index: 6;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  animation: badge-bob 3s ease-in-out infinite;
}
@keyframes badge-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.call-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 1.15rem;
  font-size: 0.9rem;
  transition: opacity 0.4s, transform 0.4s;
}
.call-card.card-enter { opacity: 0; transform: translateY(-12px); }
.call-card.card-exit { opacity: 0; transform: translateY(12px); }
.call-avatar {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #fff;
  background: var(--accent);
}
.call-avatar.av-coral { background: var(--amber); color: #ffffff; }
.call-avatar.av-led { background: var(--green); }
.call-avatar.av-muted { background: var(--muted); }
.call-meta { flex: 1; min-width: 0; }
.call-name { color: var(--text); font-weight: 600; }
.call-state { font-size: 0.76rem; color: var(--muted); }
.call-state.st-new { color: var(--accent-dark); font-weight: 600; }
.call-state.st-on { color: var(--green); font-weight: 600; }
.call-state.st-done { color: var(--muted); }
.call-led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); animation: led-pulse 1.4s infinite; }

/* --- transcript --- */
.transcript-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  min-height: 24rem;
  display: flex; flex-direction: column;
}
.transcript-head {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; margin-bottom: 1.3rem;
  display: flex; justify-content: space-between;
}
.rec-dot { color: var(--red); }
.transcript-log { flex: 1; display: flex; flex-direction: column; gap: 0.85rem; overflow: hidden; }
.bubble { max-width: 85%; padding: 0.75rem 1.05rem; font-size: 0.9rem; line-height: 1.65; border-radius: 16px; }
.bubble-guest {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.bubble-ai {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-bottom-right-radius: 4px;
}
.bubble-who { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; opacity: 0.6; }
.waveform {
  display: flex; align-items: center; gap: 4px; height: 2.4rem;
  margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.wave-bar { width: 4px; border-radius: 2px; background: var(--accent); animation: wave 1s ease-in-out infinite; opacity: 0.8; }
@keyframes wave { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* --- features grid --- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.5rem;
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 2.4rem; height: 2.4rem; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: 12px;
  padding: 0.55rem;
  margin-bottom: 1.2rem;
}
.feature-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.88rem; line-height: 1.7; color: var(--muted); }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-bottom: 0.9rem; }
.step-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 0.6rem; }
.step-desc { font-size: 0.88rem; line-height: 1.7; color: var(--muted); }

/* --- faq --- */
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; line-height: 1; }
.faq-item.open .faq-q::after { content: "-"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 1.4rem 1.2rem; font-size: 0.9rem; line-height: 1.75; color: var(--muted); }
.faq-item.open .faq-a { max-height: 16rem; }

/* --- live demo panel --- */
.demo-panel {
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem;
  background: #fbfdfe;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.demo-status { color: var(--muted); font-weight: 600; }
.demo-status.st-live { color: var(--green); animation: led-pulse 1.4s infinite; }
.demo-status.st-wait { color: var(--accent-dark); }
.demo-status.st-err { color: var(--red); }
.demo-log {
  height: 22rem;
  overflow-y: auto;
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  scrollbar-width: thin;
}
.demo-hint {
  margin: auto;
  max-width: 26rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.demo-controls {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  padding: 1.3rem 0 1.7rem;
  border-top: 1px solid var(--line);
}
.demo-call-btn {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transition: all 0.2s;
}
.demo-call-btn:hover { background: var(--accent-dark); transform: scale(1.05); }
.demo-call-btn:active { transform: scale(0.95); }
.demo-btn-label { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

.demo-lang {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round'/></svg>")
    no-repeat right 0.85rem center;
  border-radius: 999px;
  padding: 0.45rem 2.1rem 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-lang:hover { border-color: var(--accent); }
.demo-lang:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.demo-lang:disabled { opacity: 0.55; cursor: default; }

.is-hidden { display: none !important; }
.hero .demo-panel { max-width: none; margin: 0; }

.demo-call-btn svg { transition: transform 0.25s; }
.demo-call-btn.is-wait {
  background: var(--amber);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
  animation: demo-btn-pulse 1.2s ease-in-out infinite;
}
.demo-call-btn.is-live {
  background: var(--red);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}
.demo-call-btn.is-live:hover { background: #dc2626; }
.demo-call-btn.is-live svg { transform: rotate(135deg); }
@keyframes demo-btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* --- cta banner --- */
.cta-banner {
  border-radius: 26px;
  background: var(--cta-bg);
  box-shadow: var(--shadow-lg);
  padding: 4.5rem 3rem;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  color: #fff; line-height: 1.2; margin-bottom: 1.2rem;
}
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2.4rem; line-height: 1.8; }

/* --- footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.8rem 0;
  background: var(--bg-alt);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.site-footer a { color: var(--accent-dark); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
