/* ============================================================
   Nasscom Mobility Innovation Challenge 2.0
   ============================================================ */

:root {
  --ink: #0B0D12;
  --ink-soft: #14171F;
  --maroon: #821717;
  --maroon-dark: #7A1522;
  --maroon-bright: #C42737;
  --paper: #F6F3EC;
  --paper2: #EEF1F6;
  --white: #FFFFFF;
  --text: #17181C;
  --muted: #62666E;
  --line: #E2DFD6;
  --line-cool: #D9DEE6;
  --red-gradient: linear-gradient(102.17deg, #581212 0%, #c23630 100%);
  --font-display: "Lexend", sans-serif;
  --font-body: "Lexend", sans-serif;

  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.section {
  padding: 60px 0;
}

.section--paper { background: var(--paper); }
.section--cool { background: var(--paper2); }

.section-head {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.01em;
  color: var(--maroon);
  background: var(--red-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head .sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  width:100%;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--maroon);
  background: var(--red-gradient);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  border: 1px solid var(--maroon);
  overflow: hidden;
  transition: all linear 0.3s;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 0;
}

.btn > * { position: relative; z-index: 1; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(194, 54, 48, 0.4);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}

.btn--ghost::before { background: rgba(255,255,255,0.1); }

.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,13,18,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.brand img {
    width: 90px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: #C9CCD3;
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--ink);
  /*background: url(../img/banner-mobility.jpg);*/
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero > img {
    display: block;
    width: 100%;
}
.hero .hero-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  /*grid-template-columns: 1.1fr 0.9fr;*/
  align-items: center;
  gap: 40px;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  opacity: 0.9;
}

.hero-eyebrow {
  color: #C9CCD3;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  max-width: 500px;
  letter-spacing: -0.015em;
}

.hero .hero-org {
  margin-top: 22px;
  font-size: 20px;
  color: #B7BAC2;
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-deadline {
  font-size: 14.5px;
  color: #9BA0AC;
}

.hero-deadline strong { color: var(--white); font-weight: 600; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 40%, rgba(163,30,44,0.28), transparent 60%);
  z-index: 1;
}

/* ---------------- Overview ---------------- */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: start;
}
.overview-grid .left {
    width: 700px;
}
.overview-grid .right {
    border-radius: 8px;
    overflow: hidden;
}
.overview-grid p + p { margin-top: 18px; }

/* ---------------- Stat tiles ---------------- */

.stat-block + .stat-block { margin-top: 56px; }

.stat-block h3 {
  font-size: 20px;
  margin-bottom: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-grid--8 { grid-template-columns: repeat(4, 1fr); }

.stat-tile {
  background: var(--white);
  padding: 26px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(11,13,18,0.08);
  z-index: 1;
  position: relative;
}

.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--maroon);
  letter-spacing: -0.01em;
}

.stat-tile .label {
  margin-top: 8px;
  font-size: 13.6px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------- Data table ---------------- */

.data-table-wrap {
  margin-top: 56px;
  overflow-x: auto;
  border: 1px solid var(--line-cool);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14.5px;
}

table.data-table th {
  text-align: left;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 14px 20px;
}
table.data-table th:first-of-type {
    width: 20%;
}
table.data-table th:nth-of-type(2) {
    width: 20%;
}

table.data-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--line-cool);
  vertical-align: top;
  color: var(--text);
}

table.data-table td:first-child {
  font-weight: 600;
}

table.data-table td:nth-child(2) {
  color: var(--maroon-dark);
  font-weight: 600;
}

table.data-table td:nth-child(3) {
  color: var(--muted);
}

table.data-table a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- Criteria panels ---------------- */

.panel {
  border: 1px solid var(--maroon);
  background: var(--white);
  padding: 34px 32px;
}

.panel h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--maroon-dark);
}

.panel .intro-copy {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.check-list li:first-of-type { border-top: none; }

.check-list .mark {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--maroon);
}

/* ---------------- Process ---------------- */

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.process-step {
  position: relative;
  border: 1px solid var(--line);
  padding: 26px 22px;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(11,13,18,0.08);
  z-index: 3;
}

.process-step + .process-step { border-left: none; }

.process-step .n {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--maroon);
  font-weight: 600;
}

.process-step h4 {
  margin-top: 10px;
  font-size: 16.5px;
}

