/* ══════════════════════════════════════════════════════
   MISTRIJEE — Design System v2
   Fonts: Manrope (headings) + DM Sans (body)
   No borders. Soft shadows. Organic feel.
   ══════════════════════════════════════════════════════ */

:root {
  --y: #F5C400;
  --y-soft: #FFF9D6;
  --y-bg: #FFF3B0;
  --o: #E8520A;
  --o-dark: #C94000;
  --o-bg: rgba(232, 82, 10, 0.06);

  --black: #111111;
  --charcoal: #3D3D3D;
  --muted: #7A7570;
  --border: #EDE9E3;
  --off-white: #FAF8F5;
  --white: #FFFFFF;

  --r: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(17,17,17,0.04);
  --shadow-md: 0 4px 20px rgba(17,17,17,0.07);
  --shadow-lg: 0 12px 40px rgba(17,17,17,0.10);
  --shadow-xl: 0 24px 64px rgba(17,17,17,0.14);

  --max-w: 1160px;
  --nav-h: 68px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .heading-font {
  font-family: 'Manrope', sans-serif;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 800; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { color: var(--charcoal); line-height: 1.75; }
.text-muted { color: var(--muted); }
.text-orange { color: var(--o); }

.highlight {
  background: linear-gradient(180deg, transparent 58%, var(--y) 58%);
  display: inline;
  padding: 0 2px;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 60px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.section-alt { background: var(--off-white); }

.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark p { color: var(--white); }
.section-dark .text-muted { color: rgba(255,255,255,0.6); }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--o);
  border-radius: 2px;
}
.section-dark .section-label { color: var(--y); }
.section-dark .section-label::before { background: var(--y); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--off-white);
  color: var(--black);
  padding: 15px 30px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--y);
  color: var(--black);
  padding: 15px 30px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-yellow:hover {
  background: #e0b200;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,196,0,0.3);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-logo { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: #2a2a2a;
  box-shadow: var(--shadow-sm);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ── ICON ── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.icon svg { display: block; }
.icon-yellow { background: var(--y-soft); }
.icon-orange { background: var(--o-bg); }
.icon-sm { width: 32px; height: 32px; border-radius: 8px; }

/* ── BADGE / PILL ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--y-soft);
  color: var(--black);
  padding: 7px 18px 7px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--o);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.8s infinite;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
}
.pill-light {
  background: var(--off-white);
  color: var(--charcoal);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--y);
  flex-shrink: 0;
}

/* ── CARDS (no borders) ── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 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; }

/* ── FORM (no border, soft bg) ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--black); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: none;
  border-radius: var(--r);
  font-size: 14px;
  color: var(--black);
  background: var(--off-white);
  transition: box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px var(--o);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b5b0a9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── IMAGE SECTION ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.anim-hero { animation: fadeUp 0.7s ease both; }
.anim-hero-delay-1 { animation-delay: 0.1s; }
.anim-hero-delay-2 { animation-delay: 0.2s; }
.anim-hero-delay-3 { animation-delay: 0.3s; }
.anim-hero-delay-4 { animation-delay: 0.4s; }

/* ── STATS ── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 48px 0;
  background: var(--off-white);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-number .stat-accent { color: var(--o); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── STEPS ── */
.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step-item { text-align: center; padding: 0 24px; position: relative; }
.step-num {
  font-family: 'Manrope', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--y);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 14px; line-height: 1.65; opacity: 0.55; }

/* ── SPLIT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-wide { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: center; }

/* ── CONFIRMATION ── */
.confirmation-icon {
  width: 72px; height: 72px;
  background: #E8F5E9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.ref-code {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--o);
  background: var(--o-bg);
  padding: 12px 24px;
  border-radius: var(--r);
  display: inline-block;
  margin: 16px 0;
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-brand img.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-col h4 { color: rgba(255,255,255,0.3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; font-family: 'DM Sans', sans-serif; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 24px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-incubation { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-incubation img { height: 36px; width: auto; border-radius: 50%; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  nav { padding: 0 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-flow { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  nav { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .section-lg { padding: 80px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 32px; }
  /* Constrain stock photos in splits on mobile (not device renders) */
  .split .mobile-crop, .split-wide .mobile-crop {
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--r-lg);
    width: 100%;
  }
  /* Device renders — just size down, no crop */
  .split img[src*="obd-device"], .split-wide img[src*="obd-device"] {
    max-width: 240px;
    margin: 0 auto;
    display: block;
  }
  .steps-flow { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-strip { flex-direction: column; gap: 28px; align-items: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hero-visual { order: -1; }

  /* ── Mobile: fix inline layouts that won't collapse ── */

  /* Hero notification card — reposition for mobile */
  .hero-notification-wrap {
    position: static !important;
    padding-bottom: 0 !important;
  }
  .hero-notification {
    position: static !important;
    max-width: 100% !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 16px;
  }

  /* About IIT Patna incubation bar — stack vertically */
  .incubation-bar {
    flex-direction: column;
    text-align: center;
    gap: 20px !important;
  }
  .incubation-bar img {
    margin: 0 auto;
  }

  /* Garages featured card — remove span on mobile */
  .card[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
    flex-direction: column !important;
  }

  /* Form containers — less padding on mobile */
  form[style*="padding: 40px"] {
    padding: 28px 20px !important;
  }

  /* Section inline padding overrides */
  section[style*="padding: 120px"] {
    padding: 64px 0 48px !important;
  }
  section[style*="padding: 80px 0 100px"] {
    padding: 64px 0 !important;
  }
  section[style*="padding-top: calc"] {
    padding-top: calc(var(--nav-h) + 32px) !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  nav { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .btn-primary, .btn-secondary, .btn-yellow, .btn-outline-white {
    padding: 13px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }

  /* Tighter card padding on small phones */
  .card { padding: 24px; }

  /* Stats — smaller numbers */
  .stat-number { font-size: 32px; }

  /* Steps — tighter */
  .step-num { font-size: 40px; }
  .step-icon { width: 48px; height: 48px; }

  /* Footer — tighter */
  footer { padding: 48px 0 24px; }
  .footer-top { gap: 24px; padding-bottom: 24px; }
}
