:root {
  --color-bg: #000;
  --color-bg-alt: #060606;
  --color-bg-nav: rgba(5, 5, 5, 0.92);
  --color-text: #fff;
  --color-text-muted: #7a6e62;
  --color-accent: #5b3488;
  --color-accent-hover: #991a2d;
  --color-accent-glow: rgba(184, 37, 60, 0.35);
  --color-warm: #9e856d;
  --color-warm-muted: #6b5a4a;
  --color-orange: #f6e042;
  --color-border: #1f1a17;
  --color-border-hover: #b8253c;
  --font-serif: "Roboto Serif", serif;
  --font-mono:  "Roboto Serif", serif;
  --font-sans: "Roboto", sans-serif;
  --max-width: 1000px;
  --spacing-section: 80px;
  --spacing-md: 2rem;
}

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

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

html, body {
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  background-image:
      repeating-linear-gradient(
          0deg,
          transparent,
          transparent 2px,
          rgba(0, 0, 0, 0.03) 2px,
          rgba(0, 0, 0, 0.03) 4px
      );
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (min-width: 850px) {
      height: 90px;
  }

  @supports (animation-timeline: scroll()) {
      background: transparent;
      backdrop-filter: blur(2px);
      border-bottom: 1px solid transparent;
      animation: shrink-header linear both;
      animation-timeline: scroll();
      animation-range: 0px 100px; /* Trigger range: starts at 0, finishes at 100px of scrolling */
  }
}

@keyframes shrink-header {
  to {
    background: var(--color-bg-nav);
    border-bottom: 1px solid var(--color-border);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 40px;
  width: auto;

  @media (min-width: 850px) {
      height: 70px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;

  @media (min-width: 850px) {
      display: flex;
  }
}

.nav-links a:not(.btn) {
  color: var(--color-text);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  opacity: .85;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  text-decoration-color: var(--color-accent);
}

.btn {
  cursor: pointer;
  position: relative;
  display: inline-block;
  background: var(--color-text);
  color: #0a0606;
  padding: 1.05rem 2.4rem;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  vertical-align: middle;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 8px 24px -8px rgba(0, 0, 0, 0.7);
  transition:
      transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.35s,
      color 0.3s,
      background 0.3s,
      border-color 0.3s;

  @media (min-width: 850px) {
      padding: 1.15rem 2.6rem;
      font-size: 0.9rem;
  }
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(0, 0, 0, 0.14) 50%,
      transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  color: #1a0e07;
  box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.5) inset,
      0 0 20px 0 rgba(255, 255, 255, .3);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(110%);
}

.btn-secondary {
  background: rgba(8, 5, 4, 0.45);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-text);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

.btn-secondary::before {
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 100%);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(91, 52, 136, 0.22);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--color-text);
  box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 20px var(--color-accent);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.8rem 1.4rem;
}

/* Hero */
.hero {
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-section) var(--spacing-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
      radial-gradient(ellipse 70% 60% at 50% 50%,
          rgba(0, 0, 0, 0.15) 0%,
          rgba(0, 0, 0, 0.55) 60%,
          rgba(0, 0, 0, 1) 100%),
      linear-gradient(180deg,
          rgba(0, 0, 0, 0.85) 0%,
          rgba(0, 0, 0, 0.35) 22%,
          rgba(0, 0, 0, 0.55) 70%,
          rgba(0, 0, 0, 0.97) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle film grain — gives the dark mystery vibe a tactile, filmic texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: hero-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  color: var(--color-orange);
  text-shadow: 2px 2px 0 #ac1f28;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  line-height: 1.35;
  margin: 0 auto;
  margin-top: 1.5rem;
  text-transform: uppercase;

  @media (min-width: 850px) {
      font-size: 1.55rem;
      max-width: 500px;
  }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: -0.02em;
  text-size-adjust: 80%;
}

.hero-buttons {
  display: inline-flex;
  gap: 1rem;
  flex-direction: column;
  margin-top: 3rem;

  @media (min-width: 700px) {
      flex-direction: row;
      gap: 1.25rem;
  }
}

.hero-logo {
  height: auto;
  max-width: 100%;
  width: 600px;
}

/* Scroll cue at the bottom of the hero */
.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 4;
  pointer-events: none;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.55;
}

