/* ---------------------
  DESIGN TOKENS (Single theme: Brightened Purple)
  --------------------- */
:root {
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-round: 50px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .5);

  /* 4px baseline scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;
  --s-11: 96px;

  /* Type */
  --font-sans: 'Source Sans Pro', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --fs-0: 12px;
  --fs-1: 14px;
  --fs-2: 16px;
  --fs-3: 18px;
  --fs-4: 20px;
  --fs-5: 24px;
  --fs-6: 28px;
  --fs-7: 36px;
  --fs-8: 44px;
  --fs-9: 56px;

  /* Base */
  --bg: #151528;
  /* brightened base */
  --surface: #201E32;
  --surface-strong: #272342;
  --text: #E6E7F5;
  --muted: #A7AEC7;

  /* Purple system */
  --primary: #7A62D4;
  --primary-600: #654FC2;
  --accent: #8A70DC;
  --purple-light-accessible: #D1C4FF;

  /* Blue system (for blue sections only) */
  --blue-primary: #09447A;
  --blue-dark: #1C2547;
  --blue-light-accessible: #82C2FF;

  /* Borders / dividers (shared across cards + FAQ so they match) */
  --divider: #343A64;

  /* Buttons */
  --btn-consulting: #5F91E2;
  --btn-red: #E1453C;
  --btn-red-hover: #BD332D;
  --btn-orange: #F26A3A;
  --btn-orange-hover: #D3522C;

  /* Secondary button defaults (used across blue sections) */
  --btn-secondary-bg: transparent;
  --btn-secondary-border: var(--blue-light-accessible);
  --btn-secondary-color: var(--blue-light-accessible);

  /* Chips */
  --chip-active-bg: color-mix(in srgb, var(--primary) 35%, var(--surface-strong));
  --chip-active-border: color-mix(in srgb, var(--primary) 80%, var(--divider));

  /* Link + hover CTA defaults */
  --link-color: var(--primary);
  --hover-cta-color: var(--primary);

  /* Hero SVG Tokens */
  --hero-grad-start: #070816;
  --hero-grad-mid: #101738;
  --hero-grad-end: #21306A;
  --hero-spotlight-color: #90CCFF;
  --hero-grid-stroke: #7A62D4;
  --hero-line-stroke: #82C2FF;

  /* ====== SECTION BACKGROUND GRADIENTS (your preferred “old” ones) ====== */
  --bg-grad-purple:
    radial-gradient(1200px 700px at 70% -12%, rgba(122, 98, 212, .34), transparent 60%),
    radial-gradient(900px 650px at 12% 22%, rgba(138, 112, 220, .22), transparent 62%),
    radial-gradient(700px 500px at 90% 88%, rgba(199, 185, 249, .12), transparent 55%),
    var(--bg);

  --bg-grad-blue:
    radial-gradient(1200px 700px at 80% -12%, rgba(130, 194, 255, .30), transparent 60%),
    radial-gradient(950px 650px at 15% 18%, rgba(9, 60, 109, .26), transparent 62%),
    radial-gradient(900px 700px at 50% 105%, rgba(130, 194, 255, .12), transparent 55%),
    var(--bg);

  --consulting-bg: url('../img/consulting.png');
  --logos-bg: url('../img/partners-section-bg-white-fade.png');
}

/* Base */
html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-2);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h3 {
  font-weight: 700;
  font-size: 1.17em;
}

h2 {
  font-weight: 700;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ===== Reveal / “soft scroll up” animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  html,
  body {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(120%) blur(8px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  color: #fff;
}

.brand-badge {
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
  flex-shrink: 0;
}

.crumbs {
  color: var(--muted);
  font-size: var(--fs-1);
}

.local-nav {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  overflow: auto;
  padding-block: var(--s-3);
}

.chip {
  padding: 6px 12px;
  border-radius: var(--radius-round);
  background: var(--surface);
  border: 1px solid var(--divider);
  white-space: nowrap;
  font-size: var(--fs-1);
  color: var(--text);
  box-shadow: var(--shadow-1);
  transition: all .2s ease;
  text-decoration: none;
}

.chip.active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-border);
  color: #fff;
}

