:root {
  --ink: #030504;
  --black: #000000;
  --panel: #061108;
  --panel-2: #0a1a0d;
  --line: #17311d;
  --lime: #c6ff16;
  --lime-soft: #84c90b;
  --white: #f6f7f2;
  --muted: #9ba99a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  background-image: linear-gradient(rgba(78, 125, 42, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 125, 42, .13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1280px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 950; font-size: 22px; letter-spacing: -.025em; }
.brand b { color: var(--lime); }
.fly-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; }
.fly-mark i { width: 9px; height: 22px; border-radius: 100%; background: var(--lime); transform: rotate(-10deg); box-shadow: 0 -8px 0 -2px var(--lime); }
.fly-mark::before, .fly-mark::after { content: ""; position: absolute; width: 17px; height: 11px; border: 2px solid var(--lime); border-radius: 70% 20% 70% 20%; top: 8px; }
.fly-mark::before { left: 3px; transform: rotate(28deg); }
.fly-mark::after { right: 3px; transform: scaleX(-1) rotate(28deg); }
.header-side { display: flex; align-items: center; gap: 18px; }
.ios-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
nav { display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 34px; }
nav a { position: relative; color: #a9b5a7; font-size: 13px; font-weight: 750; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--lime); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }

.app-store-button {
  min-width: 218px;
  min-height: 68px;
  padding: 8px 19px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: white;
  background: #070907;
  border: 1px solid #566054;
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-store-button:hover { transform: translateY(-2px); border-color: var(--lime); box-shadow: 0 12px 40px rgba(159, 237, 24, .12); }
.app-store-button .apple-mark { font-size: 39px; line-height: 1; }
.app-store-button > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.app-store-button small { font-size: 11px; line-height: 1.1; }
.app-store-button strong { font-size: 25px; line-height: 1.05; letter-spacing: -.04em; }
.app-store-button.compact { min-width: 166px; min-height: 49px; padding: 5px 13px; border-radius: 9px; }
.app-store-button.compact .apple-mark { font-size: 27px; }
.app-store-button.compact small { font-size: 8px; }
.app-store-button.compact strong { font-size: 18px; }

.hero {
  width: min(1280px, calc(100% - 64px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 34px;
  position: relative;
  z-index: 2;
  padding: 54px 0 72px;
}
.hero-copy { position: relative; z-index: 5; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--lime); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 850; }
.eyebrow span { width: 34px; height: 2px; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
h1 {
  margin: 20px 0 24px;
  max-width: 720px;
  font-size: clamp(82px, 8.1vw, 128px);
  line-height: .81;
  letter-spacing: -.068em;
  text-transform: uppercase;
  font-weight: 950;
}
h1 em { color: var(--lime); font-style: normal; text-shadow: 0 0 44px rgba(198, 255, 22, .2); }
.hero-copy > p { max-width: 610px; margin: 0; color: #b5c0b3; font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.text-link { font-weight: 800; display: inline-flex; align-items: center; gap: 18px; }
.text-link span { color: var(--lime); }
.hero-meta { margin-top: 30px; display: flex; align-items: center; gap: 13px; color: #7f8e7d; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; font-weight: 800; }
.hero-meta i { color: var(--lime); font-style: normal; }

.hero-visual { min-height: 720px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: min(490px, 94%); height: auto; position: relative; z-index: 3; filter: drop-shadow(0 42px 60px rgba(0,0,0,.8)); transform: rotate(2.5deg); }
.phone-glow { position: absolute; width: 430px; height: 610px; border-radius: 45%; background: rgba(133, 205, 10, .18); filter: blur(88px); }
.lime-orbit { position: absolute; border: 1px solid rgba(198, 255, 22, .22); border-radius: 50%; }
.orbit-one { width: 550px; height: 550px; }
.orbit-two { width: 670px; height: 670px; border-style: dashed; animation: orbit 28s linear infinite; }
.floating-tag { position: absolute; z-index: 7; min-width: 150px; padding: 15px 18px; display: flex; flex-direction: column; background: rgba(3, 11, 5, .92); border: 1px solid #315020; box-shadow: 0 16px 34px rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.floating-tag b { color: var(--lime); font-size: 12px; letter-spacing: .09em; }
.floating-tag span { margin-top: 3px; color: #859383; font-size: 9px; letter-spacing: .1em; }
.tag-memory { top: 22%; left: -2%; }
.tag-arcade { right: -2%; bottom: 19%; }

.action-strip {
  position: relative;
  z-index: 3;
  min-height: 104px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #0c1609;
  background: var(--lime);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 750;
}
.action-strip span { display: flex; gap: 13px; }
.action-strip b { color: #010300; font-size: 18px; }
.action-strip i { font-style: normal; font-size: 22px; }

.how-section, .control-section, .modes-section, .site-footer {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.how-section { min-height: 930px; padding: 130px 0; display: grid; grid-template-columns: 1fr .82fr; gap: 9%; align-items: center; }
.section-copy h2, .control-heading h2, .modes-heading h2, .download-section h2 {
  margin: 22px 0 28px;
  font-size: clamp(60px, 6vw, 92px);
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
  font-weight: 950;
}
.section-copy > p { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.steps { margin-top: 54px; }
.steps article { min-height: 108px; padding: 21px 0; display: grid; grid-template-columns: 58px 1fr; gap: 20px; border-top: 1px solid var(--line); }
.steps article:last-child { border-bottom: 1px solid var(--line); }
.steps article > b { color: var(--lime); font: 700 12px/1 "Courier New", monospace; padding-top: 6px; }
.steps h3 { margin: 0 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.instruction-visual { min-height: 720px; display: flex; align-items: center; justify-content: center; position: relative; background: radial-gradient(circle, rgba(132,201,11,.13), transparent 62%); }
.instruction-visual::before { content: ""; position: absolute; inset: 7% 4%; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(8,22,11,.8), rgba(1,5,2,.2)); transform: rotate(4deg); }
.instruction-visual img { position: relative; z-index: 2; width: min(430px, 88%); transform: rotate(-2.5deg); filter: drop-shadow(0 45px 50px rgba(0,0,0,.72)); }
.screen-label { position: absolute; z-index: 4; left: -5%; top: 18%; min-width: 190px; padding: 17px 19px; display: flex; flex-direction: column; background: #061008; border-left: 3px solid var(--lime); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.screen-label b { color: var(--lime); font-size: 12px; }.screen-label span { color: #71816f; font-size: 9px; margin-top: 5px; letter-spacing: .1em; }

.control-section { padding: 130px 0; border-top: 1px solid var(--line); }
.control-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.control-heading h2 { grid-column: 1 / -1; max-width: 1000px; }
.control-heading h2 em { color: var(--lime); font-style: normal; }
.control-content { margin-top: 58px; display: grid; grid-template-columns: .86fr 1.14fr; gap: 8%; align-items: center; }
.control-cards article { padding: 27px 0; display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; border-top: 1px solid var(--line); }
.control-cards article:last-child { border-bottom: 1px solid var(--line); }
.control-cards article > span { grid-row: span 2; color: var(--lime); font: 700 10px/1 "Courier New", monospace; padding-top: 7px; }
.control-cards strong { font-size: 22px; }
.control-cards p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.settings-stack { min-height: 710px; display: flex; align-items: center; justify-content: center; position: relative; }
.settings-stack::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: rgba(151,225,17,.09); filter: blur(60px); }
.settings-main { width: min(410px, 64%); position: relative; z-index: 2; transform: translateX(-15%) rotate(-4deg); filter: drop-shadow(0 40px 50px rgba(0,0,0,.78)); }
.settings-float { width: min(330px, 51%); position: absolute; z-index: 3; right: 1%; bottom: 4%; transform: rotate(5deg); filter: drop-shadow(0 34px 44px rgba(0,0,0,.8)); }

.modes-section { padding: 130px 0; border-top: 1px solid var(--line); }
.modes-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 9%; align-items: end; }
.modes-heading > p { margin: 0 0 35px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.mode-grid { margin-top: 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode-card { min-height: 760px; position: relative; overflow: hidden; border: 1px solid var(--line); background: #040b05; }
.mode-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.08) 35%, rgba(0,0,0,.9) 93%); }
.mode-card img { width: 72%; max-width: 430px; display: block; margin: 22px auto 0; transition: transform .45s ease; filter: drop-shadow(0 28px 35px rgba(0,0,0,.7)); }
.mode-card:hover img { transform: translateY(-9px) scale(1.015); }
.memory-mode { background: radial-gradient(circle at 50% 30%, rgba(150,220,19,.12), transparent 45%), #030905; }
.arcade-mode { background: linear-gradient(rgba(3,16,6,.8),rgba(0,0,0,.9)), repeating-linear-gradient(0deg,transparent 0 69px,rgba(105,155,63,.12) 70px), repeating-linear-gradient(90deg,transparent 0 69px,rgba(105,155,63,.12) 70px); }
.mode-copy { position: absolute; z-index: 4; left: 34px; right: 34px; bottom: 31px; }
.mode-copy > span { color: var(--lime); font: 700 10px/1 "Courier New", monospace; letter-spacing: .1em; }
.mode-copy h3 { margin: 13px 0 9px; font-size: 32px; letter-spacing: -.035em; }
.mode-copy p { max-width: 500px; margin: 0; color: #a6b2a4; line-height: 1.6; }

.download-section { min-height: 720px; padding: 110px 24px; position: relative; z-index: 2; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--lime); color: #020400; }
.download-section > .fly-mark { transform: scale(1.35); filter: brightness(0); }
.download-section > p { margin: 28px 0 0; text-transform: uppercase; font-size: 12px; letter-spacing: .13em; font-weight: 850; }
.download-section h2 { max-width: 990px; margin-bottom: 4px; font-size: clamp(72px, 8vw, 126px); }
.download-sub { margin-bottom: 31px; font-size: 22px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.download-section .app-store-button { background: #020402; border-color: #020402; }
.download-orbit { position: absolute; width: 650px; height: 650px; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; box-shadow: 0 0 0 100px rgba(0,0,0,.03), 0 0 0 200px rgba(0,0,0,.03); }
.download-section > *:not(.download-orbit) { position: relative; z-index: 2; }

.site-footer { padding: 72px 0 28px; }
.footer-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.footer-brand p { margin: 0; justify-self: end; color: var(--muted); }
.footer-links { margin-top: 60px; padding: 26px 0; display: flex; flex-wrap: wrap; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a, .footer-links button { padding: 0; color: #aab6a8; background: none; border: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--lime); }
.footer-bottom { padding-top: 25px; display: flex; justify-content: space-between; color: #596457; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

body.modal-open { overflow: hidden; }
.legal-overlay { position: fixed; inset: 0; z-index: 1000; padding: 24px; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; background: rgba(0,0,0,.88); backdrop-filter: blur(12px); }
.legal-overlay[hidden] { display: none; }
.legal-modal { width: min(900px, 100%); margin: 20px auto; color: var(--white); background: #061008; border: 1px solid #345126; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.legal-modal > header { position: sticky; top: -24px; z-index: 2; min-height: 118px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; background: #071108; border-bottom: 2px solid var(--lime); }
.legal-modal > header span { color: var(--lime); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.legal-modal > header h2 { margin: 5px 0 0; font-size: 35px; letter-spacing: -.04em; }
.modal-x { width: 46px; height: 46px; display: grid; place-items: center; color: var(--lime); background: #010301; border: 1px solid #3a5930; font-size: 31px; line-height: 1; cursor: pointer; }
.legal-body { padding: 30px 36px; color: #b5c1b3; font-size: 15px; line-height: 1.75; }
.legal-body .legal-date { color: var(--lime); font: 700 11px/1 "Courier New", monospace; }
.legal-body h3 { margin: 29px 0 7px; color: var(--white); font-size: 17px; }
.legal-body a { color: var(--lime); }
.legal-modal > footer { position: sticky; bottom: -24px; padding: 18px 28px; display: flex; justify-content: flex-end; background: #071108; border-top: 1px solid #294022; }
.legal-modal > footer button { min-width: 130px; min-height: 46px; color: #071006; background: var(--lime); border: 0; font-weight: 900; cursor: pointer; }

@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(72px, 9.2vw, 105px); }
  .hero-visual { min-height: 620px; }
  .tag-memory { left: -5%; }.tag-arcade { right: -5%; }
  .how-section { gap: 4%; }
  .control-content { gap: 4%; }
}

@media (max-width: 820px) {
  .site-header, .hero { width: calc(100% - 40px); }
  .ios-label { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-meta { justify-content: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 680px; }
  .hero-visual img { max-width: 430px; }
  .action-strip { flex-wrap: wrap; justify-content: center; padding-top: 26px; padding-bottom: 26px; }
  .how-section, .control-section, .modes-section, .site-footer { width: calc(100% - 40px); }
  .how-section { grid-template-columns: 1fr; padding: 100px 0; }
  .section-copy { max-width: 690px; }
  .instruction-visual { margin-top: 30px; }
  .control-content { grid-template-columns: 1fr; }
  .settings-stack { margin-top: 35px; }
  .modes-heading { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 720px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 74px; }
  .brand { font-size: 17px; gap: 8px; }
  .fly-mark { transform: scale(.75); }
  .header-side .app-store-button { display: none; }
  h1 { font-size: clamp(65px, 21vw, 88px); }
  .hero { padding-top: 55px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-meta { flex-wrap: wrap; }
  .hero-meta i { display: none; }
  .hero-visual { min-height: 590px; }
  .orbit-one { width: 430px; height: 430px; }.orbit-two { width: 520px; height: 520px; }
  .floating-tag { display: none; }
  .action-strip span { width: 42%; justify-content: center; }
  .action-strip i { display: none; }
  .section-copy h2, .control-heading h2, .modes-heading h2 { font-size: clamp(53px, 16vw, 74px); }
  .how-section, .control-section, .modes-section { padding: 82px 0; }
  .instruction-visual { min-height: 610px; }
  .screen-label { left: -2%; }
  .control-cards article { grid-template-columns: 54px 1fr; }
  .settings-stack { min-height: 580px; }
  .settings-main { width: 75%; }.settings-float { width: 58%; }
  .mode-card { min-height: 650px; }
  .mode-card img { width: 84%; }
  .mode-copy { left: 22px; right: 22px; bottom: 23px; }
  .download-section { min-height: 630px; }
  .download-section h2 { font-size: clamp(62px, 18vw, 90px); }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-brand p { justify-self: start; }
  .footer-bottom { flex-direction: column; gap: 9px; }
  .legal-overlay { padding: 10px; }
  .legal-modal > header { top: -10px; padding: 20px; }
  .legal-modal > header h2 { font-size: 27px; }
  .legal-body { padding: 22px; }
  .legal-modal > footer { bottom: -10px; }
}

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