/* Shravan.ai — shared design system */
:root {
  --bg: #07090f;
  --bg-elevated: #0c1018;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(6, 182, 212, 0.35);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --emerald: #34d399;
  --radius: 1rem;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --shadow-glow: 0 20px 50px -20px rgba(34, 211, 238, 0.35);
  --safe-x: max(1rem, env(safe-area-inset-left));
  --safe-r: max(1rem, env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.55;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.font-display { font-family: var(--font-display); }
.container-site {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(1.25rem, var(--safe-x)) max(1.25rem, var(--safe-r));
}
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: max(1.25rem, var(--safe-x)) max(1.25rem, var(--safe-r));
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text-animated {
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--pink), var(--cyan));
  background-size: 280% 280%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 10s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.65);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
}

.live-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.feature-card, .pricing-card {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover, .pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 50px -30px rgba(34, 211, 238, 0.35);
}

.pricing-popular {
  border: 1px solid rgba(34, 211, 238, 0.55);
  position: relative;
  overflow: hidden;
}
.pricing-popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: 14px;
  right: -36px;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 40px;
  transform: rotate(45deg);
}

.voice-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  animation: wave 1s ease-in-out infinite;
}
.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.55); }
}

#particles-canvas, #hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#particles-canvas { position: fixed; z-index: -1; }

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.925rem;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.active { transform: translateX(0); }

.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  outline: none;
}
.auth-input:focus {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.auth-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
}
.auth-tab.active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.75);
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(99,102,241,0.2));
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.step-line {
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.45), rgba(139,92,246,0.45), transparent);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #6366f1);
  border-radius: 4px;
}

/* Dashboard shared */
.dash-shell { min-height: 100vh; background: linear-gradient(145deg, #07090f 0%, #0f172a 48%, #0a1220 100%); }
.dash-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(14px);
}
.dash-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
}
.dash-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6,182,212,0.15);
}
select.dash-input { color-scheme: dark; }
select.dash-input option { background: #0f172a; color: #e2e8f0; }
.kpi-card {
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}
.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .pricing-popular::before { font-size: 9px; top: 10px; right: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
