/* ============================================================
   AI Creator Intensive — premium dark landing
   ============================================================ */

:root {
  /* canvas */
  --bg:        #07070c;
  --bg-2:      #0b0c14;
  --bg-soft:   #0e0f1a;

  /* glass */
  --glass:        rgba(255, 255, 255, 0.030);
  --glass-2:      rgba(255, 255, 255, 0.055);
  --hairline:     rgba(255, 255, 255, 0.085);
  --hairline-2:   rgba(255, 255, 255, 0.14);

  /* text */
  --text:   #f2f3f8;
  --muted:  #a6aabc;
  --faint:  #6f7287;

  /* accents (shared across themes) */
  --cyan:   #5ad8ff;
  --blue:   #6f8bff;
  --purple: #b478ff;

  --grad: linear-gradient(110deg, var(--cyan) 0%, var(--blue) 48%, var(--purple) 100%);
  --grad-soft: linear-gradient(110deg, rgba(90,216,255,.18), rgba(180,120,255,.18));

  /* glow shadows */
  --glow-cyan:   0 0 40px rgba(90, 216, 255, 0.22);
  --glow-blue:   0 0 48px rgba(111, 139, 255, 0.28);
  --glow-purple: 0 0 48px rgba(180, 120, 255, 0.24);

  /* theme-specific surfaces */
  --header-bg:  rgba(8, 9, 16, 0.62);
  --menu-bg:    rgba(8, 9, 16, 0.92);
  --tag-bg:     rgba(10, 12, 22, 0.7);
  --btn-text:   #06070d;
  --grid-line:  rgba(255, 255, 255, 0.025);
  --fx-opacity: 0.5;
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --eyebrow-color: var(--cyan);
  --img-frame: rgba(255, 255, 255, 0.10);

  /* metrics */
  --maxw: 1200px;
  --radius: 20px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- LIGHT THEME ---------------------------------------- */
[data-theme="light"] {
  --bg:        #eef0f7;
  --bg-2:      #e6e9f3;
  --bg-soft:   #f4f5fa;

  --glass:        rgba(255, 255, 255, 0.62);
  --glass-2:      rgba(255, 255, 255, 0.82);
  --hairline:     rgba(24, 28, 52, 0.10);
  --hairline-2:   rgba(24, 28, 52, 0.18);

  --text:   #14161f;
  --muted:  #545a70;
  --faint:  #8b90a6;

  /* slightly deepened accents for contrast on light */
  --cyan:   #1aa9e0;
  --blue:   #4860e8;
  --purple: #8b3fe0;

  --grad-soft: linear-gradient(110deg, rgba(26,169,224,.16), rgba(139,63,224,.16));
  --glow-cyan:   0 0 36px rgba(26, 169, 224, 0.16);
  --glow-blue:   0 0 40px rgba(72, 96, 232, 0.18);
  --glow-purple: 0 0 40px rgba(139, 63, 224, 0.16);

  --header-bg:  rgba(244, 245, 250, 0.72);
  --menu-bg:    rgba(244, 245, 250, 0.95);
  --tag-bg:     rgba(255, 255, 255, 0.85);
  --btn-text:   #ffffff;
  --grid-line:  rgba(24, 28, 52, 0.04);
  --fx-opacity: 0.32;
  --card-shadow: 0 22px 50px rgba(36, 42, 80, 0.14);
  --img-frame: rgba(24, 28, 52, 0.08);
}

html { color-scheme: dark; }
[data-theme="light"] html, html[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background .5s var(--ease), color .5s var(--ease);
}

/* ---- ambient background --------------------------------- */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: var(--fx-opacity);
}
.bg-fx::before {
  width: 720px; height: 720px; top: -260px; left: -180px;
  background: radial-gradient(circle, rgba(111,139,255,.55), transparent 65%);
}
.bg-fx::after {
  width: 680px; height: 680px; top: 18%; right: -240px;
  background: radial-gradient(circle, rgba(180,120,255,.42), transparent 65%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---- layout --------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 150px) 0; }

