/* ═══════════════════════════════════════════════════
   SKILLCHAIN WAITLIST — built on the real SkillChain
   design system (same tokens as the main landing page)
   Font: Space Grotesk (display) + Space Mono (data)
   Palette: warm off-white · near-black · #E85C00
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg:           #F3EDE6;
  --bg-card:      #EDE6DC;
  --bg-white:     #FFFFFF;
  --bg-dark:      #100E0B;
  --bg-dark2:     #181410;

  --ink:          #0F0D0A;
  --ink-2:        #2E2A24;
  --ink-muted:    #7A7060;
  --ink-dim:      #A09080;

  --orange:       #E85C00;
  --orange-dark:  #C84E00;
  --orange-light: rgba(232,92,0,0.10);
  --orange-glow:  rgba(232,92,0,0.22);

  --green:        #22c55e;
  --amber:        #f59e0b;

  --border:       #DDD5C8;
  --border-dark:  rgba(255,255,255,0.08);

  --font:         'Space Grotesk', system-ui, sans-serif;
  --mono:         'Space Mono', monospace;

  --r-s:  6px;
  --r-m:  12px;
  --r-l:  18px;
  --r-xl: 22px;

  --nav-h: 60px;
  --eout:  cubic-bezier(.16,1,.3,1);
  --ease:  cubic-bezier(.22,.68,0,1.15);
  --t:     0.18s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Buttons (same system as main site) ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font); font-weight: 600; font-size: 0.88rem;
  padding: 0.62rem 1.2rem; border-radius: var(--r-m);
  border: 2px solid transparent;
  transition: background var(--t), border-color var(--t), color var(--t),
              transform .15s var(--ease), box-shadow var(--t);
  white-space: nowrap; cursor: pointer; letter-spacing: -0.01em;
}
.btn--orange       { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--orange:hover  { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,92,0,.32); }
.btn--orange:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--outline       { background: transparent; color: var(--ink); border-color: rgba(15,13,10,0.22); }
.btn--outline:hover  { border-color: var(--orange); color: var(--orange); }
.btn--lg  { padding: 0.75rem 1.45rem; font-size: 0.93rem; width: 100%; justify-content: center; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(243,237,230,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h); padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem;
  color: var(--ink); letter-spacing: -0.02em;
}
.nav-logo__mark { width: 26px; height: 26px; flex-shrink: 0; }
.nav-badge {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  color: var(--orange); border: 1.5px dashed var(--orange-glow);
  padding: 0.28rem 0.7rem; border-radius: 999px;
}

main { max-width: 1280px; margin: 0 auto; }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
  padding: 4.5rem 2rem 4rem;
}

.hero__bg-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(15,13,10,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,13,10,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, black 20%, transparent 90%);
}

.hero__left, .hero__right { position: relative; z-index: 1; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.05em;
  color: var(--ink-muted); background: rgba(15,13,10,0.05);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.28rem 0.85rem; margin-bottom: 1.5rem;
  opacity: 0; animation: hero-up 0.5s 0.05s ease forwards;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: 1.35rem;
  opacity: 0; animation: hero-up 0.58s 0.12s ease forwards;
}
.hero__accent { color: var(--orange); font-style: italic; }

.hero__sub {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--ink-muted); max-width: 440px;
  line-height: 1.78; margin-bottom: 2.25rem;
  opacity: 0; animation: hero-up 0.58s 0.2s ease forwards;
}

.hero__actions {
  margin-bottom: 2.5rem; max-width: 300px;
  opacity: 0; animation: hero-up 0.58s 0.28s ease forwards;
}

.hero__trust {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  opacity: 0; animation: hero-up 0.58s 0.36s ease forwards;
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-val { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.hero__trust-lbl { font-size: 0.68rem; color: var(--ink-muted); }
.hero__trust-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 2px; }

/* Right: waitlist ticker + queue preview cards */
.hero__right {
  display: flex; align-items: center; justify-content: flex-end;
  opacity: 0; animation: hero-up 0.65s 0.22s var(--eout) forwards;
}
.hero__card-stack { position: relative; width: 100%; max-width: 390px; }

.join-ticker {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.32rem 0.85rem 0.32rem 0.55rem;
  margin-bottom: 0.6rem; width: fit-content;
}
.join-ticker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  animation: ticker-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.join-ticker__label { font-size: 0.68rem; color: var(--ink-muted); font-family: var(--mono); letter-spacing: 0.02em; }
@keyframes ticker-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

.queue-list { display: flex; flex-direction: column; gap: 0.55rem; }

.queue-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 0.72rem 1rem;
  transition: border-color 0.22s ease, transform 0.22s var(--eout);
  opacity: 0; transform: translateX(16px);
}
.queue-card.card-in { opacity: 1; transform: translateX(0); }
.queue-card:hover { border-color: var(--ink-dim); transform: translateX(-3px); }

