/* ===========================================================
   Nex-Kart — Smart Milk & Dairy Distribution
   Design concept: the page moves from NIGHT (the old, manual
   round) through DAWN (the app arrives) into full DAYLIGHT
   (the results). A single dotted "route" line runs the length
   of the page — the same line the delivery van follows later —
   tying the visual structure to the actual subject: a route.
=========================================================== */

:root{
  --ink:        #10233A;
  --ink-soft:   #1C3654;
  --dawn:       #F5A623;
  --dawn-soft:  #F7C871;
  --mint:       #2FA88E;
  --milk:       #FBFBF8;
  --paper:      #FFF9EE;
  --text:       #1D2430;
  --text-soft:  #5B6472;
  --line:       #E7C98A;

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
}
img, svg{ display:block; max-width:100%; }
a{ color: inherit; }
h1,h2,h3{ font-family: var(--display); margin: 0; line-height: 1.08; font-weight: 600; }
p{ margin: 0; }

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

/* ---------- route spine (signature element) ---------- */
.route-spine{
  position: fixed;
  top: 0; left: 22px;
  width: 2px; height: 100%;
  background: repeating-linear-gradient(to bottom, rgba(16,35,58,0.16) 0 6px, transparent 6px 14px);
  z-index: 5;
  display: none;
}
.route-spine__fill{
  position: absolute; top:0; left:0; width:100%; height:0%;
  background: linear-gradient(to bottom, var(--dawn), var(--mint));
  transition: height 0.15s linear;
}
@media(min-width: 1100px){ .route-spine{ display:block; } }

/* ---------- nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 20;
  background: rgba(16,35,58,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner{
  max-width: 1140px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--milk);
}
.brand{ display:flex; align-items:center; gap:9px; text-decoration:none; color: var(--milk); font-family: var(--display); font-weight:600; font-size: 1.15rem; }
.nav__links{ display:flex; gap: 28px; }
.nav__links a{ text-decoration:none; font-size: 0.92rem; color: rgba(251,251,248,0.78); transition: color 0.15s; }
.nav__links a:hover{ color: var(--dawn-soft); }
.nav__cta{
  text-decoration:none; font-size:0.88rem; font-weight:600; color: var(--ink);
  background: var(--dawn); padding: 9px 18px; border-radius: 100px;
}
@media(max-width: 760px){ .nav__links{ display:none; } }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items:center; gap: 8px;
  text-decoration:none; font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 100px; transition: transform 0.15s ease, background 0.15s;
}
.btn--primary{ background: var(--dawn); color: var(--ink); }
.btn--primary:hover{ transform: translateY(-1px); background: var(--dawn-soft); }
.btn--ghost{ color: var(--milk); border: 1px solid rgba(251,251,248,0.35); }
.btn--ghost:hover{ border-color: rgba(251,251,248,0.7); }
.btn--lg{ padding: 15px 30px; font-size: 1rem; }

/* ---------- eyebrow / section shared ---------- */
.eyebrow{
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; color: var(--ink); font-weight: 600; margin: 0 0 14px;
}
.eyebrow--light{ color: var(--dawn-soft); }
.section__inner{ max-width: 1140px; margin: 0 auto; padding: 100px 28px; }
.section__title{ font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 20px; color: var(--ink); }
.section__title--light{ color: var(--milk); }
.section__lede{ max-width: 560px; font-size: 1.08rem; color: var(--text-soft); line-height: 1.55; margin-bottom: 56px; }
.section__lede--light{ color: rgba(251,251,248,0.72); }

/* ===================== HERO ===================== */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #0B1A2C 0%, #10233A 55%, #1C3654 100%);
  overflow: hidden;
  padding: 140px 0 0;
}
.hero__sky{ position:absolute; inset:0; opacity:0.9; }
.hero__stars{ width:100%; height:100%; }
.hero__inner{
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto; padding: 0 28px 120px;
}
.hero__title{
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  color: var(--milk);
  max-width: 780px;
  margin-bottom: 26px;
}
.hero__sub{
  font-size: 1.15rem; line-height: 1.6; color: rgba(251,251,248,0.72);
  max-width: 520px; margin-bottom: 40px;
}
.hero__actions{ display:flex; gap: 16px; flex-wrap: wrap; }
.hero__horizon{
  position: absolute; left:0; right:0; bottom:0; height: 220px;
  background: linear-gradient(180deg, rgba(245,166,35,0) 0%, rgba(245,166,35,0.22) 100%);
  pointer-events: none;
}

