/* =========================================================================
   Regional AI Summit 2.0 — Bootstrap theme
   Design system ported 1:1 from the React/Tailwind build.
   Loaded AFTER Bootstrap 5 so these rules win.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f6fb;
  --bg-dark: #0a0a10;
  --bg-dark-alt: #131319;
  --border: #e7e6ef;
  --border-dark: #24242e;
  --text: #4b4b57;
  --text-h: #0c0c12;
  --accent: #ee463d;
  --accent-dark: #c33932;
  --accent-3: #8b2fe0;

  --font-sans: 'Funnel Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Funnel Display', 'Funnel Sans', ui-sans-serif, system-ui, sans-serif;

  --shadow-card: 0 10px 30px -8px rgba(12, 12, 18, 0.08), 0 4px 8px -2px rgba(12, 12, 18, 0.04);
  --shadow-btn: 0 12px 24px -10px rgba(238, 70, 61, 0.5);

  --nav-h: 88px;
}
@media (min-width: 1200px) {
  :root { --nav-h: 128px; }
}

/* ----------------------------------------------------------------- base -- */
* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-h);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.font-heading { font-family: var(--font-heading); }
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }

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

/* --------------------------------------------------------------- layout -- */
.site-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}
.narrow  { max-width: 780px; margin-inline: auto; }
.narrower { max-width: 640px; margin-inline: auto; }
.measure { max-width: 720px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #c9c9d4; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 48px;
  text-align: center;
}

/* Hero blocks sit under the fixed navbar — clear it. */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero.hero-short { padding-bottom: 36px; }

/* Shared decorative SVG-ish background used by dark sections in the React build */
.bg-hero-image {
  background-image:
    linear-gradient(to bottom, transparent 0%, transparent 70%, var(--bg-dark) 100%),
    url('../img/hero-section/footer-desktop-orange-bg.png');
  background-size: cover;
  background-position: top;
}

/* ---------------------------------------------------------------- type -- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dark { color: #b6a3ff; }
.eyebrow-sm { font-size: 0.7rem; letter-spacing: 0.14em; }

.lead-text { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.section-dark .lead-text, .lead-text-dark { color: #b8b8c4; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(238, 70, 61, 0.4);
  background: rgba(238, 70, 61, 0.12);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

/* --------------------------------------------------------------- cards -- */
.card-ras {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card-dark {
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  background: var(--bg-dark-alt);
  padding: 28px;
  color: #b8b8c4;
}
.card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4 { color: #fff; }

/* -------------------------------------------------------------- buttons -- */
.btn-ras {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary-ras { background: var(--accent); color: #fff; }
.btn-primary-ras:hover { background: var(--accent-dark); color: #fff; }
.btn-outline-ras { border-color: var(--border); background: transparent; color: var(--text-h); }
.btn-outline-ras:hover { border-color: var(--accent); color: var(--text-h); }
.btn-outline-dark-ras { border-color: var(--border-dark); background: transparent; color: #fff; }
.btn-outline-dark-ras:hover { border-color: var(--accent); color: #fff; }
.btn-ras:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 16px 44px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}
.btn-cta:hover { background: var(--accent-dark); color: #fff; }

.icon { width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0; }

/* -------------------------------------------------------------- navbar -- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1050;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand img { height: 40px; width: auto; object-fit: contain; }
@media (min-width: 1200px) { .site-header .brand img { height: 64px; } }

.nav-links { display: none; }
@media (min-width: 1200px) {
  .nav-links {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 28px;
  }
}
.nav-links a {
  position: relative;
  padding-block: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text-h); }
.nav-links a.active { color: var(--text-h); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}
.nav-cta { display: none; }
@media (min-width: 1200px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
@media (min-width: 1200px) { .nav-toggle { display: none; } }
.nav-toggle span {
  position: relative;
  display: block;
  width: 24px; height: 2px;
  background: var(--text-h);
  border-radius: 2px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px; height: 2px;
  background: var(--text-h);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 1040;
  background: rgba(10, 10, 16, 0.98);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  gap: 4px;
  padding: 40px 24px;
}
.mobile-menu nav a {
  width: 100%;
  max-width: 340px;
  padding: 16px;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #b8b8c4;
  border-bottom: 1px solid var(--border-dark);
}
.mobile-menu nav a:last-of-type { border-bottom: 0; }
.mobile-menu nav a.active, .mobile-menu nav a:hover { color: #fff; }
.mobile-menu .btn-cta { margin-top: 32px; width: 100%; max-width: 280px; }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  background:
    linear-gradient(rgba(10, 10, 16, 0.75), rgba(10, 10, 16, 0.75)),
    url('../img/hero-section/footer-desktop-orange-bg.png');
  background-size: cover;
  background-position: top;
  color: #9d9daa;
  padding-top: 64px;
}
.site-footer a { color: #9d9daa; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 24px 48px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 576px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .site-footer .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h4 {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.site-footer .col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .col a, .site-footer .col span { font-size: 0.875rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { border-color: var(--accent); background: rgba(238, 70, 61, 0.1); }
.footer-bottom {
  max-width: 1240px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.footer-bottom .links { display: flex; gap: 20px; }

/* ------------------------------------------------------------- marquee -- */
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 64px;
  animation: marquee 28s linear infinite;
}
.marquee-track img { height: 56px; width: auto; object-fit: contain; opacity: 0.9; }
.carousel-strip .marquee-track { gap: 20px; animation-duration: 36s; }
.carousel-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------- floating 3d shapes -- */
.shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  filter: drop-shadow(0 20px 45px rgba(238, 70, 61, 0.4));
  z-index: 0;
}
.shape.float-a { animation: float-a 7s ease-in-out infinite; }
.shape.float-b { animation: float-b 8s ease-in-out infinite; }
@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(14px) rotate(8deg); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-10deg); }
}
.hero .site-container, .section .site-container { position: relative; z-index: 1; }

/* On small screens the decorative shapes read as faint background texture
   rather than competing with the copy. */
@media (max-width: 767px) {
  .shape { opacity: 0.35; width: clamp(70px, 16vw, 110px) !important; }
}

/* --------------------------------------------------------- reveal anim -- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .shape { animation: none; }
  .marquee-track { animation: none; }
}

/* --------------------------------------------------------------- grids -- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .grid-2, .grid-3, .grid-3-sm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-3-sm { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Responsive grids that pages opt into by class (never set grid-template-columns
   inline on these — an inline value would beat the media queries below). */
.g-hero-stats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .g-hero-stats { grid-template-columns: repeat(3, 1fr); } }

.g-stats-6 { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 576px) { .g-stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .g-stats-6 { grid-template-columns: repeat(6, 1fr); } }

.g-stats-3 { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); text-align: center; }

