:root {
  --ink: #10141c;
  --steel: #2f3744;
  --signal: #ff3b1f;
  --signal-fg: #fff8f6;
  --paper: #e7eaee;
  --font-display: "Syne", sans-serif;
  --font-sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}
.site-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-backdrop-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgb(238 241 245 / 52%), rgb(216 221 230 / 64%));
}

.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 30;
}
.site-header.is-dark {
  position: relative;
  border-bottom: 1px solid rgb(16 20 28 / 10%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-lockup { display: flex; align-items: center; gap: .65rem; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .18em;
  font-size: 1.25rem;
}
.is-light .logo, .is-light .main-nav a, .is-light .back-link { color: #fff; }
.is-dark .logo, .is-dark .main-nav a { color: var(--ink); }
.main-nav { display: none; gap: 2rem; }
.main-nav a { font-size: .875rem; font-weight: 500; opacity: .85; }
.main-nav a:hover { opacity: 1; }
@media (min-width: 768px) { .main-nav { display: flex; } }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 2rem;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.is-light .lang-btn { background: rgb(255 255 255 / 10%); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 25%); }
.is-dark .lang-btn { background: rgb(16 20 28 / 5%); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(16 20 28 / 10%); }
.lang-menu {
  position: absolute;
  left: 0;
  top: calc(100% + .4rem);
  min-width: 7.5rem;
  background: rgb(255 255 255 / 95%);
  border: 1px solid rgb(16 20 28 / 10%);
  border-radius: .4rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgb(16 20 28 / 15%);
  z-index: 50;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem .85rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}
.lang-menu a:hover { background: rgb(16 20 28 / 5%); }
.flag-img {
  width: 1.35rem;
  height: .95rem;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
  flex-shrink: 0;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: .4rem;
  font-weight: 600;
  font-size: .9rem;
  border: 0;
  cursor: pointer;
}
.btn.full { width: 100%; }
.btn-signal { background: var(--signal); color: var(--signal-fg); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 35%); }
.btn-ghost {
  background: rgb(255 255 255 / 15%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 40%);
  backdrop-filter: blur(6px);
}
.is-dark .btn-ghost { display: none; }

.hero, .program-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.program-hero { min-height: 58vh; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgb(255 59 31 / 22%), transparent 45%),
    linear-gradient(to top, #10141c, rgb(16 20 28 / 55%), rgb(16 20 28 / 25%));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 7rem 1.25rem 4rem;
  color: #fff;
}
.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .2em;
  font-size: clamp(3rem, 8vw, 6rem);
  margin: 0;
}
.hero-line {
  width: 6rem;
  height: .25rem;
  background: var(--signal);
  margin-top: .75rem;
}
.hero h1, .program-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 1.25rem 0 0;
  max-width: 48rem;
}
.lede { max-width: 36rem; color: rgb(255 255 255 / 80%); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.space-grid { display: grid; min-height: 70vh; }
@media (min-width: 1024px) { .space-grid { grid-template-columns: 1fr 1fr; } }
.space-media { min-height: 48vh; background-size: cover; background-position: center; }
.space-copy { background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 4rem 1.25rem; }
@media (min-width: 768px) { .space-copy { padding: 4rem 3rem; } }
.space-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); margin: .75rem 0; }
.space-copy p { max-width: 28rem; color: rgb(255 255 255 / 75%); line-height: 1.6; }