/* Sticky Nav Bar */
#sticky-nav {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom: 1px solid var(--divider);
  padding: 10px 0;
  z-index: 1000;
  transition: top .3s ease-in-out;
  backdrop-filter: blur(10px);
}

#sticky-nav.visible {
  top: 0;
}

#sticky-nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sticky-nav .nav-title {
  font-weight: 700;
  color: #fff;
  font-size: var(--fs-3);
  white-space: nowrap;
  margin-right: 20px;
}

#sticky-nav .nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#sticky-nav .nav-links a {
  margin-left: 12px;
  color: var(--text);
  font-size: var(--fs-1);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius-round);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}

/* Hover + Press colors (AA-friendly on dark) */
#sticky-nav .nav-links a:hover {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  text-decoration: none;
}

#sticky-nav .nav-links a:active {
  transform: translateY(1px);
  background: color-mix(in srgb, var(--primary) 28%, transparent);
}

/* Sections */
section {
  padding-block: var(--s-10);
  border-top: 1px solid var(--divider);
}

section:first-of-type {
  border-top: none;
}

.section-hdr {
  margin-bottom: var(--s-7);
}

.section-hdr h2 {
  font-size: clamp(24px, 4vw, var(--fs-7));
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.015em;
  color: #fff;
  text-align: left;
}

.section-hdr p {
  color: var(--muted);
  margin: var(--s-3) 0 0;
  max-width: 70ch;
}

#faq .section-hdr h2,
#logos .section-hdr h2 {
  text-align: center;
}

/* ===== Alternating section backgrounds (purple/blue) ===== */
#intro-classrooms {
  background: var(--bg-grad-purple);
  position: relative;
  overflow: hidden;
}

#intro-quote {
  background: var(--bg-grad-blue);
  position: relative;
  overflow: hidden;
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);
}

#features {
  background: var(--bg-grad-purple);
  position: relative;
}

#resources {
  background: var(--bg-grad-blue);
}

#highlighted-examples {
  background: var(--bg-grad-purple);
}

#explore {
  background: var(--bg-grad-blue);
  position: relative;
}

#faq {
  background: var(--bg-grad-purple);
  position: relative;
}

#next {
  background: var(--bg-grad-blue);
}

#logos {
  background: var(--bg-grad-purple);
  overflow: hidden;
  padding-block: var(--s-10);
  border-top: 1px solid var(--divider);
}

/* Hero */
#overview {
  position: relative;
}

.hero {
  padding-block: var(--s-11) var(--s-10);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: block;
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--purple-light-accessible);
  margin-bottom: var(--s-2);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, var(--fs-9));
  line-height: 1.05;
  margin: 0 0 var(--s-5);
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 700;
}

.hero p {
  color: var(--muted);
  font-size: var(--fs-4);
  margin: 0 0 var(--s-7);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-round);
  border: 1px solid var(--divider);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-2);
  line-height: 1.2;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  text-align: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-600);
}

/* Secondary: default is BLUE (site-wide), but HERO wants lighter purple */
.btn.secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border-color: var(--btn-secondary-border);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Hero-only secondary button => lighter purple */
#overview {
  --btn-secondary-bg: transparent;
  --btn-secondary-border: var(--purple-light-accessible);
  --btn-secondary-color: var(--purple-light-accessible);
}

/* Secondary hover keeps hue */
.btn.secondary:hover {
  background: color-mix(in srgb, var(--btn-secondary-color) 14%, transparent);
  border-color: color-mix(in srgb, var(--btn-secondary-border) 85%, white 15%);
  text-decoration: none;
}

.right-angle-quote {
  font-size: 24px;
  font-weight: 600;
}

