/* ---------------------------------------------------------
   VertiGrid — design tokens
--------------------------------------------------------- */
:root {
  --bg: #000735;
  --bg-soft: #050b3e;
  --card: #0a1250;
  --card-border: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --gray: #a9adcf;
  --gray-dark: #6b70a0;
  --accent-1: #ff8f01;
  --accent-2: #ff2801;
  --gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --green: #21e07a;
  --red: #ff3b3b;

  --font-display: "Jersey 10", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.05;
}

h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.5rem; }

p { color: var(--gray); margin: 0; }

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

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------------------------------------------------------
   Background grid texture
--------------------------------------------------------- */
.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 143, 1, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 143, 1, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(0, 7, 53, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: 0.95rem;
  color: var(--gray);
  transition: color 0.2s ease;
}

.nav__links a:not(.btn):hover { color: var(--white); }

.nav__store-badge {
  display: inline-flex;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__store-badge img { height: 40px; width: auto; }
.nav__store-badge:hover { transform: translateY(-2px); opacity: 0.85; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

/* ---------------------------------------------------------
   Buttons / badges
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 79, 1, 0.35);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 79, 1, 0.45); }
.btn--primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--card-border);
}

.btn--ghost:hover { color: var(--white); border-color: var(--gray-dark); }

.btn--small { padding: 10px 20px; font-size: 0.85rem; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
}

/* ---------------------------------------------------------
   Section shell
--------------------------------------------------------- */
section { padding: 36px 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-sub { margin-top: 16px; font-size: 1.05rem; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero { padding-top: 80px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__title {
  line-height: 0;
}

.hero__title img {
  width: clamp(260px, 34vw, 420px);
  height: auto;
}

.hero__tagline {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  margin-top: 12px;
}

.hero__desc {
  margin-top: 20px;
  font-size: 1.05rem;
  max-width: 480px;
}

.hero__desc strong { color: var(--white); }

.hero__cta { margin-top: 32px; }

/* Hero gameplay video */
.hero__demo { display: flex; flex-direction: column; align-items: center; }

.phone-frame {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #0d1560, #060b3d);
  border: 2px solid var(--card-border);
  border-radius: 42px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(255, 79, 1, 0.12), 0 0 0 8px rgba(255, 255, 255, 0.02);
}

.phone-frame__screen {
  width: 100%;
  aspect-ratio: 640 / 1392;
  border-radius: 28px;
  overflow: hidden;
}

.phone-frame__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------
   How to play
--------------------------------------------------------- */
.how-to-play .section-head {
  max-width: 760px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.feature-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: block;
}

.feature-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

.feature-card__clip {
  display: block;
  width: 70%;
  max-width: 200px;
  height: auto;
  margin: 16px 0 0;
  border-radius: 14px;
}

/* ---------------------------------------------------------
   Modes + tips
--------------------------------------------------------- */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.mode-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--card), rgba(10, 18, 80, 0.4));
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.mode-card__text { flex: 1; min-width: 0; }

.mode-card__img {
  flex-shrink: 0;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.mode-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mode-card h3 { font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.mode-card p { font-size: 0.95rem; }

.tips {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
}

.tips__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
}

.tips__list li {
  font-size: 0.92rem;
  color: var(--gray);
  padding-left: 22px;
  position: relative;
}

.tips__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.tips__list strong { color: var(--white); }

/* ---------------------------------------------------------
   Screenshots
--------------------------------------------------------- */
.screenshots__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-frame {
  transition: transform 0.3s ease;
}

.screenshot-frame:hover { transform: translateY(-6px); }

.screenshot-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */
.cta { text-align: center; }

.cta__inner { display: flex; flex-direction: column; align-items: center; }

.cta .btn--primary { margin-top: 32px; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__brand p { margin-top: 10px; font-size: 0.9rem; }

.footer__links, .footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer__social { flex-direction: row; gap: 16px; align-items: flex-start; }

.footer__links a, .footer__social a { color: var(--gray); transition: color 0.2s ease; }
.footer__links a:hover, .footer__social a:hover { color: var(--accent-1); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--gray-dark);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal-link {
  color: var(--gray-dark);
  transition: color 0.2s ease;
}

.footer__legal-link:hover { color: var(--accent-1); }

.footer__legal-link--btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Legal pages (privacy policy, etc.)
--------------------------------------------------------- */
.legal { padding-top: 160px; }

.legal__inner { max-width: 760px; }

.legal__back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--gray);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.legal__back:hover { color: var(--accent-1); }

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 10px;
}

.legal-content li p { margin-bottom: 6px; }
.legal-content li ul { margin-top: 8px; }

.legal-content strong { color: var(--white); font-weight: 600; }

.legal-content a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-2); }

/* ---------------------------------------------------------
   Reveal animation
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Cookie consent banner
--------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(5, 11, 62, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--gray);
  max-width: 720px;
}

.cookie-banner__text a { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { color: var(--accent-2); }

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { order: 0; text-align: center; }
  .hero__demo { order: 1; }
  .hero__title img { margin: 0 auto; }
  .hero__desc { margin-left: auto; margin-right: auto; }

  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .modes-grid { grid-template-columns: 1fr; }
  .tips__list { grid-template-columns: 1fr; }
  .screenshots__row { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }

  section { padding: 28px 0; }
  .feature-strip { grid-template-columns: 1fr; }
  .screenshots__row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mode-card { flex-direction: column; text-align: center; }
  .mode-card__img { width: 190px; }

  .cookie-banner { padding: 20px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-banner__text { max-width: none; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