.queue-card__avatar { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.qc-a { background: linear-gradient(135deg,#c8b8a8,#b8a898); }
.qc-b { background: linear-gradient(135deg,#a8b8c8,#98a8b8); }
.qc-c { background: linear-gradient(135deg,#b8a8c8,#a898b8); }

.queue-card__info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.queue-card__name  { font-weight: 600; font-size: 0.83rem; color: var(--ink); letter-spacing: -0.01em; }
.queue-card__trade { font-size: 0.72rem; color: var(--ink-muted); }
.queue-card__meta  { display: flex; align-items: center; gap: 5px; font-size: 0.68rem; color: var(--ink-muted); margin-top: 1px; }

.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }

.queue-card__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.queue-card__pos { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--orange); letter-spacing: -0.01em; }
.queue-card__pos span { font-size: 0.6rem; font-weight: 400; color: var(--ink-dim); }

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden; background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.85rem 0; white-space: nowrap; user-select: none;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem;
  animation: marquee 30s linear infinite;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.38);
}
.mq-sep { color: var(--orange); font-size: 0.5rem; opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   HOW IT WORKS
═══════════════════════════════ */
.how-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.how-section__inner { max-width: 820px; margin: 0 auto; }
.how-head { text-align: center; margin-bottom: 3.5rem; }
.eyebrow {
  display: block; font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--orange); margin-bottom: 0.75rem;
}
.how-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.08; color: var(--ink); margin-bottom: 0.85rem;
}
.how-sub {
  font-size: 0.9rem; color: var(--ink-muted);
  line-height: 1.76; max-width: 420px; margin: 0 auto;
}

.how-flow { display: flex; flex-direction: column; position: relative; }
.how-step {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 0 1.25rem; position: relative; padding-bottom: 2rem;
}
.how-step:last-child { padding-bottom: 0; }
.how-step__connector { position: absolute; left: 17px; top: 36px; width: 2px; bottom: 0; background: var(--border); }
.how-step__num-wrap { display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; flex-shrink: 0; position: relative; z-index: 1; }
.how-step__num {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-white); border: 2px solid var(--border);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--ink-muted);
  flex-shrink: 0; transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.how-step.step-active .how-step__num { background: var(--orange); color: #fff; border-color: var(--orange); }
.how-step__body { padding-top: 6px; }
.how-step__body strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.how-step__body p { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.7; }
.how-step.step-active .how-step__body strong { color: var(--orange); }

/* ═══════════════════════════════
   JOIN — the signature moment
═══════════════════════════════ */
.join-section { background: var(--bg); padding: 6rem 2rem 6.5rem; }
.join-section__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start;
}

.join-left__eyebrow { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 0.75rem; display: block; }
.join-left h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.08; color: var(--ink); margin-bottom: 1rem;
}
.join-left p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.78; max-width: 380px; margin-bottom: 2rem; }

.join-left__list { display: flex; flex-direction: column; gap: 0.9rem; }
.join-left__row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.83rem; color: var(--ink-2); }
.join-left__row svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); }

/* The form card */
.join-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 1.9rem 1.8rem;
}

.role-toggle { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.role-btn {
  flex: 1; padding: 0.85rem 0.5rem; border-radius: var(--r-m);
  border: 1.5px solid var(--border); background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.role-btn__title { font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink); }
.role-btn__sub { font-size: 0.7rem; color: var(--ink-muted); }
.role-btn:hover { border-color: var(--ink-dim); }
.role-btn.active { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); background: var(--orange-light); }

.field { margin-bottom: 0.9rem; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: 0.4rem;
}
.field label .req { color: var(--orange); }
.field input {
  width: 100%; padding: 0.72rem 0.85rem;
  border: 1.5px solid var(--border); border-radius: var(--r-m);
  font-family: var(--font); font-size: 0.9rem; color: var(--ink);
  background: var(--bg);
  transition: border-color 0.16s ease;
}
.field input:focus { border-color: var(--orange); }
.field input::placeholder { color: var(--ink-dim); }

.form-msg { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.72rem; min-height: 16px; }
.form-msg.success { color: #1a8f4c; }
.form-msg.error { color: var(--orange-dark); }

/* Queue ticket — reveals on success */
.ticket {
  position: absolute; inset: 0;
  background: var(--bg-white);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  opacity: 0; pointer-events: none; transform: scale(0.96);
  transition: opacity 0.32s var(--eout), transform 0.32s var(--eout);
}
.ticket.show { opacity: 1; pointer-events: all; transform: scale(1); }
.ticket__pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16); margin-bottom: 1rem;
  animation: ticker-pulse 2.4s ease-in-out infinite;
}
.ticket__eyebrow { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--ink-muted); margin-bottom: 0.6rem; }
.ticket__number { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; color: var(--orange); letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.6rem; }
.ticket__note { font-size: 0.85rem; color: var(--ink-muted); max-width: 280px; line-height: 1.6; }

/* ═══════════════════════════════
   DARK CTA
═══════════════════════════════ */
.cta-dark { position: relative; background: var(--bg-dark); overflow: hidden; padding: 6rem 2rem; text-align: center; }
.cta-dark::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 50%, transparent 100%);
  opacity: 0.35;
}
.cta-dark__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-dark__title { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; color: #fff; margin-bottom: 1rem; }
.cta-dark__accent { color: var(--orange); font-style: italic; }
.cta-dark__sub { font-size: 0.9rem; color: rgba(255,255,255,0.44); max-width: 380px; margin: 0 auto 2.2rem; line-height: 1.78; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer { background: var(--bg-dark2); border-top: 1px solid var(--border-dark); padding: 3rem 2rem 1.5rem; text-align: center; }
.footer p { font-size: 0.78rem; color: rgba(255,255,255,0.36); font-family: var(--mono); }

@keyframes hero-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════
   MOBILE ≤ 768px
═══════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }
  .hero { grid-template-columns: 1fr; padding: 2.75rem 1.25rem 3rem; gap: 2.25rem; }
  .hero__sub { max-width: 100%; }
  .hero__actions { max-width: 100%; }
  .hero__right { justify-content: center; }
  .hero__card-stack { max-width: 100%; }

  .how-section { padding: 4rem 1.25rem; }

  .join-section { padding: 4rem 1.25rem 4.5rem; }
  .join-section__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .join-left p { max-width: 100%; }
  .join-card { padding: 1.6rem 1.3rem 1.4rem; }
  .role-toggle { flex-direction: column; }

  .cta-dark { padding: 4.5rem 1.25rem; }
}

@media (max-width: 420px) {
  .hero__trust { gap: 0.75rem; }
  .ticket__number { font-size: 2.1rem; }
}