/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  align-items: center; gap: 60px;
  padding: 100px 48px 40px; max-width: 1160px; margin: 0 auto;
}
h1 {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(35px, 4vw, 54px);
  letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 22px;
}
.hero-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.72; max-width: 520px; margin-bottom: 24px; }
.hero-desc strong { color: var(--text); font-weight: 500; }
.hero-accent {
  margin-bottom: 24px; padding: 18px 22px;
  background: rgba(var(--neon-rgb),0.04); border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  font-size: 0.88rem; color: var(--muted); line-height: 1.65; max-width: 520px;
}
.hero-accent strong { color: var(--text); font-weight: 500; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-val { font-family: var(--font-title); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }

/* Hero right — course preview card */
.hero-preview { position: relative; width: 100%; max-width: 380px; }
.preview-card {
  background: linear-gradient(135deg, rgba(var(--electric-rgb),0.1), rgba(var(--neon-rgb),0.04));
  border: 1px solid rgba(var(--electric-rgb),0.28);
  border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.preview-card::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(var(--electric-rgb),0.08) 0%, transparent 50%);
  pointer-events: none;
}
.preview-icon { font-size: 3rem; margin-bottom: 16px; }
.preview-title { font-family: var(--font-title); font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.preview-subtitle { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.preview-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.preview-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--muted);
}
.preview-meta-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
  background: rgba(var(--electric-rgb),0.1); border: 1px solid rgba(var(--electric-rgb),0.2);
}

.float-card {
  position: absolute; border-radius: 12px; border: 1px solid var(--border);
  backdrop-filter: blur(14px); padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.float-card-1 {
  top: -16px; right: -20px; z-index: 4;
  background: rgba(var(--neon-rgb),0.06); border-color: rgba(var(--neon-rgb),0.2);
  animation: flt1 4s ease-in-out infinite;
}
.float-card-2 {
  bottom: -72px; left: -28px; z-index: 4;
  background: rgba(var(--warm-rgb),0.06); border-color: rgba(var(--warm-rgb),0.2);
  animation: flt2 5s ease-in-out infinite;
}
.float-emoji { font-size: 1.2rem; margin-bottom: 4px; }
.float-val { font-family: var(--font-title); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.03em; }
.float-val.g { color: var(--neon); }
.float-val.o { color: var(--warm); }
.float-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

/* ─────────────────────────────────────────
   FOR WHOM
───────────────────────────────────────── */
#for-whom { padding: 80px 0; background: var(--s1); border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); }
#for-whom h2 { text-align: center; }
.for-whom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.feature-card {
  background: var(--s2); border: 1px solid var(--border2); border-radius: 16px;
  padding: 26px; transition: border-color 0.25s, transform 0.25s; min-height: 260px;
}
.feature-card:hover { border-color: rgba(var(--neon-rgb),0.25); transform: translateY(-2px); }
.feature-icon { margin: 0 auto;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(var(--electric-rgb),0.1); border: 1px solid rgba(var(--electric-rgb),0.2);
}
.feature-card h3 { font-family: var(--font-title); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* ─────────────────────────────────────────
   INSTRUCTOR
───────────────────────────────────────── */
#instructor { padding: 60px 0; background: var(--s2); border-top: 1px solid var(--border2); }
#instructor h2 { text-align: center; }
.instructor-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; margin: 48px auto 0; max-width: 900px; }
.instructor-photo {
  width: 360px; height: 360px; border-radius: 24px;
  background: linear-gradient(135deg, var(--electric), var(--neon));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 2.5rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(var(--electric-rgb),0.25);
  position: relative;
  top: -12px;
  left: 10px;
}
.instructor-name {
  font-family: var(--font-title); font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.instructor-role { font-size: 0.9rem; color: var(--neon); margin-bottom: 16px; }
.instructor-highlight {
  margin-bottom: 20px; padding: 16px 20px;
  background: rgba(var(--neon-rgb),0.04); border: 1px solid rgba(var(--neon-rgb),0.2);
  border-radius: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.6;
}
.instructor-highlight strong { color: var(--text); font-weight: 500; }
.instructor-takeaways { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.instructor-takeaways li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--muted); line-height: 1.5;
}
.instructor-takeaways li span { color: var(--neon); flex-shrink: 0; }
.instructor-approach { font-size: 0.85rem; color: var(--muted); font-style: italic; line-height: 1.6; }

/* ─────────────────────────────────────────
   PROGRAM
───────────────────────────────────────── */
#program { padding: 60px 0 0; width: 100%; position: relative; z-index: 5; }
.program-grid {
  display: block;
  margin-top: 60px;
  width: 100%;
}
.program-grid.collapsed .program-card:nth-child(n+4) { display: none; }
.program-toggle {
  display: block; margin: 28px auto; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-title); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--text);
  border-bottom: 1px dashed rgba(255,255,255,0.45);
  transition: color 0.2s, border-color 0.2s;
}
.program-toggle:hover { color: var(--neon); border-bottom-color: var(--neon); }
.program-card {
  background: var(--s1); border: none; border-bottom: 1px solid var(--border2); border-radius: 0;
  padding: 40px 5%;
  position: relative;
  z-index: 50;
  width: 100%;
  min-height: 120px;
  cursor: pointer;
  transition: background 0.4s ease, padding 0.4s ease;
  display: block;
  text-align: left;
}
.program-card:first-child { border-top: 1px solid var(--border2); }
.program-card:hover { background: rgba(255,255,255,0.05); }
.program-card.expanded {
  background: var(--s2);
  padding: 60px 5%;
}

