:root {
  --navy: #10233F;
  --navy-soft: #17365F;
  --blue: #4A90E2;
  --emerald: #3CB38A;
  --soft-white: #FAFBFC;
  --warm-gray: #EEF2F5;
  --text-dark: #172033;
  --text-muted: #5F6B7A;
  --card: #FFFFFF;
  --line: rgba(16, 35, 63, .10);
  --shadow: 0 24px 70px rgba(16, 35, 63, .12);
  --radius: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft-white);
  color: var(--text-dark);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.site-shell { position: relative; overflow: hidden; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; text-align: center; }
.section-pad { padding: 128px 0; }

/* ---------- Navbar (slim floating banner with oversized logo) ---------- */
.navbar {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 68px;
  min-height: 68px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(16, 35, 63, .06);
  transition: .3s ease;
  overflow: visible;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 50px rgba(16, 35, 63, .12);
  border-color: rgba(16, 35, 63, .08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  overflow: visible;
}
/* The logo image carries the wordmark, so it intentionally overflows the slim bar. */
.brand img {
  width: 250px;
  height: auto;
  object-fit: contain;
  transform: translateY(22px);
  filter: drop-shadow(0 16px 24px rgba(16, 35, 63, .16));
}
.brand span { display: none; }
.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.desktop-nav a { transition: .2s ease; }
.desktop-nav a:hover { color: var(--navy); }
.nav-cta, .mobile-cta {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(16, 35, 63, .18);
  transition: .2s ease;
}
.nav-cta:hover, .btn:hover { transform: translateY(-2px); }
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 999px; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 145px;
  background:
    radial-gradient(circle at 80% 10%, rgba(60, 179, 138, .16), transparent 36%),
    radial-gradient(circle at 20% 30%, rgba(74, 144, 226, .18), transparent 34%),
    linear-gradient(135deg, #fbfdff 0%, #f3f8fb 52%, #edf8f5 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald);
  margin: 0 0 18px;
}
.eyebrow.light { color: #85e4c6; }

h1, h2, h3 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.85rem, 4.8vw, 4.65rem); letter-spacing: -.055em; max-width: 620px; }
h2 { font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.05em; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }
.hero h1 {
  font-size: clamp(2.7rem, 4.35vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  max-width: 610px;
}
.hero-subtitle { font-size: 1.22rem; max-width: 620px; color: var(--text-muted); margin: 28px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .22s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 18px 42px rgba(16, 35, 63, .22); }
.btn-secondary { background: rgba(255, 255, 255, .76); border: 1px solid var(--line); color: var(--navy); }

/* ---------- Hero visual (floating glass panels) ---------- */
.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(38px);
  opacity: .64;
  animation: drift 9s ease-in-out infinite;
}
.ambient-one { width: 280px; height: 280px; background: rgba(74, 144, 226, .24); right: 9%; top: 20%; }
.ambient-two { width: 220px; height: 220px; background: rgba(60, 179, 138, .24); left: 10%; bottom: 14%; animation-delay: 1.6s; }
.hero-visual { position: relative; min-height: 560px; }
.glass-panel {
  position: absolute;
  inset: 60px 20px auto auto;
  width: min(440px, 90%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 36px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.panel-topline {
  height: 10px;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  margin-bottom: 24px;
}
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.metric-label, .mini-panel span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 800;
}
.status-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(60, 179, 138, .13);
  color: #217b62;
}
.flow-card {
  display: flex;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  margin: 12px 0;
}
.flow-card p, .mini-panel p { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; }
.flow-card.soft { background: rgba(255, 255, 255, .72); }
.icon-circle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(74, 144, 226, .13);
  color: var(--blue);
  font-weight: 900;
  flex: none;
}
.icon-circle.emerald { background: rgba(60, 179, 138, .13); color: var(--emerald); }
.progress-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(16, 35, 63, .08);
  margin-top: 22px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
}
.mini-panel {
  position: absolute;
  width: 220px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .76);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 18px 46px rgba(16, 35, 63, .12);
  animation: float 6s ease-in-out infinite;
}
.mini-one { left: 0; top: 40px; }
.mini-two { right: 0; bottom: 80px; animation-delay: 1s; }
.orbit-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 40px rgba(60, 179, 138, .8);
  animation: drift 8s ease-in-out infinite;
}
.dot-a { right: 5%; top: 25%; }
.dot-b { left: 12%; bottom: 25%; background: var(--blue); }

/* ---------- Mission / Approach ---------- */
.mission { background: #fff; }
.mission p { font-size: 1.18rem; color: var(--text-muted); margin: 20px auto 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.approach .section-heading,
.founders .section-heading {
  max-width: none;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Keep "Designed around real classroom realities." on a single centered line. */
.approach .section-heading h2 {
  white-space: nowrap;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}
/* Founders heading: centered, one sentence per line (line break in markup). */
.founders .section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.approach { background: linear-gradient(180deg, #fff 0%, #f6f9fb 100%); }
.card-grid { display: grid; gap: 24px; }
.three { grid-template-columns: repeat(3, 1fr); }
.two { grid-template-columns: repeat(2, 1fr); }
.info-card, .founder-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: 0 18px 50px rgba(16, 35, 63, .07);
  transition: .24s ease;
}
.info-card:hover, .founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(74, 144, 226, .12), rgba(60, 179, 138, .13));
  color: var(--navy);
  font-weight: 900;
}
.info-card p, .founder-card p, .story-copy p { color: var(--text-muted); }

/* ---------- Ivaro (dark feature band) ---------- */
.ivaro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(74, 144, 226, .18), transparent 35%),
    linear-gradient(135deg, #0b1d36 0%, #10233F 48%, #153456 100%);
}
.ivaro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.product-preview { position: relative; min-height: 480px; }
.video-placeholder {
  width: 90%;
  height: 340px;
  margin: 0 auto 0 0;
  transform: translate(-14px, -18px);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}
.ivaro-mark {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 190px;
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .28));
}
.play-button {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  margin: auto auto 12px;
  font-size: 24px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, .18);
}
.preview-card {
  position: absolute;
  right: 18px;
  bottom: 24px;
  width: 260px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}
