/* ============================================================
   Code Way Academy · marketing pages
   ============================================================ */

body.site {
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--bg);
}

[data-theme="light"] body.site {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(29, 78, 216, 0.1), transparent 70%),
    var(--bg);
}

body.site.nav-open {
  overflow: hidden;
}

/* ---------- navigation ---------- */

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 90;
  width: min(1240px, calc(100% - 32px));
  margin: 14px auto 0;
  border-radius: 20px;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s var(--ease);
}

.site-nav.is-scrolled {
  background: var(--glass-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 var(--edge);
}

[data-theme="light"] .site-nav.is-scrolled {
  box-shadow: 0 24px 60px rgba(24, 34, 52, 0.16), inset 0 1px 0 var(--edge);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
  padding: 0 14px 0 17px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, #1d1d23, #0a0a0c 72%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.26);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.brand-spark {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 9px var(--sky);
  animation: pulse-soft 3.2s ease-in-out infinite;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy strong b {
  color: var(--muted);
  font-weight: 500;
}

.brand-copy > span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--ease);
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sky);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.nav-cta {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-login {
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-login:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links [data-mobile-auth] {
  display: none;
}

@media (max-width: 760px) {
  .nav-login {
    display: none;
  }

  .nav-links [data-mobile-auth] {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-weight: 650;
  }

  .nav-auth .nav-cta {
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.32s var(--ease),
    box-shadow 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    color 0.32s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.32s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  background: var(--action-bg);
  color: var(--action-ink);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .btn-primary {
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

[data-theme="light"] .btn-primary::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn-lg {
  height: 52px;
  padding: 0 25px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.text-link:hover {
  color: var(--sky);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 92px) 32px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: center;
  min-height: 590px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 8px var(--sky);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.hero h1 {
  max-width: 15ch;
  margin: 24px 0 22px;
  font-size: clamp(47px, 5.8vw, 74px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

/* Give the gradient and italic overhang paint room without shifting the line layout. */
.hero h1 em,
.section-head h2 em,
.proof-copy h2 em,
.final-cta h2 em,
.page-hero h1 em {
  display: inline-block;
  padding: 0.2em 0.08em 0.2em 0.08em;
  margin: -0.2em 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
  background-image: linear-gradient(100deg, var(--text) 2%, var(--sky) 34%, var(--blue) 68%, var(--magenta) 100%);
  background-size: 210% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen-text 11s linear infinite;
}

.hero-lede {
  max-width: 54ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ---------- hero stage ---------- */

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 560px;
  perspective: 1300px;
}

.stage-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), rgba(232, 121, 249, 0.08) 42%, transparent 68%);
  filter: blur(16px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

[data-theme="light"] .stage-halo {
  background: radial-gradient(circle, rgba(29, 78, 216, 0.12), rgba(162, 28, 175, 0.06) 44%, transparent 68%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 12px var(--sky);
}

.orbit-a {
  width: 590px;
  height: 590px;
  margin: -295px 0 0 -295px;
  opacity: 0.5;
  animation: spin-slow 52s linear infinite;
}

.orbit-b {
  width: 470px;
  height: 470px;
  margin: -235px 0 0 -235px;
  opacity: 0.36;
  animation: spin-slow 38s linear infinite reverse;
}

.orbit-b::after {
  top: auto;
  right: 12%;
  bottom: 4%;
  left: auto;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

.studio-mock {
  position: relative;
  width: min(100%, 592px);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}

.mock-float {
  position: relative;
  animation: float-y 8.5s ease-in-out infinite;
}

.mock-window {
  overflow: hidden;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), transparent 38%),
    #0b0b0d;
  color: #f4f4f6;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.62),
    0 8px 26px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mock-window,
.code-mini,
.preview-mini {
  --surface-sky: #38bdf8;
  --surface-magenta: #e879f9;
  --surface-amber: #fbbf24;
}

[data-theme="light"] .mock-window {
  box-shadow:
    0 50px 110px rgba(24, 34, 52, 0.3),
    0 8px 24px rgba(24, 34, 52, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.mock-dots {
  display: flex;
  gap: 5px;
}

.mock-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock-dots i:first-child {
  background: #ff7b8b;
}

.mock-dots i:nth-child(2) {
  background: #ffc46b;
}

.mock-dots i:nth-child(3) {
  background: var(--surface-sky);
}

.mock-url {
  flex: 1;
  max-width: 250px;
  margin: 0 auto;
  padding: 4px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #8c8c98;
  font-family: var(--mono);
  font-size: 8.5px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--surface-sky);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-sky);
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.8);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 8px;
  padding: 9px;
  background: #060608;
}

.mock-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.mock-lesson {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.07), transparent 55%),
    #101014;
}

.mini-kicker {
  display: block;
  color: var(--surface-sky);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mock-lesson strong {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.mock-lesson p {
  margin: 0 0 8px;
  color: #8f8f9b;
  font-size: 8.5px;
  line-height: 1.45;
}

.mock-task {
  margin-bottom: 8px;
  padding: 6px 7px;
  border-left: 2px solid var(--surface-magenta);
  border-radius: 0 7px 7px 0;
  background: rgba(232, 121, 249, 0.08);
}

.mock-task code {
  color: var(--surface-magenta);
  font-family: var(--mono);
  font-size: 7.5px;
}

.mock-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #8c8c98;
  font-size: 7.5px;
}

.mock-check i {
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--surface-sky);
  font-size: 6.5px;
  font-style: normal;
}

.mock-check.is-done i {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
}

.mock-code {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: #050507;
}

.mock-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 25px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f6f7c;
  font-family: var(--mono);
  font-size: 7px;
}

.mock-code-bar span:last-child {
  color: var(--surface-sky);
  opacity: 0.7;
}

.mock-code pre {
  margin: 0;
  padding: 8px 9px;
  overflow: hidden;
  color: #d9d9df;
  font-family: var(--mono);
  font-size: 7.4px;
  line-height: 1.62;
  white-space: pre;
}

.m-ln {
  display: inline-block;
  width: 15px;
  color: #4e4e59;
  text-align: right;
  margin-right: 7px;
  user-select: none;
}

.m-tag {
  color: var(--surface-sky);
}

.m-attr {
  color: var(--surface-magenta);
}

.m-str {
  color: var(--surface-amber);
}

.type-caret {
  display: inline-block;
  width: 1px;
  height: 8px;
  margin-left: 1px;
  background: var(--surface-sky);
  vertical-align: -1px;
  animation: caret-blink 1s steps(1) infinite;
}

.mock-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: #ffffff;
  color: #111114;
}

.mock-preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f4f5;
  color: #85858e;
  font-family: var(--mono);
  font-size: 6.5px;
}

.mock-preview-bar span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-preview-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22b07d;
  box-shadow: 0 0 0 2px rgba(34, 176, 125, 0.14);
}

.mock-page {
  position: relative;
  min-height: 256px;
  overflow: hidden;
  background: #111114;
}

.mock-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.56);
}

