/* ════════════════════════════════════════════════
   THE TRADE ROOM
   Layout: fixed video hero → parallax form reveal
   ════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --gold:        #c9a84c;
  --gold-bright: #e4c97e;
  --gold-soft:   rgba(201, 168, 76, 0.15);
  --gold-line:   rgba(201, 168, 76, 0.25);
  --text:        #f0ece4;
  --text-muted:  rgba(240, 236, 228, 0.58);
  --text-dim:    rgba(240, 236, 228, 0.32);
  --panel-bg:    rgba(8, 8, 13, 0.55);
  --radius-lg:   22px;
  --radius-sm:   10px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: #05050a;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Grain ─── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 200;
}

/* ─── Orbs ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}
.orb-1 {
  width: 500px; height: 500px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(201,168,76,0.12), transparent 70%);
  animation: drift1 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 380px; height: 380px;
  bottom: 0; right: -100px;
  background: radial-gradient(circle, rgba(180,140,60,0.08), transparent 70%);
  animation: drift2 24s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(50px, 70px); } }
@keyframes drift2 { to { transform: translate(-40px, -50px); } }

/* ─── Video hero background — fixed so it stays while scrolling ─── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.video-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.shade {
  position: absolute;
  inset: 0;
  /* Starts dense — JS fades this out as user scrolls to form */
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(201,168,76,0.06), transparent),
    linear-gradient(170deg, rgba(5,5,10,0.96) 0%, rgba(5,5,10,0.88) 50%, rgba(5,5,10,0.94) 100%);
  transition: opacity 0.1s linear;
}

/* ─── Urgency bar ─── */
.urgency-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px 10px;
  background: rgba(5, 5, 8, 0.82);
  border-bottom: 1px solid var(--gold-line);
  backdrop-filter: blur(20px);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  animation: slideDown 0.6s var(--ease-out) both;
}
.urgency-bar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.spots-progress-track {
  width: min(320px, 80vw);
  height: 3px;
  background: rgba(201, 168, 76, 0.18);
  border-radius: 999px;
  overflow: hidden;
}
.spots-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #e4c97e);
  border-radius: 999px;
  transition: width 1s ease;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.45);
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.urgency-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
  animation: pulse 2.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

/* ══ SECTION 1 — Full-screen hero ══════════════════════════════════ */
.hero-screen {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px; /* clear urgency bar */
}

.hero-content {
  text-align: center;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: 680px;
  animation: fadeUp 0.9s var(--ease-out) 0.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Typography ─── */
h1, h2, h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 18px;
}
h1 em, h2 em {
  font-style: normal;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  padding: 4px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
}

.subline {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 36px;
}
.subline em { color: var(--gold-bright); font-style: normal; font-weight: 600; }
.subline strong { color: var(--text); font-weight: 600; }

/* ─── Scroll hook CTA ─── */
.scroll-hook {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.scroll-hook-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(130deg, #e4c97e 0%, #c9a84c 60%, #a8872c 100%);
  color: #120f04;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(201,168,76,0.3), 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.scroll-hook-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.scroll-hook:hover .scroll-hook-label {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201,168,76,0.38);
}

/* Animated down chevron */
.scroll-hook-arrow {
  display: block;
  width: 20px; height: 20px;
  border-right: 2px solid rgba(201,168,76,0.5);
  border-bottom: 2px solid rgba(201,168,76,0.5);
  transform: rotate(45deg);
  animation: bounce 1.8s ease infinite;
  margin-top: -4px;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.5; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 1;   }
}

/* ══ SECTION 2 — Parallax form reveal ══════════════════════════════ */
.signup-section {
  position: relative;
  z-index: 2;
  /* sit on top of the fixed video */
  /* No background — video bleeds through, shade has faded by the time we're here */
  background: transparent;
  padding: 12vh clamp(16px, 8vw, 100px) 16vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parallax is driven by JS translating this wrapper */
.signup-inner {
  width: 100%;
  max-width: 600px;
  will-change: transform;
}

/* ─── Panel ─── */
.panel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 13, 0.72);
  border: 1px solid var(--gold-line);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(201,168,76,0.18) inset;
  backdrop-filter: blur(14px) saturate(1.1);
  overflow: hidden;
}
/* top shimmer */
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: 0.5;
}
/* corner glow */
.panel::after {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.07), transparent 65%);
  pointer-events: none;
}

