/* ==========================================================================
   iSTEM Homeschool Engineering — styles
   Theme: dark + neon "maker lab" aesthetic
   ========================================================================== */

:root {
  --bg: #060913;
  --bg-2: #0b1020;
  --panel: rgba(16, 23, 46, 0.85);
  --panel-solid: #0e1530;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --muted: #9aa7c7;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #f472b6;
  --yellow: #facc15;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(100deg, #22d3ee, #818cf8 30%, #f472b6 60%, #facc15 90%);
  --header-h: 76px;
  --radius: 18px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font-head: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Fallback only — main.js syncs this to the real sticky header height */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7defff; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2547; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #27315c; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--cyan); color: #04121a; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 10px; transition: top 0.25s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Development banner
   ========================================================================== */
.dev-banner {
  position: relative;
  background: linear-gradient(90deg, #13213f, #1c1240 55%, #3a1226);
  border-bottom: 2px solid rgba(250, 204, 21, 0.8);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.dev-banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 18px; flex-wrap: wrap;
  padding: 10px 44px;
}
.dev-banner-text { font-size: 14px; font-weight: 600; color: #eef2ff; }
.dev-banner-text strong { color: var(--yellow); }
.dev-banner-badge {
  display: inline-block; margin-right: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--yellow); color: #231a02;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  vertical-align: 2px;
  animation: badgePulse 2.2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
}
.dev-banner-form { display: flex; gap: 8px; }
.dev-banner-form input {
  width: 210px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.14);
  color: #fff; font: inherit; font-size: 13px;
}
.dev-banner-form input::placeholder { color: #b6c1de; }
.dev-banner-form input:focus {
  outline: none; border-color: var(--yellow); background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}
.dev-banner-btn {
  padding: 9px 16px; border-radius: 10px;
  font-weight: 800; font-size: 13px; color: #061018;
  background: var(--grad);
  transition: filter 0.2s, transform 0.2s;
}
.dev-banner-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.dev-banner-btn-short { display: none; }
.dev-banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px;
  color: #c7d2ee; font-size: 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.dev-banner-close:hover {
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1);
}

i want it to work everywhere@media (max-width: 640px) {
  .dev-banner-inner { padding: 8px 16px 8px 40px; gap: 8px 12px; }
  .dev-banner-text { font-size: 13px; }
  .dev-banner-form { width: 100%; }
  .dev-banner-form input { flex: 1; width: auto; padding: 7px 10px; font-size: 12.5px; }
  .dev-banner-btn { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
}

@media (max-width: 480px) {
  .dev-banner-btn-full { display: none; }
  .dev-banner-btn-short { display: inline; }
  .dev-banner-form { gap: 6px; }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(6, 9, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); }

.nav {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--font-head); font-weight: 900;
  font-size: 20px; letter-spacing: 0.06em;
}
.brand:hover { color: var(--text); }
.brand-name { font-size: clamp(15px, 2.2vw, 18px); line-height: 1.2; }
.brand-name-short { display: none; }
.brand-cube {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--grad); color: #081018;
  font-size: 17px; box-shadow: 0 0 18px rgba(129, 140, 248, 0.55);
  animation: cubePulse 3s ease-in-out infinite;
}
@keyframes cubePulse {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 14px rgba(129, 140, 248, 0.5); }
  50% { transform: scale(1.08) rotate(8deg); box-shadow: 0 0 26px rgba(244, 114, 182, 0.65); }
}

.nav-menu {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin-left: auto;
}
.nav-menu a {
  display: block; padding: 8px 13px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-menu a.active { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 18px; transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-btn:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 16px rgba(34, 211, 238, 0.25); }
.nav-admin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--muted); font-size: 13px; font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-admin:hover {
  color: var(--cyan); border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}
