/* ==============================================================================
 * Zyven Ask Pro — Luxury Glassmorphic Design System (Light Violet Glass + Dark Mode)
 * Default: Ultra-Premium White Frosted Glass with delicate violet aura.
 * Toggle: Seamless instant transition between White Glass and Obsidian Dark.
 * ============================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Default: Premium White Glass with soft violet tone */
  --bg-gradient: radial-gradient(circle at 50% 0%, #faf8ff 0%, #f4f0fd 45%, #ece5f8 100%);
  --ink: #1a153a;
  --ink-secondary: #2e2658;
  --muted: #645e82;
  --muted-light: #7e789c;
  --glass-surface: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(139, 92, 246, 0.18);
  --glass-border-hover: rgba(139, 92, 246, 0.42);
  --glass-shadow: 0 16px 40px rgba(124, 92, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --violet-glow: rgba(124, 58, 237, 0.35);
  --violet-soft: #ede9fe;
  --violet-subtle: rgba(139, 92, 246, 0.1);
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.25);
  
  --orb-gradient: radial-gradient(circle at 35% 28%, #ffffff 0%, #ddd6fe 35%, #a78bfa 70%, #7c3aed 100%);
  --orb-glow: 0 20px 60px rgba(124, 92, 255, 0.35), 0 0 0 16px rgba(124, 92, 255, 0.06);
  --orb-text: #ffffff;
  
  --blob-1: #c4b5fd;
  --blob-2: #ddd6fe;
  --blob-3: #e0e7ff;
  --blob-opacity: 0.65;
  
  --red: #ef4444;
  --green: #10b981;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-gradient: radial-gradient(circle at 50% 0%, #171635 0%, #0b0c16 65%, #05060a 100%);
  --ink: #f8fafc;
  --ink-secondary: #e2e8f0;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --glass-surface: rgba(18, 19, 36, 0.68);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(139, 92, 246, 0.45);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  
  --violet: #8b5cf6;
  --violet-deep: #7c3aed;
  --violet-glow: rgba(139, 92, 246, 0.55);
  --violet-soft: rgba(139, 92, 246, 0.2);
  --violet-subtle: rgba(139, 92, 246, 0.15);
  --cyan: #38bdf8;
  
  --orb-gradient: radial-gradient(circle at 35% 28%, #c4b5fd 0%, #8b5cf6 55%, #4c1d95 100%);
  --orb-glow: 0 0 80px rgba(139, 92, 246, 0.55), inset 0 2px 14px rgba(255, 255, 255, 0.6);
  --orb-text: #ffffff;
  
  --blob-1: #6d28d9;
  --blob-2: #0369a1;
  --blob-3: #be185d;
  --blob-opacity: 0.32;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Ambient Glowing Blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity); transition: opacity 0.4s ease, background 0.4s ease; }
.blob.b1 { width: 520px; height: 520px; background: var(--blob-1); top: -120px; left: -100px; animation: drift1 20s ease-in-out infinite alternate; }
.blob.b2 { width: 480px; height: 480px; background: var(--blob-2); bottom: -150px; right: -80px; animation: drift2 24s ease-in-out infinite alternate; }
.blob.b3 { width: 340px; height: 340px; background: var(--blob-3); top: 38%; left: 58%; animation: drift1 28s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-70px, -50px) scale(0.9); } }

.topbar, .hero, .section, .footer, .call-main { position: relative; z-index: 1; }

/* ---------- Top Bar Navigation ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; max-width: 1120px; margin: 20px auto 0;
  border-radius: 24px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.brand-wrap { display: flex; align-items: center; gap: 12px; }
.brand-badge-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; color: #fff;
  box-shadow: 0 4px 16px var(--violet-glow);
}

.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.pro-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px;
  padding: 3px 8px; border-radius: 6px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff; box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.topbar-right { display: flex; align-items: center; gap: 20px; }
.topnav { display: flex; gap: 28px; color: var(--muted); font-weight: 600; font-size: 15px; }
.topnav a { transition: color 0.2s ease; }
.topnav a:hover { color: var(--violet); }

/* ---------- Premium White / Dark Glass Mode Toggle ---------- */
.theme-toggle-wrap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--violet-subtle);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.theme-toggle-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
  color: var(--violet); text-transform: uppercase; user-select: none;
}
.glass-toggle {
  position: relative; width: 48px; height: 26px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 999px; border: 1px solid rgba(139, 92, 246, 0.3);
  cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-toggle .toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
body.dark-mode .glass-toggle {
  background: rgba(139, 92, 246, 0.5);
  border-color: rgba(139, 92, 246, 0.6);
}
body.dark-mode .glass-toggle .toggle-thumb {
  transform: translateX(22px);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-small { padding: 10px 22px; font-size: 14px; }
.btn-primary { font-size: 17px; padding: 16px 36px; background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }
.btn-secondary {
  font-size: 17px; padding: 16px 32px;
  background: var(--glass-surface); color: var(--ink);
  border: 1px solid var(--glass-border); backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.btn-secondary:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 92, 255, 0.12); }

.btn-glow {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff; box-shadow: 0 8px 24px var(--violet-glow);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5); }

