:root {
  --bg: #000;
  --fg: #f4f4f2;
  --muted: #8b8b8b;
  --dim: #555;
  --line: rgba(255, 255, 255, 0.08);
  --green: #22c55e;
  --orange: #ff8a1f;
  --panel: #0c0c0d;
  --mono: "JetBrains Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.grad {
  background: linear-gradient(90deg, var(--orange), #ffc46b 45%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dim { color: var(--dim); }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  z-index: 50;
  background: linear-gradient(#000 30%, transparent);
}
.logo { font-family: var(--display); font-weight: 700; letter-spacing: 0.22em; font-size: 17px; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 4vw;
  padding: 120px 6vw 80px;
  overflow: hidden;
}
.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 50% at 75% 55%, rgba(255, 138, 31, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 35% at 70% 70%, rgba(34, 197, 94, 0.07), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

h1 {
  margin: 22px 0 22px;
  font-family: var(--display);
  font-size: clamp(40px, 4.7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.goodbye {
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--fg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  align-items: baseline;
}
.rot { position: relative; display: inline-block; height: 1.3em; width: 8em; transition: width 0.6s cubic-bezier(.2,.7,.2,1); }
.rot .w {
  position: absolute;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.8s;
}
.rot .w.on { opacity: 1; transform: none; filter: none; }
.rot .w.out { opacity: 0; transform: translateY(-0.5em); filter: blur(8px); }
.rot s { text-decoration: none; color: var(--muted); position: relative; }
.rot s::after {
  content: "";
  position: absolute;
  left: -3%; top: 55%;
  height: 0.08em; width: 0;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.7s 0.6s cubic-bezier(.7,0,.2,1);
}
.rot .w.on s::after { width: 106%; }

.sub { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 520px; }

/* ---------------- FORM ---------------- */
.join { margin-top: 36px; scroll-margin-top: 140px; }
.fields {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 600px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.fields:focus-within { border-color: rgba(255,138,31,0.5); box-shadow: 0 0 0 4px rgba(255,138,31,0.08); }
.fields input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  font: 15px "Inter", sans-serif;
  padding: 12px 14px;
}
.fields input + input { border-left: 1px solid var(--line); }
.fields input::placeholder { color: var(--dim); }
.btn {
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 11px;
  padding: 12px 20px;
  font: 600 14px "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn.big { padding: 16px 30px; font-size: 16px; border-radius: 999px; display: inline-block; }
.note { margin-top: 12px; font-size: 13px; color: var(--dim); min-height: 1.3em; }
.note.err { color: #ff6b6b; }
.note.ok { color: var(--green); }
.join.done .fields { opacity: 0.4; pointer-events: none; }

/* ---------------- CARD ---------------- */
.card-zone { position: relative; z-index: 1; perspective: 1400px; display: grid; place-items: center; }
.card-tilt {
  position: relative;
  width: min(500px, 40vw);
  aspect-ratio: 1.586;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.halo {
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(ellipse at center, rgba(255,138,31,0.4), rgba(34,197,94,0.14) 45%, transparent 70%);
  filter: blur(55px);
  transform: translateZ(-90px);
}
.card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.3,1.3,.4,1);
}
.card.flip { transform: rotateY(180deg); }
.face {
  --sheen: 50%;
  position: absolute;
  inset: 0;
  border-radius: 5.2% / 8.2%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, #2a2a2d 0%, transparent 55%),
    linear-gradient(135deg, #1a1a1c 0%, #0b0b0c 50%, #161618 100%);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 50px 120px -20px rgba(0,0,0,0.9), 0 30px 60px -30px rgba(255,138,31,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
  container-type: inline-size;
}
.front { padding: 6.5% 7%; display: flex; flex-direction: column; justify-content: space-between; }
.back { transform: rotateY(180deg); display: grid; place-items: center; }
.lines {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 115% 120%, transparent 0 14px, rgba(255,255,255,0.025) 14px 15px);
  pointer-events: none;
}
.sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.14) 47%, rgba(255,200,150,0.09) 52%, transparent 62%);
  background-size: 250% 100%;
  background-position: var(--sheen) 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.row { position: relative; display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--display); font-weight: 700; font-size: 7.5cqw; letter-spacing: 0.16em; }
.type { font-size: 2.6cqw; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.chip {
  width: 13cqw;
  aspect-ratio: 1.3;
  border-radius: 1.6cqw;
  background: linear-gradient(135deg, #e9c98a, #a88545 55%, #d8b678);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.chip i { position: absolute; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.3); }
.chip i:nth-child(1) { top: 33%; }
.chip i:nth-child(2) { top: 66%; }
.chip i:nth-child(3) { top: 0; bottom: 0; left: 50%; width: 1px; height: auto; }
.nfc { width: 7cqw; color: rgba(255,255,255,0.55); }
.name {
  font-family: var(--mono);
  font-size: 3.8cqw;
  letter-spacing: 0.16em;
  color: #e8e8e6;
  max-width: 64%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.name.placeholder { color: #5d5d60; }
.num { font-family: var(--mono); font-size: 3cqw; letter-spacing: 0.12em; color: var(--muted); }
.back-msg { position: relative; text-align: center; display: grid; gap: 1.6cqw; padding: 0 8cqw; }
.back-msg .tick {
  width: 11cqw; height: 11cqw;
  margin: 0 auto 1cqw;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: #000;
  font-size: 5.5cqw;
  font-weight: 700;
}
.back-msg b { font-family: var(--display); font-size: 5.6cqw; font-weight: 600; letter-spacing: -0.02em; }
.back-msg small { color: var(--muted); font-size: 3.2cqw; }

/* ---------------- SECTIONS ---------------- */
section { padding: 130px 6vw; }
section h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-top: 18px;
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.tiles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px 30px;
  transition: border-color 0.3s, transform 0.3s;
}
.tile:hover { border-color: rgba(255,255,255,0.18); transform: translateY(-4px); }
.tile .n { font-family: var(--mono); font-size: 12px; color: var(--orange); letter-spacing: 0.2em; }
.tile h3 { margin: 40px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.tile.hot {
  background: radial-gradient(120% 100% at 100% 0%, rgba(255,138,31,0.14), transparent 60%), var(--panel);
  border-color: rgba(255,138,31,0.3);
}

/* ---------------- CREDIT LINE ---------------- */
.credit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
.credit-copy p:not(.eyebrow) { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 480px; }
.credit-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 60px 140px -40px rgba(255,138,31,0.18);
  max-width: 520px;
  width: 100%;
  justify-self: end;
}
.cp-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--dim);
}
.cp-avail { margin: 22px 0 16px; }
.cp-avail small { color: var(--dim); font-size: 12px; display: block; margin-bottom: 6px; }
.cp-avail b { font-family: var(--display); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cp-bar { height: 10px; border-radius: 99px; background: rgba(34,197,94,0.18); box-shadow: inset 0 0 0 1px rgba(34,197,94,0.35); overflow: hidden; }
.cp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffb35c); border-radius: 99px; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.cp-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cp-legend b { font-family: var(--mono); font-weight: 500; color: var(--fg); margin-left: 4px; }
.cp-legend .u { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; }
.feed { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); height: 236px; overflow: hidden; }
.feed li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  animation: slide 0.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide { from { opacity: 0; transform: translateY(-14px); } }
.feed .ic { width: 34px; height: 34px; border-radius: 10px; background: #18181b; display: grid; place-items: center; font-size: 15px; }
.feed .who b { display: block; font-size: 13.5px; font-weight: 500; }
.feed .who small { color: var(--dim); font-size: 11.5px; }
.feed .amt { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.cp-foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--dim); }
.cp-foot b { color: var(--fg); font-weight: 500; }

/* ---------------- FINAL ---------------- */
.final { text-align: center; padding: 150px 6vw 160px; }
.final h2 { margin: 0 auto 40px; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw 36px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { padding: 18px 20px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; }
  .hero { grid-template-columns: 1fr; padding: 110px 22px 60px; gap: 56px; }
  .card-tilt { width: min(420px, 86vw); }
  .card-zone { order: -1; }
  .fields { flex-direction: column; }
  .fields input + input { border-left: 0; border-top: 1px solid var(--line); }
  section { padding: 90px 22px; }
  .credit { grid-template-columns: 1fr; }
  .credit-panel { justify-self: stretch; }
  .tiles { grid-template-columns: 1fr; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
