/* InnerSpark AI — premium theme extensions */
:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --success: #10b981;
  --bg: #f8fafc;
  --dark: #0f172a;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --text: #0f172a;
  --muted: #64748b;
  --card-shadow: 0 10px 40px -12px rgba(79, 70, 229, 0.18);
  --radius: 1.25rem;
}

html.dark {
  --bg: #0b1220;
  --glass: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --card-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Poppins", system-ui, sans-serif;
}

/* Animated gradient hero */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(79, 70, 229, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(6, 182, 212, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 60% 80%, rgba(245, 158, 11, 0.14), transparent 50%),
    linear-gradient(160deg, #f8fafc 0%, #eef2ff 40%, #ecfeff 100%);
}

html.dark .hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(79, 70, 229, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(6, 182, 212, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 40% at 60% 80%, rgba(245, 158, 11, 0.1), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #0f172a 45%, #0c1a2e 100%);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

html.dark .glass-strong {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.15);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.orb-1 { width: 320px; height: 320px; background: #4f46e5; top: 8%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 260px; height: 260px; background: #06b6d4; top: 30%; right: -4%; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #f59e0b; bottom: 10%; left: 30%; animation-delay: -6s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.05); }
}

/* Neural dots decoration */
.neural-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.15) 1px, transparent 0);
  background-size: 28px 28px;
}

html.dark .neural-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.12) 1px, transparent 0);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #4f46e5, #6366f1 50%, #06b6d4);
  background-size: 200% 200%;
  box-shadow: 0 10px 30px -8px rgba(79, 70, 229, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 36px -10px rgba(79, 70, 229, 0.65);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9999px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.45);
}

/* Cards */
.card-premium {
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -16px rgba(79, 70, 229, 0.28);
}

/* Timeline */
.timeline-line {
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
}

/* Report mockup */
.report-mock {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 25px 60px -20px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

html.dark .report-mock {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: rgba(148, 163, 184, 0.15);
}

/* FAQ accordion */
.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Progress bar for quiz */
.quiz-progress {
  height: 6px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.quiz-progress > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  transition: width 0.35s ease;
}

/* Option chips */
.option-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  background: var(--glass);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.option-chip:hover {
  border-color: rgba(79, 70, 229, 0.55);
  transform: translateX(3px);
}

.option-chip.selected {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

html.dark .option-chip.selected {
  background: rgba(79, 70, 229, 0.2);
}

/* Sticky nav */
.nav-scrolled {
  background: var(--glass) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.12);
}

/* Tamil font support */
.lang-ta, [lang="ta"] {
  font-family: "Inter", "Noto Sans Tamil", "Latha", "Tamil MN", system-ui, sans-serif;
  line-height: 1.7;
}

/* Counter */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 420px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 9999px;
}

/* Section fade helper */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

/* WhatsApp float (HSKZone-style) */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
.wa-float-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* Hero image frame */
.hero-visual {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -20px rgba(79, 70, 229, 0.45);
  border: 1px solid rgba(255,255,255,0.4);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Float animation for decorative vectors */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-bob { animation: bob 4.5s ease-in-out infinite; }

/* Pricing badges */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: #4f46e5;
}
.price-tag small {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