.program-card-num {
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  justify-content: flex-start;
  padding-right: 60px;
  pointer-events: none;
  transition: all 0.4s ease;
}
.program-card-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--neon-rgb), 0.08);
  border: 1px solid rgba(var(--neon-rgb), 0.25);
  color: var(--neon);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 10px;
  margin-right: 35px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(var(--neon-rgb), 0.1);
}

.software-icon {
  height: 28px;
  width: auto;
  margin-left: 15px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
  vertical-align: middle;
  transition: transform 0.3s;
}

.program-card.expanded .program-card-num {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--neon);
}

.program-card-plus {
  position: absolute;
  top: 38px;
  right: 5%;
  font-size: 1.5rem;
  color: var(--muted);
  transition: transform 0.4s, color 0.4s, top 0.4s;
  line-height: 1;
  pointer-events: none;
}
.program-card.expanded .program-card-plus {
  transform: rotate(45deg);
  color: var(--neon);
  top: 60px;
}

.program-card-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  width: 100%;
  padding-left: 20px;
  transition: grid-template-rows 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
  overflow: hidden;
}
.program-card.expanded .program-card-content {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 24px;
}

.program-card h3 {
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.25;
}
.program-bullets { list-style: none; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.program-bullets li {
  font-size: 1.15rem; color: #ffffff; line-height: 1.6;
  padding-left: 24px; position: relative;
}
.program-bullets li::before {
  content: '\00B7'; position: absolute; left: 0; color: var(--electric); font-weight: 700; font-size: 1.6rem; top: -2px;
}
.program-bullets .practice-item,
.program-bullets .hw-item {
  color: #ffffff;
  font-weight: 500;
}
.program-bullets .practice-item {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.program-bullets .practice-item::before,
.program-bullets .hw-item::before { content: none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; padding: 100px 24px 32px; text-align: center; }
  #hero .hero-desc, #hero .hero-accent { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-right { display: none; }
  .instructor-grid { grid-template-columns: 1fr; justify-items: center; }
  .instructor-photo {
    display: block; margin: 0 auto; top: 0; left: 0;
    width: min(320px, 100%); height: auto; aspect-ratio: 1 / 1;
  }
  .instructor-grid > div { text-align: center; }
  .program-grid { grid-template-columns: 1fr; }
  .for-whom-grid { grid-template-columns: 1fr 1fr; }
  /* Mobile text centering */
  .section .container { text-align: center; }
  .cta-group { justify-content: center; }
  .stats-row { justify-content: center; }
  /* Keep list content left-aligned */
  .program-bullets, .instructor-takeaways { text-align: left; }
}
@media (max-width: 600px) {
  .for-whom-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .stats-row { gap: 20px; }
  .float-card-2 { bottom: -56px; }
  #hero h1 { font-size: clamp(42px, 11vw, 52px); }

  /* Lesson tabs mobile fix */
  .program-card {
    height: auto;
    min-height: 80px;
    padding: 20px 15px;
  }
  .program-card-num {
    font-size: 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
    line-height: 1.3;
    gap: 10px;
  }
  .program-card-num span {
    font-size: 0.65rem;
    padding: 6px 12px;
    margin-right: 0;
    margin-bottom: 0;
  }
  .program-card-plus {
    top: 28px;
    right: 15px;
    font-size: 1.2rem;
  }
  .program-card.expanded .program-card-num {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  .program-card-content {
    padding-left: 10px;
  }
  .program-bullets li {
    font-size: 0.95rem;
  }
}

/* ─────────────────────────────────────────
   TOOLS MARQUEE
───────────────────────────────────────── */
.tools-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.012);
}