.mock-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.12), rgba(8, 8, 10, 0.82));
}

.mock-persona {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 256px;
  padding: 14px;
  color: #ffffff;
}

.mock-initials {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0b0d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

.mock-initials.small {
  width: 26px;
  height: 26px;
  margin-bottom: 7px;
  font-size: 7.5px;
}

.mock-persona strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mock-persona p {
  max-width: 20ch;
  margin: 6px 0 9px;
  color: #cfcfd6;
  font-size: 7.5px;
  line-height: 1.5;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.mock-tags span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eeeeF2;
  font-size: 6px;
  font-weight: 700;
}

.mock-link {
  margin-top: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0d;
  font-size: 6.5px;
  font-weight: 800;
}

/* ---------- floating chips ---------- */

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 15px;
  background: var(--glass-strong);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32), inset 0 1px 0 var(--edge);
  animation: float-y 6.5s ease-in-out infinite;
  white-space: nowrap;
}

.float-chip > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-chip b {
  font-size: 9px;
  font-weight: 700;
}

.float-chip small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 7.5px;
}

.chip-a {
  top: -58px;
  right: 18px;
  animation-delay: -1.4s;
}

.chip-b {
  bottom: -58px;
  left: 10px;
  animation-delay: -3.8s;
}

.chip-c {
  right: 10px;
  bottom: -58px;
  animation-delay: -2.4s;
}

.chip-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--sky-soft);
  color: var(--sky);
  font-size: 10px;
  font-weight: 800;
}