.btn .material-symbols-sharp {
  width: 20px;
  line-height: 1;
}

.material-symbols-sharp {
  width: 24px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
}

.material-symbols-sharp svg {
  vertical-align: middle;
}

#hero-abstract-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  display: block;
}

#hero-abstract-bg svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Animation */
.math-layer-1,
.math-layer-2,
.math-layer-3,
.dotted-lines {
  transform-origin: center;
}

.math-layer-1 {
  animation: focusOffset 16s infinite ease-in-out;
}

.math-layer-2 {
  animation: focusOffset 16s infinite ease-in-out -8s;
}

.math-layer-3 {
  animation: focusOffset 16s infinite ease-in-out -4s;
}

.dotted-lines {
  animation: floatGlow 20s infinite alternate linear;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-10px) scale(1.01);
  }
}

@keyframes focusOffset {
  0% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(0, 0) scale(1);
  }

  25% {
    opacity: .5;
    filter: blur(4px);
    transform: translate(10px, -10px) scale(.98);
  }

  50% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(0, 0) scale(1);
  }

  75% {
    opacity: .5;
    filter: blur(4px);
    transform: translate(10px, -10px) scale(.98);
  }

  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translate(0, 0) scale(1);
  }
}

#hero-abstract-bg embed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Intro sections */
.intro-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  align-items: center;
}

.intro-section-grid.image-right {
  grid-template-columns: 1.5fr 1fr;
}

.intro-media {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background-color: var(--surface-strong);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-media.classroom-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  /* more saturated (less gray) purple tint for this purple section */
  background: linear-gradient(135deg, rgba(122, 98, 212, 0.22), rgba(28, 37, 71, 0.22));
  pointer-events: none;
}

/* “Blobs” overlay for classrooms — keep saturated (no grey wash) */
#intro-classrooms .intro-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 10% 90%, rgba(122, 98, 212, .30), transparent 60%),
    radial-gradient(700px 500px at 80% 85%, rgba(209, 196, 255, .18), transparent 55%),
    radial-gradient(600px 400px at 55% 100%, rgba(138, 112, 220, .16), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: .95;
}

#intro-classrooms .wrap {
  position: relative;
  z-index: 1;
}

/* Bullets (restored) */
.styled-bullets {
  list-style: none;
  padding-left: 20px;
  margin-top: var(--s-6);
  color: var(--text);
}

.styled-bullets li {
  position: relative;
  margin-bottom: var(--s-3);
  font-size: var(--fs-3);
  line-height: 1.5;
}

/* Purple section bullet dots => purple accent */
#intro-classrooms .styled-bullets li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--purple-light-accessible);
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: var(--s-6);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: var(--s-7);
  box-shadow: var(--shadow-1);
  position: relative;
}

.card h3 {
  font-size: clamp(20px, 3vw, var(--fs-5));
  margin: 0 0 var(--s-3);
  color: #fff;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature-card {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  flex-grow: 1;
}

.feature-card-footer {
  margin-top: var(--s-5);
  text-align: right;
}

#features .feature-card:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--divider));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent), var(--shadow-1);
  transform: translateY(-2px);
}

.feature-card-cta {
  color: var(--muted);
  font-size: var(--fs-1);
  font-weight: 600;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}

.feature-card:hover .feature-card-cta {
  color: var(--purple-light-accessible);
  transform: translateX(4px);
}

.feature-card-visual {
  display: block;
  width: 100%;
  height: 140px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.feature-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .85;
  transition: transform .3s ease, opacity .3s ease;
}

[data-layout="visualCards"] .feature-card {
  padding: 0;
  justify-content: flex-start;
  border-radius: var(--radius);
}

[data-layout="visualCards"] .feature-card-visual {
  display: block;
}

[data-layout="visualCards"] .card-content {
  padding: var(--s-6);
  flex-grow: 1;
}

