@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Quantico:wght@400;700&display=swap");

:root {
  --bg: #070707;
  --bg-elevated: #0e0e0e;
  --bg-card: #121212;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --accent: #e30613;
  --accent-dim: rgba(227, 6, 19, 0.2);
  --accent-hot: #ff2a36;
  --accent-deep: #9f0410;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --nav-h: 78px;
  --font-body: Inter, system-ui, sans-serif;
  --font-display: Quantico, Inter, sans-serif;
  --clip-btn: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container-wide {
  width: min(1320px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* NAV */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35), transparent);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}

.site-nav.is-scrolled {
  background: rgba(7, 7, 7, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.logo-mark {
  width: auto;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(227, 6, 19, 0.35));
}

.logo-mark.is-footer {
  height: 64px;
}

.logo-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: var(--clip-btn);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--accent);
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px transparent;
}

.btn-outline:hover {
  background: var(--accent-dim);
}

.btn-solid {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-solid:hover {
  background: #222;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  filter: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.35) 0%, rgba(7, 7, 7, 0.55) 45%, rgba(7, 7, 7, 0.92) 78%, #070707 100%),
    linear-gradient(90deg, rgba(7, 7, 7, 0.55), transparent 35%, transparent 65%, rgba(7, 7, 7, 0.55)),
    url("../img/hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.45);
  animation: pulse 1.8s ease infinite;
}

.status-dot.is-offline {
  background: #6b7280;
  box-shadow: none;
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(227, 6, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 16ch;
  margin: 0 auto 1.25rem;
  opacity: 0;
  animation: rise 0.85s ease 0.28s forwards;
}

.hero h1 .accent {
  color: var(--accent);
  display: block;
}

.statement .accent,
.section-head h2 .accent,
.cta-band h2 .accent,
.accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.98rem, 1.5vw, 1.125rem);
  opacity: 0;
  animation: rise 0.85s ease 0.4s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.85s ease 0.52s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* STATEMENT */
.statement {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
}

.statement p {
  max-width: 48rem;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.statement .accent {
  color: var(--accent);
  font-weight: 600;
}

/* FEATURES */
.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.section-head h2 .accent {
  color: var(--accent);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-inline: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  isolation: isolate;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.5);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.6s ease, opacity 0.35s ease;
}

.feature-card:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.88) 100%);
  z-index: 1;
}

.feature-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.4rem 1.35rem 1.5rem;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.feature-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA BAND */
.cta-band {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 6, 19, 0.2), transparent 55%),
    linear-gradient(180deg, transparent, rgba(7, 7, 7, 0.4));
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}

.cta-band h2 .accent {
  color: var(--accent);
  display: block;
}

.cta-band p {
  position: relative;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* INNER PAGES */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.connect-card,
.rules-section {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.connect-card h2,
.rules-section h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.connect-code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.connect-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #111;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  color: var(--accent);
  font-size: 1rem;
}

.rules-section li {
  list-style: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rules-section li:last-child {
  border-bottom: 0;
}

.rules-section li strong {
  color: #fff;
  margin-right: 0.35rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

/* MOBILE */
@media (max-width: 900px) {
  .logo-mark {
    height: 42px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 7, 7, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.95rem 1.25rem;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding-bottom: 4rem;
  }
}
