:root {
  --black:  #080808;
  --dark:   #0e0e0e;
  --card:   #141414;
  --border: #222222;
  --white:  #f0ede8;
  --muted:  #888880;
  --orange: #E8651A;
  --orange2:#c4510f;
  --orange-glow: rgba(232,101,26,0.18);
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ── GRID NOISE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,101,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,101,26,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0;
}
.nav-logo .logo-text {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo .logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.nav-cta:hover { background: var(--orange2); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 6rem 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  opacity: 0;
  animation: fadeUp .8s .2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--white);
  position: relative; z-index: 1;
  opacity: 0;
  animation: fadeUp .8s .4s forwards;
}
.hero h1 .accent { color: var(--orange); }

.hero-sub {
  margin-top: 2rem;
  max-width: 520px;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  position: relative; z-index: 1;
  opacity: 0;
  animation: fadeUp .8s .6s forwards;
  line-height: 1.8;
}

.hero-metrics {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  position: relative; z-index: 1;
  opacity: 0;
  animation: fadeUp .8s .8s forwards;
}
.metric { }
.metric .num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--orange);
  line-height: 1;
}
.metric .label {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  animation: pulse 2s infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--orange), transparent);
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.section-body {
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.85;
}

/* ── RUPTURE SECTION ── */
.rupture {
  padding: 8rem 6rem;
  border-top: 1px solid var(--border);
}
.rupture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: center;
}
.rupture-text { }
.rupture-diagram { position: relative; }

/* ── DIAGRAM 1: Wave Cancellation ── */
.diag-container {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.diag-container::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}
.diag-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── PILLARS ── */
.pillars {
  padding: 6rem 6rem;
  border-top: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  transition: background .2s;
  cursor: default;
}
.pillar-card:hover { background: #1a1a1a; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color .2s;
}
.pillar-card:hover .pillar-num { color: var(--orange); }
.pillar-name {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .75rem;
}
.pillar-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}
.pillar-tag {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  border: 1px solid var(--orange);
  padding: 3px 10px;
}

/* ── ARCHITECTURE SECTION ── */
.architecture {
  padding: 8rem 6rem;
  border-top: 1px solid var(--border);
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  margin-top: 4rem;
  align-items: start;
}
.arch-layers { display: flex; flex-direction: column; gap: 1px; }
.arch-layer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-left: 3px solid var(--border);
  transition: border-color .2s, background .2s;
  cursor: default;
}
.arch-layer:hover { border-left-color: var(--orange); background: #1a1a1a; }
.layer-n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  width: 24px;
  flex-shrink: 0;
}
.layer-name {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex: 1;
}
.layer-fn {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ── THREAT SECTION ── */
.threats {
  padding: 6rem 6rem;
  border-top: 1px solid var(--border);
  background: var(--dark);
}
.threat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
}
.threat-card {
  background: var(--dark);
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--border);
  transition: border-top-color .2s;
}
.threat-card:hover { border-top-color: var(--orange); }
.threat-class {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.threat-name {
  font-family: var(--font-cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.threat-sig {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  margin-bottom: .75rem;
  opacity: .7;
}
.threat-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}
.threat-bar {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.threat-bar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  width: 52px;
  text-transform: uppercase;
}
.threat-bar-track {
  flex: 1;
  height: 3px;
  background: var(--border);
}
.threat-bar-fill {
  height: 100%;
  background: var(--orange);
  transition: width .8s;
}

/* ── DOCTRINE SECTION ── */
.doctrine {
  padding: 8rem 6rem;
  border-top: 1px solid var(--border);
}
.defcon-ladder {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 760px;
}
.defcon-row {
  display: flex;
  align-items: stretch;
  background: var(--card);
  transition: background .2s;
  cursor: default;
}
.defcon-row:hover { background: #1a1a1a; }
.defcon-level {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  border-right: 1px solid var(--border);
  padding: 1.25rem;
}
.defcon-row:nth-child(1) .defcon-level { color: #4CAF50; }
.defcon-row:nth-child(2) .defcon-level { color: #8BC34A; }
.defcon-row:nth-child(3) .defcon-level { color: var(--orange); }
.defcon-row:nth-child(4) .defcon-level { color: #E8471A; }
.defcon-row:nth-child(5) .defcon-level { color: #cc1a1a; }
.defcon-content { padding: 1.25rem 1.5rem; flex: 1; }
.defcon-status {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.defcon-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.defcon-actions {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-left: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ── BOOK PROMO ── */
.book-promo {
  padding: 8rem 6rem;
  border-top: 1px solid var(--border);
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.book-cover-mock {
  position: relative;
  aspect-ratio: 6/9;
  max-width: 300px;
  background: #0e0e18;
  border: 1px solid var(--orange);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
}
.book-cover-mock::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent var(--orange) transparent transparent;
}
.book-spine-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-bottom: 1.5rem;
}
.book-series {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--orange);
  opacity: .7;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.book-title-mock {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.95;
  color: var(--white);
  flex: 1;
}
.book-title-mock span { color: var(--orange); }
.book-author-mock {
  font-family: var(--font-cond);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: auto;
}
.book-canvas-small {
  width: 100%;
  height: 70px;
  margin: 1rem 0;
}
.book-info { }
.book-price {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--orange);
  line-height: 1;
  margin: 1rem 0;
}
.book-price span {
  font-size: 20px;
  color: var(--muted);
  font-family: var(--font-cond);
  vertical-align: super;
}
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  padding: 14px 32px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  margin-left: 1rem;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  background: transparent;
  padding: 14px 32px;
  text-decoration: none;
  transition: background .2s;
  border: 1px solid var(--orange);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--orange-glow); }

/* ── CONTACT ── */
.contact {
  padding: 8rem 6rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-email {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 4px;
  transition: opacity .2s;
}
.contact-email:hover { opacity: .7; }
.contact-note {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.footer-domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}
