/* ============================================================
   TRAILFORGE — Brand CSS
   Typography: Bebas Neue (display) + Barlow (body)
   Palette: Forest Midnight + Ember Orange + Bone White
   ============================================================ */

:root {
  --bg: #080f08;
  --bg-surface: #111a11;
  --bg-surface2: #0d1a0d;
  --fg: #f2ede4;
  --fg-muted: #9aaa9a;
  --accent: #e8632a;
  --accent-dim: rgba(232, 99, 42, 0.15);
  --green: #3d6b47;
  --charcoal: #1e1e1e;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Arial', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.hero__ember-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 80%, rgba(232, 99, 42, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 20%, rgba(61, 107, 71, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #080f08 0%, #0f1a0f 40%, #111a11 100%);
  z-index: 0;
}

.hero__smoke-layer {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.008) 3px, rgba(255,255,255,0.008) 4px);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  top: 40%;
  left: 20%;
  box-shadow:
    0 0 8px 2px rgba(232, 99, 42, 0.6),
    20vw 30vh 0 rgba(232, 99, 42, 0.4),
    70vw 60vh 0 rgba(232, 99, 42, 0.3),
    10vw 80vh 0 rgba(232, 99, 42, 0.5);
  animation: ember-pulse 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes ember-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 140px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-shadow: 0 0 80px rgba(232, 99, 42, 0.2), 0 0 120px rgba(232, 99, 42, 0.1);
  margin-bottom: 32px;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero__scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

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

/* MANIFESTO */
.manifesto {
  padding: 120px 24px;
  background: var(--bg-surface);
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.manifesto__inner { max-width: 720px; margin: 0 auto; }

.manifesto__bar {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 40px;
}

.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 48px;
}

.manifesto__body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}

/* GEAR */
.gear { padding: 120px 24px; background: var(--bg); }

.gear__header { text-align: center; margin-bottom: 80px; }

.gear__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 16px;
}

.gear__sub {
  font-size: 16px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

.gear__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.gear__card { padding: 48px 40px; position: relative; overflow: hidden; transition: all 0.3s ease; cursor: default; }

.gear__card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gear__card--survival { background: var(--bg-surface2); }
.gear__card--survival::before { background: linear-gradient(135deg, rgba(232, 99, 42, 0.08), transparent); }

.gear__card--camping { background: #0c1a0c; }
.gear__card--camping::before { background: linear-gradient(135deg, rgba(61, 107, 71, 0.08), transparent); }

.gear__card--tactical { background: var(--bg-surface); }
.gear__card--tactical::before { background: linear-gradient(135deg, rgba(242, 237, 228, 0.05), transparent); }

.gear__card:hover::before { opacity: 1; }
.gear__card:hover { transform: translateY(-2px); }

.gear__card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.gear__card:hover::after { transform: scaleX(1); }

.gear__card-icon { margin-bottom: 24px; }

.gear__card-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 16px;
}

.gear__card-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 340px;
}

@media (min-width: 768px) {
  .gear__grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* PRINCIPLES */
.principles {
  padding: 120px 24px;
  background: var(--bg-surface2);
  position: relative;
}

.principles::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,99,42,0.3), transparent);
}

.principles__inner { max-width: 900px; margin: 0 auto; }

.principles__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 64px;
  text-align: center;
}

.principles__list { display: flex; flex-direction: column; gap: 0; }

.principles__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: start;
}

.principles__item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.principles__num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.principles__content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.principles__content p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* PROOF */
.proof { padding: 120px 24px; background: var(--bg); }
.proof__inner { max-width: 900px; margin: 0 auto; }

.proof__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 64px;
  text-align: center;
}

.proof__stats {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(232, 99, 42, 0.2);
  margin-bottom: 64px;
}

.proof__stat {
  padding: 40px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(232, 99, 42, 0.15);
  transition: background 0.3s ease;
}

.proof__stat:last-child { border-bottom: none; }
.proof__stat:hover { background: var(--bg-surface); }

.proof__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.proof__label {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
}

@media (min-width: 640px) {
  .proof__stats { grid-template-columns: 1fr 1fr 1fr; }
  .proof__stat { border-bottom: none; border-right: 1px solid rgba(232, 99, 42, 0.15); }
  .proof__stat:last-child { border-right: none; }
}

.proof__callout {
  padding: 40px;
  border-left: 3px solid var(--accent);
  background: var(--bg-surface);
}

.proof__callout p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
}

/* PHILOSOPHY */
.philosophy { padding: 120px 24px; background: var(--bg-surface); }
.philosophy__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 64px; }

.philosophy__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 99, 42, 0.4);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.philosophy__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.philosophy__right p {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 300;
}

.philosophy__rule { margin-top: 40px; padding-top: 40px; }
.philosophy__rule-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 20px; }
.philosophy__rule p { font-size: 15px; color: var(--accent); font-style: italic; }

@media (min-width: 768px) {
  .philosophy__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; }
}

/* CLOSING */
.closing {
  padding: 160px 24px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(232, 99, 42, 0.08) 0%, transparent 70%);
}

.closing__inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.closing__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--fg);
  margin-bottom: 40px;
  text-shadow: 0 0 80px rgba(232, 99, 42, 0.15);
}

.closing__body {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto 64px;
  line-height: 1.7;
  font-weight: 300;
}

.closing__ember-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(232, 99, 42, 0.5);
}

/* TRUST BAR */
.trust-bar {
  padding: 48px 24px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(232, 99, 42, 0.2);
  border-bottom: 1px solid rgba(232, 99, 42, 0.2);
}

.trust-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 640px) {
  .trust-bar__inner { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.trust-bar__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 99, 42, 0.4);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-bar__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.trust-bar__label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.trust-bar__copy {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* FOOTER */
.footer {
  padding: 48px 24px;
  background: var(--bg-surface2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer__logo {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin-bottom: 6px;
}

.footer__tagline { font-size: 13px; color: var(--fg-muted); font-weight: 300; }
.footer__note { font-size: 12px; color: rgba(242, 237, 228, 0.3); letter-spacing: 0.08em; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* MOBILE */
@media (max-width: 480px) {
  .hero, .manifesto, .gear, .principles, .proof, .philosophy { padding: 80px 20px; }
  .gear__card { padding: 32px 24px; }
  .closing { padding: 100px 20px; }
  .proof__stat { padding: 28px 20px; }
  .principles__item { grid-template-columns: 60px 1fr; }
}