.chip-icon.is-ring {
  position: relative;
  background: transparent;
}

.chip-icon.is-ring i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--line-strong);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin-slow 4s linear infinite;
}

.chip-icon.is-ring b {
  position: relative;
  font-family: var(--mono);
  font-size: 7px;
}

.chip-live {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--sky-soft);
  animation: pulse-soft 2.2s ease-in-out infinite;
}

[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, 0.92);
}

/* ---------- marquee ---------- */

.hero-marquee {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 15px 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(78px, 9vw, 126px) 32px 0;
}

.section-tight {
  padding-top: 46px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 620;
  letter-spacing: -0.046em;
  line-height: 1.03;
}

.section-head p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.section-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: end;
  max-width: none;
}

.section-head-row h2 {
  max-width: 15ch;
}

.section-head-row > p {
  max-width: 44ch;
  margin: 0 0 6px auto;
}

/* ---------- three panes ---------- */

.pane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pane-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  transition:
    transform 0.55s var(--ease),
    box-shadow 0.55s var(--ease),
    border-color 0.35s ease;
}

.pane-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--edge);
}

[data-theme="light"] .pane-card:hover {
  box-shadow: 0 40px 90px rgba(24, 34, 52, 0.18), inset 0 1px 0 var(--edge);
}

.pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.pane-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.pane-tag {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pane-card h3 {
  margin-bottom: 9px;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.pane-card > p {
  max-width: 34ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.pane-visual {
  position: relative;
  min-height: 186px;
  margin-top: auto;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  transition: transform 0.55s var(--ease);
}

.pane-card:hover .pane-visual {
  transform: scale(1.018);
}

.lesson-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-progress {
  display: block;
  width: 58px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.mini-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--text), var(--sky));
}

.lesson-mini strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.mini-line {
  display: block;
  width: 88%;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: var(--line);
}

.mini-line.short {
  width: 58%;
}

.mini-task {
  margin-top: 14px;
  padding: 8px 9px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
}

.mini-task code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.code-mini,
.preview-mini {
  padding: 0;
  background: #08080a;
  border-color: rgba(255, 255, 255, 0.1);
}

.code-mini-bar,
.preview-mini-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #85858f;
  font-family: var(--mono);
  font-size: 7.5px;
}

.code-mini-bar {
  justify-content: space-between;
}

.code-mini-bar span:last-child {
  color: var(--surface-sky);
  opacity: 0.7;
}

.code-mini pre {
  margin: 0;
  padding: 12px;
  color: #d9d9df;
  font-family: var(--mono);
  font-size: 8.4px;
  line-height: 1.72;
  white-space: pre;
}

.preview-mini-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.preview-mini-bar i:first-child {
  background: #ff7b8b;
}

.preview-mini-bar i:nth-child(2) {
  background: #ffc46b;
}

.preview-mini-bar i:nth-child(3) {
  background: var(--surface-sky);
}

.preview-mini-bar span {
  flex: 1;
  margin-left: 5px;
  overflow: hidden;
  color: #777782;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-mini-page {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  background: #111114;
}

.preview-mini-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55) contrast(1.05);
}

.preview-mini-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.1), rgba(8, 8, 10, 0.84));
}

.preview-mini-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px;
  color: #ffffff;
}

.preview-mini-card strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.preview-mini-card > span:last-child {
  max-width: 20ch;
  margin-top: 5px;
  color: #c7c7cf;
  font-size: 8px;
  line-height: 1.5;
}

/* ---------- proof ---------- */

.proof-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4vw, 54px);
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
  border-radius: 32px;
}

.proof-shell::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky-soft), transparent 66%);
  pointer-events: none;
}

.proof-copy {
  position: relative;
  z-index: 1;
}

.proof-copy h2 {
  max-width: 14ch;
  margin: 18px 0 18px;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.proof-copy p {
  max-width: 52ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.proof-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
}

.stat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface);
}

.stat-tile strong {
  display: block;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stat-tile span {
  max-width: 20ch;
  margin-top: 8px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.4;
}

.skill-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 26px;
  align-items: center;
  margin-top: 14px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
}

.skill-strip-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-strip-kicker {
  color: var(--sky);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skill-strip-head strong {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.skill-strip-head > span:last-child {
  color: var(--faint);
  font-size: 10.5px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease,
    color 0.3s ease;
}

.s-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--text);
}