/* ---- shared type ---------------------------------------- */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
[data-theme="light"] .grad-text { filter: saturate(1.05); }
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .6;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
.h-sec { font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; max-width: 16ch; }
.sec-lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; margin-top: 22px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 600; font-size: 15.5px; line-height: 1;
  padding: 17px 28px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary {
  color: var(--btn-text); background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 34px rgba(111,139,255,.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(111,139,255,.5); background-position: 100% 0; }
.btn-ghost {
  color: var(--text); background: var(--glass); border-color: var(--hairline-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(90,216,255,.55); box-shadow: var(--glow-cyan); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---- glass card base ------------------------------------ */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--hairline);
  border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 32px; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(90,216,255,.0), rgba(180,120,255,.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px); background: var(--glass-2);
  border-color: var(--hairline-2); box-shadow: var(--card-shadow), var(--glow-blue);
}
.card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(90,216,255,.6), rgba(180,120,255,.55));
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; white-space: nowrap; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  position: relative; box-shadow: var(--glow-blue);
}
.brand .mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 5px;
  background: var(--bg); 
}
.brand .mark::before {
  content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--cyan); z-index: 1;
}
.brand b { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand span { color: var(--faint); font-size: 17px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 9px 13px; border-radius: 10px; transition: color .25s, background .25s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { padding: 12px 22px; font-size: 14.5px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--glass); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: var(--menu-bg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 28px 30px; display: none; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-size: 17px; padding: 13px 6px; border-bottom: 1px solid var(--hairline); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(130px, 18vw, 180px); padding-bottom: clamp(60px, 8vw, 110px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-kicker {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); font-weight: 800; letter-spacing: -0.03em; }
.hero .sub { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); margin-top: 26px; max-width: 52ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.badge {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted);
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--hairline);
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .3s, color .3s;
}
.badge:hover { color: var(--text); border-color: rgba(90,216,255,.4); }
.badge .b-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

/* hero AI core visual */
.core-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.core {
  position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
}
.core .orb {
  width: 46%; height: 46%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cfeaff, var(--cyan) 32%, var(--blue) 62%, var(--purple) 100%);
  box-shadow: 0 0 60px rgba(111,139,255,.6), inset 0 0 40px rgba(255,255,255,.3);
  animation: orbPulse 5s var(--ease) infinite;
}
.ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--hairline-2);
  inset: 0; display: grid; place-items: center;
}
.ring.r1 { inset: 16%; border-color: rgba(90,216,255,.35); animation: spin 26s linear infinite; }
.ring.r2 { inset: 4%; border-color: rgba(180,120,255,.28); animation: spin 40s linear infinite reverse; }
.ring.r3 { inset: 28%; border-style: dashed; border-color: rgba(255,255,255,.12); animation: spin 18s linear infinite; }
.ring .node {
  position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.ring.r2 .node { background: var(--purple); box-shadow: 0 0 14px var(--purple); }
.core-glow { position: absolute; inset: -10% ; border-radius: 50%; background: radial-gradient(circle, rgba(111,139,255,.32), transparent 60%); filter: blur(30px); z-index: -1; animation: orbPulse 6s ease-in-out infinite; }
.core-tags { position: absolute; inset: 0; pointer-events: none; }
.core-tag {
  position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  padding: 7px 13px; border-radius: 999px; background: var(--tag-bg);
  border: 1px solid var(--hairline-2); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.core-tag.t1 { top: 8%;  left: -6%;  animation: floatY 6s ease-in-out infinite; }
.core-tag.t2 { top: 38%; right: -10%; animation: floatY 7s ease-in-out infinite .6s; }
.core-tag.t3 { bottom: 14%; left: -2%; animation: floatY 6.5s ease-in-out infinite 1.2s; }
.core-tag.t4 { bottom: 2%; right: 4%;  animation: floatY 7.5s ease-in-out infinite .3s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbPulse { 0%,100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.06); filter: brightness(1.12); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* trust strip */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.trust .stat .n { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.trust .stat .l { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--hairline-2); margin-bottom: 22px;
}
.about-card h3 { font-size: 21px; margin-bottom: 12px; }
.about-card p { color: var(--muted); font-size: 15.5px; }

/* create — what we'll create */
.create-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.create-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.create-card .ph { position: absolute; inset: 0; z-index: 0; }
.create-card .body { position: relative; z-index: 1; }
.create-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.create-card h3 { font-size: clamp(20px, 2.2vw, 27px); margin-top: 10px; }
.create-card p { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 40ch; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* media placeholder */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, rgba(90,216,255,.12), rgba(180,120,255,.12));
}
.ph::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .12em;
  color: rgba(255,255,255,.45); text-transform: uppercase; text-align: center; padding: 12px;
}
.create-card .ph { background:
    linear-gradient(to top, rgba(7,7,12,.92) 4%, rgba(7,7,12,.35) 55%, transparent),
    repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 2px, transparent 2px 12px),
    linear-gradient(135deg, rgba(90,216,255,.16), rgba(180,120,255,.16)); }
.create-card .ph::after { display: none; }

/* =========================================================
   PROGRAM — 10 lessons
   ========================================================= */
