/* ==========================================================================
   ShiftLab
   Identity: near-black violet, one continuous gradient running violet -> cyan
   -> pink across every surface. Glass cards, hairline borders, soft outer glow.
   Type: Sora for display, Inter for reading, JetBrains Mono for data.
   The recurring motif is a live neural mesh: drifting nodes, drawn edges.
   Motion: everything below is decorative and gated behind prefers-reduced-motion.
   ========================================================================== */

:root {
  /* atmosphere */
  --void:      #05060E;
  --void-2:    #090B18;
  --void-3:    #0E1020;

  /* glass */
  --surface:   rgba(255, 255, 255, .038);
  --surface-2: rgba(255, 255, 255, .065);
  --surface-3: rgba(255, 255, 255, .10);
  --line:      rgba(255, 255, 255, .085);
  --line-2:    rgba(255, 255, 255, .16);

  /* ink */
  --ink:    #EDEFFA;
  --ink-2:  #A6ABCC;
  --ink-3:  #6C7191;

  /* accents */
  --violet:   #7C5CFF;
  --violet-2: #A78BFA;
  --cyan:     #22D3EE;
  --pink:     #F472B6;
  --lime:     #34D399;
  --amber:    #FBBF24;

  --accent-grad: linear-gradient(110deg, var(--violet) 0%, #6366F1 32%, var(--cyan) 68%, var(--pink) 100%);
  --accent-text: linear-gradient(100deg, #C4B5FD 0%, #67E8F9 48%, #F9A8D4 100%);

  /* status */
  --ok:      #34D399;
  --ok-bg:   rgba(52, 211, 153, .12);
  --ok-line: rgba(52, 211, 153, .32);
  --err:     #FB7185;
  --err-bg:  rgba(251, 113, 133, .11);
  --err-line: rgba(251, 113, 133, .30);
  --warn-bg:  rgba(251, 191, 36, .10);
  --warn-line: rgba(251, 191, 36, .28);
  --info-bg: rgba(124, 92, 255, .12);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --glow-v: 0 0 0 1px rgba(124, 92, 255, .40), 0 18px 50px -20px rgba(124, 92, 255, .65);
  --glow-c: 0 0 0 1px rgba(34, 211, 238, .40), 0 18px 50px -20px rgba(34, 211, 238, .55);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-2: 0 24px 60px -24px rgba(0, 0, 0, .85);
  --shadow-lift: 0 30px 70px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .10);

  --wrap: 1180px;
  --nav-h: 70px;
  --ease: cubic-bezier(.22, .68, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
/* Icons are almost always used inline with text, so they opt out of the block reset above. */
.ico { display: inline-block; vertical-align: -.18em; flex: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.028em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); }
h3 { font-size: 1.14rem; letter-spacing: -.018em; }
h4 { font-size: .95rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #7FE9F8; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
::selection { background: rgba(124, 92, 255, .42); color: #fff; }

.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.grad { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 10px; }

/* ---------- atmosphere: aurora + grid + grain ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #14173a 0%, transparent 60%),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 45%, var(--void) 100%);
}
.aurora b {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: .40; will-change: transform;
}
.aurora b:nth-child(1) { width: 46vw; height: 46vw; left: -8vw;  top: -12vw; background: #5B3DF5; animation: drift-a 26s var(--ease) infinite alternate; }
.aurora b:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: 2vw;   background: #0E7C90; animation: drift-b 31s var(--ease) infinite alternate; }
.aurora b:nth-child(3) { width: 38vw; height: 38vw; left: 26vw;  top: 42vh;  background: #A0349B; opacity: .26; animation: drift-c 36s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(7vw, 5vh, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-9vw, 7vh, 0) scale(1.2); } }
@keyframes drift-c { to { transform: translate3d(6vw, -8vh, 0) scale(.86); } }

.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.030) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 740px); margin-inline: auto; }
.section { padding: 84px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, transparent, rgba(255,255,255,.022) 12%, rgba(255,255,255,.022) 88%, transparent); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); backdrop-filter: blur(8px);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.65); } 70%,100% { box-shadow: 0 0 0 9px rgba(34,211,238,0); } }

/* ---------- glass surfaces ---------- */
.glass, .card, .feature, .ccard, .plan, .kpi, .side, .buy-card, .summary, .pay-box, .table-wrap, .syllabus, .qa-item, .resource, .locked-box {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 99px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(124,92,255,.85); background-size: 200% 100%; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: opacity .2s;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 40px -14px rgba(124,92,255,1); }
.btn-primary:hover::after { opacity: 1; animation: shine .85s var(--ease) forwards; }
@keyframes shine { to { transform: translateX(120%); } }
.btn-cyan { background: linear-gradient(120deg, #0891B2, #22D3EE); color: #04121A; font-weight: 700; box-shadow: 0 10px 30px -12px rgba(34,211,238,.8); }
.btn-cyan:hover { color: #04121A; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(34,211,238,1); }
.btn-gold, .btn-lime { background: linear-gradient(120deg, #059669, var(--lime)); color: #04150E; font-weight: 700; box-shadow: 0 10px 30px -12px rgba(52,211,153,.8); }
.btn-gold:hover, .btn-lime:hover { color: #04150E; transform: translateY(-2px); }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-outline:hover { border-color: rgba(34,211,238,.55); color: var(--ink); background: rgba(34,211,238,.08); transform: translateY(-2px); box-shadow: var(--glow-c); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: #12142a; font-weight: 700; }
.btn-light:hover { background: #E9E6FF; color: #12142a; }
.btn-danger { background: transparent; border-color: var(--err-line); color: var(--err); }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-link { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 600; }

/* ---------- contact bar ----------
   Sits above the sticky nav and scrolls away with the page, so the nav still pins to
   top:0 exactly as before. */
.topbar {
  position: relative; z-index: 51;
  background: linear-gradient(90deg, rgba(124,92,255,.16), rgba(34,211,238,.10) 60%, transparent);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; flex-wrap: wrap; }
.topbar-id { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-grad); color: #fff; font-family: var(--font-display);
  font-size: .7rem; font-weight: 800; box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.topbar-id b { font-weight: 600; color: var(--ink); display: block; line-height: 1.25; }
.topbar-id em { font-style: normal; color: var(--ink-3); font-size: .74rem; display: block; line-height: 1.25; }
.topbar-phone {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .01em; padding: 5px 12px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.topbar-phone .ico { color: var(--cyan); }
.topbar-phone:hover { color: #fff; border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.10); box-shadow: var(--glow-c); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 14, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.stuck { background: rgba(5, 6, 14, .88); border-bottom-color: var(--line); box-shadow: 0 12px 40px -20px rgba(0,0,0,.9); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand .logo-mark { transition: transform .5s var(--ease-out); }
.brand:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.nav-panel { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: space-between; margin-left: 32px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 99px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; transition: color .18s, background-color .18s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--accent-grad); transform: translateX(-50%); transition: width .3s var(--ease-out); }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a:hover::after { width: 18px; }
.nav-links a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.nav-links a[aria-current="page"]::after { width: 18px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); padding: 8px; border-radius: var(--r-sm); }

.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { border-color: rgba(34,211,238,.5); background: var(--surface-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; font-family: var(--font-display); }
.menu-name { font-weight: 600; font-size: .9rem; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 232px;
  background: rgba(10, 12, 26, .92); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: 8px; display: grid; gap: 2px;
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  animation: drop .22s var(--ease-out) both;
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--r-sm); border: 0; background: none; color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: background-color .16s, color .16s; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--ink); }
.menu-plan { margin: 4px 12px 8px; font-size: .76rem; color: var(--ink-3); font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- flash ---------- */
.flashes { padding-top: 18px; display: grid; gap: 8px; }
.flash { padding: 13px 17px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--info-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .95rem; animation: slide-in .4s var(--ease-out) both; }
.flash-success { background: var(--ok-bg); border-color: var(--ok-line); color: #8DF3C8; }
.flash-error { background: var(--err-bg); border-color: var(--err-line); color: #FEC5CD; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .89rem; color: var(--ink); }
.hint { font-size: .82rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: rgba(255,255,255,.04); color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236C7191' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
.select option { background: #0E1020; color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); background: rgba(255,255,255,.06); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); background: rgba(34,211,238,.05); box-shadow: 0 0 0 4px rgba(34,211,238,.14); }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.form-errors { background: var(--err-bg); border: 1px solid var(--err-line); color: #FEC5CD; padding: 13px 17px; border-radius: var(--r-md); margin-bottom: 16px; font-size: .92rem; }
.form-errors ul { list-style: disc; padding-left: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 0; }
.hero-in { display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center; padding: 76px 0 84px; }
.hero h1 { max-width: 15ch; margin-bottom: .32em; }
.hero h1 .line2 { display: block; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--ink-3); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-mono); font-size: 1.85rem; line-height: 1; font-weight: 700; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .84rem; color: var(--ink-3); display: block; margin-top: 6px; }
.hero-canvas { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; }
.hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: rgba(10,12,26,.78); border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-2);
  animation: float 7s var(--ease) infinite alternate;
}
.hero-badge .ico { color: var(--cyan); }
.hero-badge.b1 { top: 8%;  left: 0;  animation-delay: -.5s; }
.hero-badge.b2 { top: 46%; right: 0; animation-delay: -2.2s; }
.hero-badge.b3 { bottom: 6%; left: 12%; animation-delay: -3.8s; }
@keyframes float { to { transform: translateY(-14px); } }
.hero-core { position: absolute; inset: 26%; display: grid; place-items: center; }
.hero-core span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3vw, 1.7rem); letter-spacing: -.02em; text-align: center;
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(124,92,255,.55));
}

/* word rotator */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator b { grid-area: 1 / 1; font-weight: 800; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(.45em) rotateX(-55deg); transition: opacity .45s var(--ease), transform .55s var(--ease-out); }
.rotator b.on { opacity: 1; transform: none; }
.rotator b.out { opacity: 0; transform: translateY(-.45em) rotateX(55deg); }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(124,92,255,.07), transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide-l 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide-l { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-grad); flex: none; }

/* ---------- learning path graph ---------- */
.graph { width: 100%; height: auto; overflow: visible; }
.g-edge { stroke: var(--line-2); stroke-width: 1; }
.g-node { fill: #0B0D1C; stroke: rgba(34,211,238,.5); stroke-width: 1.6; }
.g-node-hl { fill: var(--violet); stroke: var(--violet); filter: drop-shadow(0 0 8px rgba(124,92,255,.9)); }
.g-halo { fill: rgba(124,92,255,.18); }
.g-label { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-3); }
.g-label-hl { fill: var(--ink); font-weight: 700; }
.g-path { fill: none; stroke: url(#authGrad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .35s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- feature / studio cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature, .glass, .card {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s var(--ease-out);
}
.feature::before, .card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,.16), transparent 62%);
}
.feature:hover, .glass:hover, .card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow-lift); }
.feature:hover::before, .glass:hover::before, .card:hover::before { opacity: 1; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.ico-wrap { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-grad); color: #fff; box-shadow: 0 10px 26px -12px rgba(124,92,255,.9); }
.ico-wrap.c { background: linear-gradient(135deg, #0891B2, var(--cyan)); box-shadow: 0 10px 26px -12px rgba(34,211,238,.9); }
.ico-wrap.p { background: linear-gradient(135deg, #C026D3, var(--pink)); box-shadow: 0 10px 26px -12px rgba(244,114,182,.9); }
.ico-wrap.l { background: linear-gradient(135deg, #059669, var(--lime)); box-shadow: 0 10px 26px -12px rgba(52,211,153,.9); }
.ico-wrap.a { background: linear-gradient(135deg, #B45309, var(--amber)); box-shadow: 0 10px 26px -12px rgba(251,191,36,.9); }

/* stream / EcoPay cards */
.stream { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s; }
.stream:hover { transform: translateY(-6px); border-color: rgba(34,211,238,.4); box-shadow: 0 26px 60px -26px rgba(34,211,238,.5); }
.stream .n { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: var(--ink-3); }
.stream h3 { margin: 8px 0 .3em; font-size: 1.22rem; }
.stream .rate { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stream p { color: var(--ink-2); font-size: .92rem; margin: .5em 0 0; }

/* ---------- course cards ---------- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { position: relative; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.ccard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.13), transparent 60%); }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.ccard:hover::after { opacity: 1; }
.ccard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ccard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; }
.ccard h3 { margin: 3px 0 0; font-size: 1.1rem; line-height: 1.28; }
.ccard h3 a { color: var(--ink); text-decoration: none; background: none; }
.ccard h3 a:hover { color: #fff; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ccard-sub { color: var(--ink-2); font-size: .89rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-meta { display: flex; gap: 15px; margin-top: auto; padding-top: 13px; font-size: .8rem; color: var(--ink-3); flex-wrap: wrap; }
.ccard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ccard-meta .ico { color: var(--ink-3); }

.tier { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 99px; font-weight: 600; font-size: .73rem; border: 1px solid transparent; }
.tier-basic { background: rgba(34,211,238,.12); color: #7FE9F8; border-color: rgba(34,211,238,.28); }
.tier-standard { background: rgba(124,92,255,.16); color: var(--violet-2); border-color: rgba(124,92,255,.34); }
.tier-elite { background: rgba(52,211,153,.13); color: #6EE7B7; border-color: rgba(52,211,153,.3); }

/* generated cover art */
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--void-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 100%; height: 100%; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,6,14,.65)); }
.t-edge { stroke-width: .55; }
.t-node { animation: node-blink 3.4s var(--ease) infinite alternate; }
@keyframes node-blink { from { opacity: .55; } to { opacity: 1; } }
.tone-a { background: linear-gradient(140deg, #4C1D95, #0E7490); } .tone-a .t-edge { stroke: rgba(255,255,255,.20); } .tone-a .t-node { fill: #C4B5FD; }
.tone-b { background: linear-gradient(140deg, #0F172A, #155E75); } .tone-b .t-edge { stroke: rgba(34,211,238,.4); }  .tone-b .t-node { fill: #22D3EE; }
.tone-c { background: linear-gradient(140deg, #701A75, #4C1D95); } .tone-c .t-edge { stroke: rgba(244,114,182,.35); } .tone-c .t-node { fill: #F9A8D4; }
.tone-d { background: linear-gradient(140deg, #065F46, #0F172A); } .tone-d .t-edge { stroke: rgba(52,211,153,.42); }  .tone-d .t-node { fill: #6EE7B7; }
.tone-e { background: linear-gradient(140deg, #1E1B4B, #4C1D95); } .tone-e .t-edge { stroke: rgba(251,191,36,.35); }  .tone-e .t-node { fill: #FDE68A; }

/* ---------- catalog ---------- */
.page-head { padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); margin-bottom: .2em; }
.filters { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr auto; gap: 10px; margin-bottom: 30px; }
.empty { text-align: center; padding: 66px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-3); background: var(--surface); }
.empty h3 { color: var(--ink); }

/* ---------- progress ---------- */
.progress { height: 7px; border-radius: 99px; background: rgba(255,255,255,.10); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 99px; background: var(--accent-grad); background-size: 200% 100%;
  transition: width .9s var(--ease-out); animation: grad-pan 3.2s linear infinite; }
@keyframes grad-pan { to { background-position: 200% 0; } }
.progress-gold span { background: linear-gradient(90deg, #059669, var(--lime)); }

/* progress ring */
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: rgba(255,255,255,.10); }
.ring .bar { stroke: url(#ringGrad); transition: stroke-dashoffset 1.2s var(--ease-out); }
.ring b { position: absolute; font-family: var(--font-mono); font-weight: 700; letter-spacing: -.02em; }

/* ---------- pricing ---------- */
.cycle-toggle { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cycle-toggle button { border: 0; background: transparent; padding: 9px 22px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: color .2s, background-color .2s; }
.cycle-toggle button[aria-pressed="true"] { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(124,92,255,.9); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 40px; }
.plan { position: relative; border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.plan:hover { transform: translateY(-7px); box-shadow: var(--shadow-lift); }
.plan-featured { border-color: rgba(124,92,255,.55); box-shadow: var(--glow-v); }
.plan-featured::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(124,92,255,.22), transparent 62%); pointer-events: none; }
.plan-elite { background: linear-gradient(180deg, rgba(52,211,153,.13), rgba(255,255,255,.03)); border-color: rgba(52,211,153,.34); }
.plan-elite::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(52,211,153,.20), transparent 62%); pointer-events: none; }
.plan-tag { position: absolute; top: -12px; left: 28px; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: .72rem; padding: 4px 13px; border-radius: 99px; letter-spacing: .02em; box-shadow: 0 8px 20px -8px rgba(124,92,255,.9); }
.plan h3 { font-size: 1.45rem; margin-bottom: .1em; }
.plan-tagline { color: var(--ink-3); font-size: .92rem; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; font-family: var(--font-display); }
.price .amount { font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-family: var(--font-mono); }
.price .per { font-size: .95rem; color: var(--ink-3); font-family: var(--font-body); }
.plan-save { font-size: .82rem; color: var(--lime); font-weight: 600; margin: 0 0 4px; }
.plan-features { display: grid; gap: 11px; margin: 22px 0 26px; flex: 1; font-size: .93rem; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan-features .ico { color: var(--cyan); margin-top: 3px; }
.plan .btn { position: relative; z-index: 1; }
.notice { display: flex; gap: 12px; align-items: center; padding: 15px 19px; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-md); color: #FDE68A; margin-top: 26px; }
.notice .ico { color: var(--amber); }

.compare { width: 100%; font-size: .93rem; }
.compare th, .compare td { padding: 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-display); font-size: 1rem; }
.compare tbody tr { transition: background-color .18s; }
.compare tbody tr:hover { background: var(--surface); }
.compare .yes { color: var(--cyan); }
.compare .no { color: var(--ink-3); }

/* ---------- course detail ---------- */
.chero { position: relative; padding: 60px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.chero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 130% at 12% 0%, rgba(124,92,255,.24), transparent 58%), radial-gradient(70% 110% at 92% 100%, rgba(34,211,238,.16), transparent 60%); pointer-events: none; }
.chero-in { display: grid; grid-template-columns: 1.32fr .68fr; gap: 48px; align-items: start; position: relative; }
.chero h1 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
.chero .lead { color: var(--ink-2); }
.chero .tier { margin-bottom: 16px; }
.chero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin: 22px 0; font-size: .89rem; color: var(--ink-3); }
.chero-meta span { display: inline-flex; gap: 6px; align-items: center; }
.chero-meta .ico { color: var(--cyan); }
.buy-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.buy-card .thumb { border-radius: 0; }
.buy-body { padding: 22px; display: grid; gap: 12px; }
.buy-body p { margin: 0; font-size: .89rem; color: var(--ink-2); }
.buy-body .btn { position: relative; z-index: 1; }
.two-col { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: start; }
.prose { color: var(--ink-2); max-width: 70ch; }
.prose p { margin-bottom: 1em; }
.prose strong { color: var(--ink); }

.syllabus { border-radius: var(--r-lg); overflow: hidden; }
.syl-section { border-bottom: 1px solid var(--line); }
.syl-section:last-child { border-bottom: 0; }
.syl-title { display: flex; justify-content: space-between; padding: 14px 20px; background: rgba(255,255,255,.045); font-weight: 600; font-family: var(--font-display); font-size: 1rem; }
.syl-title span { font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--ink-3); }
.syl-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .93rem; transition: background-color .18s; }
.syl-lesson:hover { background: var(--surface); }
.syl-lesson a { color: var(--ink); text-decoration: none; flex: 1; }
.syl-lesson a:hover { color: var(--cyan); }
.syl-lesson .dur { color: var(--ink-3); font-size: .82rem; font-family: var(--font-mono); }
.syl-lesson .ico { color: var(--ink-3); }
.syl-lesson.done .ico { color: var(--ok); }
.syl-lesson .preview { font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: rgba(34,211,238,.14); color: #7FE9F8; border: 1px solid rgba(34,211,238,.3); }
.syl-lesson.locked { color: var(--ink-3); }

.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars .off { color: rgba(255,255,255,.16); }
.stars .ico { fill: currentColor; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review b { font-family: var(--font-display); }
.rate { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.rate input { position: absolute; opacity: 0; }
.rate label { cursor: pointer; color: rgba(255,255,255,.18); transition: color .15s, transform .15s var(--ease); }
.rate label .ico { fill: currentColor; width: 28px; height: 28px; }
.rate label:hover { transform: scale(1.14); }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--amber); }
.rate input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- player ---------- */
body.learn-page { background: var(--void); }
.player { display: grid; grid-template-columns: minmax(0, 1fr) 372px; min-height: calc(100vh - var(--nav-h)); }
.player-main { padding: 26px 30px 52px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; margin-bottom: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--cyan); }
.video-box { position: relative; background: #000; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 70px -30px rgba(0,0,0,.95), 0 0 0 1px var(--line); }
.video-box video { width: 100%; height: 100%; background: #000; }
.video-missing { height: 100%; display: grid; place-items: center; color: var(--ink-3); text-align: center; padding: 24px; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 24px 0 8px; flex-wrap: wrap; }
.lesson-head h1 { font-size: 1.65rem; margin: 0; }
.lesson-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.save-state { font-size: .82rem; color: var(--ink-3); min-height: 1.2em; font-family: var(--font-mono); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 30px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 600; font-size: .92rem; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.tabs button:hover { color: var(--ink); background: var(--surface); }
.tabs button[aria-selected="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
.tabpanel[hidden] { display: none; }
.tabpanel { animation: fade-up .4s var(--ease-out) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.locked-box { padding: 24px; border-radius: var(--r-md); color: var(--ink-2); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.locked-box .ico { color: var(--amber); }
.qa { display: grid; gap: 14px; margin-top: 22px; }
.qa-item { border-radius: var(--r-md); padding: 16px 18px; }
.qa-item .who { font-size: .82rem; color: var(--ink-3); margin-bottom: 6px; }
.qa-item .badge { background: rgba(251,191,36,.14); color: #FDE68A; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.qa-answer { margin-top: 12px; padding: 13px 15px; background: rgba(124,92,255,.12); border-left: 3px solid var(--violet); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .93rem; }
.resource { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: var(--r-md); text-decoration: none; color: var(--ink); margin-bottom: 8px; transition: border-color .2s, transform .2s var(--ease); }
.resource:hover { border-color: rgba(34,211,238,.5); color: var(--cyan); transform: translateX(4px); }

.side { border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - var(--nav-h)); position: sticky; top: var(--nav-h); background: rgba(9,11,24,.6); }
.side-head { padding: 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(9,11,24,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); z-index: 2; }
.side-head h2 { font-size: 1.05rem; margin: 0 0 10px; }
.side-head .small { margin-top: 8px; display: block; }
.side-sec { padding: 10px 20px; background: rgba(255,255,255,.035); font-family: var(--font-display); font-weight: 600; font-size: .9rem; border-block: 1px solid var(--line); }
.side-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px 20px; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: .9rem; transition: background-color .18s, color .18s, padding-left .18s var(--ease); }
.side-item:hover { background: var(--surface); color: var(--ink); padding-left: 24px; }
.side-item.current { background: rgba(124,92,255,.14); box-shadow: inset 3px 0 0 var(--violet); color: #fff; font-weight: 600; }
.side-item .ico { margin-top: 2px; color: var(--ink-3); }
.side-item.done .ico { color: var(--ok); }
.side-item small { display: block; color: var(--ink-3); font-weight: 400; font-family: var(--font-mono); font-size: .74rem; }
.side-item.locked { color: var(--ink-3); }
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 80; display: flex; gap: 14px; align-items: center;
  background: rgba(10,12,26,.94); border: 1px solid var(--line-2); color: var(--ink); padding: 14px 22px; border-radius: 99px;
  box-shadow: var(--shadow-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .32s var(--ease), transform .32s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--cyan); font-weight: 600; }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.kpi { border-radius: var(--r-md); padding: 20px; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.kpi:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 20px 44px -22px rgba(0,0,0,.9); }
.kpi b { display: block; font-family: var(--font-mono); font-size: 2rem; line-height: 1.05; font-weight: 700;
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { font-size: .84rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.kpi .ico { color: var(--cyan); }
.resume { display: grid; grid-template-columns: 270px 1fr; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 34px;
  border: 1px solid rgba(124,92,255,.4); background: linear-gradient(120deg, rgba(124,92,255,.22), rgba(34,211,238,.10)); position: relative; }
.resume::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 100% 0%, rgba(34,211,238,.24), transparent 60%); pointer-events: none; }
.resume .thumb { height: 100%; aspect-ratio: auto; min-height: 170px; }
.resume-body { padding: 28px 32px; display: grid; gap: 11px; align-content: center; position: relative; }
.resume-body h2 { color: #fff; margin: 0; font-size: 1.55rem; }
.resume-body p { margin: 0; color: var(--ink-2); }
.resume .progress { background: rgba(255,255,255,.14); }
.plan-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 17px 21px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 30px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.plan-banner.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.mycourse { display: grid; grid-template-columns: 190px 1fr auto; gap: 20px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 12px; position: relative; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.mycourse:hover { transform: translateX(5px); border-color: var(--line-2); box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); }
.mycourse .thumb { border-radius: var(--r-sm); }
.mycourse h3 { margin: 0 0 7px; font-size: 1.04rem; }
.mycourse h3 a { color: var(--ink); text-decoration: none; }
.mycourse h3 a:hover { color: var(--cyan); }
.mycourse .progress { margin: 8px 0 4px; max-width: 380px; }
.card { border-radius: var(--r-lg); padding: 28px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 1.28rem; }
.table-wrap { border-radius: var(--r-md); overflow-x: auto; }
.table { width: 100%; font-size: .9rem; }
.table th { text-align: left; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); font-size: .77rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background-color .16s; }
.table tbody tr:hover { background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.status-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.status-off { background: var(--err-bg); color: var(--err); border: 1px solid var(--err-line); }
.status-warn { background: var(--warn-bg); color: #FDE68A; border: 1px solid var(--warn-line); }

/* ---------- certificate ---------- */
.cert-stage { padding: 52px 0 76px; }
.cert { position: relative; background: linear-gradient(160deg, #0B0D1C, #10132a); border: 1px solid rgba(124,92,255,.4); border-radius: 8px; padding: 68px 58px; text-align: center; max-width: 880px; margin: 0 auto; box-shadow: var(--shadow-2); overflow: hidden; }
.cert::before { content: ""; position: absolute; inset: 15px; border: 1.5px solid rgba(34,211,238,.45); border-radius: 3px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(244,114,182,.35); border-radius: 2px; pointer-events: none; }
.cert > * { position: relative; z-index: 1; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; margin-bottom: 32px; }
.cert small { display: block; letter-spacing: .16em; color: var(--ink-3); font-size: .76rem; text-transform: uppercase; font-family: var(--font-mono); }
.cert h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 8px 0 22px; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert .who { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff; border-bottom: 2px solid transparent;
  background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 100% 2px; background-repeat: no-repeat;
  display: inline-block; padding: 0 22px 6px; margin: 10px 0 24px; }
.cert .course { font-family: var(--font-display); font-size: 1.45rem; color: var(--violet-2); margin: 6px 0 30px; }
.cert-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; font-size: .84rem; color: var(--ink-3); flex-wrap: wrap; text-align: left; }
.cert-foot b { color: var(--ink); display: block; font-size: .95rem; }
.verified { display: inline-flex; gap: 8px; align-items: center; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .88rem; padding: 7px 15px; border-radius: 99px; border: 1px solid var(--ok-line); margin-bottom: 18px; }
.cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 430px; gap: 40px; align-items: start; padding: 60px 0 84px; }
.summary { border-radius: var(--r-lg); padding: 28px; }
.summary dl { margin: 20px 0 0; display: grid; gap: 13px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .total { border-top: 1px solid var(--line-2); padding-top: 15px; font-size: 1.1rem; }
.summary .total dd { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; }
.pay-box { border-radius: var(--r-lg); padding: 28px; }
.pay-error { color: var(--err); font-size: .9rem; margin-top: 12px; min-height: 1.3em; }
.secure { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .82rem; color: var(--ink-3); }
.secure .ico { color: var(--ok); }

/* ---------- error ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 64px 20px; }
.error-page .code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 7.5rem); line-height: 1; font-weight: 800;
  background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-side { background: rgba(9,11,24,.7); border-right: 1px solid var(--line); padding: 26px 14px; }
.admin-side h4 { color: var(--ink-3); padding: 0 12px; margin-bottom: 10px; font-weight: 600; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.admin-side a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: .92rem; margin-bottom: 2px; transition: background-color .18s, color .18s; }
.admin-side a:hover { background: var(--surface-2); color: var(--ink); }
.admin-side a[aria-current="page"] { background: var(--accent-grad); color: #fff; }
.pill { background: var(--accent-grad); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.admin-main { padding: 34px 38px 68px; min-width: 0; }
.admin-main h1 { font-size: 1.75rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.admin-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form { max-width: 840px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tone-pick { display: flex; gap: 8px; }
.tone-pick label { cursor: pointer; }
.tone-pick input { position: absolute; opacity: 0; }
.tone-pick .sw { display: block; width: 46px; height: 30px; border-radius: 8px; border: 2px solid transparent; outline: 1px solid var(--line-2); transition: transform .2s var(--ease); }
.tone-pick .sw:hover { transform: translateY(-2px); }
.tone-pick input:checked + .sw { outline: 2px solid var(--cyan); border-color: rgba(255,255,255,.6); }
.tone-pick input:focus-visible + .sw { outline: 3px solid var(--cyan); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5,6,14,.6); margin-top: 0; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; padding: 56px 0 34px; }
.footer-brand p { color: var(--ink-3); max-width: 38ch; margin-top: 14px; font-size: .92rem; }
.footer h4 { color: var(--ink-3); font-family: var(--font-mono); font-weight: 600; font-size: .74rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .14em; }
.footer nav a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 0; font-size: .92rem; }
.footer nav a:hover { color: var(--cyan); }
.disclaimer { margin: 0 0 30px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-3); font-size: .84rem; line-height: 1.6; }
.disclaimer b { color: var(--ink-2); font-weight: 600; }
.footer-base { padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.learn-page .footer { display: none; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 68px 58px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(90% 100% at 20% 10%, rgba(124,92,255,.34), transparent 60%), radial-gradient(80% 90% at 90% 90%, rgba(34,211,238,.24), transparent 62%), #070917; }
.auth-side h2 { font-size: 2.15rem; max-width: 17ch; }
.auth-side p { color: var(--ink-2); max-width: 40ch; }
.auth-side .graph { position: absolute; right: -140px; bottom: -90px; width: 540px; opacity: .5; pointer-events: none; }
.auth-side .g-edge { stroke: rgba(255,255,255,.13); }
.auth-side .g-node { fill: rgba(255,255,255,.10); stroke: rgba(255,255,255,.28); }
.auth-side .g-node-hl { fill: var(--cyan); stroke: var(--cyan); }
.auth-side .g-label { display: none; }
.auth-side .g-halo { fill: rgba(34,211,238,.14); }
.auth-side .g-path { stroke: url(#authGrad); }
.auth-main { padding: 60px 24px; display: grid; place-items: center; }
.auth-card { width: min(100%, 410px); animation: fade-up .5s var(--ease-out) both; }
.auth-card h1 { font-size: 2rem; margin-bottom: .25em; }
.auth-alt { margin-top: 24px; color: var(--ink-3); font-size: .92rem; text-align: center; }

/* ---------- misc ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }
.legal h1 { margin-bottom: .5em; }
.legal p { color: var(--ink-2); }
.legal .draft { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 14px 18px; border-radius: var(--r-md); color: #FDE68A; font-size: .9rem; }

/* ---------- scroll reveal ----------
   Gated behind .js on <html> so that if the script is blocked, fails, or the visitor
   has JS disabled, every element simply renders visible instead of stuck at opacity 0. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal="blur"] { filter: blur(10px); transform: none; }
.js [data-reveal="blur"].in { filter: none; }
.js [data-reveal="clip"] { opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }

.page-enter { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cgrid, .grid-3, .plans, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .chero-in, .two-col, .checkout { grid-template-columns: 1fr; }
  .hero-in { padding: 56px 0 64px; gap: 36px; }
  .hero-canvas { max-width: 400px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .kpis, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .player { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .admin { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; padding: 10px; gap: 4px; }
  .admin-side h4 { display: none; }
  .admin-side a { white-space: nowrap; margin: 0; }
  .admin-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .section { padding: 66px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 18px 20px 22px; margin: 0; gap: 16px; background: rgba(7,9,23,.97); border-bottom: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-2); }
  .nav-panel.open { display: flex; animation: drop .24s var(--ease-out) both; }
  .nav-links { flex-direction: column; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
  .menu-panel { position: static; box-shadow: none; margin-top: 8px; }
  .cgrid, .grid-3, .grid-4, .grid-2, .plans, .row, .footer-grid { grid-template-columns: 1fr; }
  .mycourse { grid-template-columns: 1fr; }
  .resume { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .stat b { font-size: 1.5rem; }
  .player-main { padding: 18px 16px 40px; }
  .admin-main { padding: 24px 16px 52px; }
  .kpis, .admin-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .cert { padding: 52px 24px; }
  .cert-foot { flex-direction: column; }
  .footer-base { flex-direction: column; }
  .topbar-in { min-height: 42px; padding-block: 6px; }
  .topbar-id em { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal], .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .marquee-track { animation: none !important; }
  .g-path { stroke-dashoffset: 0; }
  .aurora b { animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .nav, .footer, .topbar, .cert-actions, .skip, .aurora, .grid-bg, .grain, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .cert { background: #fff; box-shadow: none; border: 1px solid #999; }
  .cert h1, .cert .course, .cert .who { color: #000; -webkit-text-fill-color: #000; }
  .cert .who { border-bottom-color: #000; }
  .cert small, .cert-foot { color: #444; }
}
