/* ==========================================================================
   MapaBharat — AI-Powered B2B Geospatial Search & Spatial Intelligence for India
   Vanilla CSS, Zero Dependencies, Responsive, Fast
   ========================================================================== */

:root {
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #27354f;
  --bg-glass: rgba(15, 23, 42, 0.88);
  --border-color: #334155;
  --border-light: #475569;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Brand colors */
  --brand-coral: #e07b6c;
  --brand-coral-dark: #c2594a;
  --brand-blue: #2f8edc;
  --brand-blue-dark: #1e70b3;
  --brand-mid: #94a3b8;
  
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  
  --gradient-brand: linear-gradient(135deg, #e07b6c 0%, #f59e0b 50%, #2f8edc 100%);
  --gradient-card: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(224, 123, 108, 0.12) 0%, rgba(47, 142, 220, 0.12) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 32px rgba(47, 142, 220, 0.25);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #60a5fa;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-name {
  display: flex;
  align-items: center;
  letter-spacing: -0.3px;
}

.brand-map {
  color: var(--brand-coral);
}

.brand-mid {
  color: var(--brand-mid);
  font-size: 0.9em;
  padding: 0 1px;
}

.brand-bharat {
  color: var(--brand-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 500px;
  background: radial-gradient(circle, rgba(47, 142, 220, 0.18) 0%, rgba(224, 123, 108, 0.12) 40%, rgba(11, 17, 32, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #e07b6c 0%, #2f8edc 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(47, 142, 220, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: #ffffff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-coral {
  background: rgba(224, 123, 108, 0.15);
  color: #f87171;
  border: 1px solid rgba(224, 123, 108, 0.3);
}

.badge-blue {
  background: rgba(47, 142, 220, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(47, 142, 220, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Sections */
.section {
  padding: 70px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 14px;
}

.section-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Cards */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(47, 142, 220, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card-icon.coral {
  background: rgba(224, 123, 108, 0.12);
  color: var(--brand-coral);
}

.card-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Showcase Interactive / Replay Tabs */
.showcase-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showcase-header {
  padding: 20px 24px;
  background: rgba(11, 17, 32, 0.6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-tab {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab:hover, .showcase-tab.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.showcase-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 540px;
}

.showcase-viewer {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--border-color);
}

.showcase-viewer img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.showcase-meta {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--gradient-card);
}

.query-chip {
  background: rgba(47, 142, 220, 0.12);
  border: 1px solid rgba(47, 142, 220, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #7dd3fc;
  margin: 14px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.galum-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.galum-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.galum-text {
  font-size: 0.93rem;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Feature checklist */
.feature-list {
  list-style: none;
  margin-top: 14px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✔";
  color: var(--accent-emerald);
  font-weight: bold;
}

/* Architecture diagrams */
.diagram-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

/* Footer */
.footer {
  background-color: #070b14;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

/* Story Walkthrough Cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.story-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg);
}

.story-media {
  background: #000;
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.story-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 10px;
}

.story-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
}

.story-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.story-meta-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.story-meta-box code {
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .grid-2, .grid-3, .grid-4, .story-grid {
    grid-template-columns: 1fr;
  }
  .showcase-body {
    grid-template-columns: 1fr;
  }
  .showcase-viewer {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
