/* ============================================================
   GeoBD — Ultra-Sleek, Minimal & Professional Design System
   Next-Gen Generative Engine Optimization (GEO) Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Deep Obsidian & Cyber Emerald */
  --bg-primary: #070a11;
  --bg-secondary: #0c121e;
  --bg-tertiary: #131b2c;
  --bg-card: rgba(13, 20, 34, 0.75);
  --bg-card-hover: rgba(19, 29, 49, 0.85);
  --bg-glass: rgba(12, 18, 30, 0.7);

  /* Accents */
  --accent-emerald: #00f59b;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(0, 245, 155, 0.22);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.2);
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #070a11;

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(0, 245, 155, 0.4);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-bn: 'Hind Siliguri', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-emerald: 0 10px 30px -5px rgba(0, 245, 155, 0.28);
  --shadow-glow: 0 0 45px rgba(0, 245, 155, 0.15);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 18% 12%, rgba(0, 245, 155, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 82% 8%, rgba(6, 182, 212, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 50% 65%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

:lang(bn), .lang-bn {
  font-family: var(--font-bn);
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-hero {
  padding: 8.5rem 0 5rem;
}

/* Typography Helpers */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--accent-emerald) 75%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-emerald {
  color: var(--accent-emerald);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Badge / Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  color: var(--accent-emerald);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00f59b 0%, #059669 100%);
  color: #070a11;
  font-weight: 700;
  box-shadow: var(--shadow-emerald);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 245, 155, 0.4);
  background: linear-gradient(135deg, #24fdb0 0%, #047857 100%);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-highlight {
  border-color: rgba(0, 245, 155, 0.35);
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.08);
}

/* Header & Glass Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 10, 17, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  padding: 0.8rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-emerald), #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070a11;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 245, 155, 0.3);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.brand-text span {
  color: var(--accent-emerald);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: var(--transition);
}

.lang-btn.active {
  background: rgba(0, 245, 155, 0.18);
  color: var(--accent-emerald);
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.25rem;
}

/* Live Search Hero Bar */
.hero-search-box {
  background: rgba(13, 20, 34, 0.9);
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: var(--radius-2xl);
  padding: 0.5rem 0.6rem 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 16px 40px -10px rgba(0, 245, 155, 0.2);
  transition: var(--transition);
  max-width: 620px;
  margin: 2.2rem auto 1.5rem;
}

.hero-search-box:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 35px rgba(0, 245, 155, 0.35);
}

.hero-search-input {
  flex: 1;
  font-size: 1rem;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

/* Preset Chips */
.preset-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.preset-chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
}

.preset-chip:hover {
  background: rgba(0, 245, 155, 0.1);
  border-color: rgba(0, 245, 155, 0.3);
  color: var(--accent-emerald);
}

/* Live Interactive Audit Card */
.audit-engine-box {
  background: linear-gradient(180deg, rgba(16, 25, 43, 0.85) 0%, rgba(9, 14, 25, 0.95) 100%);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 245, 155, 0.08);
  margin-top: 3.5rem;
  position: relative;
}

.audit-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Radial Gauge */
.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-circle {
  position: relative;
  width: 190px;
  height: 190px;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 12;
}

.gauge-bar {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 472;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-score {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-family: var(--font-mono);
  color: #ffffff;
}

.gauge-lbl {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* Metric Bars */
.metric-bars {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.metric-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.metric-bar-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-bar-score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-emerald);
}

.bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #06b6d4, #00f59b);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Engine Badges in Audit Result */
.engine-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.engine-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
}

.engine-pill.cited {
  background: rgba(0, 245, 155, 0.1);
  border-color: rgba(0, 245, 155, 0.3);
  color: var(--accent-emerald);
}

.engine-pill.partial {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

/* Comparison Simulator Tabs */
.sim-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.sim-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  position: relative;
}

.sim-box.highlight {
  border-color: rgba(0, 245, 155, 0.35);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.7) 0%, rgba(10, 16, 28, 0.8) 100%);
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.07);
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.sim-badge.negative {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.sim-badge.positive {
  background: rgba(0, 245, 155, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 245, 155, 0.3);
}

.sim-query {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-output {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.sim-citation {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 245, 155, 0.2);
  color: var(--accent-emerald);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin: 1.25rem 0 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li span.check {
  color: var(--accent-emerald);
  font-weight: 800;
}

/* Contact & Supabase Form */
.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.925rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-emerald);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.2);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 380px;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  background: rgba(6, 9, 15, 0.8);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.825rem;
}

/* Dashboard Layout Specifics */
.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 2rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.dash-nav-item:hover, .dash-nav-item.active {
  background: rgba(0, 245, 155, 0.1);
  color: var(--accent-emerald);
}

.dash-content {
  padding: 2.5rem;
  overflow-y: auto;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.dash-stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  margin: 0.5rem 0 0.2rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .sim-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: 1fr; }
  .section-hero { padding: 7rem 0 3.5rem; }
  .hero-search-box { flex-direction: column; padding: 0.75rem; }
  .hero-search-box .btn { width: 100%; }
}
