/* Intellimindz Foundation — scoped landing page styles.
 *
 * Scoped under .imz-page to prevent any style leakage into the broader ilearn app.
 */

.imz-page {
  --brand: #1554c8;
  --brand-dark: #0d3d9a;
  --brand-soft: #eaf4ff;
  --navy: #0b1f4f;
  --ink: #16213e;
  --ink-soft: #53617f;
  --line: rgba(18, 62, 145, 0.12);
  --page: #ffffff;
  --page-alt: #f7fbff;
  --radius: 14px;
  --sky: #eaf4ff;
  --orange: #f57c20;
  --muted: #53617f;
  --shadow: 0 18px 50px rgba(22, 69, 150, 0.14);

  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  box-sizing: border-box;
}

.imz-page * {
  box-sizing: border-box;
}

.imz-page a {
  text-decoration: none;
}

.imz-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.imz-page h1,
.imz-page h2,
.imz-page h3 {
  font-family: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}

.imz-page h2 {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.imz-page h3 {
  font-size: 17px;
  font-weight: 700;
}

.imz-lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 62ch;
  margin: 0 0 20px;
}

/* ---- Pill Buttons ---- */
.imz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.imz-btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(21, 84, 200, 0.24);
}

.imz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(21, 84, 200, 0.30);
  color: #ffffff !important;
}

.imz-section-actions {
  margin: 26px 0 0;
}

/* ====================================================================
   Intro Hero & Objectives Container
   ==================================================================== */
.imz-intro-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 32%, rgba(52, 140, 255, 0.20), transparent 31%),
    radial-gradient(circle at 95% 8%, rgba(245, 124, 32, 0.08), transparent 18%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 46%, #eaf4ff 100%);
}

.imz-hero {
  position: relative;
  z-index: 2;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 68px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.imz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(21, 84, 200, 0.08);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
  border: 1px solid rgba(21, 84, 200, 0.10);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.imz-eyebrow svg {
  width: 17px;
  height: 17px;
}

.imz-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.07;
  letter-spacing: -2.5px;
  color: var(--navy);
  font-weight: 800;
}

.imz-highlight {
  color: var(--brand);
}

.imz-hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.imz-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.imz-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 28px rgba(21, 84, 200, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 15px 24px;
}

.imz-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(21, 84, 200, 0.30);
  color: #fff !important;
}

.imz-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.imz-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ---- Objectives Row ---- */
.imz-objectives-row {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 34px;
  margin-top: 25px;
}

.imz-objective-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.imz-objective-card {
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(21, 84, 200, 0.10);
  box-shadow: 0 12px 30px rgba(33, 73, 140, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imz-objective-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(33, 73, 140, 0.12);
}

.imz-objective-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: #eef5ff;
  margin-bottom: 14px;
}

.imz-objective-icon svg {
  width: 22px;
  height: 22px;
}

.imz-objective-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  color: var(--navy);
}

.imz-objective-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ====================================================================
   National Missions Alignment & Impact Bar
   ==================================================================== */
.imz-mission-wrap {
  position: relative;
  z-index: 6;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto 28px;
  padding: 25px 28px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 84, 200, 0.10);
  box-shadow: 0 16px 45px rgba(28, 75, 152, 0.09);
  backdrop-filter: blur(18px);
  margin-top: 25px;
}

.imz-mission-head {
  text-align: center;
  margin-bottom: 20px;
}

.imz-mission-head h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.7px;
  color: var(--navy);
}

.imz-mission-head h2 span {
  color: var(--brand);
}

