/* =====================================================
   TRENCHO — Dark Military Tech Design System
   ===================================================== */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #0f0f0f;
  --bg-3:      #141414;
  --surface:   #181818;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);

  --amber:     #8a9a5b;
  --amber-dim: #6b7a42;
  --amber-glow:rgba(138,154,91,0.18);
  --white:     #f5f5f0;
  --muted:     #7a7a72;
  --muted-2:   #555550;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --max-w:     1160px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* NOISE TEXTURE */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

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

/* =====================================================
   NAV
   ===================================================== */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-sword {
  font-size: 20px;
  filter: sepia(1) saturate(4) hue-rotate(10deg);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--amber);
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-right {
  display: flex; align-items: center; gap: 12px;
}
.btn-launch {
  background: var(--amber);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-launch:hover {
  background: #a0b46a;
  transform: translateY(-1px);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu ul {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mm-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mm-link:hover { color: var(--white); }
.mm-cta {
  margin-top: 8px;
  color: var(--amber) !important;
  border: none !important;
  font-weight: 700;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #a0b46a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(138,154,91,.3);
}
.btn-primary.btn-xl {
  font-size: 17px;
  padding: 17px 36px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-hi);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: radial-gradient(circle, #8a9a5b 0%, transparent 70%);
  opacity: .12;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, #8a9a5b 0%, transparent 70%);
  opacity: .08;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138,154,91,.08);
  border: 1px solid rgba(138,154,91,.2);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 820px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--amber);
  display: block;
}
.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

/* HERO STATS */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 700px;
}
.stat {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}
.stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 12px 0;
}
.stat-icon { font-size: 22px; flex-shrink: 0; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted-2), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =====================================================
   SECTION SHARED
   ===================================================== */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   FEATURES / PILLARS
   ===================================================== */
.features-section {
  padding: 120px 0;
  position: relative;
}
.features-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--bg-2);
  padding: 48px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s;
}
.pillar:hover { background: var(--bg-3); }
.pillar-featured {
  background: var(--surface) !important;
  z-index: 1;
}
.pillar-featured:hover { background: #202020 !important; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.pillar-flag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 40px;
}
.pillar-icon { font-size: 36px; }
.pillar-title {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.pillar-featured .pillar-title { color: var(--amber); }
.pillar-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  flex: 1;
}
.pillar-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.pillar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 12px;
}
.pillar-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: .04em;
  margin-top: 8px;
  border-bottom: 1px solid rgba(138,154,91,.3);
  padding-bottom: 2px;
  transition: border-color .2s, letter-spacing .2s;
  align-self: flex-start;
}
.pillar-cta:hover {
  border-color: var(--amber);
  letter-spacing: .08em;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how-section {
  padding: 120px 0;
  position: relative;
}
.how-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.loop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.loop-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.loop-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 28px;
}
.loop-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ls {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
.ls:hover {
  border-color: var(--border-hi);
  background: var(--bg-3);
}
.ls-n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  font-weight: 500;
}
.ls-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.ls-desc {
  font-size: 12px;
  color: var(--muted);
}
.ls-arrow {
  color: var(--amber);
  font-size: 18px;
}
.ls-ico { font-size: 16px; }
.loop-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 24px;
  letter-spacing: .08em;
}
.how-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.how-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.hp-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.hp-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-point p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* =====================================================
   MODULES GRID
   ===================================================== */
.modules-section {
  padding: 120px 0;
  position: relative;
}
.modules-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mod-card {
  background: var(--bg-2);
  padding: 32px 28px;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.mod-card:hover { background: var(--bg-3); }
.mod-card:hover .mod-name { color: var(--amber); }
.mod-icon { font-size: 28px; }
.mod-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: color .2s;
}
.mod-tag {
  display: inline-block;
  background: rgba(138,154,91,.1);
  border: 1px solid rgba(138,154,91,.2);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: 40px;
  align-self: flex-start;
}
.mod-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  padding: 100px 0;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 0% 50%, var(--amber-glow), transparent);
  pointer-events: none;
}
.cta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: 12px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  text-transform: uppercase;
  line-height: .95;
}
.cta-title em {
  font-style: normal;
  color: var(--amber);
}
.cta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  margin-top: 24px;
  letter-spacing: .08em;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

/* =====================================================
   POPUP
   ===================================================== */
.popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.popup-box {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(.95);
  transition: transform .25s;
}
.popup-overlay.active .popup-box {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.popup-close:hover { color: var(--white); }
.popup-icon { font-size: 48px; }
.popup-box h3 {
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.popup-box p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar-featured { order: -1; }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-inner {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-launch { display: none; }
  .burger { display: flex; }

  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-stats { flex-direction: column; }
  .stat-sep { width: auto; height: 1px; margin: 0 12px; }
  .stat { min-width: auto; }

  .section-title { margin-bottom: 40px; }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .cta-inner::before {
    background: radial-gradient(ellipse 100% 60% at 50% 0%, var(--amber-glow), transparent);
  }
  .cta-right {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }

  .pillar { padding: 36px 28px; }
  .scroll-hint { display: none; }

  .how-grid { gap: 40px; }

  .features-section,
  .how-section,
  .modules-section,
  .cta-band { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-h1 { letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .popup-box { padding: 32px 24px; }
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */
.video-section {
  padding: 0 0 100px;
  position: relative;
}
.video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138,154,91,.08);
  border: 1px solid rgba(138,154,91,.2);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
}
.video-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.video-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), transparent);
  z-index: 1;
}
.site-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
