/* ============================================================
   Pixel Perfect — landing
   Design tokens from Figma
   ============================================================ */
:root {
  --secondary-800: #020100;
  --secondary-700: #151515;
  --secondary-600: #030201;
  --secondary-500: #040201;
  --secondary-400: #6b6b6b;
  --secondary-300: rgba(255, 255, 255, 0.6);
  --secondary-50:  #f0f0f0;

  --neutral-50:  #f4f4f4;
  --neutral-900: #161616;

  --primary-50:  #fff7f1;
  --primary-100: #ffefe3;
  --primary-200: #fedec7;
  --primary-500: #fc7715;
  --accent:      #ff6628;

  --font-body: "Inter Tight", sans-serif;
  --font-pixel: "Pixelify Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--secondary-800);
  color: var(--secondary-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 500; }

h2 {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.72px;
  color: var(--neutral-50);
}

.page {
  margin: 0 auto;
  overflow: clip;
  --pad-m: max(16px, calc(50% - 224px));
}

.section { position: relative; }
.section--dark  { background: var(--secondary-800); }
.section--cream { background: var(--primary-50); color: var(--secondary-600); }

.muted { color: rgba(255, 255, 255, 0.6); }
.hl    { color: var(--secondary-50); }
.hl-w  { color: #fff; }
.hl-cream { color: var(--primary-50); }

/* ---------------- Logo ---------------- */
.logo {
  position: relative;
  width: 132px;
  height: 52px;
  font-family: var(--font-pixel);
  font-size: 33.33px;
  line-height: 0.78;
  letter-spacing: -0.51px;
  text-align: center;
  user-select: none;
}
.logo__text {
  position: absolute;
  inset: 0;
  padding-top: 7px;
  color: var(--secondary-50);
}
.logo__circle {
  position: absolute;
  left: 46px;
  top: 6px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--primary-500);
}
.logo__text--knockout {
  color: var(--secondary-800);
  clip-path: circle(19.5px at 65.5px 25.5px);
}

/* ---------------- Buttons & price ---------------- */
.offer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--primary-100);
}
.price-box__details {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.price-box__price {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.84px;
  color: var(--secondary-600);
}
.price-box__old {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.24px;
  color: var(--secondary-400);
}
.price-box__discount {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--primary-50);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 4px 4px 20px;
  border-radius: 99px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__label {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.btn__icon svg {
  width: 11px;
  height: 14px;
  transform: rotate(90deg);
}
.btn:hover .btn__icon { transform: rotate(45deg); }

.btn--light { background: #fff; color: var(--neutral-900); }
.btn--light .btn__icon { background: var(--neutral-900); color: #fff; }

.btn--dark { background: var(--neutral-900); color: var(--neutral-50); }
.btn--dark .btn__icon { background: var(--neutral-50); color: var(--neutral-900); }

/* ---------------- Hero ---------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 8px max(8px, calc(50% - 232px)) 40px;
  background: var(--secondary-800);
}

.hero__card {
  position: relative;
  width: 100%;
}

.hero__photo {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: #030100 url("assets/hero-bg-2.png") center / cover no-repeat;
}

.hero__main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 16px;
}

.hero__top {
  display: flex;
  flex-direction: column-reverse; /* badge above logo on mobile */
  align-items: center;
  gap: 320px;
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--primary-100);
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  width: 100%;
}
.hero__headline h1 {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.84px;
  color: var(--secondary-50);
}
.hero__sub {
  font-size: 16px;
  color: var(--secondary-300);
}

.hero__offer { width: 100%; }

/* Stats */
.hero__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat__num {
  font-family: var(--font-pixel);
  font-weight: 500;
  font-size: 100px;
  line-height: 1.16;
  letter-spacing: -0.6px;
}
.stat__label {
  font-size: 16px;
  text-align: center;
}

/* ---------------- Intro («Цей гайд для тебе») ---------------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px var(--pad-m) 48px;
}
.intro__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.intro__note {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--secondary-400);
  text-align: right;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px 16px;
  border-radius: 20px;
  background: var(--secondary-700);
  overflow: hidden;
}
.module-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.module-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 44px;
}
.module-card__label h3 {
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.6px;
  text-align: center;
  color: var(--secondary-50);
}
.module-card__desc {
  max-width: 312px;
  font-size: 14px;
  text-align: center;
  color: var(--secondary-300);
}

/* ---------------- Benefits («Що отримаєш») ---------------- */
.benefits-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px var(--pad-m);
}
.benefits-section__title { text-align: center; }

/* ---------------- Terminal (animated Claude chat) ---------------- */
.terminal {
  width: 100%;
  margin-top: 16px;
  background: #111;
  border: 1px solid #2c2a28;
  border-radius: clamp(16px, 4.5vw, 24px);
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(10px, 3vw, 15px);
  color: #f2efec;
}
.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 3vw, 18px) clamp(14px, 4vw, 28px);
  border-bottom: 1px solid #2c2a28;
}
.terminal__dots { display: flex; gap: 7px; }
.terminal__dots i {
  width: clamp(9px, 2.6vw, 13px);
  height: clamp(9px, 2.6vw, 13px);
  border-radius: 50%;
}
.terminal__dots i:nth-child(1) { background: #ed6a5e; }
.terminal__dots i:nth-child(2) { background: #f5bf4f; }
.terminal__dots i:nth-child(3) { background: #62c554; }
.terminal__title { font-size: 0.95em; }

.terminal__body {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.4vw, 14px);
  padding: clamp(18px, 6vw, 44px) clamp(14px, 4.5vw, 32px) clamp(22px, 7vw, 52px);
}
.t-line {
  display: flex;
  align-items: center;
  gap: 0.85em;
  min-height: 1.5em;
  line-height: 1.5;
}
.terminal--js .t-line { visibility: hidden; }
.terminal--js .t-line.shown { visibility: visible; }
.t-line--final { margin-top: 1em; }
.t-bullet {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: #a9a59f;
  flex-shrink: 0;
}
.t-seg { white-space: pre; }
.t-seg.typing::after {
  content: "▌";
  color: var(--accent);
  animation: caret-blink 0.7s steps(1) infinite;
}
.t-line--user .t-seg.typing--hold::after {
  content: "▌";
  color: var(--accent);
  animation: caret-blink 0.7s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.t-bar {
  flex: 1;
  max-width: 9em;
  height: 0.32em;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.55s ease;
}
.terminal--js .t-bar { transform: scaleX(0); }
.terminal--js .t-bar.grow { transform: scaleX(1); }
.t-done {
  color: var(--accent);
  transition: opacity 0.25s ease;
}
.terminal--js .t-done { opacity: 0; }
.terminal--js .t-done.shown { opacity: 1; }
.t-orange, .t-star, .t-prompt { color: var(--accent); }
.t-star::before { content: "✦"; }
.t-line--final b { font-weight: 700; }

/* ---------------- Pixel strips (animated mosaics) ---------------- */
.pixel-grid { background: var(--primary-50); }
.pixel-grid__layer {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  aspect-ratio: 375 / 162;
  width: 100%;
}
.pixel-grid__layer--desktop {
  display: none;
  grid-template-columns: repeat(31, 1fr);
  aspect-ratio: 1440 / 278;
}
.pixel-grid__layer span {
  background: var(--secondary-800);
  opacity: 0;
}
.pixel-grid__layer span.is-orange { background: var(--accent); }
.pixel-grid.play .pixel-grid__layer span {
  animation-name: pixel-flicker;
  animation-duration: 0.55s;
  animation-timing-function: steps(1, end);
  animation-fill-mode: forwards;
}
@keyframes pixel-flicker {
  0% { opacity: 0; }
  30% { opacity: 1; }
  45% { opacity: 0; }
  65% { opacity: 1; }
  80% { opacity: 0; }
  100% { opacity: 1; }
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.benefit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(107, 107, 107, 0.5);
}
.benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary-50);
}
.benefit__icon svg { width: 20px; height: 20px; }
.benefit__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.benefit__text h3 {
  font-size: 18px;
  color: var(--primary-50);
}
.benefit__text p {
  font-size: 16px;
  color: var(--secondary-300);
}

/* Decorative glows */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(252, 119, 21, 0.55) 0%, rgba(252, 119, 21, 0) 100%);
  filter: blur(60px);
}
.glow--about {
  width: 420px;
  height: 440px;
  left: -300px;
  top: -60px;
  z-index: 1;
}

