:root {
  --bg: #16103c;
  --bg-deep: #100c2e;
  --bg-elevated: #22184a;
  --ink: #ffffff;
  --subtitle: #e8e4f5;
  --muted: #c5bce0;
  --accent: #c8f542;
  --accent-dim: rgba(200, 245, 66, 0.14);
  --line: rgba(255, 255, 255, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  background: linear-gradient(135deg, #12183a 0%, #16103c 40%, #321658 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 16, 52, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-mark img {
  height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.brand-mark:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* —— Buttons —— */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #16103c;
}

.btn-primary:hover {
  background: #d6ff5c;
  color: #16103c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(200, 245, 66, 0.45);
  color: var(--accent);
}

.btn-store {
  background: #000;
  color: #fff;
  border-color: #333;
  padding: 0.75rem 1.25rem;
}

.btn-store svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-store .store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.btn-store .store-text span:first-child {
  font-size: 0.65rem;
  font-weight: 400;
}

.btn-store .store-text span:last-child {
  font-size: 1.05rem;
  font-weight: 600;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* —— Hero —— */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero.line-on::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.hero-logo {
  display: block;
  width: min(100%, 480px);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1.75rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero-brand span {
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 22ch;
  color: var(--subtitle);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .lede {
  max-width: 36rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 400;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.section h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: var(--subtitle);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section .support {
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
  line-height: 1.65;
}

.focus-layout {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 860px) {
  .focus-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
  }
}

.focus-visual {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.focus-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-grid {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-block {
  padding: 2rem 0;
}

@media (min-width: 760px) {
  .ai-block:first-child {
    padding-right: 2.5rem;
    border-right: 1px solid var(--line);
  }

  .ai-block:last-child {
    padding-left: 2.5rem;
  }
}

.ai-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.ai-block p {
  margin: 0;
  color: var(--muted);
}

.studio-teaser {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .studio-teaser {
    grid-template-columns: 1.2fr 1fr;
  }
}

.teaser-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.teaser-shots .shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 9 / 16;
}

.teaser-shots .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teaser-copy h2 {
  max-width: none;
}

.teaser-copy .game-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}

/* —— Production —— */
.prod-intro {
  padding: 4rem 0 2rem;
}

.prod-intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 0.95;
}

.prod-intro p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
  line-height: 1.65;
  font-size: 1.08rem;
}

.game {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.game-index {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.game-logo {
  width: min(100%, 360px);
  height: auto;
  margin: 0 0 1rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.game-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 1rem;
}

.game-logo + .game-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-desc {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.game-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 2.5rem 0 1.75rem;
}

.device {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  width: min(100%, 240px);
  aspect-ratio: 9 / 16;
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.game-meta .meta-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-meta .meta-link:hover {
  color: var(--accent);
}

.game-soon {
  opacity: 0.55;
}

.game-soon .game-title {
  color: var(--muted);
}

.game-soon .placeholder-frame {
  height: 220px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 2rem 0 0;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* —— Privacy page —— */
.legal {
  padding: 3.5rem 0 5rem;
}

.legal-panel {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(34, 24, 74, 0.65);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.85rem;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
  color: var(--accent);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .brand-mark img {
    height: 32px;
  }

  .hero-logo {
    width: min(100%, 360px);
    margin-bottom: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .teaser-shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .device {
    width: min(100%, 160px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