[data-layout="visualCards"] .feature-card-footer {
  padding: 0 var(--s-6) var(--s-6) var(--s-6);
  margin-top: 0;
}

[data-layout="visualCards"] .icon {
  display: none;
}

/* Feature Panel */
.feature-panel {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 48px var(--s-6) var(--s-6) var(--s-6);
  margin-top: var(--s-4);
  margin-bottom: var(--s-6);
  animation: slideDown .3s ease-out;
  position: relative;
  scroll-margin-top: 100px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-panel h3 {
  color: #fff;
  margin-top: 0;
  font-size: var(--fs-5);
}

.feature-panel-links {
  display: grid;
  gap: var(--s-4);
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width:1024px) {
  .feature-panel-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-panel-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  padding: 14px 10px;
  min-height: 3.25rem;
  background: var(--surface-strong);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  color: var(--purple-light-accessible);
  text-decoration: none;
  font-weight: 600;
  transition: all .2s;
  line-height: 1.3;
}

.feature-panel-link:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--primary) 15%, var(--surface-strong));
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
  font-family: var(--font-sans);
}

.feature-panel-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feature-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}

@media (min-width:768px) {
  .resource-grid {
    display: flex;
  }

  .resource-grid>.in-view,
  .resource-grid .resource-card {
    flex: 1;
  }
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, rgba(9, 60, 109, 0.28) 65%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, rgba(130, 194, 255, 0.35) 55%, var(--divider));
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 360px;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--blue-light-accessible);
}

.resource-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resource-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
}

.resource-card:hover .resource-media img {
  opacity: 1;
  transform: scale(1.03);
}

.play-btn {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(9, 60, 109, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-left: 4px;
}

.resource-card:hover .play-btn {
  transform: scale(1.1);
  background: var(--blue-light-accessible);
  color: var(--bg);
}

.resource-info {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.resource-info h3 {
  font-size: var(--fs-5);
  color: #fff;
  margin: 0 0 var(--s-2);
  line-height: 1.3;
}

.resource-info p {
  color: var(--muted);
  font-size: var(--fs-2);
  margin: 0;
  line-height: 1.5;
}

/* Res Icons (restore older “blue links” look; no green star) */
.res-icons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width:640px) {
  .res-icons {
    grid-template-columns: 1fr 1fr;
  }
}

.res-icons .item {
  color: var(--text);
  background: color-mix(in srgb, rgba(9, 60, 109, 0.24) 65%, var(--surface-strong));
  box-shadow: none;
  border: 1px solid color-mix(in srgb, rgba(130, 194, 255, 0.28) 55%, var(--divider));
  border-radius: var(--radius);
  padding: var(--s-6);
  display: flex;
  gap: var(--s-5);
  align-items: center;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
}

.res-icons .item:hover {
  text-decoration: none;
  background: color-mix(in srgb, rgba(9, 60, 109, 0.34) 65%, var(--surface-strong));
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--blue-light-accessible);
}

.res-icons .item h3 {
  color: var(--blue-light-accessible);
  margin: 0;
}

.res-icons .item p {
  color: var(--muted);
  margin: 0;
}

.res-icons .ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: rgba(9, 60, 109, 0.9);
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: none;
  color: var(--blue-light-accessible);
  font-weight: bold;
  font-size: 20px;
}

.res-icons .ico::before {
  content: '✦';
}

/* Highlighted Examples */
.highlighted-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: stretch;
  margin-top: var(--s-8);
}

@media(min-width:1024px) {
  .highlighted-wrapper {
    display: flex;
  }

  .examples-list {
    flex: 1;
  }

  .notebook-preview-container {
    flex: 1.2;
  }
}

.examples-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-5);
}

.example-item {
  display: block;
  text-decoration: none;
  transition: transform .2s;
}

.example-item:hover {
  transform: translateY(-4px);
}