.tools-marquee::before,
.tools-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.tools-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}
.tools-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.marquee-item img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}
.marquee-item span {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-item:hover img {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(1.5);
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .marquee-set { gap: 40px; }
  .marquee-item img { height: 28px; }
  .marquee-item span { font-size: 0.75rem; }
}

/* ── REGISTRATION SECTION ── */
#registration { padding: 100px 0; background: var(--s2); border-bottom: 1px solid var(--border2); }
.reg-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: linear-gradient(135deg, rgba(var(--electric-rgb),0.05), rgba(var(--neon-rgb),0.03));
  border: 2px solid var(--neon); border-radius: 24px; padding: 48px;
  box-shadow: 0 0 35px rgba(var(--neon-rgb), 0.4), inset 0 0 20px rgba(var(--neon-rgb), 0.1);
}.reg-left h2 { margin-bottom: 16px; }
.reg-left p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
.reg-form { display: flex; flex-direction: column; gap: 14px; }
.reg-input {
background: rgba(255,255,255,0.04); border: 1px solid var(--border2);
border-radius: 12px; padding: 14px 18px; color: var(--text);
font-family: var(--font-body); font-size: 0.95rem;
outline: none; transition: border-color 0.2s;
}
.reg-input:focus { border-color: var(--neon); }
.btn-reg {
  background: linear-gradient(135deg, var(--electric), var(--electric-2));
  color: #fff; border: 2px solid var(--neon); border-radius: 12px;
  padding: 16px; font-family: var(--font-body);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(var(--neon-rgb), 0.4), 0 10px 30px rgba(var(--electric-rgb),0.2);
}
.btn-reg:hover {
  transform: translateY(-3px);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(var(--neon-rgb), 0.6), 0 15px 40px rgba(var(--electric-rgb),0.3);
}.reg-fine { font-size: 0.72rem; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.4; }

@media (max-width: 960px) {
  .reg-container { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; text-align: center; }
  .reg-left, .reg-left h2, .reg-left p { text-align: center; }
  .reg-input { width: 100%; box-sizing: border-box; }
  .btn-reg { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ─────────────────────────────────────────
   REVIEWS (compact, photo-capable)
───────────────────────────────────────── */
.reviews {
  padding: 64px 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.reviews-head {
  text-align: center;
  margin-bottom: 32px;
}
.reviews-head .section-label {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.reviews-head h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.reviews-head h2 .grad {
  background: linear-gradient(90deg, var(--electric), var(--neon));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: var(--s2, rgba(255,255,255,0.03));
  border: 1px solid var(--border2, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.review-card:hover {
  border-color: rgba(var(--electric-rgb),0.3);
  transform: translateY(-2px);
}
.review-card .stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.review-card .review-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  font-weight: 300;
  flex: 1;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reviewer-av {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--neon));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.reviewer-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reviewer-name { font-size: 0.82rem; font-weight: 500; }
.reviewer-role { font-size: 0.72rem; color: var(--muted); }

@media (max-width: 880px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews { padding: 48px 20px; }
}
nav .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }

/* ──────────────────────────────────────────────
   Student Work section v2 (course-websites.html)
   MacBook-lid frames wrapping live iframes
   ────────────────────────────────────────────── */

#student-work .section-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

#student-work .work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

#student-work .work-card {
  display: flex;
  flex-direction: column;
}

#student-work .mac-frame {
  background: linear-gradient(180deg, #1f2230 0%, #15171f 100%);
  border-radius: 14px 14px 6px 6px;
  padding: 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.40);
}

#student-work .mac-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}

#student-work .mac-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--mac-scale, 0.30));
  background: #fff;
}

#student-work .mac-hinge {
  height: 8px;
  margin: 0 -10px;
  background: linear-gradient(180deg, #2a2d39 0%, #14161d 100%);
  border-radius: 0 0 10px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-top: 1px solid rgba(0, 0, 0, 0.6);
}

#student-work .mac-notch {
  width: 80px;
  height: 4px;
  background: #0d0f15;
  border-radius: 0 0 6px 6px;
}

#student-work .work-meta {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#student-work .work-title {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 600;
}

#student-work .work-niche {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
  min-height: 2.5em;
}

/* --mac-scale is set per-card by JS (see course-websites.html) so the
   1440px-wide iframe always fits its container exactly, on any viewport. */

@media (max-width: 720px) {
  #student-work .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Reskin .mac-frame as an iPhone-with-notch on mobile */
  #student-work .mac-frame {
    background: linear-gradient(180deg, #1a1c24 0%, #0e0f14 100%);
    border-radius: 32px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.05) inset,
      0 16px 40px rgba(0, 0, 0, 0.45);
    max-width: 320px;
    margin: 0 auto;
    position: relative;
  }

  /* Notch */
  #student-work .mac-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 2;
  }

  #student-work .mac-screen {
    aspect-ratio: 9 / 9.5;
    border-radius: 26px;
    background: #000;
  }

  /* Iframe overrides: full-size, no scale, always interactive */
  #student-work .mac-screen iframe {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    pointer-events: auto;
  }

  /* Hide laptop-only elements on mobile */
  #student-work .mac-hinge {
    display: none;
  }

  /* No tap-to-interact overlay on mobile */
  #student-work .mac-screen::after {
    display: none;
  }
}
