/* =====================================================================
   Criativo — Corporate EdTech Redesign
   Self-contained design layer for the homepage.
   Brand colours preserved: #318d88 (accent) · #2d465e (heading navy)
   ===================================================================== */

:root {
  /* Brand */
  --brand: #318d88;
  --brand-600: #2a7d78;
  --brand-700: #226763;
  --brand-50: #f0faf9;
  --brand-100: #dcf1ef;
  --brand-200: #b9e2df;

  /* Ink / neutrals */
  --navy: #2d465e;
  --navy-700: #223547;
  --ink: #344256;
  --muted: #6a7888;
  --line: #e7eef2;
  --line-strong: #d6e1e8;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --bg-tint: #eef6f6;
  --surface: #ffffff;

  /* System */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(18, 49, 64, .06);
  --shadow-sm: 0 6px 18px rgba(20, 60, 70, .07);
  --shadow-md: 0 16px 40px rgba(20, 60, 70, .10);
  --shadow-lg: 0 30px 70px rgba(20, 60, 70, .14);
  --ring: 0 0 0 4px rgba(49, 141, 136, .14);

  --maxw: 1200px;
  --header-h: 76px;

  --font-head: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", "Open Sans", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.cx {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.cx h1, .cx h2, .cx h3, .cx h4, .cx h5 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.cx p { margin: 0 0 1rem; color: var(--ink); }
.cx a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
.cx a:hover { color: var(--brand-700); }
.cx img { max-width: 100%; height: auto; }

.cx .container-x {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.cx .eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 7px 16px;
  border-radius: 999px;
}
.cx .eyebrow > i { flex: none; line-height: 1; }

.cx .lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.cx .btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.cx .btn-x i { font-size: 1.05em; transition: transform .2s ease; }
.cx .btn-x:hover i.arr { transform: translateX(3px); }

.cx .btn-primary-x {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.cx .btn-primary-x:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.cx .btn-ghost-x {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-strong);
}
.cx .btn-ghost-x:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }

.cx .btn-light-x {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
}
.cx .btn-light-x:hover { background: #fff; color: var(--brand-700); }

.cx .btn-sm-x { padding: 10px 18px; font-size: .9rem; border-radius: 10px; }

/* ---------- Header / Nav ---------- */
.cx .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.cx .site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
}
.cx .nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.cx .brand-logo img { height: 34px; width: auto; display: block; }
.cx .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 12px;
  padding: 0;
  list-style: none;
}
.cx .nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.cx .nav-links a:hover,
.cx .nav-links a.active { color: var(--brand-700); background: var(--brand-50); }

.cx .nav-cta { display: flex; align-items: center; gap: 12px; }
.cx .nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Sections ---------- */
.cx .section { padding: 92px 0; }
.cx .section.tight { padding: 64px 0; }
.cx .section-soft { background: var(--bg-soft); }
.cx .section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.cx .section-head.left { margin-left: 0; text-align: left; }
.cx .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 16px; }
.cx .section-head p { font-size: 1.08rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Hero ---------- */
.cx .hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 80px;
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--brand-50) 0%, transparent 60%),
    radial-gradient(800px 480px at -10% 110%, #f3f8fb 0%, transparent 55%),
    #ffffff;
  overflow: hidden;
}
.cx .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
/* Prevent grid/flex items from forcing tracks wider than the viewport
   (default min-width:auto + intrinsic image width overflow). */