/* ---------- Hero Section ---------- */
.hero { text-align: center; padding: 64px 24px 44px; max-width: 820px; margin: 0 auto; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 999px;
  background: var(--violet-subtle); border: 1px solid var(--glass-border);
  font-size: 13px; font-weight: 700; color: var(--violet); margin-bottom: 30px;
  backdrop-filter: blur(12px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }

.hero-orb {
  width: 165px; height: 165px; margin: 0 auto 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--orb-gradient);
  box-shadow: var(--orb-glow);
  animation: breathe 3.6s ease-in-out infinite;
  transition: all 0.4s ease;
}
.hero-orb span { font-size: 68px; font-weight: 800; color: var(--orb-text); text-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.orb-ring {
  position: absolute; inset: -18px; border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  animation: spin 12s linear infinite;
}
.orb-ring::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px;
  border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet);
}

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero h1 { font-size: 58px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 18px; }
.gradient-text {
  background: linear-gradient(135deg, var(--violet-deep) 10%, var(--violet) 60%, #ec4899 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
body.dark-mode .gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #c4b5fd 60%, #8b5cf6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub { color: var(--muted); font-size: 20px; line-height: 1.6; margin-bottom: 34px; max-width: 700px; margin-inline: auto; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }

.hero-specs {
  display: inline-flex; align-items: center; gap: 32px;
  padding: 16px 36px; border-radius: 20px;
  background: var(--glass-surface); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px); box-shadow: var(--glass-shadow);
}
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-val { font-size: 20px; font-weight: 800; color: var(--ink); }
.spec-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.spec-divider { width: 1px; height: 32px; background: var(--glass-border); }

/* ---------- Section Grids ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
.section-header { text-align: center; margin-bottom: 38px; }
.section-tag { font-size: 12px; font-weight: 800; color: var(--violet); letter-spacing: 1.5px; text-transform: uppercase; }
.section h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; margin-top: 8px; color: var(--ink); }

.steps, .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step, .feature {
  background: var(--glass-surface); border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 32px 28px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease; box-shadow: var(--glass-shadow);
}
.step:hover, .feature:hover {
  transform: translateY(-4px); border-color: var(--glass-border-hover);
  box-shadow: 0 20px 48px rgba(124, 92, 255, 0.14);
}

.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.step-n { font-size: 13px; font-weight: 800; color: var(--violet); background: var(--violet-soft); padding: 4px 10px; border-radius: 8px; }
.step-icon, .feat-icon { font-size: 28px; }
.feat-icon { margin-bottom: 16px; }
.step h3, .feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.step p, .feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Call Page Styling ---------- */
.call-page { display: flex; flex-direction: column; min-height: 100vh; }
.call-topbar { width: calc(100% - 48px); }
.call-status { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.timer { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-surface); border: 1px solid var(--glass-border);
  color: var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.icon-btn:hover { background: var(--violet-soft); color: var(--violet); transform: scale(1.05); }

.call-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 32px 24px; text-align: center;
}

.orb-container { position: relative; }
.orb {
  width: clamp(140px, 27vh, 220px); height: clamp(140px, 27vh, 220px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--orb-gradient);
  box-shadow: var(--orb-glow);
  animation: breathe 3.6s ease-in-out infinite;
  transition: all 0.3s ease;
}
.orb span { font-size: clamp(56px, 11vh, 92px); font-weight: 800; color: var(--orb-text); position: relative; text-shadow: 0 4px 16px rgba(0,0,0,0.3); }

.orb.listening {
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 20px 80px rgba(6, 182, 212, 0.5), inset 0 2px 14px rgba(255,255,255,0.9);
  background: radial-gradient(circle at 35% 30%, #a5f3fc, #06b6d4 55%, #0891b2 100%);
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.wave { display: flex; gap: 6px; align-items: flex-end; height: 32px; }
.wave i { width: 5px; height: 10px; border-radius: 4px; background: var(--violet); opacity: 0.8; animation: wavebar 1s ease-in-out infinite alternate; }
.wave i:nth-child(2) { animation-delay: .12s; } .wave i:nth-child(3) { animation-delay: .24s; }
.wave i:nth-child(4) { animation-delay: .36s; } .wave i:nth-child(5) { animation-delay: .48s; }
.wave i:nth-child(6) { animation-delay: .6s; } .wave i:nth-child(7) { animation-delay: .72s; }
@keyframes wavebar { from { height: 8px; } to { height: 28px; } }

.caption { font-size: clamp(16px, 2.6vh, 20px); font-weight: 700; color: var(--ink); max-width: 620px; line-height: 1.45; min-height: 30px; }
.hint { color: var(--muted); font-size: 13px; min-height: 18px; font-weight: 500; }

.call-controls { display: flex; gap: 14px; margin-top: 8px; }
.control-btn {
  border: 1px solid var(--glass-border); background: var(--glass-surface); color: var(--ink);
  border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 15px;
  backdrop-filter: blur(14px); box-shadow: var(--glass-shadow); transition: all 0.2s ease;
}
.control-btn:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.control-btn.end { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #dc2626; }
body.dark-mode .control-btn.end { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.control-btn.end:hover { background: var(--red); color: #fff; }

@media (max-height: 720px), (max-width: 600px) {
  .call-page .topbar { padding: 10px 18px; margin-bottom: 0; }
  .call-main { padding: 12px 16px; gap: 12px; min-height: calc(100vh - 65px); justify-content: space-evenly; }
  .wave { height: 24px; }
  .caption { font-size: clamp(14px, 2.3vh, 17px); max-width: 92vw; }
  .call-controls { margin-top: 4px; gap: 10px; }
  .control-btn { padding: 10px 20px; font-size: 14px; }
}

/* ---------- Drawer / Modal Settings ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); z-index: 10; }
.hidden { display: none !important; }
.backdrop.hidden, .drawer.hidden { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw);
  background: var(--glass-surface); border-left: 1px solid var(--glass-border);
  padding: 32px 28px; z-index: 11; overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
body.dark-mode .drawer { background: #111222; box-shadow: -20px 0 60px rgba(0,0,0,0.7); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer-head h2 { font-size: 22px; font-weight: 800; color: var(--ink); }

.field-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 20px 0 10px; }
.custom-select {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  background: var(--glass-surface); border: 1px solid var(--glass-border);
  color: var(--ink); font-size: 15px; font-weight: 600; outline: none;
}
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice-btn {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border);
  background: var(--glass-surface); color: var(--ink); font-size: 14px; font-weight: 700;
  text-align: left; transition: all 0.2s ease;
}
.voice-btn small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.voice-btn.active { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-deep); }
body.dark-mode .voice-btn.active { color: #fff; background: rgba(139, 92, 246, 0.25); }

.slider-row { margin-top: 14px; }
.slider-val { float: right; color: var(--violet); font-weight: 700; }
input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--violet); }

.lang-switch { display: flex; gap: 8px; }
.lang-switch button {
  flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass-surface); color: var(--muted); font-weight: 700;
}
.lang-switch button.active { background: var(--violet); color: #fff; border-color: var(--violet); }

.hardware-check-box {
  margin-top: 28px; padding: 18px; border-radius: 16px;
  background: var(--violet-subtle); border: 1px solid var(--glass-border);
}
.checks { list-style: none; margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.checks li span:first-child { margin-right: 8px; color: #10b981; }

.footer { text-align: center; color: var(--muted); padding: 48px 24px 60px; font-size: 14px; border-top: 1px solid var(--glass-border); }

/* ==============================================================================
 * Voice Document Intelligence (VDI) HUD Card & Drop Zone
 * ============================================================================== */
.doc-floating-card {
  position: fixed;
  bottom: 96px;
  left: 24px;
  max-width: 320px;
  width: calc(100% - 48px);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 18px;
  padding: 12px 14px;
  z-index: 50;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.doc-floating-card .doc-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--violet-soft);
  color: var(--violet-deep);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}
body.dark-mode .doc-floating-card .doc-badge {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.25);
}

.doc-drop-overlay {
  display: none;
  position: fixed;
  inset: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 95;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed var(--violet);
  border-radius: 24px;
  pointer-events: none;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