.eyebrow {
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 700;
  margin: 0;
}
.membership { padding: 5rem 1.25rem; }
.membership-shell, .auth-shell, .surface {
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 45%);
  backdrop-filter: blur(28px) saturate(1.35);
  box-shadow: 0 24px 60px rgb(16 20 28 / 22%), inset 0 1px 0 rgb(255 255 255 / 55%);
}
.membership-shell { max-width: 72rem; margin: 0 auto; overflow: hidden; }
.membership-intro { padding: 2rem; border-bottom: 1px solid rgb(16 20 28 / 10%); }
.membership-intro h2, .intro h1, .surface h1, .surface h2 {
  font-family: var(--font-display);
  margin: .75rem 0;
}
.nowrap { white-space: nowrap; font-size: clamp(1.4rem, 4vw, 3rem); }
.membership-intro p, .intro p, .surface p { color: var(--steel); line-height: 1.6; }
.plans { display: grid; }
@media (min-width: 768px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plans article:not(.featured) { border-top: 0; }
  .plans article + article { border-left: 1px solid rgb(16 20 28 / 10%); }
}
.plans article { padding: 2rem; display: flex; flex-direction: column; border-top: 1px solid rgb(16 20 28 / 10%); }
.plans article.featured { background: rgb(16 20 28 / 92%); color: #fff; }
.plans article.featured p { color: rgb(255 255 255 / 80%); }
.plans h3 { font-family: var(--font-display); margin: 0; }
.price { font-size: 2.25rem; font-weight: 800; margin: 1rem 0; color: var(--ink); }
.plans article.featured .price { color: var(--signal); }
.price span { font-size: 1rem; font-weight: 600; color: var(--steel); }
.plans article.featured .price span { color: rgb(255 255 255 / 70%); }
.plans .btn { margin-top: auto; }

.page-pad { padding: 4rem 1.25rem; }
.wrap { max-width: 72rem; margin: 0 auto; }
.intro, .surface { padding: 1.75rem; }
.program-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .program-grid { grid-template-columns: repeat(3, 1fr); } }
.program-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: .75rem 0;
}
.program-card h2 span { font-family: var(--font-sans); font-size: 1rem; color: var(--steel); font-weight: 600; }
.num { font-family: var(--font-display); letter-spacing: .18em; color: rgb(16 20 28 / 60%); font-weight: 700; margin: 0; }

.detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .detail-grid { grid-template-columns: 1.2fr .8fr; } }
.snapshot { background: var(--ink); color: #fff; padding: 2rem; height: fit-content; }
.snapshot .label, .meta-label { color: rgb(255 255 255 / 50%); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; }
.meta-value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: .35rem 0 1rem; }
.meta-item { color: rgb(255 255 255 / 80%); margin: .25rem 0; }
.outcomes { list-style: none; padding: 0; }
.outcomes li { border-left: 2px solid var(--signal); padding-left: 1rem; margin: .75rem 0; color: var(--steel); }
.related-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .related-grid { grid-template-columns: repeat(5, 1fr); } }
.related-grid a { border-top: 1px solid rgb(16 20 28 / 15%); padding-top: 1rem; }
.related-grid h3 { font-family: var(--font-display); margin: 0 0 .5rem; }
.related-grid span { font-family: var(--font-sans); font-size: .85rem; color: var(--steel); }

.split { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1.05fr; } }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 600; }
.stack-form input, .stack-form select, .stack-form textarea {
  height: 2.75rem;
  border: 1px solid rgb(16 20 28 / 15%);
  border-radius: .4rem;
  padding: 0 .75rem;
  font: inherit;
  background: rgb(255 255 255 / 70%);
}
.stack-form textarea { height: auto; padding: .75rem; }
.auth-shell { overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgb(16 20 28 / 10%); }
.auth-tabs button {
  height: 3rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  color: rgb(16 20 28 / 70%);
}
.auth-tabs button.is-active { background: var(--ink); color: #fff; }
.auth-body { padding: 2rem; }

.site-footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgb(16 20 28 / 10%);
}
.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-grid .brand { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: .18em; font-weight: 800; margin: 0; }
.footer-grid .muted { color: rgb(255 255 255 / 65%); max-width: 22rem; }
.footer-grid .label { color: rgb(255 255 255 / 45%); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; }
.footer-copy {
  border-top: 1px solid rgb(255 255 255 / 10%);
  text-align: center;
  color: rgb(255 255 255 / 40%);
  font-size: .75rem;
  padding: 1.25rem;
}
.back-link { color: rgb(255 255 255 / 80%); font-size: .875rem; }
