:root {
  --bg: #0b0d10;
  --ink: #f2efe8;
  --muted: #9aa3ad;
  --line: rgba(242, 239, 232, 0.12);
  --amber: #f0b429;
  --teal: #2ec4b6;
  --asphalt: #151920;
  --card: #12161c;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
}

a { color: inherit; text-decoration: none; }

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 4vw;
  background: linear-gradient(to bottom, rgba(11,13,16,0.92), rgba(11,13,16,0));
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--muted);
}

nav a:hover { color: var(--amber); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11,13,16,0.2) 0%, rgba(11,13,16,0.85) 55%, rgba(11,13,16,0.95) 100%),
    linear-gradient(to top, #0b0d10 8%, transparent 42%),
    radial-gradient(ellipse at 70% 30%, rgba(240,180,41,0.28), transparent 45%),
    radial-gradient(ellipse at 20% 70%, rgba(46,196,182,0.18), transparent 40%),
    linear-gradient(160deg, #1c2430 0%, #0b0d10 55%, #101820 100%);
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: auto 0 18% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.55), transparent);
  animation: sweep 5s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 4vw 12vh;
  max-width: 920px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 1.1rem;
  background: linear-gradient(120deg, #fff 20%, var(--amber) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 0.85rem;
  animation: rise 1s ease both 0.08s;
}

.lede {
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 1.6rem;
  animation: rise 1.05s ease both 0.14s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1.1s ease both 0.2s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.primary { background: var(--amber); color: #15120a; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.strip > div {
  background: var(--asphalt);
  padding: 1.4rem 4vw;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.strip span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
}

.strip small { color: var(--muted); text-transform: lowercase; }

.block {
  padding: 5.5rem 4vw;
}

.block-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.block-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.block-head p { color: var(--muted); }

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.job {
  padding: 1.35rem 1.2rem 1.4rem;
  background: linear-gradient(180deg, #171c24, #10141a);
  border-top: 2px solid var(--teal);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.job:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
}

.job h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
}

.job p { color: var(--muted); font-size: 0.95rem; }
.job .pay {
  margin-top: 0.9rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fortune-block {
  background:
    radial-gradient(circle at 12% 0%, rgba(255,210,60,0.16), transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(192,132,252,0.1), transparent 40%),
    var(--asphalt);
}

.fortune-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
}

.fortune-main, .fortune-side {
  padding: 1.6rem;
  background: rgba(11,13,16,0.58);
  border: 1px solid var(--line);
}

.fortune-kicker {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.fortune-main h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}

.fortune-main p { color: var(--muted); max-width: 52ch; }

.fortune-points {
  margin-top: 1.1rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.fortune-points li { margin: 0.4rem 0; }
.fortune-points code {
  color: var(--amber);
  font-weight: 700;
}

.fortune-side h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.odds { list-style: none; }
.odds li {
  display: grid;
  grid-template-columns: 92px auto 1fr;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.odds b { color: var(--ink); font-variant-numeric: tabular-nums; }

.odds .bar {
  display: block;
  height: 7px;
  width: var(--p);
  min-width: 6px;
  max-width: 92px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.odds .bar.jackpot {
  background: linear-gradient(90deg, #ffd23c, #fb7185);
}

.fortune-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.race-block {
  background:
    radial-gradient(circle at 85% 20%, rgba(240,180,41,0.12), transparent 35%),
    var(--asphalt);
}

.race-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.race-main, .race-side {
  padding: 1.6rem;
  background: rgba(11,13,16,0.55);
  border: 1px solid var(--line);
}

.race-main h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}

.race-main p { color: var(--muted); max-width: 48ch; }

.race-side dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.9rem;
}

.race-side dd {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 0.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.filters button {
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.filters button.active,
.filters button:hover {
  color: #15120a;
  background: var(--amber);
  box-shadow: none;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.feature {
  padding: 1.1rem 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.feature .cat {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.feature p { color: var(--muted); font-size: 0.93rem; }

.connect-card {
  max-width: 560px;
  padding: 1.6rem;
  background: linear-gradient(145deg, #171c24, #0f1318);
  border: 1px solid var(--line);
}

.connect-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.connect-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.connect-card dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.note {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.launcher-hint {
  margin-top: 1rem;
  margin-bottom: 0;
}

.launcher-hint a {
  color: var(--amber);
  text-decoration: underline;
}

.connect-card .cta-row {
  margin-top: 0.25rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 4vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

footer #footerBrand {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

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

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes sweep {
  0%, 100% { opacity: 0.25; transform: translateX(-8%); }
  50% { opacity: 0.9; transform: translateX(8%); }
}

@media (max-width: 820px) {
  nav { display: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .race-card, .fortune-layout { grid-template-columns: 1fr; }
  .odds li { grid-template-columns: 64px 1fr; }
  .connect-card dl { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8vh; }
}
