:root {
  color-scheme: dark;
  --bg: #151416;
  --plum: #261628;
  --plum-deep: #1c101f;
  --navy: #0d2548;
  --navy-bright: #15345f;
  --gold: #e6bd61;
  --gold-border: #c68d19;
  --cream: #f5f0e4;
  --muted: #b9b0b8;
  --cyan: #0a6773;
  --green: #17644c;
  --red: #81172c;
  --line: rgba(230, 189, 97, 0.26);
  --shell: min(1160px, calc(100% - 40px));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(230, 189, 97, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 189, 97, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.section-shell, .site-header, .site-footer { width: var(--shell); margin-inline: auto; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .footer-brand img { width: 34px; height: 46px; object-fit: contain; filter: sepia(1) saturate(1.25) brightness(0.95); }
.brand span, .footer-brand span { color: var(--gold); font-family: var(--font-sans); font-size: 1.05rem; font-weight: 750; letter-spacing: 0.01em; }

.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--gold); }
.site-header nav a[aria-current="page"] { color: var(--gold); }
.site-header .nav-download { padding: 9px 16px; border: 1px solid var(--gold-border); color: var(--gold); }

.hero { min-height: 710px; display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 72px; padding-block: 80px 96px; }

.eyebrow { margin: 0 0 18px; color: var(--gold); font-family: var(--font-sans); font-size: 0.86rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 750; }
h1 { max-width: 670px; margin-bottom: 26px; font-size: clamp(3rem, 6.4vw, 6.2rem); letter-spacing: -0.045em; line-height: 1.02; }
h1 em { color: var(--gold); font-style: normal; }
.hero-lede { max-width: 600px; margin-bottom: 30px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-button {
  min-width: 176px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 15px;
  border: 1px solid var(--gold-border);
  background: var(--navy);
  box-shadow: 4px 4px 0 var(--plum);
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.store-button:hover { transform: translate(-2px, -2px); background: var(--navy-bright); box-shadow: 6px 6px 0 var(--plum); }
.store-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.store-button span:last-child { display: grid; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.1; }
.store-button small { margin-bottom: 4px; color: var(--muted); font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0; }
.store-symbol { width: 25px; height: 29px; display: grid; place-items: center; color: var(--cream); font-size: 1.8rem; line-height: 1; }
.play-symbol { width: 0; height: 0; margin-inline: 5px 4px; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 22px solid var(--cream); }
.platform-note { margin: 16px 0 0; color: #7f777e; font-size: 0.78rem; }

.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.hero-screen { position: relative; z-index: 2; width: min(410px, 86%); filter: drop-shadow(0 32px 38px rgba(0, 0, 0, 0.52)); }
.pixel-frame { position: absolute; inset: 5% 2% 4% 7%; z-index: 0; border: 1px solid var(--gold-border); background: var(--plum-deep); box-shadow: 18px 18px 0 var(--navy); transform: rotate(3deg); }
.screen-label { position: absolute; top: 6%; left: 1%; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 11px; border: 1px solid var(--gold-border); background: var(--plum); color: var(--gold); font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.screen-label span { width: 7px; height: 7px; background: #53dc8b; box-shadow: 0 0 0 3px rgba(83, 220, 139, 0.12); }
.hero-chip { position: absolute; z-index: 4; padding: 10px 13px; border: 1px solid var(--gold-border); background: var(--navy); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; box-shadow: 4px 4px 0 var(--plum); }
.chip-top { top: 23%; right: -1%; }
.chip-bottom { bottom: 13%; left: 1%; }

.community-stats { padding-block: 82px 38px; }
.stats-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 30px; }
.stats-heading h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4.8vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.05; }
.stats-heading > p { max-width: 390px; margin: 0 0 7px; color: var(--muted); font-size: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--gold-border); background: var(--navy); box-shadow: 8px 8px 0 var(--plum); }
.stats-grid article { min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: 25px 22px; }
.stats-grid article + article { border-left: 1px solid var(--gold-border); }
.stats-grid strong { color: var(--gold); font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats-grid span { color: var(--cream); font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.stats-grid .stat-scan { background: var(--plum); }
.stats-status { margin: 22px 0 0; color: #938a91; font-size: 0.82rem; line-height: 1.55; }

.features { padding-block: 132px; }
.section-heading { max-width: 720px; margin-bottom: 50px; }
.section-heading h2, .flow-copy h2, .download h2 { margin-bottom: 0; font-size: clamp(2.4rem, 5vw, 4.9rem); letter-spacing: -0.02em; line-height: 1.08; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; }
.feature-card { position: relative; min-height: 390px; padding: 32px; border: 1px solid var(--gold-border); background: var(--navy); box-shadow: 7px 7px 0 var(--plum); }
.feature-card-gold { background: var(--plum); }
.feature-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 68px; border: 1px solid var(--gold-border); background: rgba(0, 0, 0, 0.14); }
.feature-icon img { width: 34px; height: 34px; object-fit: contain; }
.feature-card:nth-child(2) .feature-icon img { width: 40px; height: 40px; }
.feature-number { position: absolute; top: 34px; right: 30px; color: var(--gold); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; }
.feature-card h3 { margin-bottom: 16px; color: var(--gold); font-size: 1.36rem; line-height: 1.2; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.game-flow { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 90px; padding-block: 70px 150px; }
.flow-copy > p:not(.eyebrow) { max-width: 560px; margin: 26px 0 32px; color: var(--muted); }
.feature-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.feature-list span { color: var(--gold); font-size: 0.8rem; }
.screen-pair { position: relative; min-height: 650px; }
.screen-card { position: absolute; width: min(340px, 58%); margin: 0; padding: 10px 10px 14px; border: 1px solid var(--gold-border); background: var(--plum); box-shadow: 14px 14px 0 var(--navy); }
.screen-card img { width: 100%; }
.screen-card figcaption { padding: 13px 7px 2px; color: var(--gold); font-family: var(--font-sans); font-size: 0.84rem; font-weight: 700; text-align: center; }
.screen-card-back { top: 0; left: 0; transform: rotate(-3deg); }
.screen-card-front { right: 0; bottom: 0; z-index: 2; transform: rotate(3deg); }

.pro-access { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 70px; margin-bottom: 125px; padding: 58px; border: 1px solid var(--gold-border); background: var(--plum-deep); box-shadow: 10px 10px 0 var(--navy); }
.pro-copy h2 { margin-bottom: 24px; font-size: clamp(2.4rem, 5vw, 4.9rem); letter-spacing: -0.03em; line-height: 1.06; }
.pro-copy h2 em { color: var(--gold); font-style: normal; }
.pro-copy > p:not(.eyebrow) { max-width: 630px; margin-bottom: 18px; color: var(--muted); }
.pro-copy .pro-note { margin-bottom: 0; color: #938a91; font-size: 0.86rem; }
.pro-points { display: grid; border: 1px solid var(--gold-border); background: var(--navy); }
.pro-points div { display: grid; gap: 5px; padding: 23px 26px; }
.pro-points div + div { border-top: 1px solid var(--gold-border); }
.pro-points strong { color: var(--gold); font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pro-points span { color: var(--cream); font-size: 0.9rem; font-weight: 700; }

.screenshots { padding-block: 105px 130px; border-top: 1px solid var(--line); }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-heading-row > p { max-width: 390px; margin: 0 0 7px; color: var(--muted); }
.screenshot-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.screenshot-strip figure { margin: 0; padding: 7px 7px 12px; border: 1px solid var(--line); background: var(--plum-deep); }
.screenshot-strip img { width: 100%; }
.screenshot-strip figcaption { padding: 11px 6px 3px; color: var(--gold); font-family: var(--font-sans); font-size: 0.84rem; font-weight: 700; text-align: center; }

.download { position: relative; display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 36px; margin-bottom: 100px; padding: 54px; overflow: hidden; border: 1px solid var(--gold-border); background: var(--navy); box-shadow: 10px 10px 0 var(--plum); }
.download::after { content: "OFC"; position: absolute; right: 20%; bottom: -82px; color: rgba(230, 189, 97, 0.04); font-family: var(--font-sans); font-size: 13rem; font-weight: 800; pointer-events: none; }
.download-owl { width: 80px; height: 104px; object-fit: contain; filter: sepia(1) saturate(1.25) brightness(0.95); }
.download h2 { font-size: clamp(2rem, 4vw, 3.65rem); }
.download p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); }
.download-buttons { position: relative; z-index: 2; flex-direction: column; }
.download-buttons .store-button { background: var(--plum); box-shadow: 4px 4px 0 #080d18; }

.site-footer { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: #847b82; font-size: 0.78rem; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 26px; height: 34px; }
.footer-brand span { font-size: 0.74rem; }
.site-footer p { margin: 0; }
.site-footer nav { justify-content: flex-end; }

.legal-main { width: min(840px, calc(100% - 40px)); margin-inline: auto; padding: 82px 0 120px; }
.legal-hero { margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--gold-border); }
.legal-hero h1 { max-width: none; margin-bottom: 16px; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.04; }
.legal-intro { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.legal-meta { margin-bottom: 14px; color: var(--gold); font-size: 0.9rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-content { padding: 38px 42px; border: 1px solid var(--line); background: rgba(28, 16, 31, 0.88); box-shadow: 8px 8px 0 var(--navy); }
.legal-content section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 14px; color: var(--gold); font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; }
.legal-content p, .legal-content li { color: #d4ccd2; font-size: 1rem; line-height: 1.78; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul { margin: 14px 0 0; padding-left: 24px; }
.legal-content li + li { margin-top: 10px; }
.legal-content strong { color: var(--cream); }
.legal-content a { color: var(--gold); text-underline-offset: 3px; }
.legal-note { padding: 20px 22px; border-left: 4px solid var(--gold-border); background: var(--navy); }
.legal-back { display: inline-flex; margin-top: 34px; color: var(--gold); font-weight: 700; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 0.82fr; gap: 30px; }
  .hero-screen { width: min(370px, 90%); }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid article:nth-child(4) { border-left: 0; border-top: 1px solid var(--gold-border); }
  .stats-grid article:nth-child(5) { border-top: 1px solid var(--gold-border); }
  .feature-card { min-height: 280px; }
  .feature-icon { margin-bottom: 38px; }
  .game-flow { gap: 42px; }
  .pro-access { gap: 40px; padding: 44px; }
  .download { grid-template-columns: 80px 1fr; }
  .download-buttons { grid-column: 2; flex-direction: row; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 24px, 1160px); }
  .site-header { min-height: 74px; }
  .site-header nav { gap: 14px; }
  .site-header nav .section-link { display: none; }
  .site-header nav a { font-size: 0.78rem; }
  .hero { grid-template-columns: 1fr; gap: 46px; padding-block: 66px 82px; }
  h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .hero-visual { min-height: 590px; }
  .community-stats { padding-block: 68px 16px; }
  .stats-heading { display: block; }
  .stats-heading > p { margin-top: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article { min-height: 128px; }
  .stats-grid article:nth-child(3),
  .stats-grid article:nth-child(5) { border-top: 1px solid var(--gold-border); border-left: 0; }
  .stats-grid article:nth-child(4) { border-top: 1px solid var(--gold-border); border-left: 1px solid var(--gold-border); }
  .features { padding-block: 90px; }
  .game-flow { grid-template-columns: 1fr; padding-block: 28px 110px; }
  .pro-access { grid-template-columns: 1fr; gap: 34px; margin-bottom: 95px; padding: 36px 28px; }
  .screen-pair { min-height: 660px; }
  .section-heading-row { display: block; }
  .section-heading-row > p { margin-top: 20px; }
  .screenshot-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 15px; }
  .screenshot-strip figure { min-width: 78vw; scroll-snap-align: center; }
  .download { grid-template-columns: 68px 1fr; gap: 24px; padding: 34px 24px; }
  .download-owl { width: 58px; height: 82px; }
  .download-buttons { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 30px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .legal-main { width: min(100% - 24px, 840px); padding: 58px 0 90px; }
  .legal-content { padding: 28px 24px; box-shadow: 5px 5px 0 var(--navy); }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .site-header nav { gap: 10px; }
  .site-header .nav-download { padding: 7px 10px; font-size: 0.75rem; }
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-button { width: 100%; }
  .hero-visual { min-height: 500px; }
  .hero-screen { width: 90%; }
  .screen-label { left: -2%; }
  .hero-chip { font-size: 0.68rem; }
  .stats-grid strong { font-size: 2.2rem; }
  .stats-grid span { font-size: 0.86rem; }
  .chip-top { right: -3%; }
  .section-heading h2, .flow-copy h2 { font-size: 2.7rem; }
  .feature-card { padding: 26px; }
  .screen-pair { min-height: 540px; }
  .screen-card { width: 66%; }
  .screenshots { padding-block: 80px 90px; }
  .download { display: block; }
  .download-owl { margin-bottom: 24px; }
  .download-buttons { margin-top: 26px; }
  .site-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
  .site-footer p { width: 100%; order: 3; }
  .legal-hero h1 { font-size: 2.7rem; }
  .legal-intro { font-size: 1rem; }
  .legal-content { padding: 24px 18px; }
  .legal-content h2 { font-size: 1.32rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