.program-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lesson {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
}
.lesson .l-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.lesson .l-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.lesson:hover .l-thumb img { transform: scale(1.05); }
.lesson .l-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,12,.55) 0%, transparent 45%);
  pointer-events: none;
}
[data-theme="light"] .lesson .l-thumb::after {
  background: linear-gradient(to top, rgba(20,22,40,.30) 0%, transparent 45%);
}
.lesson .num {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700;
  color: var(--btn-text); background: var(--grad);
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.lesson .l-thumb.tools-cover {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse 70% 90% at 50% 40%, rgba(111,139,255,.18), transparent 70%),
    var(--glass-2);
}
.lesson .l-body { padding: 22px 24px 8px; }
.lesson .l-body h3 { font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 8px; }
.lesson .l-body p { color: var(--muted); font-size: 14.5px; }
.lesson .l-tools { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 24px 24px; margin-top: auto; }
.lesson .chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hairline); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip .cmk { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.lesson:hover .chip { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); color: var(--text); }

/* mini AI-logo cluster used on Lesson 01 thumb */
.logo-cluster { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 78%; }
.l-thumb .big-q {
  position: relative; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; background: var(--glass-2);
  border: 1px solid var(--hairline-2);
  box-shadow: var(--glow-blue), inset 0 0 34px rgba(111,139,255,.14);
  animation: floatY 6s ease-in-out infinite;
}
.l-thumb .big-q::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--blue) 38%, transparent);
}
.l-thumb .big-q::after {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--cyan) 22%, transparent);
}
.l-thumb .q-inner { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 66px; line-height: 1; }

/* =========================================================
   TOOLS
   ========================================================= */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tool {
  display: flex; align-items: center; gap: 15px; padding: 20px 22px;
}
.tool .t-mark {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px;
}
.tool .t-name { font-weight: 600; font-size: 16px; }
.tool .t-kind { color: var(--faint); font-size: 12.5px; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* =========================================================
   SKILLS (after intensive)
   ========================================================= */
.skills-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.skills-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
}
.skill .ck {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grad); color: #06070d; font-size: 14px; font-weight: 800; margin-top: 1px;
}
.skill p { font-size: 15px; color: var(--text); }
.skills-aside { position: sticky; top: 110px; }
.skills-aside .h-sec { margin-bottom: 0; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { padding: 0; min-height: 320px; display: flex; flex-direction: column; }
.project .pv { position: relative; height: 190px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.project .pc { padding: 24px 26px 28px; }
.project .ptag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.project h3 { font-size: 20px; margin-top: 9px; }
.project p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }

/* =========================================================
   AUDIENCE
   ========================================================= */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { text-align: left; }
.aud .a-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.aud .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--hairline-2); margin-bottom: 20px; }
.aud h3 { font-size: 19px; margin-bottom: 10px; }
.aud p { color: var(--muted); font-size: 14.5px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-section { padding: clamp(72px,11vw,150px) 0; }
.cta-card {
  position: relative; border-radius: 32px; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 90px) clamp(24px, 6vw, 80px);
  border: 1px solid var(--hairline-2); background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(111,139,255,.4), transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 100%, rgba(180,120,255,.32), transparent 60%);
}
.cta-card h2 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; max-width: 20ch; margin: 0 auto; letter-spacing: -0.02em; }
.cta-card p { color: var(--muted); font-size: clamp(16px,1.7vw,19px); max-width: 56ch; margin: 26px auto 0; }
.cta-card .btn { margin-top: 40px; padding: 19px 40px; font-size: 17px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--hairline); padding: 70px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 54px; }
.footer .brand { margin-bottom: 20px; }
.footer .f-desc { color: var(--muted); font-size: 14.5px; max-width: 36ch; }
.foot-col h4 { font-size: 13px; font-family: 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 6px 0; transition: color .25s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 13.5px; }

