@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0B1F33;
  --night-2: #10293F;
  --line-dark: #284660;
  --fog: #F5F7FA;
  --bone: #F8FAFC;
  --graphite: #1E293B;
  --muted-dark: #A7B6C6;
  --muted-light: #475569;
  --teal: #14B8A6;
  --teal-ink: #0F766E;
  --amber: #F59E0B;
  --violet: #8B5CF6;
  --blue: #3B82F6;
  --green: #22C55E;
  --orange: #F97316;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--bone);
  background: var(--night);
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--amber); color: var(--night); padding: .5rem .9rem; font-weight: 600; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 640; letter-spacing: -0.01em; font-size: 1.0625rem; }
.brand svg { width: 30px; height: 22px; color: var(--teal); }
.langs { display: flex; gap: .25rem; font-size: .9375rem; }
.langs a { text-decoration: none; padding: .3rem .55rem; border-radius: 6px; color: var(--muted-dark); }
.langs a:hover { color: var(--bone); }
.langs a[aria-current="page"] { color: var(--bone); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-dark); }

/* Hero: the hangar */
.hero { position: relative; padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hangar {
  position: absolute; inset: 0 var(--gutter) 0 var(--gutter);
  max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto;
  pointer-events: none;
}
.hangar svg { width: 100%; height: 100%; overflow: visible; }
.hangar .tall { display: none; }
.hangar path { fill: none; stroke: var(--teal); vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hangar .r1 { stroke-width: 2; opacity: .95; }
.hangar .r2 { stroke-width: 1.25; opacity: .38; }
.hangar .floor { stroke: var(--line-dark); stroke-width: 1; opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hangar .rib { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.6,.05,.2,1) forwards; }
  .hangar .r2 { animation-delay: .15s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

.hero-inner {
  position: relative;
  padding: clamp(7rem, 16vw, 11rem) clamp(1.5rem, 9vw, 8rem) 0;
}
.tagline { margin: 0 0 1.1rem; color: var(--teal); font-weight: 560; font-size: 1rem; letter-spacing: 0; }
h1 {
  margin: 0; max-width: 17ch;
  font-size: clamp(2.35rem, 5.6vw, 4.6rem); line-height: 1.04;
  font-weight: 680; letter-spacing: -0.032em;
  text-wrap: balance;
}
.lede { margin: 1.5rem 0 0; max-width: 52ch; color: var(--muted-dark); font-size: clamp(1.075rem, 1.6vw, 1.2rem); }

/* Form */
.join { margin-top: 2.25rem; max-width: 46rem; }
.fields { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: .75rem; align-items: end; }
.field label { display: block; font-size: .875rem; font-weight: 520; color: var(--muted-dark); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; height: 3.25rem; padding: 0 .95rem;
  font: inherit; font-size: 1rem; color: var(--bone);
  background: var(--night-2); border: 1px solid var(--line-dark); border-radius: 10px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A7B6C6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input::placeholder { color: #6F8499; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.28); }
.btn {
  height: 3.25rem; padding: 0 1.4rem; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 640; white-space: nowrap;
  color: var(--night); background: var(--teal);
}
.btn:hover { background: #2DD4BF; }
.btn:active { transform: translateY(1px); }
.note { margin: .8rem 0 0; font-size: .9rem; color: var(--muted-dark); }
.note a { color: var(--bone); }
.status { margin: .8rem 0 0; font-size: .95rem; color: var(--amber); }
.status:empty { display: none; }

/* Light band */
.light { background: var(--fog); color: var(--graphite); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; font-weight: 660; letter-spacing: -0.022em; max-width: 24ch; text-wrap: balance; }
.section > .wrap > p.sub { margin: .9rem 0 0; max-width: 56ch; color: var(--muted-light); }

.courses { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid #DCE2EA; }
.course {
  display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 1.25rem;
  padding: 1.5rem 0; border-bottom: 1px solid #DCE2EA;
}
.course::before { content: ""; grid-row: 1 / span 2; border-radius: 3px; background: var(--c); }
.course h3 { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.375rem); font-weight: 620; letter-spacing: -0.012em; line-height: 1.3; }
.course p { margin: .35rem 0 0; color: var(--muted-light); max-width: 66ch; font-size: 1.025rem; }
.c-violet { --c: var(--violet); } .c-blue { --c: var(--blue); } .c-green { --c: var(--green); } .c-orange { --c: var(--orange); }

/* Levels: hangars that grow */
.levels { list-style: none; margin: 4.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.levels-h { margin-top: clamp(4rem, 9vw, 6rem); }
.level svg { width: 100%; height: auto; margin-bottom: 1rem; color: var(--teal-ink); }
.level svg path { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.level svg line { stroke: #B8C3D1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.level .n { font-variant-numeric: tabular-nums; color: var(--teal-ink); font-weight: 640; font-size: .95rem; }
.level h3 { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 640; letter-spacing: -0.01em; }
.level p { margin: .3rem 0 0; font-size: .98rem; color: var(--muted-light); }
.levels-note { margin: 2rem 0 0; font-size: .98rem; color: var(--muted-light); max-width: 64ch; }

/* Instructor */
.who { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.avatar { position: relative; width: 11rem; aspect-ratio: 1; border-radius: 50%; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; place-items: center; overflow: hidden; }
.avatar span { font-size: 2.6rem; font-weight: 600; color: var(--teal); letter-spacing: -0.02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who p { margin: 1rem 0 0; max-width: 60ch; color: var(--muted-dark); }
.who p:first-of-type { color: var(--bone); }

/* Perks */
.perks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: .9rem; max-width: 46rem; }
.perks li { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); gap: .75rem; color: var(--graphite); }
.perks svg { width: 1.25rem; height: 1.25rem; margin-top: .25rem; color: var(--teal-ink); }
.btn-dark { display: inline-flex; align-items: center; margin-top: 2rem; text-decoration: none; height: 3.25rem; padding: 0 1.4rem; border-radius: 10px; font-weight: 640; background: var(--night); color: var(--bone); }
.btn-dark:hover { background: #163453; }

/* Footer */
.foot { padding-block: 2.5rem 3rem; color: var(--muted-dark); font-size: .9rem; }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.foot p { margin: 0; }
.foot .legal { margin-top: 1.25rem; max-width: 70ch; font-size: .85rem; color: #8FA1B4; }
.foot a { color: var(--bone); }

/* Simple pages */
.page { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 6rem); max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; }
.page h2 { font-size: 1.25rem; margin-top: 2.25rem; letter-spacing: -0.01em; }
.page p { color: var(--muted-dark); max-width: 64ch; }
.page .meta { color: #8FA1B4; font-size: .95rem; margin-top: .75rem; }

@media (max-width: 52rem) {
  .fields { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
@media (max-width: 40rem) {
  .hangar { inset: 0 .5rem; }
  .hangar .wide { display: none; }
  .hangar .tall { display: block; }
  .hero-inner { padding: 6rem 1.4rem 0; }
  .who { grid-template-columns: 1fr; }
  .avatar { width: 8rem; }
  .avatar span { font-size: 2rem; }
}
