@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #f6f7f8;
  --muted: #9097a3;
  --night: #0e1014;
  --night-soft: #14171d;
  --panel: #1b1f26;
  --green: #75ef24;
  --green-hot: #93ff42;
  --purple: #a753ff;
  --blue: #23a8ff;
  --line: rgba(255, 255, 255, .11);
  --display: "Archivo Black", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 8px; color: #000; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 82px; display: flex; align-items: center; justify-content: space-between; width: min(1320px, calc(100% - 64px)); margin: auto; transition: height .25s ease, background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { height: 68px; width: 100%; padding-inline: max(32px, calc((100% - 1320px) / 2)); border-bottom: 1px solid var(--line); background: rgba(14, 16, 20, .88); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .17em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; clip-path: polygon(12% 0, 88% 0, 100% 78%, 50% 100%, 0 78%); color: #111418; background: var(--green); font-size: 12px; font-weight: 1000; letter-spacing: -.08em; }
.main-nav { display: flex; align-items: center; gap: 34px; color: #c0c5cc; font-size: 13px; font-weight: 700; }
.main-nav a { text-decoration: none; transition: color .18s ease; }
.main-nav a:hover { color: #fff; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; color: #10130e; background: var(--green); box-shadow: 0 14px 42px rgba(117,239,36,.17), inset 0 1px rgba(255,255,255,.5); font-size: 14px; font-weight: 900; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--green-hot); box-shadow: 0 18px 50px rgba(117,239,36,.27); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.button-small { min-height: 42px; padding-inline: 18px; border-radius: 9px; color: #0e110c !important; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 900px; height: 100svh; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(390px, .82fr); align-items: center; gap: 50px; width: min(1320px, calc(100% - 64px)); margin: auto; padding: 118px 6% 80px; }
.hero::before { content: ""; position: fixed; z-index: -3; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.hero::after { content: ""; position: absolute; z-index: -2; width: 640px; height: 640px; right: 2%; top: 18%; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.015), 0 0 0 180px rgba(255,255,255,.012); }
.hero-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(80px); opacity: .26; }
.hero-glow-one { width: 430px; height: 360px; right: 4%; top: 22%; background: var(--green); }
.hero-glow-two { width: 440px; height: 340px; right: 28%; bottom: -15%; background: var(--purple); }
.hero-copy { z-index: 2; max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; }
h1 { margin-bottom: 25px; font-size: clamp(55px, 6.1vw, 91px); line-height: .95; letter-spacing: -.055em; }
h1 strong, h2 strong { color: var(--green); font-weight: inherit; }
h1 strong { display: inline-block; text-shadow: 0 0 45px rgba(117,239,36,.12); }
.hero-intro { max-width: 555px; margin-bottom: 32px; color: #a9afb8; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.play-icon { font-size: 12px; }
.text-link { display: inline-flex; gap: 9px; color: #d8dbe0; font-size: 13px; font-weight: 800; text-decoration: none; }
.text-link span { color: var(--green); }
.platform-note { margin: 20px 0 0 4px; color: #656c76; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.hero-product { position: relative; align-self: end; justify-self: center; width: min(34vw, 450px); height: calc(100% - 10px); min-height: 700px; display: grid; place-items: end center; }
.phone { position: relative; z-index: 3; width: min(27vw, 355px); height: auto; padding: 9px; border: 2px solid #3b424d; border-radius: 48px 48px 0 0; background: #090b0e; box-shadow: 0 20px 90px rgba(0,0,0,.7), inset 0 0 0 1px #090b0e; transform: rotate(2.5deg); transform-origin: bottom center; }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.13), transparent 19% 72%, rgba(255,255,255,.06)); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1195 / 2600; object-fit: contain; border-radius: 38px 38px 0 0; }
.phone-speaker { position: absolute; z-index: 3; left: 50%; top: 20px; width: 38%; height: 24px; border-radius: 16px; background: #07090b; transform: translateX(-50%); }
.phone-shadow { position: absolute; z-index: 1; left: 50%; bottom: -15px; width: 135%; height: 50px; border-radius: 50%; background: rgba(0,0,0,.85); filter: blur(14px); transform: translateX(-50%); }
.floating-card { position: absolute; z-index: 6; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 9px; min-width: 134px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(25,29,35,.76); box-shadow: 0 15px 35px rgba(0,0,0,.35); backdrop-filter: blur(14px); }
.floating-card span { grid-row: 1 / 3; color: var(--purple); font-size: 23px; }
.floating-card b { font-size: 18px; line-height: 1; }
.floating-card small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.card-gems { top: 26%; left: -13%; animation: float 4s ease-in-out infinite; }
.card-win { top: 48%; right: -18%; animation: float 4.5s ease-in-out -2s infinite; }
.card-win span { color: var(--green); }
.crown { position: absolute; z-index: 2; color: rgba(117,239,36,.12); font-size: 150px; transform: rotate(-18deg); }
.crown-left { left: -55%; top: 17%; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
.scroll-cue { position: absolute; left: 0; bottom: 36px; display: flex; align-items: center; gap: 10px; color: #646a73; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-90deg); transform-origin: left bottom; }
.scroll-cue span { width: 33px; height: 1px; background: #646a73; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 36px 0 90px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: center; justify-content: center; gap: 19px; min-height: 74px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat > b { color: var(--green); font-family: var(--display); font-size: 28px; }
.stat span { display: flex; flex-direction: column; gap: 5px; color: #6f7680; font-size: 10px; }
.stat strong { color: #e8eaed; font-size: 11px; letter-spacing: .12em; }

.intro-section { width: min(1180px, calc(100% - 64px)); margin: auto; padding: 115px 0 140px; }
.section-label { margin-bottom: 42px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.intro-copy { display: grid; grid-template-columns: 1.3fr .65fr; gap: 70px; align-items: end; margin-bottom: 72px; }
h2 { margin-bottom: 0; font-size: clamp(43px, 5vw, 72px); line-height: .98; letter-spacing: -.05em; }
h2 em { color: #69707a; font-style: normal; }
.intro-copy > p { margin: 0 0 5px; color: #9299a3; font-size: 15px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { position: relative; min-height: 310px; padding: 39px 40px 25px 0; border-right: 1px solid var(--line); }
.feature + .feature { padding-left: 40px; }
.feature:last-child { border-right: 0; }
.feature > span { position: absolute; right: 22px; top: 27px; color: #40454d; font-family: var(--display); font-size: 11px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 48px; border: 1px solid rgba(117,239,36,.25); border-radius: 13px; background: rgba(117,239,36,.06); font-size: 23px; }
.feature h3 { margin-bottom: 13px; font-size: 20px; letter-spacing: -.03em; }
.feature p { max-width: 280px; color: #7c838d; font-size: 13px; line-height: 1.7; }

.games-section { padding: 120px 0 145px; background: #0a0c0f; }
.games-heading { width: min(1180px, calc(100% - 64px)); margin: 0 auto 57px; text-align: center; }
.games-heading .eyebrow { justify-content: center; }
.games-heading h2 strong { display: block; }
.game-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: min(1180px, calc(100% - 64px)); margin: auto; }
.game-card { position: relative; min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: #171a20; }
.game-art { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.piggy .game-art { background-image: url("assets/piggy-cross.png"); }
.birdie .game-art { background-image: url("assets/birdie.png"); }
.game-card:hover .game-art { transform: scale(1.045); filter: saturate(1.1); }
.game-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,10,12,.98) 0%, rgba(8,10,12,.78) 33%, transparent 68%), linear-gradient(120deg, rgba(0,0,0,.32), transparent 50%); }
.game-info { position: absolute; inset: auto 40px 38px; }
.game-number { position: absolute; right: 0; bottom: 0; color: rgba(255,255,255,.25); font-family: var(--display); font-size: 15px; }
.game-info p { margin-bottom: 8px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.game-info h3 { margin-bottom: 9px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.055em; }
.game-description { display: block; max-width: 340px; margin-bottom: 24px; color: #9da3ac; font-size: 13px; line-height: 1.55; }
.game-info a { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.game-info a b { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #10130e; background: var(--green); font-size: 14px; }

.download-section { position: relative; min-height: 730px; display: grid; place-items: center; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(117,239,36,.13), transparent 35%), #111418; }
.download-section::before { content: "DUEL KING"; position: absolute; left: 50%; top: 50%; color: rgba(255,255,255,.018); font-family: var(--display); font-size: 17vw; line-height: .8; white-space: nowrap; transform: translate(-50%, -50%); }
.download-ring { position: absolute; width: 600px; aspect-ratio: 1; border: 1px solid rgba(117,239,36,.15); border-radius: 50%; box-shadow: 0 0 0 90px rgba(117,239,36,.025), 0 0 0 180px rgba(117,239,36,.012); }
.download-copy { position: relative; z-index: 2; }
.download-mark { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 30px; clip-path: polygon(12% 0, 88% 0, 100% 78%, 50% 100%, 0 78%); color: #111418; background: var(--green); font-family: var(--display); font-size: 19px; letter-spacing: -.08em; }
.download-copy .eyebrow { justify-content: center; }
.download-copy > p:not(.eyebrow) { margin: 24px 0 30px; color: #9299a3; }
.store-row { display: flex; justify-content: center; gap: 12px; }
.store-badge { min-width: 175px; display: grid; grid-template-columns: 36px auto; grid-template-rows: auto auto; align-items: center; padding: 12px 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; text-align: left; background: rgba(7,9,11,.45); }
.store-badge > b { grid-row: 1 / 3; font-size: 21px; }
.store-badge small { color: #8e959e; font-size: 7px; font-weight: 700; }
.store-badge strong { font-size: 15px; line-height: 1.1; }

footer { width: min(1180px, calc(100% - 64px)); margin: auto; padding: 64px 0 42px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; padding-bottom: 48px; }
.footer-top > p { margin: 0; color: #686f78; font-size: 12px; }
.footer-top nav { display: flex; gap: 28px; color: #9aa0a8; font-size: 11px; font-weight: 700; }
.footer-top nav a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: #656c76; font-size: 10px; line-height: 1.65; }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { max-width: 770px; }
.footer-bottom p:last-child { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header { width: calc(100% - 40px); }
  .hero { min-height: 840px; width: calc(100% - 40px); padding-inline: 20px; grid-template-columns: 1fr 360px; }
  .hero-product { width: 340px; }
  .phone { width: 290px; }
  h1 { font-size: clamp(50px, 7vw, 68px); }
  .intro-copy { grid-template-columns: 1fr; gap: 28px; }
  .game-card { min-height: 570px; }
}

@media (max-width: 760px) {
  .site-header { height: 68px; }
  .site-header.is-scrolled { padding-inline: 20px; }
  .menu-toggle { position: relative; z-index: 3; width: 42px; height: 42px; display: block; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(20,23,29,.8); }
  .menu-toggle span { position: absolute; left: 11px; width: 18px; height: 2px; background: #fff; transition: transform .2s ease, top .2s ease; }
  .menu-toggle span:first-child { top: 15px; }
  .menu-toggle span:last-child { top: 24px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; background: rgba(10,12,15,.97); font-size: 22px; transition: opacity .2s ease, visibility .2s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav .button { font-size: 14px; }
  .hero { height: auto; min-height: 1040px; display: flex; flex-direction: column; gap: 40px; width: calc(100% - 32px); padding: 120px 10px 0; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { justify-content: center; }
  h1 { font-size: clamp(46px, 13vw, 66px); }
  .hero-intro { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 20px; }
  .hero-product { align-self: center; width: 320px; min-height: 570px; height: 570px; }
  .phone { width: 275px; }
  .card-gems { left: -5%; }
  .card-win { right: -5%; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr; width: calc(100% - 40px); padding-bottom: 55px; }
  .stat { justify-content: flex-start; padding-left: 20%; border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-section { width: calc(100% - 40px); padding: 85px 0 100px; }
  .intro-copy { text-align: center; }
  .section-label { text-align: center; }
  h2 { font-size: clamp(39px, 11vw, 58px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature + .feature { min-height: auto; padding: 32px 15px; border-right: 0; border-bottom: 1px solid var(--line); text-align: center; }
  .feature-icon { margin: 0 auto 25px; }
  .feature p { margin-inline: auto; }
  .games-section { padding: 90px 0; }
  .games-heading, .game-showcase { width: calc(100% - 32px); }
  .game-showcase { grid-template-columns: 1fr; }
  .game-card { min-height: 590px; }
  .download-section { min-height: 650px; padding-inline: 20px; }
  .download-ring { width: 420px; }
  .store-row { flex-direction: column; align-items: center; }
  footer { width: calc(100% - 40px); }
  .footer-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-top nav { flex-wrap: wrap; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 18px; text-align: center; }
  .footer-bottom p:last-child { white-space: normal; }
}

@media (max-width: 430px) {
  .brand { font-size: 12px; }
  .hero { min-height: 1010px; }
  .hero-product { width: 290px; }
  .phone { width: 255px; }
  .floating-card { min-width: 115px; padding: 10px 12px; }
  .card-gems { left: -2%; top: 24%; }
  .card-win { right: -2%; }
  .game-card { min-height: 530px; }
  .game-info { inset: auto 25px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
