/* ============ BASE ============ */
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "cv11", "cv02"; }

/* Subtle grid + noise */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-on { opacity: 1; transform: translateY(0); }

/* ============ HERO LIVE CALL CARD ============ */
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.5;
  max-width: 95%;
  width: fit-content;
}
.bubble.bot {
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(34,211,238,0.06));
  border: 1px solid rgba(139,92,246,0.25);
  color: rgba(255,255,255,0.92);
}
.bubble.user {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  margin-left: auto;
  text-align: right;
}
.bubble.typing { padding: 14px 18px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a78bfa;
  animation: bounce 1s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,80%,100% { transform: scale(0.6); opacity: 0.5 } 40% { transform: scale(1); opacity: 1 } }

.wave { width: 100%; }
.wave .bar {
  flex: 1;
  background: linear-gradient(180deg, #a78bfa, #22d3ee);
  border-radius: 2px;
  animation: pulse 1.3s ease-in-out infinite;
  min-height: 4px;
}
@keyframes pulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.slot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 13px;
}
.slot > span:first-child { color: rgba(255,255,255,0.5); }
.slot .val { font-weight: 600; }
.slot.pending { border-style: dashed; }

.kpi {
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 10px 12px;
}
.kpi .t { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); }
.kpi .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.kpi .v span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55); margin-left: 2px; }

/* ============ FEATURES ============ */
.feature {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(167,139,250,0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(167,139,250,0.3); }
.feature:hover::before { opacity: 1; }
.feature .ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(34,211,238,0.1));
  border: 1px solid rgba(167,139,250,0.25);
  color: #ddd6fe;
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; color: rgba(255,255,255,0.62); line-height: 1.55; font-size: 14.5px; }
.feature .link {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  color: #a78bfa; font-size: 13.5px; font-weight: 500;
  transition: gap 0.25s;
}
.feature:hover .link { gap: 10px; }
.feature .link svg, .feature .link i { width: 14px; height: 14px; }

.feature-glow {
  background: linear-gradient(160deg, rgba(139,92,246,0.13), rgba(255,255,255,0.01));
  border-color: rgba(167,139,250,0.25);
}

/* ============ STEPS ============ */
.step {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
}
.step .num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: rgba(255,255,255,0.6); }
.step .code {
  margin-top: 18px;
  background: #07070b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.step .code .kw { color: #a78bfa; }
.step .code .str { color: #22d3ee; }
.step .logos {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.step .logos span {
  font-size: 12px; padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
}
.step .voices {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.step .voice {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  transition: all 0.25s;
  cursor: pointer;
}
.step .voice span { font-weight: 600; }
.step .voice small { color: rgba(255,255,255,0.5); font-size: 11px; }
.step .voice:hover { background: rgba(255,255,255,0.06); }
.step .voice.active {
  border-color: rgba(167,139,250,0.5);
  background: linear-gradient(90deg, rgba(139,92,246,0.15), transparent);
}

/* ============ DEMO PLAYER ============ */
.scene {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  text-align: left;
  transition: all 0.25s;
  cursor: pointer;
}
.scene:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.scene.active {
  background: linear-gradient(90deg, rgba(139,92,246,0.15), transparent);
  border-color: rgba(167,139,250,0.4);
}
.scene .badge {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(167,139,250,0.18); color: #ddd6fe;
  border: 1px solid rgba(167,139,250,0.3);
}
.scene .badge.alt { background: rgba(34,211,238,0.15); color: #67e8f9; border-color: rgba(34,211,238,0.3); }
.scene .badge.warn { background: rgba(251,191,36,0.15); color: #fcd34d; border-color: rgba(251,191,36,0.3); }
.scene .badge.cool { background: rgba(244,114,182,0.15); color: #f9a8d4; border-color: rgba(244,114,182,0.3); }
.scene .title { font-weight: 500; }
.scene .dur { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.5); }

.bigwave {
  display: flex; align-items: center; gap: 3px; height: 80px;
}
.bigwave .bar {
  flex: 1; min-width: 2px;
  background: linear-gradient(180deg, #a78bfa, #22d3ee);
  border-radius: 2px;
}

.metric {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.metric .t { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); }
.metric .v { font-weight: 600; font-size: 13.5px; margin-top: 2px; }

/* ============ INTEGRATIONS ============ */
.intg {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  display: flex; flex-direction: column; gap: 4px;
  transition: all 0.25s;
}
.intg:hover { border-color: rgba(167,139,250,0.4); transform: translateY(-2px); }
.intg span { font-weight: 600; }
.intg small { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }

/* ============ QUOTES ============ */
.quote {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.quote .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.quote .avt {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 700; color: #07070b;
  font-size: 14px;
}
.quote p { color: rgba(255,255,255,0.85); line-height: 1.55; font-size: 15px; }

/* ============ FORM ============ */
.field { display: block; }
.field > span {
  display: block; font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: rgba(167,139,250,0.6);
  background: rgba(255,255,255,0.06);
}
.field option { background: #11121b; }

/* ============ FAQ ============ */
.faq {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500;
  font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: rgba(255,255,255,0.4);
  transition: transform 0.3s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p {
  padding: 0 22px 20px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  font-size: 14.5px;
  max-width: 720px;
}

/* ============ PRICING ============ */
.plan {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  display: flex; flex-direction: column; gap: 20px;
}
.plan.featured {
  border-color: rgba(167,139,250,0.4);
  background: linear-gradient(180deg, rgba(139,92,246,0.16), rgba(34,211,238,0.05));
  box-shadow: 0 24px 60px -20px rgba(139,92,246,0.4);
}
.plan h3 { font-size: 22px; font-weight: 600; }
.plan .price { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; }
.plan .price small { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 400; margin-left: 4px; }
.plan ul { display: flex; flex-direction: column; gap: 10px; }
.plan ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: rgba(255,255,255,0.85);
}
.plan ul li svg { color: #a78bfa; flex-shrink: 0; margin-top: 2px; }
.plan .ribbon {
  position: absolute; top: -12px; right: 20px;
  font-size: 11px; padding: 4px 10px;
  background: linear-gradient(90deg, #a78bfa, #22d3ee);
  border-radius: 999px;
  color: #07070b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============ DASHBOARD ============ */
.dash-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
}
.dash-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  transition: background 0.2s;
}
.dash-row:hover { background: rgba(255,255,255,0.03); }
.dash-row + .dash-row { border-top: 1px solid rgba(255,255,255,0.05); }
.dash-row .tag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(167,139,250,0.15); color: #ddd6fe;
  border: 1px solid rgba(167,139,250,0.25);
}
.dash-row .tag.ok { background: rgba(52,211,153,0.15); color: #6ee7b7; border-color: rgba(52,211,153,0.3); }
.dash-row .tag.warn { background: rgba(251,191,36,0.15); color: #fcd34d; border-color: rgba(251,191,36,0.3); }
.dash-row .tag.alt { background: rgba(34,211,238,0.15); color: #67e8f9; border-color: rgba(34,211,238,0.3); }

/* scroll bar styling */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  border: 2px solid #07070b;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