.panel-inner {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.confirm-panel .panel-inner {
  align-items: center;
  text-align: center;
}

/* ─── Form ─── */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
input, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,168,76,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  outline: none;
  appearance: none;
}
input::placeholder { color: var(--text-dim); }
input.field-error, select.field-error {
  border-color: rgba(240, 100, 100, 0.7);
  background: rgba(240, 100, 100, 0.05);
  box-shadow: 0 0 0 3px rgba(240, 100, 100, 0.1);
}
input:focus, select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
select option { background: #0d0d14; color: var(--text); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 36px; cursor: pointer; }
.select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 0.78rem;
}

/* ─── CTA button ─── */
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(130deg, #e4c97e 0%, #c9a84c 60%, #a8872c 100%);
  color: #120f04;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-shadow: 0 8px 28px rgba(201,168,76,0.28), 0 2px 6px rgba(0,0,0,0.4);
}
.primary-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(201,168,76,0.36);
}
.primary-cta:active { transform: translateY(0); }
.primary-cta.full-width { width: 100%; justify-content: center; margin-top: 4px; }
.cta-arrow { transition: transform 0.2s var(--ease-out)); }
.primary-cta:hover .cta-arrow { transform: translateX(4px); }

/* ─── Status ─── */
.status {
  min-height: 1.2em;
  margin-top: 6px;
  font-size: 0.88rem;
  text-align: center;
}
.status.error   { color: #f0a0a0; }
.status.success { color: #a0d4a8; }

/* ─── Value list inline (no box) ─── */
.value-list-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.val-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.val-item svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.85;
}

/* ─── Confirmation card — same dark glass as form panel ─── */
.confirm-card {
  width: 100%;
  max-width: 520px;
}
.confirm-card .panel-inner {
  align-items: center;
  text-align: center;
}

.confirm-icon {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
  animation: spinIn 0.8s var(--ease-out) both;
}
@keyframes spinIn {
  from { transform: rotate(-90deg) scale(0.4); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 4px 0 26px;
  width: min(100%, 380px);
  text-align: left;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.step-num {
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  width: 22px;
  padding-top: 2px;
}
.step-item > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.step-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}
.step-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.step-link:hover { color: #fff; }

.confirm-cta {
  display: inline-flex;
  text-decoration: none;
  margin-bottom: 22px;
}

.final-line {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* ─── Carousel ─── */
.carousel-viewport {
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.58s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}
.carousel-slide[aria-hidden="true"] {
  pointer-events: none;
  visibility: hidden;
}
.carousel-slide[aria-hidden="false"] {
  visibility: visible;
}

/* ─── Panel content fade-in on entry ─── */
.carousel-slide[aria-hidden="false"] .panel-inner > *,
.carousel-slide[aria-hidden="false"] .confirm-card .panel-inner > * {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s var(--ease-out) forwards;
}
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(1) { animation-delay: 0.04s; }
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(2) { animation-delay: 0.12s; }
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(3) { animation-delay: 0.20s; }
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(4) { animation-delay: 0.28s; }
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(5) { animation-delay: 0.34s; }
.carousel-slide[aria-hidden="false"] .panel-inner > *:nth-child(6) { animation-delay: 0.40s; }

.carousel-slide[aria-hidden="true"] .panel-inner > *,
.carousel-slide[aria-hidden="true"] .confirm-card .panel-inner > * {
  opacity: 0;
  animation: none;
}

/* Scroll-reveal for the whole signup section */
.signup-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.signup-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .panel-inner { padding: 26px 20px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .urgency-bar { font-size: 0.58rem; letter-spacing: 0.14em; }
  .signup-section { padding: 10vh 16px 14vh; }
}