:root {
  --bg: #07090f;
  --bg-raised: #11161f;
  --gold: #FFD447;
  --gold-glow: rgba(255,212,71,0.45);
  --teal: #5BE5D8;
  --teal-glow: rgba(91,229,216,0.45);
  --orange: #FF8A3D;
  --orange-glow: rgba(255,138,61,0.45);
  --red: #FF4D4D;
  --purple: #C084FC;
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.65);
  --text-tertiary: rgba(255,255,255,0.42);
  --border: rgba(255,255,255,0.08);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --hero-block-h: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  background: var(--bg); color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "cv11" 1, "ss01" 1, "ss03" 1;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

/* ════════ NAV ════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 60px; height: 72px;
  background: rgba(10,12,20,0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 38px; color: var(--gold); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 3px;
}
.nav-brand img { height: 40px; width: auto; display: block; }
.nav-brand span { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: none; letter-spacing: 0.3px; transition: color 0.2s;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--text-primary); }
/* ── Join Now CTA (gold pill) ── */
.nav-btn.primary {
  padding: 6px 14px; border-radius: 9999px;
  border: 1px solid rgba(255,212,71,0.45);
  background: rgba(255,212,71,0.06);
  color: var(--gold);
  cursor: pointer;
  font-family: inherit; font-weight: 600; font-style: normal;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.nav-btn.primary:hover { background: rgba(255,212,71,0.14); border-color: rgba(255,212,71,0.7); }

/* ════════ PANEL BASE ════════ */
.panel {
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}
.panel-inner {
  width: 100%; max-width: 1320px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px;
  align-items: stretch;
}
.panel-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; order: 2; }
.panel-visual { order: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 16px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--teal);
  background: rgba(91,229,216,0.08);
  border: 1px solid rgba(91,229,216,0.32);
  padding: 10px 20px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.eyebrow .dot {
  flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 0 0 rgba(255,92,92,0.55), 0 0 10px rgba(255,92,92,0.85);
  animation: dotRadarPing 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
@keyframes dotRadarPing {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,59,0.55), 0 0 10px rgba(255,59,59,0.85); transform: scale(1);    opacity: 1; }
  60%  { box-shadow: 0 0 0 14px rgba(255,59,59,0),  0 0 14px rgba(255,59,59,0.55); transform: scale(1.08); opacity: 0.95; }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0),     0 0 10px rgba(255,59,59,0.85); transform: scale(1);    opacity: 1; }
}

/* Scroll-to-top — fixed bottom-right teal pill */
.scroll-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--teal);
  background: rgba(91,229,216,0.10);
  border: 1px solid rgba(91,229,216,0.42);
  padding: 10px 16px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.45), 0 0 18px rgba(91,229,216,0.20);
  cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: rgba(91,229,216,0.18); border-color: rgba(91,229,216,0.7); }
.scroll-top svg { width: 12px; height: 12px; display: block; }