.cart-count[hidden] { display: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  display: grid; place-items: center;
  background: var(--magenta); color: #1c0a18;
  font-size: 11px; font-weight: 800; border-radius: 999px;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.6);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: center;
  overflow: hidden; padding: 90px 0 70px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
  animation: blobFloat 16s ease-in-out infinite;
}
.blob-1 { width: 540px; height: 540px; background: #0891b2; top: -180px; left: -140px; }
.blob-2 { width: 480px; height: 480px; background: #7c3aed; top: 8%; right: -160px; animation-delay: -6s; }
.blob-3 { width: 440px; height: 440px; background: #db2777; bottom: -180px; left: 34%; animation-delay: -11s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(46px, -34px) scale(1.08); }
}

/* Floating 3D cubes */
.cube-scene { position: absolute; inset: 0; perspective: 900px; }
.cube {
  --s: 60px;
  position: absolute; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  animation: cubeSpin 14s linear infinite;
}
.cube .face {
  position: absolute; inset: 0;
  background: var(--cube-bg, rgba(34, 211, 238, 0.16));
  border: 1px solid var(--cube-line, rgba(34, 211, 238, 0.65));
  box-shadow: inset 0 0 18px var(--cube-glow, rgba(34, 211, 238, 0.2));
}
.cube .front  { transform: translateZ(calc(var(--s) / 2)); }
.cube .back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.cube-1 { --s: 74px; top: 10%; left: 7%;
  --cube-bg: rgba(34, 211, 238, 0.14); --cube-line: rgba(34, 211, 238, 0.7); --cube-glow: rgba(34, 211, 238, 0.25); }
.cube-2 { --s: 46px; top: 20%; right: 11%; animation-duration: 10s;
  --cube-bg: rgba(167, 139, 250, 0.14); --cube-line: rgba(167, 139, 250, 0.65); --cube-glow: rgba(167, 139, 250, 0.28); }
.cube-3 { --s: 96px; bottom: 6%; left: 15%; animation-duration: 18s;
  --cube-bg: rgba(244, 114, 182, 0.12); --cube-line: rgba(244, 114, 182, 0.55); --cube-glow: rgba(244, 114, 182, 0.22); }
.cube-4 { --s: 52px; top: 58%; right: 17%; animation-duration: 12s;
  --cube-bg: rgba(250, 204, 21, 0.12); --cube-line: rgba(250, 204, 21, 0.55); --cube-glow: rgba(250, 204, 21, 0.22); }
.cube-5 { --s: 34px; top: 38%; left: 26%; animation-duration: 9s;
  --cube-bg: rgba(52, 211, 153, 0.14); --cube-line: rgba(52, 211, 153, 0.65); --cube-glow: rgba(52, 211, 153, 0.26); }

@keyframes cubeSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

/* Grid overlay */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 72%);
}

.hero-content { position: relative; z-index: 1; text-align: center; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  color: #9be8f5; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(72px, 17vw, 190px);
  font-weight: 900; line-height: 1; letter-spacing: 0.02em;
  margin: 18px 0 8px;
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
  filter: drop-shadow(0 0 30px rgba(129, 140, 248, 0.35));
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.i-letter {
  display: inline-block;
  animation: iGlow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.75));
}
@keyframes iGlow {
  0%, 100% { transform: translateY(0); text-shadow: 0 0 18px rgba(34, 211, 238, 0.5); }
  50% { transform: translateY(-10px); text-shadow: 0 0 44px rgba(34, 211, 238, 0.95); }
}

.hero-sub {
  max-width: 620px; margin: 0 auto;
  color: var(--muted); font-size: clamp(16px, 2.2vw, 20px);
}
.hero-sub strong { color: var(--text); }

/* iSTEM definition line under the hero title */
.hero-def {
  font-family: var(--font-head);
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  max-width: 92%;
  margin: 6px auto 18px;
}
.hero-def .d-science { color: var(--cyan); }
.hero-def .d-tech    { color: var(--violet); }
.hero-def .d-eng     { color: var(--magenta); }
.hero-def .d-math    { color: var(--yellow); }
.hero-def .d-sep     { color: rgba(255, 255, 255, 0.25); }

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

.hero-badges {
  display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap;
  list-style: none; margin-top: 34px;
}
.hero-badges li {
  color: var(--muted); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-badges li::before { content: "◆ "; color: var(--magenta); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 14px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #061018;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6 50%, #ec4899);
  background-size: 200% 100%;
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.45);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.5); color: var(--text); transform: translateY(-2px); }

.btn-outline {
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
  padding: 11px 22px; font-size: 14px;
}
.btn-outline:hover { background: rgba(34, 211, 238, 0.14); color: var(--cyan); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(13, 18, 36, 0.65);
  padding: 14px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee-track span {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.32em; color: var(--muted); white-space: nowrap;
}
.marquee-sep { color: var(--cyan) !important; text-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections & cards
   ========================================================================== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-kicker {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.38em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(26px, 4.4vw, 42px); line-height: 1.18;
  margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 16.5px; }

.card {
  background: linear-gradient(180deg, rgba(21, 29, 56, 0.85), rgba(12, 16, 32, 0.92));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(34, 211, 238, 0.12), 0 0 44px rgba(34, 211, 238, 0.07);
}
.card h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Tags */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.tag-cyan    { color: #7defff; background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); }
.tag-magenta { color: #f9a8d4; background: rgba(244, 114, 182, 0.12); border: 1px solid rgba(244, 114, 182, 0.35); }
.tag-violet  { color: #c4b5fd; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35); }
.tag-green   { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); }
.tag-yellow  { color: #fde047; background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.35); }
.tag-red     { color: #fda4af; background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.35); }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 20px; margin-bottom: 56px;
}
.pillar { position: relative; padding-top: 30px; }
.pillar-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: rgba(255, 255, 255, 0.18); letter-spacing: 0.2em;
}
.pillar-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 24px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.2);
  margin-bottom: 16px;
}
.pillars .card:nth-child(2) .pillar-icon { background: rgba(34, 211, 238, 0.12); border-color: rgba(34, 211, 238, 0.35); box-shadow: 0 0 22px rgba(34, 211, 238, 0.2); }
.pillars .card:nth-child(3) .pillar-icon { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); box-shadow: 0 0 22px rgba(52, 211, 153, 0.2); }
.pillars .card:nth-child(4) .pillar-icon { background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.35); box-shadow: 0 0 22px rgba(250, 204, 21, 0.18); }
.pillars .card:nth-child(5) .pillar-icon { background: rgba(244, 114, 182, 0.12); border-color: rgba(244, 114, 182, 0.35); box-shadow: 0 0 22px rgba(244, 114, 182, 0.2); }
.pillar h3 { font-size: 17px; }

