@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-void: #060d13;
  --bg-deep: #0a1a24;
  --bg-panel: #10222e;
  --bg-panel-2: #16303f;
  --teal-line: #1f4152;
  --steel: #3a6c82;
  --steel-light: #6ea3b8;
  --red: #e14b3f;
  --red-dim: #8c2f2a;
  --gold: #e3b93f;
  --gold-dim: #a5842c;
  --ink: #eef1ec;
  --ink-dim: #a9bcc4;
  --ink-faint: #6c8896;

  --font-head: 'Silkscreen', monospace;
  --font-body: 'DM Sans', sans-serif;

  --radius: 4px;
  --shadow-panel: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.hide #preloader {
  opacity: 0;
  visibility: hidden;
}

body {
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader img {
  width: 64px;
  height: 64px;
}

/* ---------- Background texture ---------- */

.grid-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--teal-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--teal-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.12;
  z-index: 0;
}

.glow-fx {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-fx-features {
  width: 420px;
  height: 420px;
  top: 10%;
  right: -120px;
  background: rgba(225, 75, 63, 0.18);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 13, 19, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 108, 130, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6, 13, 19, 0.92);
  border-bottom-color: rgba(227, 185, 63, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.logo-mark {
  height: 30px;
  width: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  object-fit: cover;
}
.logo-text{
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-head);
}

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

.nav-link {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.logo::after,
.footer-logo::after {
  display: none;
}

.header-cta {
  display: inline-block;
}

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger-btn span:nth-child(1) { top: 2px; }
.burger-btn span:nth-child(2) { top: 11px; }
.burger-btn span:nth-child(3) { top: 20px; }

.burger-btn.act span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 13, 19, 0.98);
  z-index: 999;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 48px 24px;
}

.mobile-menu-inner .nav-link {
  font-size: 18px;
}

.mobile-menu-inner .header-cta {
  margin-top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-play-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  border: 0px solid transparent;
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 130%);
  color: #10090a;
  box-shadow: 0 10px 30px rgba(225, 75, 63, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(225, 75, 63, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--steel);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  padding: 150px 0 100px;
  background: radial-gradient(circle at 80% 0%, rgba(227, 185, 63, 0.1), transparent 55%),
              radial-gradient(circle at 10% 100%, rgba(225, 75, 63, 0.12), transparent 50%),
              var(--bg-void);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 22px;
  text-shadow: 0 0 30px rgba(225, 75, 63, 0.25);
}

.hero-text {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-actions .btn-primary {
  animation: floaty 3s ease-in-out infinite;
}

.hero-actions .btn-primary:hover {
  animation-play-state: paused;
}

.hero-visual {
  position: relative;
}

.screen-frame {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--teal-line);
  background: var(--bg-panel);
  padding: 10px;
  box-shadow: var(--shadow-panel);
}

.screen-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  display: flex;
  gap: 6px;
}

.screen-frame img {
  border-radius: 4px;
  width: 100%;
}

.screen-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px 10px;
}

.screen-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-line);
}

.screen-frame-bar span:nth-child(1) { background: var(--red-dim); }
.screen-frame-bar span:nth-child(2) { background: var(--gold-dim); }

.hero-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  background: var(--bg-panel-2);
}

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

/* ---------- Section shell ---------- */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--teal-line);
  border-bottom: 1px solid var(--teal-line);
  overflow-x: clip;
}

.section-head {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--ink);
}

/* ---------- Split (Gameplay / Episodes) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-reverse .split-text {
  order: 2;
}

.split-reverse .split-media {
  order: 1;
}

.split-text p {
  color: var(--ink-dim);
  margin-bottom: 18px;
  font-size: 16px;
}

.split-text p:last-child {
  margin-bottom: 0;
}

.split-media .screen-frame {
  max-width: 480px;
  margin-left: auto;
}

.split-reverse .split-media .screen-frame {
  margin-left: 0;
  margin-right: auto;
}

/* Episodes gallery strip */

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.case-gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--teal-line);
  background: var(--bg-panel);
}

.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  filter: saturate(0.9);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.case-gallery figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* ---------- Features ---------- */

.features-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.features-media .screen-frame {
  position: sticky;
  top: 110px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--teal-line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--gold);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.contact-text p {
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.contact-text p:last-child {
  margin-bottom: 0;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--gold);
  margin: 8px 0 18px;
  word-break: break-all;
}

.contact-media .screen-frame {
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--teal-line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.footer-logo .logo-mark {
  height: 24px;
  width: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-faint);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-faint);
  width: 100%;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--teal-line);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 150px 0 100px;
  background: var(--bg-void);
  min-height: 100vh;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--gold);
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  margin: 22px 0 10px;
}

.legal-content p {
  color: var(--ink-dim);
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  color: var(--ink-dim);
  margin: 0 0 14px 22px;
}

.legal-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-content section {
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 36px;
  }

  .split,
  .features-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-media,
  .split-reverse .split-media {
    order: -1;
  }

  .split-media .screen-frame,
  .split-reverse .split-media .screen-frame {
    margin: 0 auto;
  }

  .features-media .screen-frame {
    position: static;
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-media {
    order: -1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-badge {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .case-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .contact-email {
    font-size: 14px;
  }
}
