:root {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --background: #f4f1e6;
  --foreground: #16233f;
  --card: #fbf9f1;
  --card-foreground: #16233f;
  --primary: #16233f;
  --primary-foreground: #f4f1e6;
  --secondary: #a83a3a;
  --muted: #e6e1d0;
  --muted-foreground: #52596e;
  --accent: #3f6fe0;
  --gold: #3f6fe0;
  --gold-foreground: #f4f1e6;
  --plum: #16233f;
  --border: #b7bcc9;
  --radius: 0.5rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-ambient::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.55'/></svg>");
}

.page-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--foreground) 1px, transparent 1px),
    linear-gradient(90deg, var(--foreground) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.aurora-blob {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  border-radius: 9999px;
}
.aurora-blob-a { background: #16233f; }
.aurora-blob-b { background: #a83a3a; }
.aurora-blob-c { background: #3f6fe0; }

.leaf-watermark {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  opacity: 0.09;
  width: 280px;
  height: 280px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 4 L61 36 L95 36 L67 56 L78 90 L50 70 L22 90 L33 56 L5 36 L39 36 Z' fill='%2316233f'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  animation: leaf-sway 12s ease-in-out infinite;
}

@keyframes leaf-sway {
  0%, 100% { transform: rotate(var(--leaf-rot, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--leaf-rot, 0deg) + 4deg)) translateY(-8px); }
}

.sparkle {
  position: absolute;
  z-index: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: sparkle 3.2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { transform: scale(0.6); opacity: 0.15; }
  50% { transform: scale(1.2); opacity: 0.55; }
}

main, footer, header { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.card-premium {
  background: linear-gradient(180deg, var(--card), var(--card));
  color: var(--card-foreground);
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 18px 50px -28px rgba(78, 34, 15, 0.45);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .card-premium { padding: 2rem; }
}

.fade-up {
  animation: fade-up 0.45s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #10b981;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

h1, h2, .serif { font-family: var(--font-serif); }

.hero-title {
  margin: 1.25rem 0 0;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tier-shimmer {
  position: absolute;
  inset-inline: 0;
  bottom: 0.25rem;
  height: 0.5rem;
  border-radius: 2px;
  opacity: 0.7;
  background: linear-gradient(100deg, var(--gold), #8fb0f2, var(--gold));
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.sub {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.countdown {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 28rem;
  margin-inline: auto;
}
.countdown div {
  border-radius: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.65rem 0.25rem;
  text-align: center;
}
.countdown strong {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: #8fb0f2;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  padding: 1rem 1.25rem;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:hover { background: color-mix(in srgb, var(--primary) 90%, #000); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  width: auto;
  padding: 0.7rem 1rem;
}
.btn-ghost:hover { background: color-mix(in srgb, var(--muted) 50%, transparent); color: var(--foreground); }

.seats-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 11px;
}
.seats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: var(--plum);
  color: var(--primary-foreground);
  padding: 0.25rem 0.65rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tiny { font-size: 11px; color: var(--muted-foreground); margin-top: 1rem; }
.tiny s { color: color-mix(in srgb, var(--plum) 80%, transparent); }
.tiny strong { color: var(--foreground); }

.trust {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.trust-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--gold);
  color: var(--gold-foreground);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

footer.site-footer {
  margin-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
}
footer.site-footer .wrap {
  max-width: 64rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.5;
}

/* Persistent funnel header (sits above the card, never torn down on micro-interactions) */
.funnel-header {
  margin-bottom: 1rem;
}
.funnel-header .labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.progress-bar {
  height: 4px;
  border-radius: 9999px;
  background: var(--muted);
  overflow: hidden;
}
.progress-bar > i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* Card content fade transition between steps (not used for micro-interactions) */
.card-fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.card-fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.step-kicker {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0 0 0.35rem;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.step-help {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin: 0 0 1.25rem;
}

.options {
  display: grid;
  gap: 0.6rem;
}
.option {
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--card) 80%, white);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.option:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.option.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent);
}
.option strong { display: block; font-size: 0.95rem; }
.option span { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: var(--muted-foreground); }

/* 2-column option grid used by exchange (single-select) and wallets/coins (multi-select) */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.option-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--card) 85%, white);
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-box:hover { border-color: var(--gold); }
.option-box.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, var(--card));
}
.checkbox-box {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.15s ease;
}
.option-box.selected .checkbox-box {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-foreground);
}

.slider-wrap { margin: 0.5rem 0 1rem; }
.slider-value {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.range {
  width: 100%;
  accent-color: var(--gold);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: 1px solid var(--border);
  background: #fffdf5;
  border-radius: 0.375rem;
  padding: 0.85rem 0.9rem;
  outline: none;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
.phone-row {
  display: flex;
  gap: 0.5rem;
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: var(--muted);
  border-radius: 0.375rem;
  padding: 0 0.85rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.nav-row .btn { width: auto; flex: 1; }
.nav-row .btn-ghost { flex: 0 0 auto; }

.ticker-panel {
  margin-top: 1rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--card) 60%, transparent);
  padding: 0.6rem 0;
  overflow: hidden;
}
.ticker-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.4rem 0.9rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ticker-label .live-dot { background: var(--gold); }
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 1.5rem;
  animation: marquee 22s linear infinite;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.ticker-entry {
  flex: 0 0 auto;
  white-space: nowrap;
}
.ticker-entry b {
  color: var(--gold);
  font-weight: 600;
}
.ticker-dot {
  flex: 0 0 auto;
  opacity: 0.4;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Allocating / loading screen */
.allocating-star {
  display: inline-block;
  font-size: 2.25rem;
  color: var(--gold);
  animation: allocating-spin 1.6s ease-in-out infinite;
}
@keyframes allocating-spin {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  50% { transform: scale(1.18) rotate(180deg); opacity: 1; }
}
.allocation-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.allocation-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  opacity: 0.45;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.allocation-list li.done {
  opacity: 1;
  color: var(--foreground);
  font-weight: 500;
}
.check-dot {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: transparent;
  transition: all 0.25s ease;
}
.allocation-list li.done .check-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-foreground);
}

/* Eligibility invoice */
.invoice {
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--gold) 8%, var(--card));
  padding: 1rem;
  margin: 1.25rem 0;
}
.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.eligibility-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
}
.reference-box {
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--secondary) 35%, var(--card));
  border: 1px solid color-mix(in srgb, var(--secondary) 60%, transparent);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  margin: 1.25rem 0;
}
.paid {
  background: #059669;
  color: white;
  border-radius: 9999px;
  padding: 0.15rem 0.55rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.3rem 0;
}
.invoice-row.muted { color: var(--muted-foreground); }
.invoice-total {
  border-top: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent);
  margin-top: 0.5rem;
  padding-top: 0.55rem;
  font-weight: 700;
}
.badge-star {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1.5px dashed color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 0.5rem;
  padding: 1.75rem 1rem;
  text-align: center;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-box:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.upload-box.has-file {
  border-style: solid;
  border-color: var(--gold);
}
.upload-box strong { font-size: 0.95rem; }
.upload-box input { display: none; }

.error {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 0.375rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Thanks page */
.thanks-header {
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom: 1px solid var(--border);
}
.thanks-header .inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.thanks-header .star {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--gold);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.thanks-header p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.thanks-header h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}
.gold-rule {
  position: relative;
  display: inline-block;
}
.gold-rule::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -0.35rem;
  height: 2px;
  background: var(--gold);
  opacity: 0.7;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

@media (max-width: 480px) {
  .chip { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
}