/* Design process strip */
.process { margin-bottom: 48px; }
.process-label {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 18px;
}
.process-steps {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.step {
  padding: 9px 20px; border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  font-weight: 700; font-size: 13.5px; color: #d6c8ff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}
.step-arrow { color: var(--cyan); font-weight: 700; }

/* Why list */
.why-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px 28px; list-style: none;
}
.why-list li {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  color: var(--muted); font-size: 14px;
}
.why-list strong { color: var(--text); }
.why-check {
  flex-shrink: 0; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15); border: 1px solid rgba(52, 211, 153, 0.5);
  color: var(--green); font-size: 12px; font-weight: 800;
}

/* ==========================================================================
   STEMstacks / STEMcubes showcase
   ========================================================================== */
.product-showcase {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px; margin-bottom: 56px;
}
.showcase-card { padding: 32px; }
.showcase-icon {
  font-size: 30px; margin-bottom: 12px;
  filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.4));
}
.showcase-card .tag { margin-bottom: 14px; }
.showcase-card h3 { font-size: 26px; }
.showcase-tagline { color: var(--text) !important; font-weight: 600; margin-bottom: 16px; }

.check-list { list-style: none; margin-bottom: 22px; }
.check-list li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  color: var(--muted); font-size: 14px;
}
.check-list li::before {
  content: "▸"; position: absolute; left: 4px;
  color: var(--cyan); font-weight: 800;
}

.how-it-works { text-align: center; }

/* ==========================================================================
   Resource grids (curriculum + maker)
   ========================================================================== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}
.resource-card { display: flex; flex-direction: column; }
.resource-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px; font-size: 25px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.14);
  margin-bottom: 14px;
}
.resource-card .tag { align-self: flex-start; margin-bottom: 12px; }
.resource-card p { flex: 1; margin-bottom: 16px; }

.link-btn {
  align-self: flex-start;
  color: var(--cyan); font-weight: 700; font-size: 14px;
  padding: 6px 0; border-bottom: 2px solid rgba(34, 211, 238, 0.35);
  transition: color 0.2s, border-color 0.2s, letter-spacing 0.2s;
}
.link-btn:hover { color: #7defff; border-color: #7defff; letter-spacing: 0.02em; }

/* ==========================================================================
   Scenarios
   ========================================================================== */
.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: 22px;
}
.scenario-card { display: flex; flex-direction: column; }
.scenario-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.scenario-icon { font-size: 30px; filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.3)); }
.scenario-meta {
  font-size: 12px !important; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan) !important; margin-bottom: 8px;
}

