/* ============================================================
   RUSTHORN: stylesheet
   Brand: #0D0D0D bg · #C65A1E rust · #EAEAEA ash · #3A3A3A steel
   Fonts: Montserrat Bold (headlines) · system-ui (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0D0D0D;
  --rust:       #C65A1E;
  --rust-dark:  #8C3B1A;
  --steel:      #3A3A3A;
  --ash:        #EAEAEA;
  --muted:      #808080;
  --font-head:  'Montserrat', 'Arial Black', Arial, sans-serif;
  --font-body:  Calibri, 'Trebuchet MS', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--rust-dark); }
a:focus-visible {
  outline: 2px solid var(--ash);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--steel);
  transition: border-color 0.2s ease;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav__symbol {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav__wordmark {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ash);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__wordmark sup {
  font-size: 8px;
  vertical-align: super;
  letter-spacing: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ash);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ash);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--steel);
  padding: 24px 40px 32px;
  z-index: 99;
}

.nav__drawer.open { display: block; }

.nav__drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav__drawer ul a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 100px;
  max-width: 860px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ash);
  margin-bottom: 28px;
}

.hero__title em {
  font-style: normal;
  color: var(--rust);
}

.hero__rule {
  width: 48px;
  height: 3px;
  background-color: var(--rust);
  margin-bottom: 28px;
}

.hero__body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__body p + p { margin-top: 12px; }

.hero__cta {
  display: inline-block;
  background-color: var(--rust);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hero__cta:hover {
  background-color: var(--rust-dark);
  color: #fff;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 80px 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}

.section__heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ash);
  margin-bottom: 12px;
}

.section__sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--steel);
  margin: 0 40px;
}

/* ============================================================
   GAMES
   ============================================================ */
.games__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--steel);
  border: 1px solid var(--steel);
  border-radius: 4px;
  overflow: hidden;
}

.game-card {
  background-color: #111111;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  right: 0;
  height: 2px;
  background-color: var(--rust);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card:hover {
  background-color: #151515;
  border-left-color: var(--rust);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-card__status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rust);
}

.game-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ash);
  letter-spacing: -0.01em;
  max-width: 280px;
}

.game-card__abbr {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

.game-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}

.game-card__link:hover {
  gap: 14px;
  color: var(--ash);
}

.game-card__link::after {
  content: '→';
  font-size: 14px;
  letter-spacing: 0;
}

/* ============================================================
   DIRECTOR
   ============================================================ */
.director {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.director__bio {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
}

.director__links {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.director__link {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  transition: color 0.15s ease;
}

.director__link:hover { color: var(--ash); }

/* ============================================================
   INSIDER (email capture)
   ============================================================ */
.insider {
  background-color: #0F0F0F;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.insider__inner {
  padding: 80px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.insider__heading {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ash);
  margin-bottom: 16px;
}

.insider__body {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
}

.insider__form {
  display: flex;
  gap: 0;
  max-width: 480px;
}

.insider__input {
  flex: 1;
  background-color: #1A1A1A;
  border: 1px solid var(--steel);
  border-right: none;
  color: var(--ash);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 6px 0 0 6px;
  outline: none;
  transition: border-color 0.15s ease;
}

.insider__input::placeholder { color: var(--muted); }
.insider__input:focus { border-color: var(--rust); }

.insider__btn {
  background-color: var(--rust);
  border: 1px solid var(--rust);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.insider__btn:hover { background-color: var(--rust-dark); }

.insider__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.insider__confirm {
  display: none;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ash);
  margin-top: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--steel);
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__symbol {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.3;
}

.footer__mark {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover { color: var(--ash); }

.footer__legal {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--steel);
  font-size: 11px;
  color: var(--steel);
  line-height: 1.7;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No JS: show everything */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* Reduced motion: skip animation */
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal, .js .reveal.visible { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__drawer { padding: 24px; }

  .hero { padding: 100px 24px 80px; }

  .section { padding: 72px 24px; }
  .section-divider { margin: 0 24px; }

  .games__grid { grid-template-columns: 1fr; }
  .game-card { padding: 36px 28px 32px; }

  .insider__inner { padding: 72px 24px; }
  .insider__form { flex-direction: column; }
  .insider__input { border-right: 1px solid var(--steel); border-bottom: none; border-radius: 6px 6px 0 0; }
  .insider__btn { border-radius: 0 0 6px 6px; text-align: center; }

  .footer { padding: 40px 24px; }
  .footer__inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 40px; }
}
