/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --green-dark:   #1a5c2e;
  --green-mid:    #2d8a4e;
  --green-light:  #e6f4eb;
  --gold:         #c8860a;
  --gold-light:   #fdf3dc;
  --text:         #1a1a1a;
  --text-muted:   #555;
  --bg:           #f9f7f2;
  --bg-alt:       #f0ede5;
  --white:        #ffffff;
  --border:       #d9d4c7;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);

  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-deva:    'Noto Serif Devanagari', 'Mangal', serif;

  --max-w:        1100px;
  --gap:          1.5rem;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-lead {
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--green-mid);
  padding-left: 0.85rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  background: transparent;
}

.hero .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 5px;
  background: var(--green-dark);
  color: var(--white);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-deva);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--green-dark); text-decoration: none; }
.nav-links .btn-sm { color: var(--white); }
.nav-links .btn-sm:hover { color: var(--white); }

/* Hide nav text links on very small screens, keep GitHub button */
@media (max-width: 480px) {
  .nav-links a:not(.btn-sm) { display: none; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, #0f3d1d 100%);
  color: var(--white);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-event {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.hero-deva {
  font-family: var(--font-deva);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #a8dbb4;
}

.hero-en {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.18rem);
  opacity: 0.88;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  font-style: italic;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats {
  background: var(--green-dark);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max-w);
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
}

.stat:nth-child(even) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }

.stat-num {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #a8dbb4;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.8;
  line-height: 1.3;
  max-width: 140px;
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: none; }
  .stat:last-child { border-right: none; }
  .stat:nth-child(even) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat:last-child { border-right: none; }
}

/* =============================================
   COMPARE CARDS (Problem section)
   ============================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 1.5rem;
}

@media (min-width: 680px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.compare-before {
  background: #fff8f8;
  border-color: #e0b0b0;
}

.compare-after {
  background: var(--green-light);
  border-color: #9fcfaa;
}

.compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.compare-role {
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.compare-result {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
}

.compare-result.bad  { background: #fce8e8; color: #c0392b; }
.compare-result.good { background: #d4edda; color: #1a5c2e; }

/* =============================================
   PIPELINE
   ============================================= */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pipeline-step {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.step-body h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.step-body p { font-size: 0.93rem; color: var(--text-muted); }

.pipeline-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--green-mid);
  line-height: 1;
  transform: rotate(90deg);
  align-self: center;
}

@media (min-width: 860px) {
  .pipeline { flex-direction: row; align-items: flex-start; }
  .pipeline-arrow { transform: rotate(0deg); padding-top: 1.5rem; }
  .pipeline-step { flex: 1; }
}

/* Score bands */
.score-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.band {
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.band.green  { background: #d4edda; color: #1a5c2e; }
.band.yellow { background: #fff3cd; color: #856404; }
.band.red    { background: #f8d7da; color: #721c24; }

/* Twin cards inside step 3 */
.twin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 520px) {
  .twin-cards { grid-template-columns: 1fr 1fr; }
}

.twin-card {
  background: var(--green-light);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

.twin-card strong { display: block; color: var(--green-dark); margin-bottom: 0.3rem; }
.twin-card p { color: var(--text-muted); margin: 0; }

.human-loop {
  background: var(--gold-light);
  border-left-color: var(--gold);
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* =============================================
   HOW IT WORKS — 3-COLUMN LAYOUT
   ============================================= */
.how-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 860px) {
  .how-grid { flex-direction: row; align-items: flex-start; gap: 0.25rem; }
}

.how-col {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.how-arrow {
  flex-shrink: 0;
  font-size: 1.8rem;
  color: var(--gold);
  align-self: center;
  text-align: center;
  padding: 0.5rem;
  transform: rotate(90deg);
}

@media (min-width: 860px) {
  .how-arrow { transform: rotate(0deg); padding-top: 3rem; }
}

.how-col-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.how-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

.how-title-mr {
  display: block;
  font-family: var(--font-deva);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.how-title-en {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.how-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.how-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.how-items li { margin: 0; }

.how-item-mr {
  display: block;
  font-family: var(--font-deva);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.how-item-en {
  display: block;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Risk bar */
.risk-bar-wrap { margin-bottom: 1.25rem; }

.risk-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-align: center;
}

.risk-bar {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #c0392b, #e67e22, #27ae60);
  margin-bottom: 0.3rem;
}

.risk-bar-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Signal list */
.signal-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.signal-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.signal-list li:last-child { border-bottom: none; }

.signal-pct {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 1rem;
}

/* =============================================
   CAPABILITIES GRID
   ============================================= */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 560px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cap-grid { grid-template-columns: repeat(4, 1fr); } }

.cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.cap-icon { font-size: 2rem; margin-bottom: 0.6rem; }

.cap-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.cap-card p { font-size: 0.88rem; color: var(--text-muted); }

/* =============================================
   MVP SECTION
   ============================================= */
.mvp-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.mvp-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow);
}

.mvp-item.done { border-left: 4px solid var(--green-mid); }

.mvp-check {
  flex-shrink: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.mvp-item strong { color: var(--green-dark); display: block; margin-bottom: 0.25rem; }
.mvp-item p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* Roadmap */
.roadmap-title {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roadmap-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--green-mid);
  transform: rotate(90deg);
  line-height: 1;
}

.roadmap-phase {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
}

.roadmap-phase.active {
  border-color: var(--green-mid);
  background: var(--green-light);
}

.phase-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-mid);
  margin-bottom: 0.2rem;
}

.roadmap-phase strong { color: var(--green-dark); display: block; margin-bottom: 0.2rem; }
.roadmap-phase p { font-size: 0.87rem; color: var(--text-muted); margin: 0; }

@media (min-width: 720px) {
  .roadmap { flex-direction: row; align-items: flex-start; }
  .roadmap-arrow { transform: rotate(0deg); padding-top: 1.2rem; }
  .roadmap-phase { flex: 1; }
}

/* =============================================
   DEMO VIDEO
   ============================================= */
.video-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.video-placeholder p:first-child { font-size: 1.2rem; margin-bottom: 0.5rem; }
.video-sub { font-size: 0.9rem; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* =============================================
   ECONOMICS
   ============================================= */
.econ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

@media (min-width: 720px) {
  .econ-grid { grid-template-columns: repeat(4, 1fr); }
}

.econ-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow);
}

.econ-num {
  display: block;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.econ-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* =============================================
   TEAM
   ============================================= */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 1.5rem;
  justify-content: center;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 160px;
  max-width: 240px;
}

.team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.team-card strong { font-size: 1rem; color: var(--text); margin-bottom: 0.2rem; }

.team-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.team-email {
  font-size: 0.78rem;
  color: var(--green-mid);
  margin-top: 0.4rem;
  word-break: break-all;
}

.team-advisors {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.footer-name {
  font-family: var(--font-deva);
  font-size: 1.3rem;
  color: #a8dbb4;
  margin-bottom: 0.35rem;
}

.footer-sub {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer-sub a {
  color: rgba(255,255,255,0.8);
}

.footer-sub a:hover { color: #a8dbb4; text-decoration: none; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

.footer-links a:hover { color: #a8dbb4; text-decoration: none; }

/* =============================================
   ACCESSIBILITY
   ============================================= */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

#problem .section-lead {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}
[lang="mr"] body {
  font-family: var(--font-deva);
  line-height: 1.8;
}