/* ---------------- CTA (cream) ---------------- */
.cta { padding-bottom: 100px; }

.pixel-strip-wrap {
  display: block;
  width: 100%;
  line-height: 0;
}
.pixel-strip {
  display: block;
  width: 100%;
  height: auto;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px var(--pad-m) 0;
}

.cta__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.cta__head h2 { color: var(--secondary-500); }
.cta__sub {
  font-size: 16px;
  color: var(--secondary-600);
}

.cta__media {
  width: 283px;
  margin-top: 8px;
}

.cta__bonus-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cta__timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
}
.cta__timer p {
  font-size: 14px;
  color: var(--secondary-400);
}
.cta__clock {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.84px;
  color: var(--secondary-600);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Program ---------------- */
.program {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px var(--pad-m) 0;
}
.program__lead {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.72px;
  text-align: justify;
  color: #010100;
}

.program-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 44px 16px 16px;
  border-radius: 20px;
  background: var(--primary-100);
  min-height: 258px;
  justify-content: center;
}
.program-card__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.program-card__label span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.24px;
  color: var(--secondary-400);
}
.program-card__label h3 {
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.6px;
  text-align: center;
  color: var(--secondary-800);
}
.program-card > p {
  max-width: 312px;
  font-size: 14px;
  text-align: center;
  color: var(--secondary-400);
}