.cx .hero-grid > *,
.cx .about-grid > *,
.cx .contact-grid > *,
.cx .footer-grid > *,
.cx .suite-grid > *,
.cx .tst-grid > *,
.cx .stats-strip > * { min-width: 0; }
.cx .hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  margin: 22px 0 20px;
}
.cx .hero h1 .hl {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cx .hero p.sub { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.cx .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.cx .hero-visual { position: relative; }
.cx .hero-visual .blob {
  position: absolute;
  inset: 6% -4% -4% 6%;
  background: linear-gradient(150deg, var(--brand-100), var(--brand-50));
  border-radius: 40% 60% 58% 42% / 48% 42% 58% 52%;
  filter: blur(2px);
  z-index: 0;
}
.cx .hero-visual img.hero-img { position: relative; z-index: 2; display: block; margin: 0 auto; max-height: 520px; }
.cx .hero-float {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.cx .hero-float i { color: var(--brand); font-size: 1.25rem; }
.cx .hero-float.f1 { top: 12%; left: -6%; }
.cx .hero-float.f2 { bottom: 14%; right: -2%; }

/* ---------- Stat strip ---------- */
.cx .stats-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cx .stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cx .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cx .stat-card .ic {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 1.3rem;
}
.cx .stat-card h4 { font-size: 1.4rem; margin: 0 0 2px; color: var(--navy); }
.cx .stat-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.35; }

/* ---------- Divider between hero content and trusted-by marquee ---------- */
.cx .hero-divider {
  height: 1px;
  margin-top: 60px;
  border: 0;
  background: var(--line);
  opacity: .5;
}

/* ---------- Trusted-by marquee inside hero (swapped with KPI band) ---------- */
.cx .hero-trust { margin-top: 36px; }
.cx .hero-trust .tlabel {
  text-align: center;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- KPI stats band (swapped out of hero) ---------- */
.cx .stats-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cx .stats-band .stats-strip { margin-top: 0; }

/* ---------- Trust bar ---------- */
.cx .trustbar { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cx .trustbar .tlabel { text-align: center; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.cx .trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.cx .trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: .92rem;
}
.cx .trust-pill i { color: var(--brand); }

/* ---------- Product suite ---------- */
.cx .suite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cx .product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cx .product-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  opacity: 0; transition: opacity .22s ease;
}
.cx .product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.cx .product-card:hover::before { opacity: 1; }
.cx .product-card .pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cx .product-card .pc-icon {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 1.5rem;
}
.cx .product-card h3 { font-size: 1.3rem; margin: 0; }
.cx .product-card .pc-tag { font-size: .82rem; color: var(--brand-700); font-weight: 600; }
.cx .product-card p { color: var(--muted); font-size: .98rem; }
.cx .product-card ul { list-style: none; padding: 0; margin: 4px 0 18px; }
.cx .product-card li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: .93rem; color: var(--ink); }
.cx .product-card li i { color: var(--brand); margin-top: 3px; flex: none; }
.cx .product-card .pc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cx .pc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .95rem; color: var(--brand-700);
}
.cx .pc-link i { transition: transform .2s ease; }
.cx .pc-link:hover i { transform: translateX(4px); }
.cx .pc-sublinks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cx .pc-chip {
  font-size: .82rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  transition: background .18s ease, color .18s ease;
}
.cx .pc-chip:hover { background: var(--brand); color: #fff; }

/* ---------- About / mission ---------- */
.cx .about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.cx .about-copy ul { list-style: none; padding: 0; margin: 18px 0 0; }
.cx .about-copy li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.cx .about-copy li i { color: var(--brand); font-size: 1.15rem; margin-top: 2px; flex: none; }
.cx .pillars { display: grid; gap: 16px; }
.cx .pillar-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-xs);
}
.cx .pillar-card h4 { font-size: 1.05rem; margin: 0 0 6px; color: var(--brand-700); }
.cx .pillar-card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Team (premium animated cards) ---------- */
.cx .team-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.cx .team-card {
  position: relative;
  width: 340px;
  padding: 40px 30px 30px;
  text-align: center;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0));
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .3s ease;
}
/* gradient top bar */
.cx .team-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--brand), #43b3ac, var(--brand-700));
  background-size: 200% auto; animation: cx-gradient 5s linear infinite alternate;
}
.cx .team-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-200); }

/* soft moving glow behind avatar */
.cx .team-card .tc-glow {
  position: absolute; top: -40px; left: 50%; width: 240px; height: 240px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(49,141,136,.18), transparent 65%);
  opacity: .8; pointer-events: none; transition: opacity .3s ease;
}
.cx .team-card:hover .tc-glow { opacity: 1; }