/* live visitor counter */
.live-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 26px 0 4px; margin-top: 8px;
}
.ls-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--hairline);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ls-live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.ls-pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #38d39f;
  box-shadow: 0 0 0 0 rgba(56,211,159,.6); animation: lspulse 1.8s ease-out infinite;
}
@keyframes lspulse {
  0% { box-shadow: 0 0 0 0 rgba(56,211,159,.55); }
  70% { box-shadow: 0 0 0 9px rgba(56,211,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,211,159,0); }
}
.ls-num { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ls-num.bump { animation: lsbump .5s var(--ease); }
@keyframes lsbump { 0% { transform: translateY(0); color: var(--cyan); } 40% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@media (max-width: 640px) { .live-stats { grid-template-columns: 1fr; gap: 12px; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   3D ROBOT (Spline) + SPOTLIGHT
   ========================================================= */
.robot-section { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.robot-card {
  position: relative; overflow: hidden; border-radius: 28px;
  background: radial-gradient(140% 120% at 80% 0%, #11142a 0%, #06070d 60%);
  border: 1px solid rgba(255,255,255,0.10);
  min-height: 520px; display: flex; box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.spotlight {
  position: absolute; z-index: 1; pointer-events: none;
  height: 169%; width: 138%; top: -40%; left: -10%; opacity: 0;
  animation: spotlight 2.2s var(--ease) .4s 1 forwards;
}
@media (min-width: 992px) { .spotlight { width: 84%; left: 18%; top: -18%; } }
@keyframes spotlight {
  0%   { opacity: 0; transform: translate(-22%, -32%) scale(.5); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
.robot-grid { display: flex; width: 100%; position: relative; z-index: 2; }
.robot-copy { flex: 1; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.robot-copy .eyebrow { color: var(--cyan); }
.robot-copy h2 {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.06;
  background: linear-gradient(180deg, #fafbff, #9aa0bd);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.robot-copy p { color: #b9bdd0; font-size: clamp(15px, 1.5vw, 18px); max-width: 46ch; margin-top: 20px; }
.robot-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #cdd0e0;
  padding: 11px 18px; border-radius: 999px; width: fit-content;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
}
.robot-hint .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: orbPulse 2s ease-in-out infinite; }
.robot-stage { flex: 1; position: relative; min-width: 0; cursor: pointer; }
.robot-stage spline-viewer, .robot-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.robot-stage .stage-loader {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8a8fa6; letter-spacing: .1em;
}
.robot-stage .stage-loader .ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--cyan); animation: spin 1s linear infinite; margin-bottom: 14px; }
.robot-stage .stage-loader.hide { display: none; }
.robot-voice {
  position: absolute; left: 24px; bottom: 20px; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px; opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #dfe2f0;
  padding: 9px 15px; border-radius: 999px; background: rgba(6,7,13,.7);
  border: 1px solid rgba(90,216,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.robot-voice.on { opacity: 1; transform: translateY(0); }
.robot-voice .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.robot-voice .eq i { width: 3px; background: var(--cyan); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.robot-voice .eq i:nth-child(1){ height: 6px; animation-delay: 0s; }
.robot-voice .eq i:nth-child(2){ height: 13px; animation-delay: .15s; }
.robot-voice .eq i:nth-child(3){ height: 9px; animation-delay: .3s; }
.robot-voice .eq i:nth-child(4){ height: 13px; animation-delay: .45s; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

@media (max-width: 860px) {
  .robot-grid { flex-direction: column; }
  .robot-card { min-height: 0; }
  .robot-stage { height: 360px; flex: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .core-stage { max-width: 440px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .skills-wrap { grid-template-columns: 1fr; gap: 36px; }
  .skills-aside { position: static; }
  .create-grid > * { grid-column: span 6 !important; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .about-grid, .projects-grid, .aud-grid, .skills-list, .create-grid > * { grid-template-columns: 1fr; }
  .create-grid > * { grid-column: 1 / -1 !important; }
  .program-list { grid-template-columns: 1fr; }
  .lesson .l-body { padding: 20px 22px 6px; }
  .lesson .l-tools { padding: 0 22px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust .wrap { gap: 20px; }
  .trust .stat { flex: 1 1 40%; }
  .card { padding: 26px; }
  .card.lesson { padding: 0; }
}
@media (max-width: 460px) {
  .wrap { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { flex: 1 1 100%; }
}

/* =========================================================
   THEME TOGGLE
   ========================================================= */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid var(--hairline-2); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; display: grid; place-items: center; color: var(--text);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cyan) 55%, transparent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }
.mobile-menu .theme-toggle { width: 100%; height: 50px; border-radius: 12px; gap: 10px; margin-top: 14px; font-weight: 600; }
.mobile-menu .theme-toggle .lbl { font-size: 16px; }

/* =========================================================
   AI LOGO TILES (brand-styled monograms — original marks)
   ========================================================= */
.ai-logo {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 16px 9px 9px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--hairline);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.ai-logo:hover { transform: translateY(-3px); border-color: var(--hairline-2); box-shadow: var(--glow-blue); }
.ai-logo .mk {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.ai-logo .nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.logo-cluster .ai-logo { padding: 7px 13px 7px 7px; background: var(--tag-bg); }
.logo-cluster .ai-logo .mk { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
.logo-cluster .ai-logo .nm { font-size: 12px; }

/* brand color marks */
.mk-gpt   { background: #10a37f; }
.mk-gem   { background: linear-gradient(135deg,#4d8bff,#9b72ff); }
.mk-grok  { background: #1c1c22; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25) !important; }
.mk-ds    { background: #4d6bfe; }
.mk-syntx { background: linear-gradient(135deg,#b478ff,#6f8bff); }
.mk-kling { background: #00b3a4; }
.mk-veo   { background: linear-gradient(135deg,#1aa9e0,#4860e8); }
.mk-seed  { background: #f0506e; }
.mk-suno  { background: #18120f; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22) !important; }
.mk-heygen{ background: #5b46f5; }
.mk-up    { background: linear-gradient(135deg,#5ad8ff,#6f8bff); }
.mk-img   { background: linear-gradient(135deg,#ff9a5a,#f0506e); }
.mk-vid   { background: linear-gradient(135deg,#6f8bff,#b478ff); }

/* tools grid now uses .ai-logo style marks */
.tool .t-mark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* real logo marquee */
.logo-marquee {
  position: relative; overflow: hidden; margin-bottom: 46px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track { display: flex; gap: 16px; width: max-content; animation: marquee 42s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: 56px; width: auto; display: block; border-radius: 13px;
  border: 1px solid var(--hairline); box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* real logos inside lesson 01 cluster */
.logo-cluster img { height: 40px; width: auto; border-radius: 10px; border: 1px solid var(--hairline-2); box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* =========================================================
   AUTHOR SECTION
   ========================================================= */
.author-wrap { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: stretch; }
.author-media { position: relative; display: flex; flex-direction: column; gap: 16px; }
.author-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--img-frame); aspect-ratio: 4 / 5; min-height: 0;
  box-shadow: var(--card-shadow);
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.author-photo .pf-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .08em;
  padding: 8px 14px; border-radius: 999px; background: var(--tag-bg);
  border: 1px solid var(--hairline-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.author-pixar {
  display: flex; align-items: center; gap: 16px; padding: 14px; overflow: hidden;
}
.author-pixar img { width: 96px; height: 70px; object-fit: cover; object-position: center 18%; border-radius: 12px; flex-shrink: 0; border: 1px solid var(--img-frame); }
.author-pixar .ap-txt b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.author-pixar .ap-txt span { color: var(--muted); font-size: 13px; }
.author-body { display: flex; flex-direction: column; justify-content: center; }
.author-body h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 6px; }
.author-role { color: var(--cyan); font-family: 'JetBrains Mono', monospace; font-size: 13.5px; letter-spacing: .04em; }
.author-body p.bio { color: var(--muted); font-size: clamp(15px,1.5vw,17px); margin-top: 20px; }
.author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.author-stats .as { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--hairline); }
.author-stats .as .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.author-stats .as .l { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.35; }
.author-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.author-tags .at {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--glass);
}

/* floating photo gallery */
.author-gallery .ag-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 22%; opacity: 0; transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.author-gallery .ag-slide.on { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.005); } to { transform: scale(1.1); } }
.ag-dots { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: flex; gap: 7px; }
.ag-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); transition: width .35s var(--ease), background .35s;
}
.ag-dots button.on { width: 22px; border-radius: 5px; background: #fff; }

/* hover-to-play video tiles */
.l-thumb video, .pv video { width: 100%; height: 100%; object-fit: cover; display: block; }
.has-video::after {
  content: "▶ наведите"; position: absolute; left: 14px; bottom: 12px; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .06em; color: #fff;
  padding: 5px 11px; border-radius: 999px; background: rgba(6,7,13,.62);
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 1; transition: opacity .3s var(--ease); pointer-events: none;
}
.has-video.playing::after { opacity: 0; }

/* =========================================================
   IMAGE FRAMING for bento / projects
   ========================================================= */
.media-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.create-card .ph-img { position: absolute; inset: 0; z-index: 0; }
.create-card .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.create-card .ph-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,12,.92) 4%, rgba(7,7,12,.32) 52%, transparent);
}
[data-theme="light"] .create-card .ph-img::after {
  background: linear-gradient(to top, rgba(238,240,247,.95) 4%, rgba(238,240,247,.42) 52%, transparent);
}
.project .pv img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project:hover .pv img { transform: scale(1.06); }

@media (max-width: 900px) {
  .author-wrap { grid-template-columns: 1fr; gap: 32px; }
  .author-photo { aspect-ratio: 16 / 11; }
  .author-photo img { object-position: center 18%; }
}
@media (max-width: 480px) {
  .author-stats { grid-template-columns: 1fr; }
  .nav-cta .theme-toggle { display: grid; }
}