.s-chip b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 700;
}

.s-chip.is-on {
  border-color: var(--line-strong);
  color: var(--text);
}

.s-chip.is-on b {
  background: var(--sky-soft);
  color: var(--sky);
}

/* ---------- projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 242px;
  padding: 26px;
  overflow: hidden;
  border-radius: 24px;
  text-decoration: none;
  transition:
    transform 0.5s var(--ease),
    border-color 0.35s ease,
    box-shadow 0.5s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 var(--edge);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 36px 80px rgba(24, 34, 52, 0.16), inset 0 1px 0 var(--edge);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.project-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.project-status {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status.is-ready {
  border-color: var(--line-strong);
  color: var(--sky);
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.project-card p {
  max-width: 46ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-right: 46px;
}

.project-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 8.5px;
  font-weight: 600;
}

.project-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    transform 0.4s var(--ease),
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.project-arrow svg {
  width: 15px;
  height: 15px;
}

.project-card:hover .project-arrow {
  transform: translateX(3px);
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* ---------- schools ---------- */

.school-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4vw, 54px);
  padding: clamp(28px, 4vw, 50px);
  overflow: hidden;
  border-radius: 32px;
}

.school-panel::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -30%;
  width: 55%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--magenta-soft), transparent 66%);
  pointer-events: none;
}

.school-copy {
  position: relative;
  z-index: 1;
}

.school-copy h2 {
  max-width: 15ch;
  margin: 18px 0 16px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 620;
  letter-spacing: -0.046em;
  line-height: 1.02;
}

.school-copy > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.school-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.school-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.school-list span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--sky);
  font-size: 7px;
  font-weight: 800;
}

.school-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.school-card {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 121, 249, 0.1), transparent 48%),
    #0b0b0d;
  color: #f4f4f6;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.class-flow-head {
  margin-bottom: 18px;
}

.class-flow-head strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.flow-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-time {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.flow-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.flow-row strong {
  font-size: 11.5px;
  font-weight: 700;
}

.flow-row div span {
  color: #8f8f9b;
  font-size: 9.5px;
  line-height: 1.45;
}

.class-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #a8a8b3;
  font-size: 8.5px;
}

.class-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.7);
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 8px 0 4px;
}

.step-num {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.step-line {
  position: relative;
  height: 1px;
  margin-top: 19px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--line), var(--line-strong), var(--line));
}


.step-line i {
  position: absolute;
  top: -1px;
  left: 0;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  animation: line-travel 4.2s ease-in-out infinite;
}

@keyframes line-travel {
  0% {
    transform: translateX(-14px);
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  100% {
    transform: translateX(54px);
    opacity: 0;
  }
}

/* ---------- questions ---------- */

.questions-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.questions-copy {
  position: sticky;
  top: 108px;
}

.questions-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 4.3vw, 52px);
  font-weight: 620;
  letter-spacing: -0.046em;
  line-height: 1.03;
}

.questions-copy p {
  max-width: 34ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.accordion {
  padding: 2px 24px;
  border-radius: 26px;
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-item:last-child {
  border-bottom: 0;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 21px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.acc-trigger i {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.acc-trigger i::before,
.acc-trigger i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.4s var(--ease);
}

.acc-trigger i::after {
  transform: rotate(90deg);
}

.acc-item.is-open .acc-trigger i::after {
  transform: rotate(0deg);
}

.acc-item.is-open .acc-trigger {
  color: var(--sky);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease);
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-inner {
  max-width: 62ch;
  overflow: hidden;
  padding: 0 26px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.35s ease, padding 0.4s var(--ease);
}

.acc-item.is-open .acc-inner {
  padding-bottom: 21px;
  opacity: 1;
}

/* ---------- final cta ---------- */

.final-cta-section {
  padding-bottom: 10px;
}

.final-cta {
  position: relative;
  padding: clamp(42px, 6vw, 78px) clamp(24px, 5vw, 56px);
  overflow: hidden;
  border-radius: 34px;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -46%;
  left: 50%;
  width: 80%;
  height: 110%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sky-soft), var(--magenta-soft) 42%, transparent 68%);
  transform: translateX(-50%);
  filter: blur(18px);
  pointer-events: none;
}

.final-cta .eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.final-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 20px auto 16px;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1;
}