.g-stats-4 { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 576px) { .g-stats-4 { grid-template-columns: repeat(4, 1fr); } }

/* Rewards: 1-col on very small screens so the big ₹ figures never clip */
@media (max-width: 419px) { .grid-4 { grid-template-columns: 1fr; } }

.g-venue { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
@media (min-width: 992px) { .g-venue { grid-template-columns: repeat(3, 1fr); } }

.g-partners { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden;
  border-radius: 20px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (min-width: 576px) { .g-partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .g-partners { grid-template-columns: repeat(4, 1fr); } }

.g-resource { display: grid; grid-template-columns: 1fr; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--border); background: var(--bg); }
@media (min-width: 768px) { .g-resource { grid-template-columns: 1fr auto; } .g-resource .download-cta { width: 18rem; } }

.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.stat-num.size-sm { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.stat-num.size-md { font-size: clamp(1.3rem, 5vw, 2.6rem); }
.stat-num.size-xl { font-size: clamp(3.5rem, 9vw, 6.5rem); }
.stat-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.stat-plain .stat-num { color: var(--text-h); }
.section-dark .stat-plain .stat-num { color: #fff; }

/* ---------------------------------------------------------------- forms -- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 576px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-span-full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 0.82rem; font-weight: 600; color: var(--text-h); }
.field input, .field select, .field textarea,
.input-ras {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-h);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
legend {
  float: none;
  width: auto;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-h);
}
.choice-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 576px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  cursor: pointer;
}
.choice.selected { border-color: var(--accent); background: rgba(238, 70, 61, 0.12); }
.summary-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text); }
.summary-row.total { border-top: 1px solid var(--border); padding-top: 10px; font-size: 1.05rem; font-weight: 700; color: var(--text-h); }
.alert-error {
  border-radius: 12px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #b91c1c;
}
.alert-ok {
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #15803d;
}
.member-block { border-top: 1px dashed var(--border); padding-top: 12px; }
.member-block .who { display: block; margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- helpers -- */
.list-disc { padding-left: 20px; }
.list-disc li { list-style: disc; margin-bottom: 6px; line-height: 1.6; font-size: 0.9rem; color: var(--text); }
.text-muted-ras { color: var(--text); }
.hr-accent { display: inline-block; height: 4px; width: 80px; border-radius: 999px; background: var(--accent); }
.download-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 40px 32px;
  text-align: center;
  font-weight: 600;
}
.download-cta:hover { background: var(--accent-dark); color: #fff; }

.prose h2 { margin-top: 32px; margin-bottom: 8px; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-h); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; line-height: 1.7; color: var(--text); }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li { margin-bottom: 6px; line-height: 1.7; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; }

/* Orbit diagram (What You Get) — desktop only, matches React version */
.orbit { position: relative; width: 100%; max-width: 800px; margin-inline: auto; aspect-ratio: 1 / 1; display: none; }
@media (min-width: 992px) { .orbit { display: block; } .orbit-cards { display: none; } }
.orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 112px; height: 112px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-btn);
}
.orbit-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.orbit-label {
  position: absolute;
  border: 1px solid var(--border); background: var(--bg);
  border-radius: 999px; padding: 8px 16px;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  color: var(--text-h); box-shadow: var(--shadow-card);
}
