@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-void: #121214;
  --bg-dark: #1a1b1d;
  --bg-panel: #202124;
  --bg-panel-alt: #26272a;
  --stone-line: #3a3b3e;
  --accent-red: #e03a2f;
  --accent-red-bright: #ff6a4d;
  --accent-red-dim: #8e1a12;
  --wood: #8a6b52;
  --text-light: #f4f1ea;
  --text-muted: #b6b3ac;
  --text-dim: #83807a;
  --font-head: 'Press Start 2P', monospace;
  --font-body: 'Inter', sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; pointer-events: none; }

body {
  background: var(--bg-void);
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  transition: opacity .4s ease;
}
#preloader img { width: 50px; height: 50px; }

/* Redstone divider */
.divider {
  height: 26px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent-red-dim) 0px, var(--accent-red-dim) 10px,
    transparent 10px, transparent 14px,
    var(--stone-line) 14px, var(--stone-line) 24px,
    transparent 24px, transparent 28px
  );
  background-size: 56px 6px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: .55;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(18, 18, 20, .55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 58, 47, 0);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(18, 18, 20, .92);
  border-bottom: 1px solid rgba(224, 58, 47, .35);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav .nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav .nav-link:hover { color: var(--text-light); }
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent-red);
  transition: width .2s ease;
}
.main-nav .nav-link:hover::after { width: 100%; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--accent-red-bright), var(--accent-red));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border: 2px solid var(--accent-red-dim);
  box-shadow: 0 0 0 2px rgba(224,58,47,.15), 0 4px 14px rgba(224,58,47,.25);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(224,58,47,.3), 0 8px 20px rgba(224,58,47,.4);
}

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 110;
}
.burger-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--text-light);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 10px; }
.burger-btn span:nth-child(3) { top: 20px; }
.burger-btn.act span:nth-child(1) { top: 10px; transform: rotate(45deg); background: var(--accent-red-bright); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 10px; transform: rotate(-45deg); background: var(--accent-red-bright); }

#mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--bg-dark);
  z-index: 90;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu .nav-link { font-size: 16px; font-weight: 600; color: var(--text-light); }
#mobile-menu .header-cta { align-self: flex-start; margin-top: 8px; }
body.fixed { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 100px;
  background: linear-gradient(180deg, rgba(18,18,20,.35) 0%, rgba(18,18,20,.85) 70%, var(--bg-void) 100%), url('../img/hero-bg.webp') center / cover no-repeat;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-red-bright) 20%, var(--accent-red) 50%, var(--accent-red-bright) 80%, transparent);
  opacity: .8;
  filter: drop-shadow(0 0 6px var(--accent-red));
  animation: dustflow 3.4s linear infinite;
  background-size: 200% 100%;
}
.hero::before { top: 22%; animation-duration: 4.2s; }
.hero::after { top: 68%; animation-duration: 3.1s; animation-direction: reverse; }
@keyframes dustflow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 4.4vw, 38px);
  line-height: 1.6;
  color: var(--text-light);
  text-shadow: 0 0 18px rgba(224,58,47,.35);
}
.hero-subtitle {
  margin-top: 22px;
  font-size: 17px;
  color: var(--text-muted);
}
.hero-support {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.hero-actions { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.btn-redstone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  color: #fff;
  padding: 18px 32px;
  background: linear-gradient(180deg, var(--accent-red-bright) 0%, var(--accent-red) 55%, var(--accent-red-dim) 100%);
  border: 3px solid #6b120c;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -4px 0 rgba(0,0,0,.35), 0 0 24px rgba(224,58,47,.45);
  animation: levitate 3s ease-in-out infinite;
  transition: box-shadow .2s ease, filter .2s ease;
}
.btn-redstone:hover {
  animation-play-state: paused;
  filter: brightness(1.15);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(0,0,0,.35), 0 0 34px rgba(255,106,77,.65);
}
@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-note { font-size: 12.5px; color: var(--text-dim); }

/* Section shell */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-dark); }
.section-panel { background: var(--bg-panel); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.7;
  color: var(--text-light);
}
.section-intro { margin-top: 16px; font-size: 15.5px; color: var(--text-muted); }

/* Carousel / Map showcase */
.map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.map-card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--stone-line);
  border-top: 3px solid var(--accent-red);
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.map-card:hover { transform: translateY(-4px); border-top-color: var(--accent-red-bright); }
.map-card h3 {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.map-card p { font-size: 14.5px; color: var(--text-muted); }
.map-card .gif-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent-red-bright);
  letter-spacing: .3px;
}
.map-caption {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-dim);
}

.shot-strip {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shot-strip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--stone-line);
}

/* Why Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--bg-panel);
  border: 1px solid var(--stone-line);
  padding: 28px 22px;
  text-align: left;
}
.why-card .num {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--accent-red-bright);
  display: block;
  margin-bottom: 14px;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
}
.why-card p { font-size: 14px; color: var(--text-muted); }

/* Social proof */
.proof-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-box {
  background: var(--bg-panel-alt);
  border-left: 3px solid var(--accent-red);
  padding: 20px;
}
.stat-box .value {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
}
.stat-box .label { font-size: 13px; color: var(--text-muted); }

.quote-list { display: flex; flex-direction: column; gap: 18px; }
.quote-card {
  background: var(--bg-panel);
  border: 1px solid var(--stone-line);
  padding: 22px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  position: relative;
}
.quote-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--accent-red-bright);
  font-weight: 600;
}
.proof-closing {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* How to install */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step-card {
  padding: 0 18px;
  position: relative;
  text-align: center;
}
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  right: -2px;
  width: calc(100% - 52px);
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dim));
  box-shadow: 0 0 8px rgba(224,58,47,.5);
}
.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-red-bright), var(--accent-red-dim));
  border: 2px solid var(--accent-red-dim);
  position: relative;
  z-index: 1;
}
.step-card h3 { font-size: 15.5px; font-weight: 700; color: var(--text-light); margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); }
.steps-cta { text-align: center; margin-top: 56px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--bg-panel-alt);
  border: 1px solid var(--stone-line);
  padding: 22px 26px;
}
.faq-item .q {
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-light);
}
.faq-item .q .qnum {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--accent-red-bright);
  flex-shrink: 0;
}
.faq-item .a { margin-top: 12px; margin-left: 30px; font-size: 14.5px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--stone-line);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .logo img { height: 24px; }
.footer-brand p {
  margin-top: 16px;
  max-width: 420px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 28px; align-items: flex-start; }
.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--accent-red-bright); }
.footer-disclaimer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-line);
  font-size: 11.5px;
  letter-spacing: .3px;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-bottom {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Legal pages */
.legal-page { padding: calc(var(--header-h) + 60px) 0 100px; }
.legal-content { max-width: 820px; margin: 0 auto; color: var(--text-muted); font-size: 15px; }
.legal-content h1 {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
}
.legal-content h2 {
  font-size: 19px;
  color: var(--text-light);
  margin: 34px 0 14px;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol { margin: 14px 0 14px 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent-red-bright); text-decoration: underline; }
.legal-content strong { color: var(--text-light); }

/* Responsive */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .step-card:nth-child(2)::after { display: none; }
  .proof-wrap { grid-template-columns: 1fr; }
  .shot-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .site-header .header-cta { display: none; }
  .burger-btn { display: block; }
  .logo img { height: 34px; }
  .map-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .shot-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: calc(var(--header-h) + 56px) 0 64px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none !important; }
  .shot-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
