@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.ttf") format("truetype-variations"),
       url("fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #171b25;
  --line: #242a37;
  --text: #e9edf5;
  --muted: #8b93a7;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------- background */

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
}
.aurora i:nth-child(1) {
  width: 520px; height: 520px; top: -160px; left: -90px;
  background: #6366f1;
  animation: float1 18s ease-in-out infinite;
}
.aurora i:nth-child(2) {
  width: 440px; height: 440px; top: 6%; right: -120px;
  background: #8b5cf6;
  animation: float2 22s ease-in-out infinite;
}
.aurora i:nth-child(3) {
  width: 600px; height: 600px; bottom: -260px; left: 30%;
  background: #4f46e5;
  opacity: .22;
  animation: float1 26s ease-in-out infinite reverse;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,50px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,40px) scale(1.08); } }

/* ----------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, .7);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px;
  display: block; flex: none;
  border-radius: 10px;
  filter: drop-shadow(0 3px 12px rgba(99, 102, 241, .4));
  animation: markIn .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes markIn {
  from { opacity: 0; transform: rotate(-14deg) scale(.7); }
  to   { opacity: 1; transform: none; }
}
.brand-title { font-weight: 600; font-size: 15px; }

.btn-ghost {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5px;
  transition: .15s;
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- hero */

main { max-width: 1180px; margin: 0 auto; padding: 0 30px; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
  padding: 80px 0 90px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
}
.grad {
  background: linear-gradient(110deg, #818cf8, #c084fc 45%, #818cf8);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.hero p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 48ch; margin: 0; }

.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; align-items: flex-start; }
.cta-note { font-size: 12.5px; color: var(--muted); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 34px -12px rgba(99,102,241,.95);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-accent svg { width: 18px; height: 18px; transition: transform .18s; }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 40px -12px rgba(99,102,241,1); }
.btn-accent:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------ hero art */

.hero-art { display: flex; justify-content: center; }

.stack-3d {
  width: 100%;
  max-width: 460px;
  perspective: 1200px;
  perspective-origin: 50% 42%;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-14px) rotate(-.4deg); } }

.ticket-stack {
  position: relative;
  width: 100%;
  height: 190px;
  transform-style: preserve-3d;
}