.panel-h1 {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(54px, 6.6vw, 104px); line-height: 0.94; text-transform: uppercase;
  letter-spacing: -2px; margin-bottom: 20px;
}
.panel-sub {
  font-size: clamp(17px, 1.25vw, 21px);
  color: var(--text-secondary); line-height: 1.55; max-width: 540px;
  margin-bottom: 20px;
}
.panel-bullets {
  list-style: none; padding: 0;
}
.panel-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.panel-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(91,229,216,0.7);
  transform: rotate(45deg);
}
.cta-row { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; justify-content: flex-start; padding: 0 10px; }
.cta-dl {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.8px;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.cta-dl strong {
  color: var(--gold); font-weight: 800; font-style: italic;
  letter-spacing: 1.2px;
}
.cta-dl strong em { color: var(--text-primary); font-style: italic; }
.cta-qr {
  position: relative;
  width: 88px; height: 88px;
  background: transparent;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1.5px rgba(91,229,216,0.7);
  border-radius: 6px;
  outline: none;
}
/* Outline 10px away from QR */
.cta-qr::after {
  content: ''; position: absolute;
  inset: -10px;
  border: 1.5px solid rgba(255,255,255,0.95);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: none;
}
/* Hide the inner box-shadow since the offset outline is the real frame */
.cta-qr { box-shadow: none; }
.cta-qr img {
  width: 100%; height: 100%;
  display: block;
  /* Black QR modules become bright white; white background is knocked out (transparent on dark bg) */
  filter: invert(1) brightness(1.6) contrast(1.4);
  mix-blend-mode: screen;
  opacity: 1;
}
/* Diagonal teal glimmer sweep across the whole QR */
.cta-qr::before {
  content: ''; position: absolute; inset: -10px; pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(115deg,
    transparent 0%,
    transparent 38%,
    rgba(91,229,216,0.45) 47%,
    rgba(91,229,216,0.95) 50%,
    rgba(91,229,216,0.45) 53%,
    transparent 62%,
    transparent 100%);
  background-size: 260% 260%;
  background-position: 160% 160%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: tronFlash 7s ease-in-out 5s infinite;
  z-index: 3;
}
@keyframes tronFlash {
  0%, 65%   { background-position: 160% 160%; opacity: 0; }
  70%       { opacity: 1; }
  85%       { background-position: -60% -60%; opacity: 1; }
  90%, 100% { background-position: -60% -60%; opacity: 0; }
}
/* Stagger flashes per-QR so they don't sync */
.cta-row .cta-qr:nth-of-type(1)::before { animation-duration: 6.4s; animation-delay: 5.2s; }
.cta-secondary {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 17px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cta-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }

/* Transparent yellow "Join now" CTA — same vibe as nav .nav-btn, scaled for hero */
.btn-join {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 32px;
  padding: 14px 32px;
  font-family: inherit; font-weight: 600; font-style: normal;
  font-size: 16px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--gold);
  background: rgba(255,212,71,0.06);
  border: 1px solid rgba(255,212,71,0.45);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-join:hover {
  background: rgba(255,212,71,0.14);
  border-color: rgba(255,212,71,0.7);
  transform: translateY(-1px);
}

/* ── Hero waitlist CTA (gold solid + glow pulse, mirrors landing.html) ── */
.cta-waitlist {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  margin-top: 8px;
  width: 100%;
}
.waitlist-row {
  display: flex; flex-direction: row; align-items: stretch; flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.waitlist-field { display: contents; }
.waitlist-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,212,71,0.32);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.waitlist-input::placeholder { color: var(--text-tertiary); font-style: italic; }
.waitlist-input:hover { border-color: rgba(255,212,71,0.5); }
.waitlist-input:focus {
  border-color: var(--gold);
  background: rgba(255,212,71,0.06);
  box-shadow: 0 0 0 3px rgba(255,212,71,0.18);
}
.waitlist-input:invalid,
.waitlist-input:user-invalid {
  border-color: rgba(255,212,71,0.32);
  background: rgba(255,255,255,0.04);
  box-shadow: none;
  outline: none;
}
.btn-hero {
  padding: 18px 48px; border-radius: 12px; border: none;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: 20px; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1;
}
.btn-hero.primary {
  background: var(--gold);
  color: #0A0C14;
  border: 1px solid var(--gold);
}
.btn-hero.primary:hover {
  background: #fff;
  border-color: #fff;
}
.waitlist-note {
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-tertiary);
}
.waitlist-note strong { color: var(--gold); font-weight: 800; }

.accent-gold { color: var(--gold); }
.accent-teal { color: var(--teal); }
.no-glow { text-shadow: none !important; filter: none !important; }
.accent-orange { color: var(--orange); }
.accent-red { color: var(--red); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════ PANEL VISUALS ════════ */
.panel-visual { position: relative; min-height: 580px; display: grid; place-items: center; }

/* ── Reusable card shadow / shimmer ── */
.grail {
  border-radius: 13px;
  box-shadow:
    0 28px 56px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.06);
  background: #1a1f2c;
  position: relative;
}

/* ── Hero 1 — Floating grail collage ── */
.layout-1 {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.2;
}
.layout-1 .l1-cards {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 5%; row-gap: 5%;
  padding: 7% 12%;
  z-index: 1;
}
.layout-1 .l1-cards .slot {
  position: relative;
  width: 100%; aspect-ratio: 0.72;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  transform-origin: center;
}
.layout-1 .l1-cards .slot:hover {
  box-shadow: 0 24px 50px rgba(0,0,0,0.7);
}
.layout-1 .l1-cards .slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 1.6s ease;
}
.layout-1 .l1-cards .slot img:nth-child(2) { opacity: 0; }

/* per-card unique tilts */
.layout-1 .l1-cards .slot:nth-child(1) { transform: rotate(-5deg) translateY(6px); }
.layout-1 .l1-cards .slot:nth-child(2) { transform: rotate(2deg) translateY(-4px); }
.layout-1 .l1-cards .slot:nth-child(3) { transform: rotate(-1deg) translateY(10px); }
.layout-1 .l1-cards .slot:nth-child(4) { transform: rotate(4deg) translateY(-8px); }
.layout-1 .l1-cards .slot:nth-child(5) { transform: rotate(-3deg) translateY(8px); }
.layout-1 .l1-cards .slot:nth-child(6) { transform: rotate(3deg) translateY(-6px); }
.layout-1 .l1-cards .slot:hover { transform: scale(1.04) rotate(0deg) !important; }