.final-cta p {
  position: relative;
  z-index: 1;
  max-width: 48ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.final-cta .hero-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 92px auto 0;
  padding: 0 32px 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 0.7fr 1.2fr;
  gap: 32px;
  padding: 42px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  max-width: 32ch;
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.65;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col > span {
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  width: fit-content;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-note p {
  max-width: 30ch;
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
}

.footer-theme {
  width: fit-content;
  height: 34px;
  margin-top: 7px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.footer-base a {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.footer-base a:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ---------- inner page heroes ---------- */

.page-hero {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 6vw, 84px) 32px 0;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.page-hero h1 {
  max-width: 14ch;
  margin: 18px 0;
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1;
}

.page-lede {
  max-width: 56ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-meta span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-section {
  padding-top: clamp(62px, 7vw, 96px);
}

.path-card {
  padding: 24px;
  border-radius: 24px;
}

.path-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.path-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.path-card-head span:last-child {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sky);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.path-row > b {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.path-row div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.path-row div strong {
  font-size: 11.5px;
  font-weight: 600;
}

.path-row div span {
  color: var(--faint);
  font-size: 9px;
}

.path-row em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.path-row.is-ready em {
  color: var(--sky);
}

/* ---------- curriculum modules ---------- */

.module-stack {
  display: grid;
  gap: 12px;
}

.module-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: 26px;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.module-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.module-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.module-main h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.module-main > p {
  max-width: 48ch;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.module-main .project-tags {
  margin-bottom: 22px;
  padding-right: 0;
}

.module-side {
  display: grid;
  gap: 17px;
  align-content: start;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--line);
}

.module-block > span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.module-block > strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.module-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.module-skills span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
}

/* ---------- core grid ---------- */

.core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.core-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
}

.core-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface);
}

.core-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-3);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.core-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.core-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.62;
}