/* Purple border for these thumbs (matches FAQ/cards logic; uses same divider system but nudged purple) */
.example-thumb {
  aspect-ratio: 1/1;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--divider));
  border-radius: var(--radius-sm);
  margin-bottom: var(--s-2);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.example-item p {
  font-size: var(--fs-0);
  color: var(--text);
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

/* Notebook Preview */
.notebook-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.notebook-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-1);
  object-fit: cover;
  background: var(--surface);
  display: block;
  aspect-ratio: 4/3;
}

.notebook-run-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: var(--btn-orange);
  color: #fff;
  border: 1px solid var(--btn-orange);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  text-align: center;
  white-space: nowrap;
}

.notebook-run-btn:hover {
  transform: translate(-50%, -52%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
  text-decoration: none;
}

/* Other Areas Grid */
.other-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--s-6);
}

.other-area-card {
  text-decoration: none;
  display: block;
  transition: transform .2s ease;
}

.other-area-card:hover {
  transform: translateY(-4px);
}

.other-area-card img {
  aspect-ratio: 610 / 224;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--divider));
  border-radius: var(--radius-sm);
  margin-bottom: var(--s-3);
  transition: border-color .2s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.other-area-card:hover img {
  border-color: var(--primary);
}

.other-area-card p {
  color: var(--muted);
  margin: 0;
  font-size: var(--fs-2);
}

.other-area-card p strong {
  color: #fff;
}

/* CTAs */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.cta-card {
  background: color-mix(in srgb, rgba(9, 60, 109, 0.20) 55%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, rgba(130, 194, 255, 0.26) 55%, var(--divider));
  border-radius: var(--radius);
  padding: var(--s-7);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.cta-grid h3 {
  margin: 0;
  font-size: var(--fs-5);
  color: #fff;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
}

/* Next section buttons stay red */
#next .cta-card .btn.primary {
  background-color: var(--btn-red);
  border-color: var(--btn-red);
  color: #fff;
}

#next .cta-card .btn.primary:hover {
  background-color: var(--btn-red-hover);
  border-color: var(--btn-red-hover);
}

/* Consulting (fill entire pod; remove “inset border” look) */
.consulting-card {
  position: relative;
  overflow: hidden;
  background-color: #0b1021;
  background-image: var(--consulting-bg);
  background-size: cover;
  background-position: center;
  grid-column: 1/-1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 140px;
}

@media (max-width:640px) {
  .consulting-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.consulting-card::before {
  content: "";
  position: absolute;
  inset: 0;
  /* ensure overlay covers edge-to-edge */
  background: linear-gradient(135deg, rgba(23, 28, 50, .88), rgba(9, 60, 109, .58));
  z-index: 1;
}

.consulting-card>* {
  position: relative;
  z-index: 2;
}

.wolfram-consulting-logo {
  height: 32px;
}

.btn-consulting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: var(--fs-2);
  line-height: 1.2;
  text-decoration: none;
  background-color: var(--btn-consulting);
  color: #fff;
  border: 1px solid var(--btn-consulting);
  box-shadow: var(--shadow-1);
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-consulting:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
}

.next-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 5px;
  text-align: center;
  grid-column: 1 / -1;
}

.next-footer-link {
  color: var(--blue-light-accessible);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.white-text {
  color: #fff;
}

/* FAQ Styles (border matches cards: uses var(--divider)) */
.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}

#faq .section-hdr {
  text-align: center;
  margin-bottom: var(--s-8);
}

.faq-item {
  background: var(--surface-strong);
  border: 1px solid var(--divider);
  /* matches feature cards */
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-question {
  padding: var(--s-5);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-2);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  min-height: 5rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--fs-4);
  color: var(--purple-light-accessible);
  font-weight: 400;
  transition: transform .2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--s-5) var(--s-5) var(--s-5);
  color: var(--muted);
  line-height: 1.6;
}

.faq-item[open] .faq-answer {
  animation: faqContentFade .3s ease-out forwards;
}

