/* ============================================================
   LifeRP — Site Stylesheet
   Dark tactical theme / gold keystone accent
   ============================================================ */

:root {
  --bg: #0c0d10;
  --bg-alt: #101218;
  --surface: #14161d;
  --surface-2: #1a1d26;
  --border: #262a36;
  --text: #e8eaee;
  --text-dim: #9aa1af;
  --text-faint: #6b7280;
  --gold: #d9a441;
  --gold-bright: #f0c46a;
  --gold-dim: rgba(217, 164, 65, 0.12);
  --blue: #4f7cba;
  --red: #c05252;
  --green: #5fa26a;
  --radius: 10px;
  --font-head: "Chakra Petch", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Navbar ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img { width: 36px; height: 36px; }
.nav-brand span em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--gold); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #16130a;
}
.btn-gold:hover { box-shadow: 0 6px 24px rgba(217, 164, 65, 0.35); color: #16130a; }

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

.btn-discord {
  background: #5865f2;
  color: #fff;
}
.btn-discord:hover { box-shadow: 0 6px 24px rgba(88, 101, 242, 0.4); color: #fff; }

.btn svg { width: 18px; height: 18px; }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(217, 164, 65, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(79, 124, 186, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(232, 234, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 234, 238, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero h1 em { color: var(--gold); font-style: normal; }

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* ---------------- Stats strip ---------------- */

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(20, 22, 29, 0.6);
  backdrop-filter: blur(6px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}
.stat {
  padding: 30px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------- Sections ---------------- */

.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-transform: uppercase;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------------- Feature rows ---------------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-media { order: 2; }

.feature-copy .eyebrow { margin-bottom: 10px; }
.feature-copy h3 { font-size: 1.9rem; text-transform: uppercase; margin-bottom: 16px; }
.feature-copy p { color: var(--text-dim); margin-bottom: 22px; }

.feature-list { list-style: none; }
.feature-list li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--text);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  clip-path: polygon(0 40%, 35% 75%, 100% 10%, 100% 35%, 35% 100%, 0 65%);
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-media svg.scene { width: 100%; height: 100%; }
.feature-media .media-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(12, 13, 16, 0.7);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 5px;
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.45); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(217, 164, 65, 0.16), transparent 65%),
    var(--bg-alt);
  text-align: center;
  padding: 100px 24px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; }
.cta-band p { color: var(--text-dim); max-width: 560px; margin: 16px auto 34px; }

/* ---------------- Page hero (subpages) ---------------- */

.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  background:
    radial-gradient(ellipse 70% 100% at 50% -30%, rgba(217, 164, 65, 0.10), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); text-transform: uppercase; }
.page-hero p { color: var(--text-dim); margin-top: 14px; max-width: 680px; font-size: 1.05rem; }

/* ---------------- Rules layout ---------------- */

.rules-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  padding: 64px 0 110px;
  align-items: start;
}

.rules-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-left: 2px solid var(--border);
}
.rules-nav a {
  display: block;
  padding: 7px 0 7px 18px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.rules-nav a:hover { color: var(--text); }
.rules-nav a.active { color: var(--gold); border-left-color: var(--gold); }

.rule-section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.rule-section h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rule-section h2 .rule-no { color: var(--gold); margin-right: 10px; }

.rule {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 0;
}
.rule + .rule { border-top: 1px solid rgba(38, 42, 54, 0.6); }
.rule-id {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  padding-top: 2px;
}
.rule-body strong { color: var(--text); }
.rule-body { color: var(--text-dim); font-size: 0.97rem; }

.notice {
  display: flex;
  gap: 14px;
  background: var(--gold-dim);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 40px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.notice svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--gold); margin-top: 2px; }
.notice strong { color: var(--gold); }

/* ---------------- Pricing / monetization ---------------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.featured { border-color: var(--gold); background: linear-gradient(180deg, rgba(217, 164, 65, 0.07), var(--surface) 40%); }
.tier-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #16130a;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
}
.tier h3 { font-size: 1.2rem; text-transform: uppercase; }
.tier-price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 12px 0 4px;
}
.tier-price span { font-size: 0.95rem; color: var(--text-faint); font-weight: 400; }
.tier .feature-list { margin: 22px 0 28px; flex: 1; }
.tier .btn { width: 100%; }

/* ---------------- Credits ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.member:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, 0.45); }
.member-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.member h3 { font-size: 1.05rem; }
.member .role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.member p { color: var(--text-dim); font-size: 0.88rem; margin-top: 10px; }

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

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 0.93rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--text-dim); font-size: 0.93rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------------- Reveal animations ---------------- */

/* Hidden state only applies when JS is running (html.js set by inline script),
   so content is never invisible if scripts don't load. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .card-grid, .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-layout { grid-template-columns: 1fr; gap: 0; }
  .rules-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; font-size: 1rem; }
  .nav-cta { margin: 12px 0 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { width: 100%; }
}