/* avatar (no ring — larger photo) */
.cx .tc-avatar {
  position: relative; width: 180px; height: 180px; margin: 0 auto 18px;
  display: grid; place-items: center; transform: translateZ(40px);
}
.cx .team-card .avatar {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  background: var(--brand-50);
  box-shadow: 0 10px 26px rgba(20,60,70,.16);
  transition: transform .3s ease;
}
.cx .team-card:hover .avatar { transform: scale(1.04); }

.cx .team-card h4 { margin: 0 0 4px; font-size: 1.25rem; transform: translateZ(26px); }
.cx .team-card .role {
  color: var(--brand-700); font-weight: 600; font-size: .92rem;
  transform: translateZ(20px); margin-bottom: 16px;
}

/* Harvard credential badge */
.cx .tc-creds {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); transform: translateZ(16px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cx .team-card:hover .tc-creds { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.cx .tc-creds .cred-logo {
  width: 34px; height: 34px; object-fit: contain; border-radius: 8px;
  background: #fff; flex: none;
}
.cx .tc-creds .cred-text {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  color: var(--navy); line-height: 1.15; text-align: left;
}

.cx .team-quote {
  max-width: 820px; margin: 52px auto 0; text-align: center;
  font-size: 1.2rem; color: var(--navy); line-height: 1.6;
}
.cx .team-quote b { color: var(--brand-700); }

@media (max-width: 560px) {
  .cx .team-card { width: 100%; max-width: 360px; }
}

/* ---------- Testimonials ---------- */
.cx .tst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cx .tst-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cx .tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cx .tst-card .quote-mark { color: var(--brand-200); font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.cx .tst-card .tst-body { color: var(--ink); font-size: 1rem; margin-bottom: 22px; }
.cx .tst-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.cx .tst-foot img.person { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-100); }
.cx .tst-foot .who { flex: 1; }
.cx .tst-foot .who .nm { font-weight: 700; color: var(--navy); font-size: .98rem; }
.cx .tst-foot .who .rl { font-size: .85rem; color: var(--muted); }
.cx .tst-badge {
  font-size: .78rem; font-weight: 700; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

/* ---------- CTA band ---------- */
.cx .cta-band {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cx .cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.cx .cta-band p { color: rgba(255,255,255,.9); margin: 0; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.cx .contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.cx .info-card {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-md);
}
.cx .info-card h3 { color: #fff; }
.cx .info-card .ci { display: flex; gap: 14px; margin: 20px 0; }
.cx .info-card .ci .ic {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 1.15rem;
}
.cx .info-card .ci h4 { color: #fff; font-size: 1rem; margin: 0 0 3px; }
.cx .info-card .ci p { color: rgba(255,255,255,.78); margin: 0; font-size: .92rem; line-height: 1.45; }
.cx .info-card .news-block { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.cx .info-card label { color: #fff; font-weight: 600; display: block; margin-bottom: 10px; font-size: .95rem; }
.cx .info-card .news-row { display: flex; gap: 10px; }

.cx .form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-sm);
}
.cx .form-card h3 { margin-bottom: 6px; }
.cx .form-card .fdesc { color: var(--muted); margin-bottom: 24px; }
.cx .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx .field { margin-bottom: 16px; }
.cx .ctrl {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 11px;
  font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--bg-soft); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cx .ctrl::placeholder { color: #9aa7b3; }
.cx .ctrl:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: var(--ring); }
.cx textarea.ctrl { resize: vertical; min-height: 120px; }
.cx .news-row .ctrl { background: #fff; color: var(--ink); border-color: transparent; }
.cx .sent-message, .cx .loading { display: none; margin-top: 14px; font-weight: 500; }
.cx .sent-message { color: #fff; }
.cx .form-card .sent-message { color: var(--brand-700); }

/* ---------- Footer ---------- */
.cx .site-footer { background: var(--navy-700); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.cx .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.cx .site-footer img.flogo { height: 34px; margin-bottom: 16px; }
.cx .site-footer p { color: rgba(255,255,255,.7); font-size: .95rem; }
.cx .site-footer h5 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.cx .site-footer ul { list-style: none; padding: 0; margin: 0; }
.cx .site-footer ul li { margin-bottom: 10px; }
.cx .site-footer ul a { color: rgba(255,255,255,.7); font-size: .94rem; }
.cx .site-footer ul a:hover { color: #fff; }
.cx .footer-social { display: flex; gap: 12px; margin-top: 18px; }
.cx .footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.05rem; transition: background .18s ease, transform .18s ease;
}
.cx .footer-social a:hover { background: var(--brand); transform: translateY(-2px); }
.cx .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.cx .footer-bottom a { color: rgba(255,255,255,.7); }
.cx .footer-bottom a:hover { color: #fff; }

/* ---------- Floating social rail ---------- */
.cx .social-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; }
.cx .social-rail a {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand); color: #fff; border-radius: 12px 0 0 12px; font-size: 1.15rem;
  box-shadow: var(--shadow-sm); transition: width .2s ease, background .2s ease;
}
.cx .social-rail a:hover { background: var(--brand-700); color: #fff; }

/* ---------- Scroll top ---------- */
.cx .scroll-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease;
  font-size: 1.4rem;
}
.cx .scroll-top.show { opacity: 1; visibility: visible; }
.cx .scroll-top:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Reveal on scroll ----------
   Only hide initially when JS is available, so content is never
   permanently invisible if JS is disabled or fails to run. */
html.js .cx [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .cx [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .cx [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cx .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cx .hero-visual { max-width: 480px; margin: 0 auto; }
  .cx .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cx .contact-grid { grid-template-columns: 1fr; }
  .cx .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cx .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cx .nav-links { display: none; }
  .cx .nav-toggle { display: block; }
  .cx .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; padding: 14px 20px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); margin: 0;
  }
  .cx .nav-links.open a { padding: 12px 14px; }
  .cx .nav-cta .btn-x.hide-sm { display: none; }
  .cx .suite-grid, .cx .tst-grid { grid-template-columns: 1fr; }
  .cx .section { padding: 64px 0; }
  .cx .hero-float { display: none; }
}

@media (max-width: 560px) {
  .cx .hero { padding: calc(var(--header-h) + 44px) 0 56px; }
  .cx .eyebrow { font-size: .72rem; letter-spacing: .1em; padding: 6px 13px; }
  .cx .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.3rem); }
  .cx .hero p.sub { font-size: 1.04rem; }
  .cx .hero-copy { min-width: 0; }
  .cx .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cx .hero-actions .btn-x { width: 100%; }
  .cx .stats-strip { grid-template-columns: 1fr; }
  .cx .form-row { grid-template-columns: 1fr; }
  .cx .footer-grid { grid-template-columns: 1fr; }
  .cx .cta-band { padding: 36px 28px; }
  .cx .info-card, .cx .form-card { padding: 28px 22px; }
  .cx .container-x { padding: 0 18px; }
  .cx .news-row { flex-direction: column; }
}

/* =====================================================================
   Rich animations — AI-edtech style
   All effects use transform/opacity for GPU-friendly 60fps and are
   disabled under prefers-reduced-motion and tuned down on mobile.
   ===================================================================== */

/* ---------- Keyframes ---------- */
@keyframes cx-float      { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
@keyframes cx-float-sm   { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }
@keyframes cx-drift      { 0%{ transform: translate(0,0) scale(1) } 33%{ transform: translate(40px,-30px) scale(1.08) } 66%{ transform: translate(-30px,20px) scale(.95) } 100%{ transform: translate(0,0) scale(1) } }
@keyframes cx-drift2     { 0%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(-50px,30px) scale(1.12) } 100%{ transform: translate(0,0) scale(1) } }
@keyframes cx-aurora     { 0%{ transform: translate(-10%,-6%) rotate(0deg) } 50%{ transform: translate(8%,6%) rotate(8deg) } 100%{ transform: translate(-10%,-6%) rotate(0deg) } }
@keyframes cx-gradient   { 0%{ background-position: 0% 50% } 100%{ background-position: 200% 50% } }
@keyframes cx-marquee    { from{ transform: translateX(0) } to{ transform: translateX(-50%) } }
@keyframes cx-sheen      { 0%{ transform: translateX(-120%) rotate(8deg) } 100%{ transform: translateX(320%) rotate(8deg) } }
@keyframes cx-rotin      { 0%{ opacity:0; transform: translateY(18px) rotateX(-40deg) } 100%{ opacity:1; transform: none } }
@keyframes cx-rotout     { 0%{ opacity:1; transform: none } 100%{ opacity:0; transform: translateY(-18px) rotateX(40deg) } }
@keyframes cx-pulse      { 0%,100%{ box-shadow: 0 0 0 0 rgba(49,141,136,.35) } 50%{ box-shadow: 0 0 0 10px rgba(49,141,136,0) } }
@keyframes cx-bob        { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }
@keyframes cx-spin       { to { transform: rotate(360deg) } }

/* ---------- Scroll progress ---------- */
.cx .scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-700), #6fc6c0);
  background-size: 200% 100%;
  z-index: 1100; transition: width .12s linear;
  box-shadow: 0 0 12px rgba(49,141,136,.5);
}

/* ---------- Hero animated background ---------- */
.cx .hero { position: relative; isolation: isolate; }
.cx .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cx .hero > .container-x { position: relative; z-index: 1; }

.cx .hero-bg .aurora {
  position: absolute; inset: -25% -15% auto -15%; height: 70%;
  background:
    radial-gradient(40% 60% at 25% 30%, rgba(49,141,136,.20), transparent 60%),
    radial-gradient(45% 55% at 80% 20%, rgba(111,198,192,.22), transparent 60%),
    radial-gradient(40% 50% at 60% 80%, rgba(45,70,94,.10), transparent 60%);
  filter: blur(20px);
  animation: cx-aurora 18s ease-in-out infinite;
}
.cx .hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55;
  background: radial-gradient(circle at 30% 30%, var(--brand-200), var(--brand-100));
  will-change: transform;
}
.cx .hero-bg .orb.o1 { width: 280px; height: 280px; top: -60px; right: 8%; animation: cx-drift 20s ease-in-out infinite; }
.cx .hero-bg .orb.o2 { width: 180px; height: 180px; bottom: 4%; left: 2%; opacity:.4; animation: cx-drift2 16s ease-in-out infinite; }
.cx .hero-bg .orb.o3 { width: 120px; height: 120px; top: 38%; left: 46%; opacity:.3; background: radial-gradient(circle at 30% 30%, #bfe4e1, transparent 70%); animation: cx-float 12s ease-in-out infinite; }
.cx .hero-bg .grid-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(49,141,136,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(49,141,136,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 60% at 60% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 60% 35%, #000 30%, transparent 75%);
}

/* ---------- Animated gradient highlight + rotator ---------- */
.cx .hero h1 .hl,
.cx .grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, #43b3ac 35%, var(--brand-700) 70%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cx-gradient 5s linear infinite alternate;
}
.cx .rotator { display: inline-block; min-height: 1.1em; transform-origin: 50% 100%; }
.cx .rotator.in  { animation: cx-rotin .5s cubic-bezier(.22,1,.36,1) both; }
.cx .rotator.out { animation: cx-rotout .35s ease-in both; }

/* ---------- Hero visual motion ---------- */
.cx .hero-visual img.hero-img { animation: cx-float 7s ease-in-out infinite; will-change: transform; }
.cx .hero-visual .blob { animation: cx-drift2 22s ease-in-out infinite; }
.cx .hero-float { animation: cx-bob 4.5s ease-in-out infinite; }
.cx .hero-float.f2 { animation-delay: 1.2s; }

/* ---------- Buttons: shine + pulse ---------- */
.cx .btn-primary-x { position: relative; overflow: hidden; }
.cx .btn-primary-x::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-120%) rotate(8deg); pointer-events: none;
}
.cx .btn-primary-x:hover::after { animation: cx-sheen .9s ease; }

/* ---------- Trust marquee ---------- */
.cx .marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.cx .marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: cx-marquee 28s linear infinite; will-change: transform;
}
.cx .marquee:hover .marquee-track { animation-play-state: paused; }
.cx .marquee .trust-pill { flex: none; }

/* ---------- Stagger reveal ---------- */
html.js .cx .stats-strip > [data-reveal].in:nth-child(1) { transition-delay: .05s; }
html.js .cx .stats-strip > [data-reveal].in:nth-child(2) { transition-delay: .15s; }
html.js .cx .stats-strip > [data-reveal].in:nth-child(3) { transition-delay: .25s; }
html.js .cx .stats-strip > [data-reveal].in:nth-child(4) { transition-delay: .35s; }
html.js .cx .suite-grid > [data-reveal].in:nth-child(2),
html.js .cx .tst-grid   > [data-reveal].in:nth-child(2) { transition-delay: .12s; }
html.js .cx .suite-grid > [data-reveal].in:nth-child(3),
html.js .cx .tst-grid   > [data-reveal].in:nth-child(3) { transition-delay: .24s; }
html.js .cx .suite-grid > [data-reveal].in:nth-child(4),
html.js .cx .tst-grid   > [data-reveal].in:nth-child(4) { transition-delay: .36s; }

/* ---------- Product card: 3D tilt + sheen + animated icon ---------- */
.cx .product-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0));
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .22s ease, border-color .22s ease;
}
.cx .product-card .pc-icon,
.cx .product-card h3,
.cx .product-card .pc-foot { transform: translateZ(28px); }
.cx .product-card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-150%) skewX(-12deg); transition: transform .7s ease; pointer-events: none;
}
.cx .product-card:hover::after { transform: translateX(220%) skewX(-12deg); }
.cx .product-card:hover .pc-icon { animation: cx-pulse 1.4s ease infinite; }