/* ---------- values and plans ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.value-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-2);
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.session-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(26px, 4vw, 46px);
  border-radius: 30px;
}

.session-list {
  display: grid;
  align-content: center;
}

.session-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.session-row:last-child {
  border-bottom: 1px solid var(--line);
}

.session-time {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.session-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 620;
}

.session-row p {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-2);
}

.plan-card.is-featured {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 100% 0, var(--sky-soft), transparent 52%),
    var(--surface);
  box-shadow: inset 0 1px 0 var(--edge);
}

.plan-label {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.plan-card > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.plan-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.plan-list li::before {
  content: "✓";
  color: var(--sky);
  font-size: 8px;
  font-weight: 800;
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.story p {
  max-width: 64ch;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.story p strong {
  color: var(--text);
}

.story .story-lead {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.34;
  color: var(--text);
}

.about-aside {
  position: sticky;
  top: 108px;
  padding: 26px;
  border-radius: 24px;
}

.about-aside h2 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 620;
}

.fact-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
}

.fact-row span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-row strong {
  font-weight: 600;
  line-height: 1.45;
}

.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.principle {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease;
}

.principle:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.principle-num {
  display: block;
  margin-bottom: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.principle h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.62;
}

.name-note {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 28px;
  text-align: center;
}

.name-note blockquote {
  margin: 18px 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.name-note p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(46px, 6vw, 70px);
  }

  .orbit-a {
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
  }

  .orbit-b {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
  }

  .float-chip {
    padding: 8px 10px;
  }

  .chip-a {
    right: 12px;
  }

  .chip-b {
    left: 6px;
  }
}

@media (max-width: 1100px) {
  .hero-stage {
    overflow: hidden;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-base {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .hero-stage {
    min-height: 570px;
    overflow: hidden;
  }

  .section-head-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head-row > p {
    margin: 0;
  }

  .pane-grid {
    grid-template-columns: 1fr;
  }

  .pane-card {
    min-height: 0;
  }

  .pane-visual {
    min-height: 176px;
  }

  .proof-shell,
  .school-panel,
  .session-panel,
  .about-grid,
  .page-hero-inner,
  .questions-layout {
    grid-template-columns: 1fr;
  }

  .questions-copy,
  .about-aside {
    position: static;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .step-line {
    display: none;
  }

  .module-card {
    grid-template-columns: 1fr;
  }

  .module-side {
    grid-template-columns: 1fr 1fr;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .core-grid,
  .value-grid,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-hero h1 {
    max-width: 16ch;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-base {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .nav-inner {
    height: 58px;
    gap: 12px;
    padding: 0 10px 0 14px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s var(--ease),
      visibility 0.28s;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text);
    font-size: 13px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .float-chip {
    display: none;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 66px 22px 0;
  }

  .hero {
    padding: 38px 22px 0;
  }

  .page-hero {
    padding: 42px 22px 0;
  }

  .site-footer {
    margin-top: 64px;
    padding: 0 22px 24px;
  }

  .hero h1 {
    font-size: clamp(42px, 11vw, 60px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-meta {
    font-size: 8.5px;
  }

  .hero-marquee {
    margin-top: 38px;
  }

  .section-head h2 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .section-head p {
    font-size: 14px;
  }

  .proof-copy h2,
  .school-copy h2 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .proof-shell,
  .school-panel,
  .session-panel,
  .final-cta {
    border-radius: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .skill-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .skill-chips {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-note {
    grid-column: 1 / -1;
  }

  .footer-base {
    flex-direction: column;
    gap: 6px;
  }

  .core-grid,
  .value-grid,
  .plan-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .module-side {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(38px, 10vw, 56px);
  }

  .nav-actions > .nav-cta {
    display: none;
  }

  .hero-stage {
    min-height: 520px;
  }

  .studio-mock {
    width: min(100%, 520px);
  }

  .orbit-a {
    width: 500px;
    height: 500px;
    margin: -250px 0 0 -250px;
  }

  .orbit-b {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
  }
}

@media (max-width: 620px) {
  .mock-preview {
    display: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-page {
    min-height: 0;
  }

  .mock-lesson {
    padding: 12px;
  }

  .mock-code {
    min-height: 196px;
  }

  .mock-code pre {
    font-size: 8.6px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .studio-mock {
    width: min(100%, 430px);
  }

  .orbit-a {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    opacity: 0.3;
  }

  .orbit-b {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .mock-url {
    max-width: 150px;
  }

  .proof-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat-tile {
    min-height: 110px;
  }

  .final-cta h2 {
    font-size: clamp(32px, 9vw, 48px);
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-note {
    grid-column: auto;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy > span {
    font-size: 7.5px;
  }

  .nav-inner {
    gap: 8px;
  }

  .nav-actions {
    gap: 5px;
  }

  .mock-code pre {
    font-size: 7.6px;
  }

  .mock-lesson strong {
    font-size: 15px;
  }

  .accordion {
    padding: 2px 18px;
  }

  .acc-trigger {
    font-size: 13.5px;
  }
}

/* ---------- account and demo pages ---------- */

.auth-main,
.demo-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: clamp(42px, 7vw, 84px) auto 90px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.auth-copy h1,
.demo-head h1 {
  max-width: 13ch;
  margin: 18px 0;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-copy h1 em,
.demo-head h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
}

.auth-copy > p,
.demo-head > p {
  max-width: 54ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
}

.auth-points li span {
  color: var(--sky);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.auth-small {
  max-width: 46ch;
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.65;
}

.auth-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 26px;
}

.auth-card-head {
  margin-bottom: 18px;
}

.auth-card-head strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.auth-tab {
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.22s ease, color 0.22s ease;
}

.auth-tab.is-on {
  background: var(--text);
  color: var(--bg);
}

.auth-provider {
  margin-top: 18px;
}

.auth-github {
  width: 100%;
  height: 44px;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
}

.auth-github svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
  color: var(--faint);
}

.auth-field input:focus {
  border-color: var(--sky);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--sky-soft);
}

.auth-hint {
  margin: -2px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.auth-status.is-error,
.demo-action-status.is-error,
.demo-load-status.is-error {
  color: var(--red);
}

.auth-status.is-good,
.demo-action-status.is-good,
.demo-load-status.is-good {
  color: var(--sky);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.auth-secondary button,
.auth-signout {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.auth-secondary button:hover,
.auth-signout:hover {
  color: var(--text);
}

.auth-signed-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-signed-actions {
  display: grid;
  gap: 10px;
}

.auth-signed-actions .btn {
  width: 100%;
}

.auth-signout {
  margin-top: 18px;
}

/* ---------- demo page ---------- */

.demo-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.demo-head h1 {
  max-width: 14ch;
}

.demo-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 26px;
}

.demo-gate-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, var(--sky-soft), transparent 60%),
    var(--surface-solid);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 17px;
  box-shadow: inset 0 1px 0 var(--edge);
}

