/* ============================================================
   Training Together — AI Academy
   Design system v3 · "Aurora" — dark futuristic + 3D
   Deep-space navy base · electric violet + cyan accents
   Glassmorphism surfaces · WebGL hero · CSS 3D tilt
   ============================================================ */

:root {
  /* Core palette */
  --bg: #060913;            /* deep space navy */
  --bg-2: #0A101F;          /* raised section */
  --bg-3: #0E1528;          /* card base */
  --ink: #F2F5FF;           /* headings */
  --text: #A9B3CC;          /* body */
  --muted: #76819D;         /* secondary */
  --line: rgba(148, 163, 210, .14);
  --line-strong: rgba(148, 163, 210, .26);

  --primary: #7C5CFF;       /* electric violet */
  --primary-2: #5B3DF5;
  --primary-soft: rgba(124, 92, 255, .14);
  --cyan: #2BD9FE;          /* neon cyan */
  --cyan-2: #0EA5E9;
  --cyan-soft: rgba(43, 217, 254, .12);
  --magenta: #FF5CA8;       /* rare pop */
  --green: #3DDC97;
  --amber: #FFC24B;

  --grad: linear-gradient(135deg, #7C5CFF 0%, #2BD9FE 100%);
  --grad-btn: linear-gradient(135deg, #8E6BFF 0%, #5B3DF5 100%);
  --grad-cyan: linear-gradient(135deg, #2BD9FE 0%, #0EA5E9 100%);

  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(2, 4, 12, .5);
  --shadow: 0 18px 44px rgba(2, 4, 12, .55);
  --glow-v: 0 10px 34px rgba(124, 92, 255, .38);
  --glow-v-lg: 0 16px 50px rgba(124, 92, 255, .5);
  --glow-c: 0 10px 34px rgba(43, 217, 254, .3);
  --maxw: 1180px;

  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Aurora wash + perspective grid floor */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(900px 620px at 95% 12%, rgba(43, 217, 254, .10), transparent 60%),
    radial-gradient(760px 520px at 50% 115%, rgba(91, 61, 245, .12), transparent 65%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(148, 163, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 210, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.26rem; }
p { margin: 0 0 1rem; }
a { color: var(--cyan); text-decoration: none; transition: color .15s ease; }
a:hover { color: #7FE7FF; }
img { max-width: 100%; display: block; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; position: relative; }
.bg-soft { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, .045) 18%, rgba(43, 217, 254, .035) 82%, transparent); }
.bg-dark {
  background:
    radial-gradient(820px 420px at 18% 0%, rgba(124, 92, 255, .2), transparent 60%),
    radial-gradient(700px 420px at 88% 100%, rgba(43, 217, 254, .12), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center { text-align: center; }
.lead { font-size: 1.16rem; color: var(--text); max-width: 740px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); box-shadow: 0 0 8px rgba(43,217,254,.8); }
.muted { color: var(--muted); }
.maxw-prose { max-width: 780px; }

/* Gradient text */
.grad-text {
  background: linear-gradient(100deg, #9D85FF 0%, #2BD9FE 55%, #7FE7FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
h1 span, .grad { background: linear-gradient(100deg, #9D85FF, #2BD9FE); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: var(--glow-v), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--glow-v-lg), inset 0 1px 0 rgba(255,255,255,.25); filter: brightness(1.06); }
.btn-accent {
  background: var(--grad-cyan); color: #03222E;
  box-shadow: var(--glow-c), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-accent:hover { color: #03222E; transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 16px 46px rgba(43, 217, 254, .42); }
.btn-ghost {
  background: var(--glass); color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { color: #fff; border-color: rgba(124, 92, 255, .65); background: rgba(124, 92, 255, .1); box-shadow: 0 0 24px rgba(124, 92, 255, .22); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; border-radius: 11px; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; border-radius: 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 9, 19, .72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 20px rgba(124, 92, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: right .22s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--ink); transition: .2s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 86px; overflow: hidden; }
.hero-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-3d canvas { width: 100%; height: 100%; display: block; }
.hero-3d::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 62% 70% at 28% 42%, rgba(6, 9, 19, .82) 0%, rgba(6, 9, 19, .25) 55%, transparent 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; text-wrap: balance; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.partners-line { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; color: var(--text);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(43, 217, 254, .9); }
.pill-gold { border-color: rgba(255, 194, 75, .45); color: #FFD98A; background: rgba(255, 194, 75, .08); }

/* Floating glass hero card (3D) */
.hero-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: floaty 7s ease-in-out infinite;
}
.hero-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1.05rem; margin-bottom: 18px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.live {
  font-size: .64rem; font-weight: 700; letter-spacing: .1em;
  color: #06121A; background: var(--grad-cyan);
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 16px rgba(43, 217, 254, .5);
}
.ladder { display: grid; gap: 12px; }
.rung {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.rung:hover { transform: translateX(6px); border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .08); }
.rung b { color: var(--ink); display: block; font-family: var(--font-display); font-size: .98rem; }
.rung small { color: var(--muted); font-size: .82rem; line-height: 1.45; display: block; }
.lvl {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #fff;
}
.rung.l1 .lvl { background: linear-gradient(135deg, #2BD9FE, #0EA5E9); box-shadow: 0 4px 14px rgba(43, 217, 254, .4); }
.rung.l2 .lvl { background: linear-gradient(135deg, #8E6BFF, #5B3DF5); box-shadow: 0 4px 14px rgba(124, 92, 255, .45); }
.rung.l3 .lvl { background: linear-gradient(135deg, #FF5CA8, #B83DF5); box-shadow: 0 4px 14px rgba(255, 92, 168, .4); }

/* ---------- Trust strip ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center;
  padding: 20px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--text);
}
.trust .tdot { color: var(--cyan); margin-right: 6px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  transform-style: preserve-3d;
}
.card:hover { border-color: rgba(124, 92, 255, .5); box-shadow: 0 22px 48px rgba(2, 4, 12, .6), 0 0 0 1px rgba(124, 92, 255, .25), 0 0 44px rgba(124, 92, 255, .12); }
.card h3 { margin-top: 2px; }
.card p { color: var(--text); font-size: .95rem; margin-bottom: 0; }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--primary-soft); border: 1px solid rgba(124, 92, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 18px rgba(124, 92, 255, .18);
  transform: translateZ(26px);
}

/* CSS-3D tilt (activated by main.js on .tilt) */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt > * { transform: translateZ(1px); }
.tilt .tilt-glare {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 240px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .25s ease; transform: translateZ(2px);
}
.tilt:hover .tilt-glare { opacity: 1; }

/* Tier / pathway cards */
.tier-card { display: flex; flex-direction: column; padding-top: 34px; overflow: visible; }
.tier-tag {
  position: absolute; top: -13px; left: 24px;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--grad-btn); padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .45);
}
.tier-card .big { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.tier-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.tier-card ul li { padding-left: 24px; position: relative; }
.tier-card ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--cyan); }
.tier-card .btn { margin-top: auto; }

/* Checklist */
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 7px; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; color: #04222B;
  background: var(--grad-cyan); box-shadow: 0 0 14px rgba(43, 217, 254, .4);
}

/* Stats */
.stat {
  background: linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: left;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(43, 217, 254, .5); }
.stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 1;
  background: linear-gradient(120deg, #9D85FF, #2BD9FE);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .lbl { margin-top: 8px; font-size: .92rem; color: var(--text); }

/* Series cards */
.series-card { position: relative; padding: 26px; overflow: hidden; }
.series-card .sletter {
  font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1;
  background: linear-gradient(135deg, rgba(157, 133, 255, .9), rgba(43, 217, 254, .9));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.series-card .swindow { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.badge-new {
  display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #1A0E00; background: linear-gradient(135deg, #FFD98A, #FFB02E);
  padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 18px rgba(255, 194, 75, .45);
}

/* CTA band */
.cta-band {
  position: relative; text-align: center; padding: 64px 38px; border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 300px at 22% 0%, rgba(124, 92, 255, .3), transparent 60%),
    radial-gradient(560px 300px at 82% 100%, rgba(43, 217, 254, .2), transparent 60%),
    linear-gradient(165deg, #11182E, #0B1122);
  border: 1px solid rgba(124, 92, 255, .35);
  box-shadow: var(--shadow), 0 0 80px rgba(124, 92, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(124, 92, 255, .16) 78%, rgba(43, 217, 254, .16) 86%, transparent 94%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.cta-band p { max-width: 620px; margin: 0 auto 26px; }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700;
  color: #7FE7FF; background: var(--cyan-soft);
  border: 1px solid rgba(43, 217, 254, .35);
  padding: 4px 11px; border-radius: 999px;
}

/* ---------- Catalog ---------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn {
  font-family: var(--font-display); font-weight: 600; font-size: .84rem;
  color: var(--text); background: var(--glass);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; cursor: pointer;
  transition: all .18s ease;
}
.fbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.fbtn.active { color: #fff; background: var(--grad-btn); border-color: transparent; box-shadow: 0 6px 18px rgba(124, 92, 255, .4); }
.search-box input {
  width: 280px; max-width: 100%;
  background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); padding: 11px 16px; font-size: .92rem; font-family: var(--font-body);
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: rgba(124, 92, 255, .6); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.count-line { font-size: .85rem; color: var(--muted); margin: 6px 0 18px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.course-card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .55); box-shadow: 0 20px 44px rgba(2, 4, 12, .6), 0 0 36px rgba(124, 92, 255, .14); }
.cc-top { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.chip-l1 { color: #7FE7FF; background: rgba(43, 217, 254, .1); border-color: rgba(43, 217, 254, .35); }
.chip-l2 { color: #B7A4FF; background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .4); }
.chip-l3 { color: #FF9CC8; background: rgba(255, 92, 168, .1); border-color: rgba(255, 92, 168, .35); }
.chip-type { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.chip-free { color: #8CF5C9; background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .4); }
.course-card .code { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.course-card h3 { font-size: 1.04rem; margin: 6px 0 4px; line-height: 1.32; }
.course-card .cat { font-size: .78rem; color: var(--cyan); font-weight: 600; margin-bottom: 8px; }
.course-card .desc { font-size: .87rem; color: var(--text); flex: 1; margin-bottom: 16px; }
.cc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.price.free { color: #3DDC97; }
.meta { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Matrix table ---------- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .025); }
.matrix th { text-align: left; font-family: var(--font-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.matrix td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix tr { transition: background .15s ease; }
.matrix tbody tr:hover { background: rgba(124, 92, 255, .07); }
.matrix .key { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- Phases / roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phase {
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .22s ease, border-color .22s ease;
}
.phase:hover { transform: translateY(-5px); border-color: rgba(43, 217, 254, .45); }
.phase .when { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.phase h3 { font-size: 1.06rem; margin: 8px 0 12px; }
.phase ul { margin: 0; padding: 0 0 0 18px; font-size: .86rem; color: var(--text); display: grid; gap: 6px; }

/* Category number cards */
.cat-card { padding: 22px; }
.cat-card .n { font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--cyan); letter-spacing: .12em; }
.cat-card h3 { font-size: 1.02rem; margin: 8px 0 4px; }
.cat-card p { font-size: .84rem; color: var(--muted); }

/* ---------- Partners ---------- */
.partner-card { display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: start; }
.partner-logo {
  width: 96px; height: 96px; border-radius: 22px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: translateZ(30px);
}
.pl-boc { background: linear-gradient(135deg, #5B3DF5, #8E6BFF); }
.pl-junction { background: linear-gradient(135deg, #0EA5E9, #2BD9FE); color: #03222E; }
.pl-quantum { background: linear-gradient(135deg, #FF5CA8, #B83DF5); }

/* ---------- Forms ---------- */
.form-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 32px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(6, 9, 19, .6);
  border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--ink); padding: 13px 15px; font-size: .94rem; font-family: var(--font-body);
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(124, 92, 255, .65); box-shadow: 0 0 0 3px rgba(124, 92, 255, .16); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .8rem; color: var(--muted); }
.alert { display: none; border-radius: 12px; padding: 14px 16px; font-size: .9rem; margin-bottom: 16px; }
.alert-ok { background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .4); color: #8CF5C9; }

/* ---------- Portal ---------- */
.portal-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.portal-preview {
  background:
    radial-gradient(420px 240px at 80% 0%, rgba(124, 92, 255, .22), transparent 60%),
    linear-gradient(165deg, #121A30, #0B1122);
  border: 1px solid rgba(124, 92, 255, .35); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow), 0 0 60px rgba(124, 92, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.progress { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin: 8px 0 20px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--grad); box-shadow: 0 0 14px rgba(43, 217, 254, .55); transition: width .6s ease; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; font-size: .9rem; color: var(--text); border-bottom: 1px solid var(--line); }
.mini-row:last-of-type { border-bottom: 0; }
.s-done { color: #3DDC97; font-weight: 600; }
.s-prog { color: #7FE7FF; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(10, 16, 31, .9)); padding: 70px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; margin-bottom: 44px; }
.footer-brand p { font-size: .9rem; color: var(--muted); margin-top: 16px; max-width: 300px; }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; font-size: .82rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Floating gradient orbs (decor) */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: .6; }
.orb-v { background: rgba(124, 92, 255, .35); }
.orb-c { background: rgba(43, 217, 254, .25); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .portal-shell { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-3d::after { background: radial-gradient(ellipse 100% 70% at 50% 40%, rgba(6, 9, 19, .85) 0%, rgba(6, 9, 19, .4) 60%, transparent 100%); }
}
@media (max-width: 720px) {
  .nav-links { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(6, 9, 19, .97); border-bottom: 1px solid var(--line); padding: 10px 22px 18px; display: none; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav-links a { display: block; padding: 13px 0; font-size: 1.02rem; }
  .site-header.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .grid-2, .grid-3, .grid-4, .course-grid, .phases { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .partner-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 64px 0 60px; }
  .cta-band { padding: 48px 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-card { animation: none; }
  html { scroll-behavior: auto; }
}
