* { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #121212;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--on-accent); }

:root {
  --bg: #ffffff;
  --text-primary: #182536;
  --text-secondary: #455468;
  --text-tertiary: #5e6c7f;
  --accent: #1f3b5b;
  --accent-hover: #14273d;
  --on-accent: #ffffff;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: rgba(31,59,91,0.16);
  --shadow-light: rgba(24,37,54,0.05);
  --shadow-medium: rgba(24,37,54,0.12);
  --chip-bg: rgba(31,59,91,0.06);
}

[data-theme="dark"] {
  --bg: #121212;
  --text-primary: #f5f7fa;
  --text-secondary: #c6ced8;
  --text-tertiary: #98a3af;
  --accent: #7f9dc4;
  --accent-hover: #90add3;
  --on-accent: #08111d;
  --white: #ffffff;
  --card-bg: #1b1d22;
  --border: rgba(255,255,255,0.10);
  --shadow-light: rgba(0,0,0,0.32);
  --shadow-medium: rgba(0,0,0,0.48);
  --chip-bg: rgba(127,157,196,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(127,157,196,0.05) 0%, transparent 52%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.02) 0%, transparent 48%);
  z-index: 0;
  pointer-events: none;
}

/* ── Top controls (theme + lang) ── */
.top-controls {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  height: 44px;
  width: 44px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 10px var(--shadow-light);
  color: var(--text-primary);
  flex-shrink: 0;
}
.theme-toggle:hover { box-shadow: 0 4px 20px var(--shadow-medium); }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle svg { width: 16px; height: 16px; }
/* In dark mode show sun (click = go light); in light mode show moon (click = go dark) */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ── Lang toggle ── */
.lang-toggle {
  height: 44px;
  width: 44px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 10px var(--shadow-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.lang-toggle:hover { box-shadow: 0 4px 20px var(--shadow-medium); }
.lang-toggle:active { transform: scale(0.97); }

/* ── Layout ── */
.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
  width: 100%;
  align-items: center;
}

/* ── Animations ── */
@keyframes fadeIn    { from { opacity:0 } to { opacity:1 } }
@keyframes fadeInUp  { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:translateY(0) } }
@keyframes floatPhone {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ── Text content (left) ── */
.content { animation: fadeIn 0.8s ease-out; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.eyebrow svg { width: 13px; height: 13px; }

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}

.subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--chip-bg);
  border: 1px solid var(--border);
}
.chip svg { width: 12px; height: 12px; color: var(--text-tertiary); flex-shrink: 0; }

.game-desc {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-tertiary);
  margin-bottom: 2.75rem;
  margin-top: -1.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}

.disclaimer {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
  line-height: 1.6;
}

.download-buttons {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 36px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
}
.download-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.download-btn::before {
  content: '';
  position: absolute;
  top:50%; left:50%;
  width:0; height:0;
  border-radius:50%;
  background: rgba(255,255,255,0.08);
  transform: translate(-50%,-50%);
  transition: width 0.6s, height 0.6s;
}
.download-btn:hover::before { width: 440px; height: 440px; }
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px var(--shadow-medium); }
.download-btn:active { transform: translateY(0) scale(0.98); }
.download-btn svg { width: 20px; height: 20px; z-index:1; flex-shrink:0; }
.download-btn span { z-index:1; }

/* ── Legal footer ── */
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 20px 2rem 28px;
  margin-top: auto;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: background 0.4s ease;
}
.legal-footer a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.legal-footer a:hover { color: var(--text-primary); }
.legal-footer .dot { color: var(--text-tertiary); opacity: 0.35; font-size: 0.75rem; }

/* ── iPhone mockup (right) ── */
.app-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.iphone {
  width: 260px;
  height: 565px;
  background: #111;
  border-radius: 46px;
  border: 2px solid #3a3a3a;
  box-shadow:
    0 0 0 1px #222,
    0 40px 80px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  animation: floatPhone 6s ease-in-out 1.2s infinite;
  flex-shrink: 0;
}

/* Side buttons */
.iphone::before {
  content: '';
  position: absolute;
  left: -4px; top: 108px;
  width: 3px; height: 32px;
  background: #3a3a3a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 44px 0 #3a3a3a, 0 80px 0 #3a3a3a;
}
.iphone::after {
  content: '';
  position: absolute;
  right: -4px; top: 140px;
  width: 3px; height: 52px;
  background: #3a3a3a;
  border-radius: 0 2px 2px 0;
}

/* Screen */
.iphone-screen {
  position: absolute;
  inset: 0;
  background: #111;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic island */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

/* Screenshot carousel */
.screen-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 44px;
}
.screen-carousel::-webkit-scrollbar { display: none; }

.screen-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  align-self: flex-start;
}

.screen-slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Dot indicators */
.screen-dots {
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.screen-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  transition: background 0.25s, transform 0.25s;
}

.screen-dot.active {
  background: rgba(0,0,0,0.75);
  transform: scale(1.3);
}

[data-theme="dark"] .screen-dot {
  background: rgba(255,255,255,0.3);
}

[data-theme="dark"] .screen-dot.active {
  background: rgba(255,255,255,0.9);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-wrapper { gap: 3rem; }
  .iphone { width: 230px; height: 500px; }
}

@media (max-width: 768px) {
  .container {
    min-height: 100vh;
    padding: 5rem 1.5rem 2rem;
    align-items: flex-start;
  }
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  /* Content (headline + CTA) comes first on mobile */
  .content      { order: 1; }
  .app-showcase { order: 2; }
  .eyebrow, .chips, .download-buttons, .footer-note { justify-content: center; }
  .download-buttons { display: flex; justify-content: center; }
  .game-desc { display: none; } /* hide long description on mobile to reduce scroll */
  .iphone { width: 200px; height: 435px; }
}

@media (max-width: 480px) {
  .container { padding: 4.5rem 1.25rem 6rem; }
  h1 { font-size: 3rem; }
  .download-btn { padding: 16px 28px; font-size: 0.875rem; width: 100%; justify-content: center; }
  .chip { font-size: 0.75rem; padding: 6px 12px; }
  .iphone { width: 175px; height: 380px; }
  .legal-footer { gap: 0.75rem; padding: 14px 1rem 20px; font-size: 0.7rem; }
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 1rem 1.5rem;
  animation: slideUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner[hidden] { display: none; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text a:hover { opacity: 0.7; }

.cookie-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