.hero-scroll-cue::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.85));
  transform-origin: top center;
  animation: cue-line 2.4s ease-in-out infinite;
}

@keyframes cue-line {
  0%   { transform: scaleY(0.3); opacity: 0.2; }
  50%  { transform: scaleY(1);   opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0.2; }
}

@media (max-width: 480px) {
  .hero-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .hero-scroll-cue::after { animation: none; opacity: 0.6; }
  .btn,
  .btn::before { transition: none; }
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
  scroll-margin-top: 30px;

  @media (min-width: 850px) {
    scroll-margin-top: 60px;
  }
}

.section-label {
  font-size: 1.3rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--color-text);
  text-transform: uppercase;
}

/* About */
.about-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  max-width: 750px;
  color: var(--color-text-muted);

  @media (min-width: 650px) {
      font-size: 1.05rem;
  }
}

.about-intro:first-of-type {
  color: var(--color-text);
}

.about-details {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  overflow: hidden;
}

.detail-card:not(:last-child) {
  box-shadow: 1px 0 0 var(--color-border);
}

.detail-card dt,
.detail-card dd {
  padding-right: 16px;
}

.detail-card dt {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.detail-card dd {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Screenshots */
.screenshots {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt) var(--spacing-section));
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  margin-top: 2rem;

  @media (min-width: 500px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.screenshot {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s, filter 0.3s;
  filter: grayscale(40%);
}

.screenshot:hover {
  border-color: var(--color-accent);
  filter: grayscale(0%);
}

.screenshots-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Press Kit */
.presskit {
  background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-bg) var(--spacing-section));
}

.presskit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.presskit-factsheet h3,
.presskit-descriptions h3,
.presskit-assets h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.presskit-factsheet dl {
  display: grid;
  gap: 1rem;
}

.presskit-factsheet dt {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-accent);
}

.presskit-factsheet dd {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.presskit-descriptions p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.presskit-descriptions .desc-short {
  color: var(--color-text);
  font-size: 1rem;
}

.presskit-assets {
  margin-top: 3rem;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1.5rem;
}

.asset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.35s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.asset-card:hover {
  border-color: var(--color-accent);
}

.asset-name {
  font-size: 0.8rem;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.asset-type {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.asset-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-warm);
  transition: color 0.3s, filter 0.3s;
}

.asset-icon svg {
  width: 100%;
  height: 100%;
}

/* Footer */
.footer-bg {
  font-size: 0;
  bottom: 0;
  right: 0;
  max-height: 1000px;
  overflow: hidden;
  position: absolute;
  z-index: 1;

  img {
    width: 100%;
  }

  &::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
  }

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.75) 60%,
            rgba(0, 0, 0, 1) 100%),
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.35) 22%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.97) 100%);
    pointer-events: none;
    z-index: 1;
  }
}

.footer {
  padding: 3rem 0;
  position: relative;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  transition: color 0.3s, text-shadow 0.3s;
}

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

.footer-copy {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Mobile popover menu */

.nav-menu-btn {
  display: none;

  @media (max-width: 850px) {
      display: block;
  }
}


.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  background: #0d0d0d;
  border-bottom: 1px solid var(--color-border);
  z-index: 99;
  padding: 0.5rem 0 1rem;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu a:not(.btn) {
  display: inline-block;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 2rem;

  &:hover,
  &:focus-visible {
    text-decoration-color: var(--color-accent);
  }
}

.mobile-menu .mobile-menu-btn-wrap {
  padding: 0.45rem 2rem 0;
}

.mobile-menu .btn {
  width: 100%;
  text-align: center;
  display: block;
  padding: 0.85rem 1.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
      --spacing-section: 60px;
  }

  .nav-links {
      gap: 1rem;
  }

  .nav-links .nav-hide-mobile {
      display: none;
  }

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

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

@media (max-width: 480px) {
  :root {
      --spacing-section: 40px;
      --spacing-md: 1rem;
  }

  .nav {
      padding: 0.8rem 1rem;
  }

  .about-details {
      grid-template-columns: 1fr;
  }

  .assets-grid {
      grid-template-columns: repeat(1, 1fr);
  }
}