/* hero floating accent cards — base shared styles */
.float-card-l, .float-card-r {
  position: absolute; z-index: 3;
  width: 30%;
  aspect-ratio: 0.72;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.float-card-l:hover, .float-card-r:hover {
  box-shadow: 0 26px 56px rgba(0,0,0,0.75);
}
.float-card-l img, .float-card-r img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 1.6s ease;
}
.float-card-l img:nth-child(2),
.float-card-r img:nth-child(2) { opacity: 0; }

/* LEFT (top-left) overlay — tune size / position / padding here */
.layout-1 .float-card-l {
  top: -4%; left: -5%;
  transform: rotate(-11deg);
}
.layout-1 .float-card-l:hover { transform: scale(1.04) rotate(-11deg); }
.layout-1 .float-card-l img { padding: 0; }

/* RIGHT (bottom-right) overlay — tune size / position / padding here */
.layout-1 .float-card-r {
  bottom: -6%; right: -5%;
  transform: rotate(9deg);
}
.layout-1 .float-card-r:hover { transform: scale(1.04) rotate(9deg); }
.layout-1 .float-card-r {
  box-shadow: none;
}
.layout-1 .float-card-r img {
  padding: 0;
  transform: translateX(25%);
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.65));
}
.layout-1 .float-card-r:hover { box-shadow: none; }
.layout-1 .float-card-r:hover img {
  filter: drop-shadow(0 26px 36px rgba(0,0,0,0.75));
}

/* glow halo behind layout-1 */
.layout-1::before {
  content: ''; position: absolute; inset: -10%; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(255,212,71,0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 70% 70%, rgba(91,229,216,0.18), transparent 70%);
  filter: blur(40px);
}


/* ════════ PANEL BACKGROUNDS ════════ */
.panel-1 {
  background:
    radial-gradient(ellipse at 22% 28%, rgba(255,212,71,0.16), transparent 60%),
    radial-gradient(ellipse at 78% 72%, rgba(91,229,216,0.13), transparent 60%),
    var(--bg);
}
.panel-1 .panel-inner { grid-template-columns: 1fr 1fr; gap: 200px; }
.panel-1 .eyebrow { font-weight: 300; letter-spacing: 1.6px; }
.panel-1 .panel-visual { min-width: 0; }
/* ════════ FOOTER ════════ */
.footer {
  background: #04060a;
  padding: 0 60px 20px;
  border-top: 1px solid var(--border);
}
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  color: var(--text-tertiary); font-size: 13px; font-weight: 500;
}
.footer-bottom a { color: var(--text-secondary); margin: 0 10px; }
.footer-bottom a:hover { color: var(--text-primary); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  color: var(--text-secondary);
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.footer-socials a i {
  font-family: "Font Awesome 6 Brands";
  font-style: normal; font-weight: 400;
  font-size: 16px; line-height: 1;
}
.footer-socials a:hover { background: rgba(255,212,71,0.15); color: var(--gold); }

@media (max-width: 1200px) {
  .nav { padding: 0 40px; }
  .panel { padding: 100px 40px 60px; }
  .panel-1 .panel-inner { gap: 60px; }
  .layout-1 .float-card-l,
  .layout-1 .float-card-r { display: none; }
  .btn-hero { padding: 14px 32px; font-size: 18px; }
  .waitlist-input { flex: 1 1 160px; }
  .footer { padding: 0 40px 20px; }
}

@media (max-width: 920px) {
  .nav { padding: 14px 18px; }
  .nav-link { display: none; }
  .panel { padding: 110px 22px 70px; min-height: auto; }
  .panel-inner,
  .panel-1 .panel-inner { grid-template-columns: 1fr; gap: 50px; }
  .panel-h1 { font-size: clamp(60px, 13.5vw, 90px); }
  .panel-1 .eyebrow { transform: none; }
  .panel-content { min-height: auto; align-items: center; text-align: center; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .layout-1 { aspect-ratio: 1 / 0.5; left: calc(100% - 66vw); }
  .panel-visual { min-height: 200px; }
  .layout-1 .l1-cards { padding: 4% 12%; row-gap: 2%; justify-content: center; align-content: center; }
  .layout-1 .l1-cards .slot:nth-child(2) { justify-self: end; }
  .layout-1 .float-card-l {
    display: block;
    top: 5%;
    left: 5%;
    transform: rotate(-11deg);
  }
  .waitlist-note { text-align: center; }
  .layout-1 .l1-cards .slot:nth-child(1) { display: none; }
  .layout-1 .l1-cards .slot:nth-child(n+3) { display: none; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; }
  .footer { padding: 0 22px 16px; }
}

@media (max-width: 767px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-input { flex: none; }
  .layout-1 .l1-cards .slot:nth-child(1) { transform: rotate(-5deg) translateY(6px) scale(0.67); }
}