.program-card--accent { background: var(--primary-500); }
.program-card--accent .program-card__label span { color: var(--primary-100); }
.program-card--accent .program-card__label h3 { color: #fff; }
.program-card--accent > p { color: var(--primary-100); }

.program .pixel-strip-wrap--bottom {
  margin: 48px calc(50% - 50vw) 0;
  width: 100vw;
}

/* ---------------- About ---------------- */
.about {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px var(--pad-m) 48px;
  overflow: clip; /* clip instead of hidden — allows position:sticky on children */
}
.about__intro {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.about__video-scene {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 0;
}

.about__video-scene::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, var(--secondary-800) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.about__intro,
.about__details {
  position: relative;
  z-index: 1;
}

.about__photo {
  width: 100%;
  max-width: 343px;
  height: auto;
  margin: 0 auto;
}
.about__video {
  display: block;
  aspect-ratio: 343 / 490;
  background: var(--secondary-800);
}

.about__text {
  font-size: 16px;
  color: var(--secondary-300);
}
.about__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__details h2 { text-align: justify; }

/* ---------------- Skills ---------------- */
.skills {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px var(--pad-m) 48px;
}
.skills__title { text-align: center; }

.module-card--skill {
  gap: 32px;
  padding: 44px 16px 32px;
}
.module-card--skill .module-card__label { gap: 8px; color: #fff; }
.module-card--skill .module-card__label h3 { color: #fff; }
.module-card__tag {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.24px;
}
.module-card__desc--lg { font-size: 16px; }

.module-card--gradient {
  background: linear-gradient(180deg, #ffa562 0%, #ec5600 100%);
}
.module-card--gradient .module-card__desc { color: var(--primary-200); }

/* ---------------- Guide format ---------------- */
.guide-format {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 100px var(--pad-m) 148px;
}
.guide-format h2 { text-align: justify; }

/* ---------------- FAQ ---------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px var(--pad-m) 0;
  width: 100%;
}
.faq__title { color: var(--secondary-800); }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq__item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(3, 2, 1, 0.15);
}
.faq__toggle {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.faq__q {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--secondary-600);
}
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq__answer p {
  overflow: hidden;
  font-size: 16px;
  color: var(--secondary-400);
  transition: padding-top 0.35s ease;
}
.faq__item.open .faq__answer { grid-template-rows: 1fr; }
.faq__item.open .faq__answer p { padding-top: 6px; }
.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--secondary-800);
  transition: transform 0.3s ease;
}
.faq__icon svg { width: 20px; height: 20px; }
.faq__item.open .faq__icon { transform: rotate(45deg); }

#faq.cta { padding-bottom: 0; }
#faq .pixel-strip-wrap--bottom { margin-top: 64px; }

/* ---------------- Footer ---------------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 100px var(--pad-m) 48px;
  background: var(--secondary-800);
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  text-align: center;
}
.footer__nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary-50);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--primary-500); }

.footer__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  margin-top: 8px;
}
.footer__instagram:hover { color: var(--primary-500); }

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Scroll-fill section titles (word by word) ---------------- */
.fill-title {
  --tc-full: var(--neutral-50);
  --tc-dim: rgba(244, 244, 244, 0.4);
}
.fill-title .fw {
  --fill: 0;
  background-image: linear-gradient(90deg, var(--tc-full) 50%, var(--tc-dim) 50%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position-x: calc(100% - var(--fill) * 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section--cream .fill-title {
  --tc-full: var(--secondary-500);
  --tc-dim: rgba(4, 2, 1, 0.4);
}
.program__lead.fill-title {
  --tc-full: #010100;
  --tc-dim: rgba(1, 1, 0, 0.4);
}

/* ---------------- Preloader ---------------- */
body.is-loading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-800);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.logo--loader .logo__text--knockout {
  color: var(--primary-500);
  clip-path: circle(19.5px at 65.5px 25.5px);
}
.preloader__squares {
  display: flex;
  gap: 6px;
}
.preloader__squares span {
  width: 10px;
  height: 10px;
  background: #2b2b2b;
  transition: background 0.15s steps(1);
}
.preloader__squares span.on { background: var(--primary-50); }

/* Hero entrance after preloader */
.hero__photo {
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
body.loaded .hero__photo { opacity: 1; }
body.loaded .hero-fade { opacity: 1; transform: none; }
body.loaded .hero__top .logo { transition-delay: 0.15s; }
body.loaded .hero__badge { transition-delay: 0.25s; }
body.loaded .hero__headline { transition-delay: 0.35s; }
body.loaded .hero__center .offer { transition-delay: 0.5s; }
body.loaded .hero__stats { transition-delay: 0.65s; }

/* ============================================================
   Desktop (Figma: Page/Tablet/Landing, 1440px)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --side: max(60px, calc(50% - 660px)); }

  .page { max-width: none; }

  h2 { font-size: 44px; letter-spacing: -0.84px; }

  /* ---- Hero: two columns ---- */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 732px);
    grid-template-rows: 1fr auto;
    column-gap: 64px;
    row-gap: 32px;
    padding: 24px var(--side) 100px;
  }
  .hero__card { display: contents; }
  .hero__photo {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 752px;
    border-radius: 20px;
    background-position: 50% 7%;
  }
  .hero__main {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    align-items: stretch;
    gap: 70px;
    justify-content: flex-start;
  }
  .hero__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .hero__center {
    margin-top: 0;
    padding: 0 30px;
  }
  .hero__headline h1 { font-size: 64px; letter-spacing: -1.44px; }
  .hero__sub { font-size: 14px; }
  .hero__stats {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    align-self: end;
  }
  .stat__label br { display: none; }

  /* ---- Intro: 3 cards in a row ---- */
  .intro { padding: 100px var(--side); }
  .intro__note { font-size: 16px; line-height: 1.25; }
  .intro .card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  /* ---- Benefits: two columns ---- */
  .benefits-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 510px);
    column-gap: 124px;
    row-gap: 48px;
    align-items: start;
    padding: 100px var(--side);
  }
  .benefits-section__title { grid-column: 1; text-align: left; }
  .benefits-section .benefit-list { grid-column: 1; }
  .benefits-section .terminal {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    font-size: 15px;
    border-radius: 24px;
  }
  .pixel-grid__layer { display: none; }
  .pixel-grid__layer--desktop { display: grid; }

  /* ---- CTA ---- */
  .cta__inner { max-width: 600px; margin: 0 auto; padding: 100px 0 0; }
  .cta { padding-bottom: 100px; }

  /* ---- Program: 2 cards per row ---- */
  .program { padding: 100px var(--side) 0; }
  .program__lead { max-width: 800px; margin: 0 auto; font-size: 44px; letter-spacing: -0.84px; text-align: center; }
  .program .card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 500px));
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
  }
  .program-card { min-height: 300px; }
  .program .pixel-strip-wrap--bottom { margin-top: 100px; }

  /* ---- About: centered column ---- */
  .about { padding: 100px var(--side); align-items: center; }
  .about__intro { align-items: center; }
  .about__text { max-width: 600px; margin: 0 auto; }
  .about__details { max-width: 600px; width: 100%; margin: 0 auto; }
  .about__details h2 { text-align: center; }
  .about .about__text { text-align: center; }

  /* ---- Skills: 3 cards in a row ---- */
  .skills { padding: 100px var(--side); }
  .skills .card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
  }

  /* ---- Guide format: heading left, list right ---- */
  .guide-format {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 700px);
    justify-content: space-between;
    column-gap: 64px;
    padding: 100px var(--side);
  }
  .guide-format h2 { text-align: left; }

  /* ---- FAQ: heading left, list right ---- */
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 700px);
    column-gap: 64px;
    padding: 200px var(--side) 0;
  }
  #faq .pixel-strip-wrap--bottom { margin-top: 200px; }

  /* ---- Footer ---- */
  .footer { padding: 100px var(--side) 64px; }
}

/* Mobile-only: program cards alternate tilt, straighten when scrolled into view */
@media (max-width: 1023px) {
  .program { overflow-x: hidden; }

  .program .card-list .program-card:nth-child(odd).reveal {
    transform: rotate(5deg) translateY(12px);
    transform-origin: center bottom;
  }
  .program .card-list .program-card:nth-child(even).reveal {
    transform: rotate(-5deg) translateY(12px);
    transform-origin: center bottom;
  }
  .program .card-list .program-card.reveal.is-visible {
    transform: none;
    transition-delay: 0s, 0.45s; /* opacity immediately, transform after 0.45s */
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge-dot { animation: none; }
  .preloader { display: none; }
  body.is-loading { overflow: auto; }
  .hero__photo, .hero-fade { opacity: 1; transform: none; transition: none; }
}