.preview-card p { margin: 6px 0 0; color: var(--text-muted); }
.light-copy, .looking-ahead p { color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.feature-list { margin-top: 34px; display: grid; gap: 14px; }
.feature-item {
  display: flex;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  transition: .22s ease;
}
.feature-item:hover { transform: translateX(4px); background: rgba(255, 255, 255, .1); }
.feature-item span { font-weight: 900; color: #85e4c6; }
.feature-item h3 { font-size: 1.08rem; }
.feature-item p { margin: 4px 0 0; color: rgba(255, 255, 255, .68); }

/* ---------- Story / Founders ---------- */
.story { background: #fff; }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.story-copy { font-size: 1.08rem; }
.founders { background: linear-gradient(180deg, #f6f9fb 0%, #fff 100%); }
.founder-card { text-align: center; display: flex; flex-direction: column; }
/* Pin chips to the bottom so both founder cards align regardless of bio length. */
.founder-card .chips { margin-top: auto; }
.portrait {
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 8px solid #fff;
  box-shadow: 0 16px 40px rgba(16, 35, 63, .14);
  overflow: hidden;
}
.initials {
  background: linear-gradient(135deg, rgba(74, 144, 226, .2), rgba(60, 179, 138, .2));
  font-family: 'Plus Jakarta Sans';
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
}
.founder-card .role { font-weight: 700; color: var(--emerald); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chips span {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 226, .10);
}
.founder-card .bio-lead { text-align: left; }
.bio-more { text-align: left; }
.bio-more p { margin: 14px 0 0; }
.bio-more summary {
  cursor: pointer;
  list-style: none;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: .95rem;
  width: fit-content;
}
.bio-more summary::-webkit-details-marker { display: none; }
.bio-more summary::after { content: 'Read more \203A'; }
.bio-more[open] summary::after { content: 'Read less \2039'; }
.bio-more summary:hover { text-decoration: underline; }
.founder-statement {
  max-width: 760px;
  margin: 52px auto 0;
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--navy);
}

/* ---------- Looking ahead / Footer ---------- */
.looking-ahead { background: linear-gradient(135deg, #10233F, #17365F); color: #fff; }
.looking-ahead h2 { white-space: nowrap; font-size: clamp(1.3rem, 2.6vw, 2.35rem); }
.looking-ahead .narrow { max-width: none; }
.looking-ahead .eyebrow, .looking-ahead p { max-width: 760px; margin-left: auto; margin-right: auto; }
.footer { background: #071426; color: #fff; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans';
}
.footer-brand img {
  width: 295px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28));
  margin: 0 0 14px 14px;
}
.footer p, .footer a { color: rgba(255, 255, 255, .68); }
.footer-links { display: grid; gap: 10px; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 38px;
  padding-top: 22px;
  color: rgba(255, 255, 255, .48);
  font-size: 14px;
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -22px); } }

@media (prefers-reduced-motion: reduce) {
  .ambient, .glass-panel, .mini-panel, .orbit-dot { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu {
    position: fixed;
    z-index: 40;
    left: 50%;
    top: 98px;
    transform: translateX(-50%) translateY(-12px);
    width: min(500px, calc(100% - 32px));
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: .24s ease;
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  .mobile-menu a { padding: 12px 14px; border-radius: 16px; font-weight: 800; }
  .mobile-cta { text-align: center; }
  .navbar { height: 62px; min-height: 62px; top: 34px; }
  .brand img { width: 210px; transform: translateY(19px); }
  .hero { padding-top: 135px; }
  .hero-grid, .ivaro-grid, .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 430px; }
  .three, .two, .footer-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 88px 0; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .navbar { height: 58px; min-height: 58px; top: 24px; padding: 0 16px; }
  .brand img { width: 170px; transform: translateY(15px); }
  .hero { padding-top: 120px; }
  .approach .section-heading h2 { white-space: normal; }
  .looking-ahead h2 { white-space: normal; font-size: 1.9rem; }
  .hero h1 { font-size: 2.45rem; line-height: 1.12; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-actions { display: grid; }
  .hero-actions, .btn { width: 100%; }
  .glass-panel { inset: 42px 0 auto auto; width: 100%; padding: 22px; }
  .mini-panel, .mini-one, .mini-two { position: relative; width: auto; margin-top: 12px; inset: auto; }
  .hero-visual { min-height: auto; }
  .orbit-dot { display: none; }
  .section-pad { padding: 76px 0; }
  .info-card, .founder-card { padding: 26px; }
  .video-placeholder { width: 100%; height: 280px; margin: 0; transform: none; }
  .product-preview { min-height: 0; }
  .ivaro-mark { position: relative; left: auto; bottom: auto; width: 150px; margin: 18px auto 0; display: block; }
  .preview-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 18px auto 0;
    width: 88%;
  }
  .footer { padding-bottom: 22px; }
  .footer-brand img { width: 230px; }
}