/* ===================== DUSK (challenges) ===================== */
.section--dusk{ background: linear-gradient(180deg, #1C3654 0%, #2A3F58 100%); }

.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--three{ margin-top: 44px; }
.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
}
.card--dark{
  background: rgba(251,251,248,0.05);
  border: 1px solid rgba(245,166,35,0.22);
}
.card--dark h3{ color: var(--milk); }
.card--dark p{ color: rgba(251,251,248,0.65); }
.card__icon{ margin-bottom: 18px; }
.card h3{ font-size: 1.18rem; margin-bottom: 10px; color: var(--ink); }
.card p{ font-size: 0.95rem; line-height: 1.55; color: var(--text-soft); }

@media(max-width: 860px){ .card-grid{ grid-template-columns: 1fr; } }

/* ===================== DAWN (solution) ===================== */
.section--dawn{ background: linear-gradient(180deg, #2A3F58 0%, #FFF9EE 22%, #FFF9EE 100%); }

.feature-row{
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 46px 0; border-top: 1px solid var(--line);
}
.feature-row:first-of-type{ border-top: 1px solid var(--line); }
.feature-row--reverse .feature-row__text{ order: 2; }
.feature-row--reverse .feature-row__art{ order: 1; }
.feature-row__index{
  display:inline-block; font-family: var(--mono); font-size: 0.76rem;
  color: var(--mint); letter-spacing: 0.03em; margin-bottom: 12px;
}
.feature-row__text h3{ font-size: 1.7rem; margin-bottom: 14px; color: var(--ink); }
.feature-row__text p{ font-size: 1rem; line-height: 1.65; color: var(--text-soft); max-width: 460px; }
.feature-row__art svg{ width: 100%; height: auto; }

@media(max-width: 860px){
  .feature-row, .feature-row--reverse{ grid-template-columns: 1fr; gap: 26px; }
  .feature-row--reverse .feature-row__text{ order: 1; }
  .feature-row--reverse .feature-row__art{ order: 2; }
}

/* ===================== DAY (route) ===================== */
.section--day{ background: #FFF9EE; }
.route-map{
  background: var(--milk);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  margin-bottom: 20px;
}
.route-line{ stroke-dashoffset: 900; animation: draw 3.2s ease forwards; animation-play-state: paused; }
.route-line.is-visible{ animation-play-state: running; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }
.route-van{ animation: bob 2.2s ease-in-out infinite; transform-origin: 820px 110px; }
@keyframes bob{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }

/* ===================== RESULTS ===================== */
.section--results{ background: linear-gradient(180deg, #FFF9EE 0%, var(--milk) 100%); }
.stat-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.stat{
  background: var(--ink); color: var(--milk);
  border-radius: 20px; padding: 38px 30px;
  display:flex; flex-direction:column; gap: 8px;
}
.stat__number{
  font-family: var(--mono); font-weight: 600; font-size: clamp(2.3rem,4vw,3rem);
  color: var(--dawn);
}
.stat__number--zero{ color: var(--mint); }
.stat__label{ font-size: 1.05rem; font-weight: 600; margin-top: 4px; }
.stat__detail{ font-size: 0.9rem; color: rgba(251,251,248,0.62); line-height: 1.5; margin-top: 4px; }

@media(max-width: 860px){ .stat-grid{ grid-template-columns: 1fr; } }

/* ===================== CTA ===================== */
.cta{
  background: radial-gradient(120% 140% at 50% 0%, #1C3654 0%, #0B1A2C 70%);
  color: var(--milk);
  text-align: center;
  padding: 110px 28px;
}
.cta__inner{ max-width: 560px; margin: 0 auto; display:flex; flex-direction:column; align-items:center; gap: 18px; }
.cta h2{ font-size: clamp(1.9rem, 4vw, 2.5rem); }
.cta p{ color: rgba(251,251,248,0.68); font-size: 1.05rem; margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer{ background: #0B1A2C; padding: 26px 28px; }
.footer__inner{
  max-width: 1140px; margin:0 auto; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-family: var(--mono); font-size: 0.78rem; color: rgba(251,251,248,0.5);
}