@keyframes faqContentFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width:768px) {
  .faq-container {
    grid-template-columns: 1fr;
  }
}

/* Logos */
.logo-section {
  background: var(--bg-grad-purple);
  overflow: hidden;
  padding-block: var(--s-10);
  border-top: 1px solid var(--divider);
}


/* Logos */
.logo-grid {
  margin-top: var(--s-8);
  height: 607px;
  background-image: var(--logos-bg);
  background-size: cover;
  background-position: center;
}

.logo-grid img {
  visibility: hidden;
}

/* Responsive */
@media (max-width:1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --items-per-row: 2;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .res-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .highlighted-wrapper {
    grid-template-columns: 1fr;
  }

  .intro-section-grid,
  .intro-section-grid.image-right {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:900px) {
  /* .quote-content-grid{grid-template-columns:1fr; padding:var(--s-6); gap:var(--s-6);}
    .quote-dots{align-self:flex-start;} */
}

@media (max-width:640px) {
  .res-icons {
    grid-template-columns: 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  section {
    padding-block: var(--s-9);
  }

  /* .quote-cta{padding-left:0; margin-top:var(--s-4);} */
  .feature-panel {
    padding: 48px var(--s-4) var(--s-4) var(--s-4);
  }

  .site-header .wrap {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .local-nav {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .local-nav::-webkit-scrollbar {
    display: none;
  }

  .brand span {
    font-size: var(--fs-1);
  }

  .brand-badge {
    width: 24px;
    height: 24px;
  }

  .hero-eyebrow {
    font-size: var(--fs-1);
  }
}

/* Avoid underlines on card-style links/buttons */
.resource-card,
.resource-card:hover,
.example-item,
.example-item:hover,
.other-area-card,
.other-area-card:hover,
.res-icons .item,
.res-icons .item:hover,
.notebook-run-btn,
.notebook-run-btn:hover,
.chip,
.chip:hover,
#sticky-nav .nav-links a,
#sticky-nav .nav-links a:hover,
.btn,
.btn:hover {
  text-decoration: none !important;
}

/* ==========================================================================
  carousel
  ========================================================================== */
.cd-hero {
  position: relative;
}

.cd-hero__slider {
  height: calc(400px + 2rem);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cd-hero__slide {
  height: 100%;
  left: 0;
  position: absolute;
  /* text-align: center; */
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.cd-hero__slide.cd-hero__slide--selected {
  /* this is the visible slide */
  /* -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0); */
  opacity: 1;
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
  z-index: 1;
  background: color-mix(in srgb, var(--blue-primary) 15%, var(--surface-strong));
}

html:not(.js-enabled) .cd-hero__slide {
  display: none;
}

html:not(.js-enabled) .cd-hero__slide.cd-hero__slide--selected {
  display: block;
}


/* hero slider nav */
.cd-hero__nav {
  /* background: #fff; */
  bottom: 0;
  height: 1.125rem;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.cd-hero__nav nav,
.cd-hero__nav ul,
.cd-hero__nav li,
.cd-hero__nav a {
  height: 100%;
}

.cd-hero__nav nav {
  display: block;
  margin: 0 auto;
  position: relative;
}

.cd-hero__nav ul.outer-ul {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.cd-hero__nav li {
  padding-bottom: 0;
}

.cd-hero__nav ul.outer-ul li.scroll {
  overflow: hidden;
  width: 100%;
}

.cd-hero__nav ul.inner-ul {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
}

.cd-hero__nav ul.inner-ul>li {
  flex: 0 0 auto;
}

.cd-hero__nav .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--blue-light-accessible);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  opacity: .75;
  transition: opacity .3s ease;
  padding: 0;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  top: -5px;
  z-index: 2;
}

.cd-hero__nav li.cd-selected .dot {
  opacity: 1;
  background: var(--blue-light-accessible);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-light-accessible) 20%, transparent), 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  display: inline-block;
}

.cd-hero__nav .dot:hover {
  border-color: var(--blue-light-accessible);
}

.cd-hero__nav li.cd-selected .dot:hover {}


/***************************************/
/* Full-width dark background */
.quote-section {
  /* background-color: #101010;
padding: 40px 1.5rem 66px 1.5rem; */
  background: var(--bg-grad-blue);
  position: relative;
  overflow: hidden;
  padding-top: var(--s-8);
  padding-bottom: var(--s-8);

}

/* Inner container: max-width and centered */
.quote-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: color-mix(in srgb, var(--blue-primary) 15%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, var(--blue-primary) 30%, var(--divider));
  box-shadow: var(--shadow-1);
  border-radius: 16px;
}

/* Each quote row: image + content side by side */
.quote-row {
  display: flex;
  align-items: top;
  gap: 32px;
  flex-wrap: wrap;
  height: 100%;
}

/* Left image */
.quote-image {
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 480px;
  max-height: 360px;
  height: 100%;
  /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 16px;
  /* subtle rounded corners */
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

/* Right text area */
.quote-content {
  position: relative;
  flex: 1;
  min-width: 0;
}

.quote-text-container::before {
  content: '“';
  position: absolute;
  font-family: serif;
  font-size: 92px;
  color: var(--blue-light-accessible);
  opacity: 0.22;
  line-height: 0.8;
  left: 0;
  font-weight: 600;
}

.quote-text-container::after {
  content: '”';
  position: absolute;
  font-family: serif;
  font-size: 92px;
  color: var(--blue-light-accessible);
  opacity: 0.16;
  margin-top: -71px;
  right: 0;
  font-weight: 600;
}

/* Main quote text */
.quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  color: #ffffff;
  /* white text */
  line-height: 1.5;
  margin-bottom: 1rem;
  margin-left: 60px;
}

/* Combined name and title */
.quote-meta {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: var(--s-6);
  font-size: 15px;
  color: var(--blue-light-accessible);
  font-style: normal;
  font-weight: 400;
  opacity: .9;
  margin-left: 60px;
}

.quote-cta {
  margin-left: 60px;
  margin-top: 40px;
}

/* Divider above quotes */
.quote-section-divider {
  display: none;
  width: 100%;
  height: 2px;
  background-color: #6e747d;
  margin: 0 0 6rem 0;
  border-radius: 2px;
}

/* Responsive layout for smaller screens */


@media (max-width: 900px) {

  .cd-hero__slider {
    height: 700px;
  }

  .quote-row {
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Align to left */
    flex-wrap: nowrap;
  }

  .quote-content {
    width: 100%;
    /* Full width in single column */

  }

  .quote-content::before,
  .quote-content::after {
    font-size: 5rem;
  }

  .quote-text {
    font-size: clamp(14px, 3vw, 22px);
  }

  .quote-meta {
    font-size: clamp(10px, 3vw, 15px);
  }

}

@media (max-width: 640px) {
  .quote-cta {
    margin-left: 0px;
  }
}

/***************************************/



/************** Feature Cards **********/
/***************************************/
.features-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive columns */
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    --items-per-row: 3;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    --items-per-row: 2;
  }
}

@media (max-width: 599px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    --items-per-row: 1;
  }
}

.card {
  padding: 0px;
}

.feature-card-visual {
  display: block;
  width: 100%;
  height: 140px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.feature-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-weight: 700;
}

.feature-card-footer {
  padding: 0 20px 20px;
  color: #0066cc;
  font-weight: 600;
  font-size: 14px;
}

/* Panel styles */
.feature-panel {
  display: none;
  grid-column: 1 / -1;
  /* Span full width */
  position: relative;
}

.feature-panel.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-panel-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

/* temporary, for getting dimensions */
.image-dimensions {
  position: absolute;
  color: #fff;
  background: #000;
  z-index: 2;
}