:root {
  --bg: #090817;
  --bg-2: #0d0b20;
  --panel: rgba(17, 14, 39, .72);
  --panel-2: #11102a;
  --text: #f7f3ff;
  --muted: #a39eb8;
  --line: rgba(255, 255, 255, .11);
  --orange: #ff7b18;
  --orange-2: #ff3f4f;
  --pink: #d72874;
  --purple: #6e36c8;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: var(--orange); color: #130d20; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.progress {
  position: fixed; top: 0; left: 0; width: 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, var(--orange), var(--orange-2), var(--pink));
  box-shadow: 0 0 18px rgba(255, 91, 40, .75);
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 42px; border-bottom: 1px solid transparent;
  transition: .3s ease; mix-blend-mode: normal;
}
.site-header.scrolled {
  background: rgba(9, 8, 23, .82); backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .16em; font-size: 13px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand > span > span { color: var(--orange); }
.nav { display: flex; gap: 34px; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.nav a { opacity: .7; transition: .2s; }
.nav a:hover { opacity: 1; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px; }

.hero {
  min-height: 100vh; position: relative; display: grid; align-items: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 70% 44%, rgba(89, 28, 100, .22), transparent 33%), var(--bg);
}
.hero-backdrop {
  position: absolute; inset: 0; z-index: -3;
  background-image: linear-gradient(90deg, rgba(9,8,23,.98) 0%, rgba(9,8,23,.75) 32%, rgba(9,8,23,.18) 70%, rgba(9,8,23,.62) 100%), url("../assets/bennu-hero.png");
  background-size: cover; background-position: center;
  opacity: .92; transform: scale(1.02);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-copy { width: min(630px, 90vw); margin-left: max(6vw, calc((100vw - var(--max))/2)); padding-top: 50px; }
.eyebrow { margin: 0 0 18px; color: #ff8350; font-size: 10px; font-weight: 900; letter-spacing: .34em; }
.eyebrow span { display: inline-block; width: 32px; height: 1px; vertical-align: middle; margin-right: 10px; background: currentColor; }
h1, h2 { margin: 0; font-weight: 900; letter-spacing: -.055em; line-height: .92; text-transform: uppercase; }
h1 { font-size: clamp(62px, 9vw, 126px); }
h2 { font-size: clamp(52px, 7vw, 96px); }
h1 em, h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.65); }
.hero-text { max-width: 520px; margin: 28px 0 32px; color: #c4bfd0; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 22px; border: 1px solid var(--line); font-size: 10px; font-weight: 900; letter-spacing: .16em; transition: .25s;
}
.btn-primary { background: linear-gradient(100deg, var(--orange), var(--orange-2)); color: #160c19; border-color: transparent; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 80, 35, .22); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.hero-mark { position: absolute; right: 6vw; bottom: 7vh; width: 150px; opacity: .16; filter: saturate(1.3); }
.hero-mark img { width: 100%; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 8px; letter-spacing: .3em; color: #8f899e; }
.hero-scroll span { display: inline-block; width: 1px; height: 38px; margin-left: 14px; background: linear-gradient(#fff, transparent); vertical-align: middle; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0919; }
.ticker-track { width: max-content; display: flex; gap: 30px; padding: 17px 0; animation: ticker 26s linear infinite; font-size: 11px; font-weight: 900; letter-spacing: .4em; }
.ticker-track b { color: var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 150px 0; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.section-intro { max-width: 430px; margin: 0 0 4px auto; color: var(--muted); font-size: 14px; line-height: 1.8; }

.games-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.game-card {
  position: relative; min-height: 470px; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-2); cursor: pointer; isolation: isolate; transition: .35s ease;
}
.game-card:nth-child(1), .game-card:nth-child(4), .game-card:nth-child(5) { grid-column: span 7; }
.game-card:nth-child(2), .game-card:nth-child(3), .game-card:nth-child(6), .game-card:nth-child(7) { grid-column: span 5; }
.game-art {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 68% 25%, rgba(255, 144, 40, .8), transparent 12%),
    radial-gradient(circle at 42% 65%, rgba(211, 33, 105, .6), transparent 30%),
    linear-gradient(135deg, #15102e, #090817 72%);
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s;
}
.game-art img {
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.game-card:nth-child(even) .game-art {
  background:
    radial-gradient(circle at 35% 35%, rgba(116, 55, 208, .65), transparent 22%),
    radial-gradient(circle at 75% 75%, rgba(255, 83, 35, .55), transparent 25%),
    linear-gradient(135deg, #100d27, #080713);
}
.game-card:nth-child(3n) .game-art {
  background:
    radial-gradient(circle at 72% 32%, rgba(255, 62, 82, .7), transparent 18%),
    radial-gradient(circle at 25% 72%, rgba(245, 135, 25, .55), transparent 28%),
    linear-gradient(135deg, #180e25, #080713);
}
.game-art::before {
  content: attr(data-mark); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(80px, 14vw, 190px); font-weight: 1000; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.22); transform: rotate(-9deg);
}
.game-art::after {
  content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%; right: -90px; top: -80px; box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02);
}
.game-art.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(5,4,14,.18) 50%, #080713 100%);
}
.game-card:hover { transform: translateY(-7px); border-color: rgba(255,120,60,.45); }
.game-card:hover .game-art { transform: scale(1.08); filter: saturate(1.18); }
.game-info { position: absolute; inset: auto 28px 26px; }
.game-number { color: #ff8658; font-size: 9px; font-weight: 900; letter-spacing: .3em; }
.game-title { margin: 7px 0 10px; font-size: 32px; line-height: 1; font-weight: 900; text-transform: uppercase; }
.game-desc { margin: 0; max-width: 470px; color: #aaa4b9; font-size: 12px; line-height: 1.6; }
.game-tag { position: absolute; top: 22px; left: 22px; border: 1px solid rgba(255,255,255,.16); padding: 7px 9px; font-size: 8px; letter-spacing: .2em; color: #c9c3d1; }

.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; border-top: 1px solid var(--line); }
.manifesto-orbit { position: relative; min-height: 600px; display: grid; place-items: center; }
.manifesto-orbit img { position: relative; width: 42%; z-index: 2; filter: drop-shadow(0 0 35px rgba(255, 78, 40, .25)); }
.orbit { position: absolute; border: 1px solid rgba(255, 101, 44, .18); border-radius: 50%; transform: rotate(-18deg); }
.orbit-1 { width: 390px; height: 210px; }
.orbit-2 { width: 530px; height: 280px; transform: rotate(24deg); }
.orbit-3 { width: 650px; height: 350px; transform: rotate(-37deg); }
.manifesto-copy p:not(.eyebrow) { color: #c1bdcb; line-height: 1.85; font-size: 14px; max-width: 510px; }
.manifesto-copy .muted { color: #777286; }
.text-link { display: inline-flex; gap: 20px; margin-top: 12px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.text-link span { color: var(--orange); transition: .2s; }
.text-link:hover span { transform: translateX(6px); }

.featured-card {
  position: relative; min-height: 560px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 50%, rgba(255,72,38,.18), transparent 25%),
    linear-gradient(120deg, #120e29, #0b0919);
  display: flex; align-items: center; padding: 70px;
}
.featured-card::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 45px 45px; }
.featured-copy { position: relative; z-index: 2; width: 55%; }
.featured-copy > p:not(.eyebrow) { max-width: 500px; color: var(--muted); line-height: 1.8; font-size: 13px; margin: 24px 0; }
.featured-phoenix { position: absolute; width: 520px; right: 1%; top: 50%; transform: translateY(-50%); opacity: .35; }
.featured-phoenix img { width: 100%; filter: drop-shadow(0 0 40px rgba(255, 78, 40, .28)); }
.signup { display: flex; width: min(520px, 100%); border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.signup input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; color: #fff; background: transparent; border: 0; outline: 0; }
.signup button { border: 0; padding: 0 20px; color: #160c19; background: linear-gradient(100deg, var(--orange), var(--orange-2)); font-size: 9px; font-weight: 900; letter-spacing: .15em; cursor: pointer; }
#formMessage { display: block; min-height: 16px; margin-top: 10px; color: #ff9b68; font-size: 10px; }

.contact { padding-bottom: 100px; }
.contact-inner { border-top: 1px solid var(--line); padding-top: 80px; text-align: center; }
.contact-inner > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 26px auto 20px; }
.email { display: inline-block; font-size: clamp(22px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 6px; transition: .2s; }
.email:hover { color: var(--orange); border-color: var(--orange); }
.socials { display: flex; justify-content: center; gap: 26px; margin-top: 34px; }
.socials a { color: #8f899d; font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.socials a:hover { color: #fff; }

.footer { min-height: 100px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 42px; color: #777286; }
.footer .brand { color: #fff; }
.footer .brand img { width: 28px; height: 28px; }
.footer p { margin: 0; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.back-top { justify-self: end; font-size: 9px; font-weight: 900; letter-spacing: .2em; color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.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; }

@media (max-width: 900px) {
  .site-header { padding: 0 22px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 78px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 22px 20px; background: rgba(9,8,23,.96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .3s; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .hero-backdrop { background-position: 63% center; }
  .hero-copy { margin-left: 6vw; }
  .section-head { grid-template-columns: 1fr; gap: 25px; }
  .section-intro { margin: 0; }
  .game-card, .game-card:nth-child(1), .game-card:nth-child(2), .game-card:nth-child(3), .game-card:nth-child(4), .game-card:nth-child(5), .game-card:nth-child(6) { grid-column: span 6; min-height: 390px; }
  .manifesto { grid-template-columns: 1fr; gap: 30px; }
  .manifesto-orbit { min-height: 460px; }
  .featured-card { padding: 48px; }
  .featured-copy { width: 70%; }
  .featured-phoenix { width: 380px; right: -60px; opacity: .24; }
}

@media (max-width: 600px) {
  .brand { font-size: 11px; }
  .hero { min-height: 760px; }
  .hero-backdrop { background-position: 68% center; opacity: .6; }
  .hero-copy { margin: 0 22px; padding-top: 70px; }
  h1 { font-size: clamp(54px, 16vw, 78px); }
  .hero-text { font-size: 14px; }
  .hero-mark { display: none; }
  .section { width: min(100% - 32px, var(--max)); padding: 100px 0; }
  h2 { font-size: clamp(48px, 15vw, 68px); }
  .game-card, .game-card:nth-child(n) { grid-column: span 12; min-height: 410px; }
  .game-title { font-size: 28px; }
  .manifesto-orbit { min-height: 350px; overflow: hidden; }
  .orbit-1 { width: 260px; height: 150px; }
  .orbit-2 { width: 350px; height: 200px; }
  .orbit-3 { width: 430px; height: 240px; }
  .featured-card { min-height: 580px; padding: 34px 24px; align-items: flex-start; }
  .featured-copy { width: 100%; }
  .featured-phoenix { width: 420px; top: 62%; right: -100px; }
  .signup { flex-direction: column; border: 0; background: transparent; gap: 8px; }
  .signup input, .signup button { border: 1px solid var(--line); width: 100%; }
  .signup input { background: rgba(0,0,0,.2); }
  .signup button { height: 52px; }
  .footer { grid-template-columns: 1fr auto; gap: 16px; padding: 22px; }
  .footer p { grid-column: 1 / -1; grid-row: 2; }
  .socials { gap: 14px; flex-wrap: wrap; }
}