.demo-gate-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.demo-gate-copy > p {
  max-width: 58ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.demo-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-gate-small {
  margin: 16px 0 0 !important;
  color: var(--faint) !important;
  font-size: 11px !important;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 18px;
}

.demo-toolbar-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.demo-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 11.5px;
}

.demo-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.demo-heading h2 {
  margin: 8px 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.demo-heading p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.demo-preview-card,
.demo-code-card {
  overflow: hidden;
  border-radius: 22px;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sky);
}

.demo-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 8px var(--sky);
  animation: pulse-soft 2.8s ease-in-out infinite;
}

.demo-frame-wrap {
  padding: 12px;
}

.demo-frame {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  border: 0;
  border-radius: 14px;
  background: #08080a;
}

.demo-code {
  height: min(62vh, 560px);
  margin: 0;
  overflow: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
}

[data-theme="light"] .demo-code {
  background: rgba(12, 18, 28, 0.035);
}

.demo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.demo-action-status,
.demo-load-status {
  min-height: 1.3em;
  margin: 0;
  color: var(--faint);
  font-size: 11.5px;
}

.demo-load-status {
  margin-top: 8px;
}

.demo-note {
  max-width: 80ch;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.65;
}

/* ---------- free demo callout on the home page ---------- */

.demo-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 42px);
  border-radius: 28px;
}

.demo-callout h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.demo-callout h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sky);
}

.demo-callout p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.demo-callout-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-card {
    max-width: 560px;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-frame,
  .demo-code {
    height: 440px;
  }
}

@media (max-width: 760px) {
  .auth-main,
  .demo-main {
    width: calc(100% - 24px);
    margin-top: 34px;
    margin-bottom: 64px;
  }

  .auth-copy h1,
  .demo-head h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .demo-gate {
    grid-template-columns: 1fr;
  }

  .demo-gate-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 14px;
  }

  .demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-callout-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  .auth-points li {
    align-items: flex-start;
  }

  .demo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-actions .btn {
    width: 100%;
  }

  .demo-action-status {
    text-align: center;
  }

  .demo-callout-actions .btn {
    width: 100%;
  }
}



/* ---------- track catalog ---------- */

.track-outcome {
  max-width: 66ch;
}

.track-modules {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.track-module {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.track-module b {
  flex: none;
  width: 26px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.track-module div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.track-module strong {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}

.track-module span {
  color: var(--faint);
  font-size: 11px;
}

.track-module em {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.track-module em.is-live {
  color: var(--text);
}

.track-module em.is-next {
  color: var(--muted);
}

.track-actions {
  margin-top: 20px;
}

@media (max-width: 720px) {
  .track-module {
    flex-wrap: wrap;
    gap: 2px 14px;
  }

  .track-module em {
    margin-left: 40px;
  }
}

/* ---------- legal and pilot pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 24px;
  align-items: start;
}

.legal-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 630;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  font-weight: 640;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-card a {
  color: var(--sky);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.legal-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.legal-callout {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: 14px;
  background: var(--surface-2);
}

.legal-callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 650;
}

.legal-callout p {
  margin: 0;
  font-size: 12.5px;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: 18px;
}

.legal-toc > span {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-toc .legal-toc-cta {
  margin-top: 14px;
  border: 0;
  color: var(--sky);
}

.pilot-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.pilot-slot {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.pilot-slot.is-open {
  border-color: rgba(52, 211, 153, 0.45);
}

.pilot-slot > span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pilot-slot strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 16px;
  font-weight: 630;
}

.pilot-slot p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.pilot-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.pilot-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 640;
}

.pilot-card ul {
  margin: 0;
  padding-left: 18px;
}

.pilot-card li {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
    order: -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px;
  }

  .legal-toc > span {
    flex: 0 0 100%;
    margin-bottom: 2px;
  }

  .legal-toc a {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10.5px;
  }

  .legal-toc a.legal-toc-cta {
    margin-top: 4px;
    border: 1px solid rgba(56, 189, 248, 0.35);
  }

  .pilot-slots,
  .pilot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