.ticket {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid #262c3b;
  background: linear-gradient(150deg, #1b2030, #12151d);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.95);
  transform-origin: 50% 55%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition:
    transform 950ms cubic-bezier(.22, .68, .24, 1),
    opacity 950ms cubic-bezier(.22, .68, .24, 1);
}
/* depth does the stacking — no z-index anywhere, so nothing can ever pop */
.ticket.pos1 { transform: translate3d(0, 0, 0) rotate(0deg);          opacity: 1;   }
.ticket.pos2 { transform: translate3d(16px, 15px, -70px) rotate(2.4deg);  opacity: .62; }
.ticket.pos3 { transform: translate3d(30px, 30px, -145px) rotate(4.6deg); opacity: .34; }

/* the exit path is generated and sampled in landing.js (Web Animations)
   so the motion is one continuous curve instead of eased segments */
.ticket.to-back { transition: none; }

.tk-body {
  display: flex;
  height: 100%;
  transition: opacity 260ms ease;
  /* per-pass theme, swapped from landing.js on every cycle */
  --tk-a: #6366f1;
  --tk-b: #a855f7;
  --tk-light: #c7d2fe;
}
.tk-body.out { opacity: 0; }

.tk-left { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-bar {
  width: 78px; height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, var(--tk-a), var(--tk-b));
  box-shadow: 0 0 18px -4px var(--tk-a);
  transition: background 500ms ease, box-shadow 500ms ease;
}
.tk-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  border: 1px solid var(--tk-a);
  background: color-mix(in srgb, var(--tk-a) 16%, transparent);
  color: var(--tk-light);
  font-size: 8.5px; font-weight: 700; letter-spacing: .15em;
  white-space: nowrap;
  transition: border-color 500ms ease, background 500ms ease, color 500ms ease;
}
.tk-ico { display: inline-flex; }
.tk-ico svg { width: 13px; height: 13px; display: block; }
.tk-row { display: flex; gap: 10px; align-items: center; }
.tk-lbl { width: 42px; height: 6px; border-radius: 3px; background: #2b3244; }
.tk-val { width: 96px; height: 6px; border-radius: 3px; background: #384156; }
.tk-val.short { width: 60px; }

.tk-name { margin-top: auto; }
.tk-name small { display: block; font-size: 8.5px; letter-spacing: .16em; color: var(--muted); margin-bottom: 5px; }
.tk-name b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .03em;
  background: linear-gradient(120deg, var(--tk-light), var(--tk-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
}

.tk-perf {
  width: 0;
  border-left: 2px dashed #2f374a;
  margin: 16px 0;
}

.tk-right { width: 150px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tk-qr {
  width: 96px; height: 96px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 2px;
  padding: 6px;
  border-radius: 8px;
  background: #0d1017;
  border: 1px solid #262c3b;
}
.tk-qr i { border-radius: 1.5px; background: transparent; }
.tk-qr i.on { background: var(--tk-light); animation: mod-pop .4s ease both; }
@keyframes mod-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.tk-seat { width: 70px; height: 6px; border-radius: 3px; background: #2b3244; }

/* --------------------------------------------------------------- steps */

.steps { padding: 20px 0 70px; text-align: center; }
.steps h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -.02em; }
.steps .sub { color: var(--muted); margin: 0 0 44px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}

.step {
  position: relative;
  padding: 18px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(23,27,37,.9), rgba(18,21,29,.85));
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(22px);
  animation: rise .7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--i) * .13s + .1s);
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: #3b4460; transform: translateY(-4px); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.step .num {
  position: absolute;
  top: 16px; right: 16px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px; font-weight: 700; color: #fff;
}
.step h3 { margin: 14px 0 7px; font-size: 16px; }
.step p { margin: 0; font-size: 13.2px; line-height: 1.6; color: var(--muted); }

.art {
  border-radius: 12px;
  background: #0d1017;
  border: 1px solid #1e2430;
  overflow: hidden;
}
.art svg { width: 100%; height: auto; display: block; }

/* step art animations */
.frame { stroke: #303a52; stroke-width: 2; }
.box { stroke: #3b4460; stroke-width: 2; }
.grid-l { stroke: #262d3e; stroke-width: 1.5; }
.head { fill: #4c5473; stroke: none; }

.slide-up { animation: slideUp 3.4s ease-in-out infinite; }
@keyframes slideUp {
  0%, 12% { transform: translateY(34px); opacity: 0; }
  32%, 78% { transform: translateY(0); opacity: 1; }
  96%, 100% { transform: translateY(34px); opacity: 0; }
}
.arrow { stroke: var(--accent); animation: arrowUp 3.4s ease-in-out infinite; }
@keyframes arrowUp {
  0%, 10% { opacity: 1; transform: translateY(0); }
  30%, 100% { opacity: 0; transform: translateY(-14px); }
}

.cell { fill: #5b6486; stroke: none; opacity: 0; animation: cellIn 3.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes cellIn {
  0%, 8% { opacity: 0; transform: translateX(-10px); }
  24%, 82% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(-10px); }
}

.type-line { fill: #a5b4fc; stroke: none; animation: typeW 3.2s ease-in-out infinite; }
@keyframes typeW {
  0%, 6% { width: 0; }
  46%, 80% { width: 52px; }
  96%, 100% { width: 0; }
}
.name-box { stroke: var(--accent); stroke-dasharray: 4 4; animation: dash 8s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -80; } }
.mod { fill: #a5b4fc; opacity: 0; animation: modIn 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes modIn {
  0%, 14% { opacity: 0; transform: scale(.3); transform-origin: center; }
  34%, 84% { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.3); }
}
.cursor-g rect { fill: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.pass { fill: #1c2233; stroke: #46507a; stroke-width: 2; animation: drop 2.6s cubic-bezier(.5,0,.6,1) infinite; animation-delay: var(--d); }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-16px) scale(.92); }
  22% { opacity: 1; transform: translateY(0) scale(1); }
  62% { opacity: 1; transform: translateY(46px) scale(.8); }
  70%, 100% { opacity: 0; transform: translateY(46px) scale(.8); }
}
.zip { stroke: #4c5473; stroke-width: 2; fill: #12151d; }
.zip-tab { fill: #6366f1; stroke: none; }
.dl { stroke: var(--accent); animation: dlPulse 2.6s ease-in-out infinite; }
@keyframes dlPulse { 0%,100% { opacity: .25; transform: translateY(-3px); } 45% { opacity: 1; transform: translateY(3px); } }

.closing { margin-top: 48px; display: flex; justify-content: center; }
.big { padding: 15px 30px; font-size: 16px; }

/* -------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: 22px 30px 28px; }
.credit {
  display: flex; align-items: center; justify-content: center;
  min-height: 20px; font-size: 13px; letter-spacing: .06em;
  color: var(--muted); user-select: none; white-space: pre;
}
.credit .strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.credit .caret {
  display: inline-block; width: 2px; height: 14px; margin-left: 3px; border-radius: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* --------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 60px; }
  .hero-art { order: -1; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  main { padding: 0 18px; }
  .step-grid { grid-template-columns: 1fr; }
  .ticket-stack { height: 170px; }
  .tk-right { width: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .step { opacity: 1; transform: none; }
}