.process-step .when {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.process-step::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.process-step:last-child::after { display: none; }

/* ---------------- Why apply ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #9D1F1A 0%, #000000 100%);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}
.why-card:before {
    content: '';
    display: block;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: #fff;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: auto;
    border-radius: 14px;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(11,13,18,0.1);
  border-color: var(--maroon);
}
.why-card .num-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.why-card .num-row span {
    font-family: "Arial", sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px #C33531;
}
.why-card .icon { transition: transform 0.3s ease; }
.why-card:hover .icon { transform: scale(1.12) rotate(-4deg); }

.why-card .icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--maroon);
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.why-card h3 {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 600;
  color: #020617;
  line-height: 1.5;
  position: relative;
}
.why-card h3:after {
    content: '';
    display: block;
    height: 3px;
    width: 100px;
    border-radius: 9999px;
    background: #9D1F1A;
    margin-top: 8px;
}
.why-card h3 span {
    color: #9D1F1A;
}

.why-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.why-card p + p { margin-top: 12px; }

/* ---------------- FAQ ---------------- */

.faq-list {
  border-top: 1px solid var(--line-cool);
}

.faq-item {
  border-bottom: 1px solid var(--line-cool);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  cursor: pointer;
}

.faq-q .plus {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-q .plus::before,
.faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--maroon);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-q .plus::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-q .plus::after { left: 9px; top: 2px; bottom: 2px; width: 2px; }

.faq-item.open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.faq-a a {
    color: var(--maroon);
}

/* ---------------- Footer ---------------- */

/*.site-footer {
  background: var(--ink);
  color: #9BA0AC;
  padding: 28px 0 28px;
}

.footer-top .brand-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.footer-top .contact {
  font-size: 14.5px;
}

.footer-top .contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}*/
/* ---------- footer ---------- */
.site-footer{background:#141414;color:rgba(255,255,255,.78);padding:48px 0 0;}
.footer-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:32px;padding-bottom:36px;}

.footer-social{display:flex;gap:12px;/*margin-bottom:22px;*/}
.social-btn{
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  color:#fff;transition:background .15s, color .15s;
}
.social-btn svg{width:18px;height:18px;fill:currentColor;}
.social-btn:hover{background:var(--maroon-600);color:#fff;}

.footer-hashtags{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.88rem;color:rgba(255,255,255,.6);}
.footer-hashtags span{color:rgba(255,255,255,.6);}

.footer-initiative{text-align:right; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 8px;}
.footer-initiative p{color:rgba(255,255,255,.65);font-size:.9rem;margin-bottom:0; width: 100%;}
.footer-logo-box{
  max-width: 130px;
  border: 1px solid #fff;
  border-radius: 4px;
}
.footer-logo-box span{font-family:var(--font-body);font-weight:400;font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-500);margin-top:2px;}

.footer-bottom{
  display:flex;justify-content:flex-start;flex-wrap:wrap;gap:12px;
  padding:20px 0;font-size:.82rem;color:rgba(255,255,255,.5);
  border-top:1px solid rgba(255,255,255,.12);
}
.footer-bottom a{color:rgba(255,255,255,.5);text-decoration:none;}
.footer-bottom a:hover{color:#fff;}
.footer-legal{display:flex;gap:18px;flex-wrap:wrap;}



/* ---------------- Scroll reveal ---------------- */
/* Content is visible by default; JS adds .js to <html>, which arms the
   reveal animation. If JS fails to load, everything just stays visible. */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 320px; opacity: 0.6; }
  .overview-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .section { padding: 36px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 18px 20px 26px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .section-head {
      margin-bottom: 16px;
  }
  .section-head h2 {
      font-size: clamp(20px, 3.4vw, 38px);
      text-align: center;
  }
  .section-head .sub {
      text-align: center;
      font-size: 14px;
  }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-block + .stat-block {
      margin-top: 36px;
  }
  .stat-block h3 {
      font-size: 16px;
      text-align: center;
  }
  .stat-tile {
      padding: 16px;
  }
  .stat-tile .num {
      font-size: 16px;
  }
  .stat-tile .label {
      font-size: 13px;
      font-size: 300;
  }
  .process-track { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 18px; }
  .brand img {
      width: 60px;
  }
  .hero {
      padding: 0;
  }
  .hero > img {
      min-height: 300px;
  }
  .hero-eyebrow {
      font-size: 13px;
      margin-bottom: 12px;
      color: #E5E5E5;
  }
  .hero h1 {
      font-size: clamp(24px, 4.6vw, 54px);
      max-width: 100%;
  }
  .hero .hero-org {
      margin-top: 8px;
      font-size: 14px;
      color: #E5E5E5;
  }
  .hero-cta-row {
      margin-top: 12px;
      gap: 12px;
  }
  .hero-deadline {
      color: #E5E5E5;
  }
  .btn {
      padding: 8px 20px;
  }
  .overview-grid .left {
      width: 100%;
  }
  .check-list li {
      font-size: 13px;
  }
  .panel {
      padding: 20px;
  }
  .panel h3 {
      font-size: 16px;
      text-align: center;
  }
  .why-card {
      padding: 20px 16px;
  }
  .why-card h3 {
      /*font-size: 16px;*/
  }
  .why-card p {
      font-size: 13px;
  }
  .faq-q {
      font-weight: 400;
      font-size: 14px;
  }
  .faq-a p {
      font-size: 13px;
      font-weight: 400;
  }
  .footer-top{flex-direction:column;}
  .footer-initiative{text-align:center; justify-content: center;}
  .footer-bottom{flex-direction:column;align-items:center;}
  .data-table-wrap {
      width: calc(100% + 16px);
  }
  .why-card .num-row span {
      font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