.imz-mission-head p {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.imz-mission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.imz-mission {
  min-height: 180px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.imz-mission:last-child {
  border-right: 0;
}

.imz-mission-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.imz-mission-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.imz-mission-label {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.imz-mission p {
  margin: 6px auto 0;
  max-width: 190px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.imz-impact-bar {
  position: relative;
  z-index: 6;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 18px;
  color: white;
  overflow: hidden;
  background: linear-gradient(110deg, #0d438f, #0e2f70);
  box-shadow: 0 14px 34px rgba(12, 54, 124, 0.22);
}

.imz-impact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.imz-impact-item:last-child {
  border-right: 0;
}

.imz-impact-item svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  opacity: 0.95;
}

.imz-disclaimer {
  width: min(1440px, calc(100% - 64px));
  margin: -10px auto 24px;
  text-align: center;
  color: #73809a;
  font-size: 12px;
  line-height: 1.5;
  padding-bottom: 24px;
}

/* ====================================================================
   Course Discovery & Ecosystem Overview
   ==================================================================== */
.imz-catalog {
  padding: 64px 0;
  background: var(--page-alt);
}

.imz-catalog-inner {
  text-align: center;
}

.imz-catalog-inner .imz-lede {
  margin-left: auto;
  margin-right: auto;
}

.imz-catalog-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 0;
  margin: 22px 0 0;
}

.imz-catalog-points li {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}

.imz-catalog-points li::before {
  content: "✓ ";
  color: var(--brand);
}

.imz-ecosystem {
  padding: 64px 0;
}

.imz-ecosystem .imz-wrap {
  text-align: center;
}

.imz-ecosystem .imz-lede {
  margin-left: auto;
  margin-right: auto;
}

.imz-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  text-align: left;
}

.imz-eco {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(33, 73, 140, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imz-eco:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(33, 73, 140, 0.10);
}

.imz-eco h3 {
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--navy);
}

.imz-eco p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ====================================================================
   Learning Ladder
   ==================================================================== */
.imz-ladder {
  padding: 80px 0;
  background: #ffffff;
}

.imz-ladder .imz-wrap {
  text-align: center;
}

.imz-ladder h2 {
  text-align: center;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 auto 12px;
}

.imz-ladder .imz-lede {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 auto 44px;
  max-width: 68ch;
}

.imz-ladder-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  text-align: left;
}

.imz-rung {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.imz-rung:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.imz-rung-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.imz-rung-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #1d5fd6;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
}

.imz-rung-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.imz-rung-badge--discovery {
  background: #eaf1fd;
  color: #1d5fd6;
}

.imz-rung-badge--fluency {
  background: #e6f9f0;
  color: #059669;
}

.imz-rung-badge--beginner {
  background: #e8f4fc;
  color: #0284c7;
}

.imz-rung-badge--intermediate {
  background: #f5edfd;
  color: #7c3aed;
}

.imz-rung-badge--advanced {
  background: #f1f5f9;
  color: #1e293b;
}

.imz-rung-field {
  margin-bottom: 18px;
}

.imz-rung-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.imz-rung-val {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}

.imz-rung-val--bold {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.imz-rung-field--fixed .imz-rung-val {
  min-height: 38px;
}

.imz-rung-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 11px 16px;
  background: #1d5fd6;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 14px;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s ease;
  cursor: pointer;
}

.imz-rung-btn:hover {
  background: #1752bd;
  color: #ffffff !important;
}

/* ====================================================================
   Donation
   ==================================================================== */
.imz-donate {
  padding: 72px 0;
  background: linear-gradient(110deg, #0d438f, #0e2f70);
  color: #dbe6f5;
}

.imz-donate h2 {
  color: #ffffff;
}

.imz-donate .imz-lede {
  color: #b9c9e2;
  margin-left: auto;
  margin-right: auto;
}

.imz-donate-inner {
  text-align: center;
}

.imz-eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #bcd7ff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  margin: 0 0 16px;
}

.imz-trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding: 0;
  margin: 22px 0 18px;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.imz-trust-row li::before {
  content: "✓ ";
  color: #8ab8ff;
}

.imz-donate-note {
  font-size: 12.5px;
  color: #9fb3d4;
  margin: 10px 0 0;
}

/* ====================================================================
   Footer
   ==================================================================== */
.imz-foot {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.imz-foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}

.imz-foot p {
  margin: 0;
}

.imz-foot nav {
  display: flex;
  gap: 18px;
}

.imz-foot a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.imz-foot a:hover {
  text-decoration: underline;
}

/* ====================================================================
   Responsive Breakpoints
   ==================================================================== */
@media (max-width: 1120px) {
  .imz-hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .imz-hero-copy-block {
    text-align: center;
  }

  .imz-hero-copy,
  .imz-objective-grid {
    margin-left: auto;
    margin-right: auto;
  }

  .imz-hero-actions {
    justify-content: center;
  }

  .imz-hero-visual {
    max-width: 620px;
    margin: 0 auto;
  }

  .imz-mission-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .imz-mission {
    border-right: 0;
  }

  .imz-impact-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .imz-impact-item:nth-child(2) {
    border-right: 0;
  }

  .imz-impact-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .imz-ladder-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .imz-hero,
  .imz-mission-wrap,
  .imz-impact-bar,
  .imz-disclaimer {
    width: min(100% - 30px, 1440px);
  }

  .imz-hero {
    padding-top: 38px;
    gap: 12px;
  }

  .imz-hero h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .imz-hero-copy {
    font-size: 15px;
  }

  .imz-hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 26px;
  }

  .imz-objective-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .imz-mission-grid {
    grid-template-columns: 1fr;
  }

  .imz-mission {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
  }

  .imz-mission:last-child {
    border-bottom: 0;
  }

  .imz-impact-bar {
    grid-template-columns: 1fr;
  }

  .imz-impact-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .imz-impact-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imz-page * {
    transition: none !important;
    animation: none !important;
  }
}