/* ---------- Section icon hover float ---------- */
.cx .stat-card:hover .ic { animation: cx-float-sm 1.6s ease-in-out infinite; }

/* ---------- Reveal direction variants ---------- */
html.js .cx [data-reveal="left"]  { transform: translateX(-32px); }
html.js .cx [data-reveal="right"] { transform: translateX(32px); }
html.js .cx [data-reveal="left"].in,
html.js .cx [data-reveal="right"].in { transform: none; }

/* ---------- Mobile tuning: keep it light & smooth ---------- */
@media (max-width: 860px) {
  .cx .hero-bg .orb { filter: blur(12px); opacity: .35; }
  .cx .hero-bg .orb.o3 { display: none; }
  .cx .hero-visual img.hero-img { animation-duration: 9s; }
  .cx .marquee-track { animation-duration: 22s; }
  /* Disable 3D tilt on touch — JS won't set vars, but ensure no perspective jank */
  .cx .product-card { transform: translateY(var(--ty,0)); }
  .cx .product-card .pc-icon,
  .cx .product-card h3,
  .cx .product-card .pc-foot { transform: none; }
  .cx .team-card { transform: none; }
  .cx .tc-avatar,
  .cx .team-card h4,
  .cx .team-card .role,
  .cx .tc-creds { transform: none; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cx .hero-bg .aurora,
  .cx .hero-bg .orb,
  .cx .hero-visual img.hero-img,
  .cx .hero-visual .blob,
  .cx .hero-float,
  .cx .hero h1 .hl,
  .cx .grad-text,
  .cx .marquee-track,
  .cx .rotator,
  .cx .product-card:hover .pc-icon,
  .cx .stat-card:hover .ic,
  .cx .team-card::before { animation: none !important; }
  .cx .hero h1 .hl, .cx .grad-text { -webkit-text-fill-color: var(--brand); }
  .cx .product-card, .cx .team-card { transform: none !important; }
}

/* =====================================================================
   Theme toggle + Dark theme
   --navy is reused as both heading-text and (in light) dark surfaces;
   in dark we flip --navy to a light value for text and explicitly
   re-darken the few surfaces that depended on it (info-card, mobile nav).
   ===================================================================== */

/* ---------- Toggle button (works in both themes) ---------- */
.cx .theme-toggle {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.cx .theme-toggle:hover { color: var(--brand-700); border-color: var(--brand); transform: translateY(-1px); }
.cx .theme-toggle:active { transform: scale(.94); }
.cx .theme-toggle i { transition: transform .3s ease; }
.cx .theme-toggle:hover i { transform: rotate(18deg); }

/* Smooth cross-fade when switching themes */
body.cx { transition: background-color .35s ease, color .35s ease; }

/* ---------- Dark theme tokens ---------- */
html[data-theme="dark"] {
  --brand: #36ada6;
  --brand-600: #3fb8b1;
  --brand-700: #69cfc8;      /* accent TEXT — light teal for contrast on dark */
  --brand-50:  #112c2a;      /* dark teal tint surfaces (chips, icon bgs) */
  --brand-100: #16403b;
  --brand-200: #225a55;

  --navy: #e9eff4;           /* heading / strong text (was dark, now light) */
  --navy-700: #080d12;       /* footer surface — stays dark */
  --ink: #c0ccd6;
  --muted: #8595a3;
  --line: #283541;
  --line-strong: #36444f;

  --bg: #0f1620;
  --bg-soft: #141d28;
  --bg-tint: #16212d;
  --surface: #19232f;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.45);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.45);
  --shadow-md: 0 16px 40px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.6);
  --ring: 0 0 0 4px rgba(54,173,166,.28);

  color-scheme: dark;
}

/* ---------- Dark: component surfaces that used literal white ---------- */
html[data-theme="dark"] .cx .site-header { background: rgba(15,22,30,.82); }
html[data-theme="dark"] .cx .site-header.scrolled { background: rgba(15,22,30,.95); border-color: var(--line); }

html[data-theme="dark"] .cx .btn-ghost-x { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
html[data-theme="dark"] .cx .btn-ghost-x:hover { border-color: var(--brand); color: var(--brand-700); }
/* keep primary button readable with white text on dark */
html[data-theme="dark"] .cx .btn-primary-x { background: linear-gradient(135deg, #2f9b94 0%, #1d6a64 100%); }

html[data-theme="dark"] .cx .hero {
  background:
    radial-gradient(1100px 520px at 88% -8%, #102e2b 0%, transparent 60%),
    radial-gradient(800px 480px at -10% 110%, #11202b 0%, transparent 55%),
    var(--bg);
}

html[data-theme="dark"] .cx .stat-card,
html[data-theme="dark"] .cx .product-card,
html[data-theme="dark"] .cx .pillar-card,
html[data-theme="dark"] .cx .tst-card,
html[data-theme="dark"] .cx .form-card,
html[data-theme="dark"] .cx .tc-creds { background: var(--surface); }

html[data-theme="dark"] .cx .hero-float { background: var(--surface); color: var(--navy); border-color: var(--line); }
html[data-theme="dark"] .cx .trustbar { background: var(--bg); }
html[data-theme="dark"] .cx .ctrl:focus { background: var(--surface); }

html[data-theme="dark"] .cx .team-card { background: linear-gradient(180deg, #1a2430 0%, #141d18 100%); }

/* info-card used var(--navy) as bg (now light) → re-darken explicitly */
html[data-theme="dark"] .cx .info-card { background: linear-gradient(160deg, #122230 0%, #0c1822 100%); border: 1px solid var(--line); }

/* mobile nav dropdown */
html[data-theme="dark"] .cx .nav-links.open { background: var(--surface); border-color: var(--line); }

/* soften the white sheen sweeps on dark cards/buttons */
html[data-theme="dark"] .cx .product-card::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); }

/* Harvard credential logos keep a white chip so the logos stay legible */
html[data-theme="dark"] .cx .tc-creds .cred-logo { background: #fff; }