/* ==========================================================================
   Shop / supplies
   ========================================================================== */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 34px;
}
.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.chip.active {
  color: #061018; font-weight: 800;
  background: var(--grad); border-color: transparent;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.4);
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  gap: 22px;
}
.product-card { display: flex; flex-direction: column; padding: 22px; }
.product-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.product-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.18);
}
.product-cat {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.product-name { font-size: 16.5px !important; margin-bottom: 8px; }
.product-blurb { flex: 1; margin-bottom: 16px; font-size: 13.5px !important; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.product-price {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  color: var(--yellow); text-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
}
.product-add {
  padding: 9px 16px; border-radius: 11px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.product-add:hover { filter: brightness(1.12); transform: translateY(-2px); }
.product-add:active { transform: scale(0.96); }

.shop-note {
  margin-top: 34px; text-align: center; color: var(--muted); font-size: 14px;
}
.shop-note a { font-weight: 700; }

/* Co-op / bulk pricing */
.coop-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px; margin-bottom: 46px;
}
.coop-card { display: flex; flex-direction: column; padding: 28px; }
.coop-card .tag { align-self: flex-start; margin-bottom: 14px; }
.coop-card h3 { font-size: 21px; }
.coop-card .check-list { margin-bottom: 22px; }
.coop-card .btn { margin-top: auto; }
.coop-featured {
  border-color: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.2), 0 18px 44px rgba(0, 0, 0, 0.45);
}
.coop-featured:hover { border-color: rgba(244, 114, 182, 0.65); }
.coop-price {
  font-family: var(--font-head); font-size: 30px; font-weight: 800;
  color: var(--yellow); text-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
  margin-bottom: 14px;
}
.coop-price span {
  display: block; margin-top: 2px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* ==========================================================================
   Contact / newsletter
   ========================================================================== */
.contact-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.newsletter-form {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px;
}
.newsletter-form input {
  flex: 1; min-width: 240px;
  padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 15px;
}
.newsletter-form input::placeholder { color: #5d6a8f; }
.newsletter-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
.newsletter-note { color: var(--muted); font-size: 13.5px; }

.contact-card { padding: 30px; }
.contact-card h3 { font-size: 22px; }
.contact-form { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: inherit; font-size: 14px; resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5d6a8f; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
@media (max-width: 480px) {
  .contact-form-row { grid-template-columns: 1fr; }
}
.contact-line {
  display: inline-block; margin: 14px 0 20px;
  color: var(--text); font-weight: 700; font-size: 15.5px;
  border-bottom: 2px solid rgba(34, 211, 238, 0.4); padding-bottom: 2px;
}
.contact-line:hover { color: var(--cyan); }
.social-row { display: flex; gap: 10px; }
.social-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}
.social-btn:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 14px rgba(34, 211, 238, 0.25); transform: translateY(-2px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #04060e; border-top: 1px solid var(--line);
  padding-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 44px;
}
.footer-brand .brand { font-size: 18px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-made { margin-top: 12px; color: #5d6a8f !important; }
.footer-def {
  margin-top: 10px; color: #5d6a8f; font-size: 12.5px; letter-spacing: 0.08em;
}
.footer-col h4 {
  font-family: var(--font-head); font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--text); padding-left: 4px; }
.footer-bar {
  border-top: 1px solid var(--line); padding: 18px 0;
  color: #5d6a8f; font-size: 13px;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(430px, 100%); height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d1324, #090d1b);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-drawer.open { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-family: var(--font-head); font-size: 17px; }
.cart-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14px; color: var(--muted);
  transition: all 0.2s;
}
.cart-close:hover { color: var(--text); border-color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty { color: var(--muted); font-size: 14.5px; text-align: center; padding: 30px 0; }

.cart-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row-info { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart-row-name { font-weight: 700; font-size: 14px; }
.cart-row-price { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cart-row-controls { display: flex; justify-content: space-between; align-items: center; }
.cart-row-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty-btn {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--text); font-weight: 800; font-size: 15px;
  transition: all 0.2s;
}
.cart-qty-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.cart-qty-num { min-width: 20px; text-align: center; font-weight: 700; }
.cart-remove { color: var(--red); font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.cart-remove:hover { background: rgba(251, 113, 133, 0.1); }

.cart-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; margin-bottom: 14px;
}
.cart-subtotal span:last-child {
  font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--yellow);
}
.cart-foot-note { margin-top: 10px; color: #5d6a8f; font-size: 12px; text-align: center; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  transform: translate(-50%, 90px); opacity: 0;
  max-width: min(480px, 90vw); text-align: center;
  padding: 13px 22px; border-radius: 14px;
  background: #101a35; border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 26px rgba(34, 211, 238, 0.15);
  font-size: 14px; font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cube-5 { display: none; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    /* main.js measures the real header height (banner + nav) and sets `top`
       in pixels when the menu opens, so it always sits exactly below the
       header regardless of browser quirks or how tall the banner is. */
    position: fixed; top: 0; left: 0; right: 0; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(6, 9, 19, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { padding: 13px 14px; font-size: 15px; }
  .nav-menu { margin-left: 0; }
}

leave it pinned everywhere. Eventually we'll remove this when we go .contact-line:hover@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { min-height: 84vh; }
  .cube-3, .cube-4 { display: none; }
  .hero-cta .btn { width: min(100%, 300px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form .btn { width: 100%; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: 82vh; padding: 64px 0 52px; }
  .hero-kicker { font-size: 11px; letter-spacing: 0.08em; padding: 7px 13px; }
  .hero-def { font-size: 10.5px; letter-spacing: 0.14em; }
  .hero-sub { font-size: 15.5px; }
  .hero-cta { gap: 10px; }
  .hero-badges li { font-size: 11.5px; }
  .process-steps { gap: 6px; }
  .step { padding: 7px 12px; font-size: 12px; }
  .step-arrow { font-size: 12px; }
  .footer-bar p { font-size: 12px; }
  .brand-name-short { display: inline; }
  .brand-name-full { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
