/* ══════════════════════════════════════════════
   PROJECT HIEROPHANT — STRATEGIC LANDING PAGES
   Shared CSS for all 11 SEO landing templates.
   Mirrors autonomous-drone-mesh.html exactly.
══════════════════════════════════════════════ */

/* DESIGN TOKENS */
:root {
  --bg:        #000000;
  --bg-deep:   #020304;
  --bg-soft:   #05070a;
  --bg-panel:  #0a0d12;
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.12);
  --line-3:    rgba(255,255,255,.20);
  --ink:       #f2f0eb;
  --ink-soft:  rgba(242,240,235,.78);
  --ink-dim:   rgba(242,240,235,.62);
  --ink-muted: rgba(242,240,235,.38);
  --accent:    #e53e3e;
  --accent-2:  #c53030;
  --serif:     'Inria Serif', Georgia, serif;
  --sans:      'Inria Sans', -apple-system, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, monospace;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

/* film grain + vignette */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: .15; mix-blend-mode: overlay;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 85;
  background: radial-gradient(120% 80% at 50% 30%, transparent 36%, rgba(0,0,0,.75) 100%);
}

/* ANIMATIONS */
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(1.6); }
}
@keyframes pulse-glow {
  0%,100% { opacity: .45; }
  50%     { opacity: .9; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -40; }
}
@keyframes blink-offline {
  0%,100% { opacity: .25; }
  50%     { opacity: .55; }
}

/* BUTTONS */
.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 400;
  padding: 17px 30px; display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid var(--ink); color: var(--bg); background: var(--ink);
  transition: background .22s, color .22s, border-color .22s, transform .18s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-1px); }
.btn .arr { width: 22px; height: 1px; background: currentColor; position: relative; flex-shrink: 0; }
.btn .arr::after { content: ""; position: absolute; right: -1px; top: -3.5px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(72% 52% at 80% 6%, rgba(229,62,62,.10), transparent 55%),
    radial-gradient(50% 44% at 6% 94%, rgba(20,50,130,.07), transparent 55%),
    linear-gradient(180deg, #000 0%, #030508 65%, #000 100%);
  display: grid; grid-template-rows: auto 1fr;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 50%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 50%, #000 25%, transparent 80%);
}
.hero__scan {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.009) 3px 4px);
  mix-blend-mode: overlay;
}
.hero__inner {
  position: relative; z-index: 3;
  max-width: 1480px; margin: 0 auto; width: 100%;
  padding: 138px 56px 32px;
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 80px; align-items: end;
}
.tpage__breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 28px; }
.tpage__breadcrumb a { color: var(--ink-dim); text-decoration: none; transition: color .18s; }
.tpage__breadcrumb a:hover { color: var(--ink); }
.hero__eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-dim); display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
  opacity: 0; animation: rise .9s .1s ease forwards;
}
.hero__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex-shrink: 0; }
.hero__badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  padding: 4px 11px; border: 1px solid rgba(229,62,62,.55); color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.hero__h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: .96; letter-spacing: -0.022em; color: var(--ink);
  max-width: 16ch;
}
.hero__h1 .line { display: block; overflow: hidden; }
.hero__h1 .line span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s ease forwards; }
.hero__h1 .line:nth-child(1) span { animation-delay: .15s; }
.hero__h1 .line:nth-child(2) span { animation-delay: .28s; }
.hero__h1 .line:nth-child(3) span { animation-delay: .41s; }
.hero__h1 .line:nth-child(4) span { animation-delay: .54s; }
.hero__h1 em {
  font-style: italic; position: relative;
}
.hero__h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em;
  height: 1px; background: var(--accent); opacity: .9;
}
.hero__right {
  display: flex; flex-direction: column; gap: 30px; padding-bottom: 6px;
  opacity: 0; animation: rise 1s .72s ease forwards;
}
.hero__sub {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px); line-height: 1.65;
  color: var(--ink-soft); max-width: 44ch;
}
.hero__sub strong { color: var(--ink); font-weight: 400; }
.hero__ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* HERO SCHEMATIC */
.hero__viz {
  position: relative; z-index: 3;
  max-width: 1480px; margin: 0 auto; width: 100%;
  padding: 0 56px 40px;
  opacity: 0; animation: rise 1.2s 1.0s ease forwards;
}
.hero__viz-frame {
  position: relative; border-top: 1px solid var(--line);
  padding: 26px 0 0;
}
.hero__viz-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 16px;
}
.hero__viz-meta b { color: var(--accent); font-weight: 400; }
.hero__viz svg { width: 100%; height: auto; max-height: 540px; }

/* SECTION SHELLS */
.sec { padding: 140px 56px; border-top: 1px solid var(--line); position: relative; }
.sec__inner { max-width: 1480px; margin: 0 auto; }

.kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); }

.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 80px; }
.sec__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1; letter-spacing: -0.018em;
  max-width: 14ch;
}
.sec__title em { font-style: italic; color: var(--accent); }
.sec__intro {
  font-family: var(--sans); font-weight: 300;
  font-size: 16px; line-height: 1.65; color: var(--ink-soft);
  max-width: 50ch;
}

/* POSITION */
.position { background: var(--bg-deep); }
.position__statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 50px);
  line-height: 1.18; letter-spacing: -0.012em;
  max-width: 28ch;
  margin-bottom: 36px;
}
.position__statement em { color: var(--accent); font-style: italic; }
.position__body {
  font-family: var(--sans); font-weight: 300; font-size: 16px;
  line-height: 1.7; color: var(--ink-soft); max-width: 70ch;
}

/* THREATS */
.threats__list { border-top: 1px solid var(--line); }
.threat {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 56px; padding: 56px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
  cursor: default;
  position: relative;
}
.threat:hover { background: rgba(255,255,255,.012); }
.threat__num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 56px; line-height: 1; color: var(--ink-dim);
}
.threat__num::after {
  content: '';
  display: block;
  width: 20px; height: 20px;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='6.5' stroke='%23e53e3e' stroke-width='1.3'/%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%23e53e3e'/%3E%3Cline x1='10' y1='1' x2='10' y2='5.5' stroke='%23e53e3e' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='10' y1='14.5' x2='10' y2='19' stroke='%23e53e3e' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='1' y1='10' x2='5.5' y2='10' stroke='%23e53e3e' stroke-width='1.3' stroke-linecap='round'/%3E%3Cline x1='14.5' y1='10' x2='19' y2='10' stroke='%23e53e3e' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.threat__body { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; max-width: 80% !important; }
.threat__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.threat__class {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px;
}
.threat__desc {
  font-family: var(--sans); font-weight: 300;
  font-size: 14.5px; line-height: 1.7; color: var(--ink-soft);
  max-width: 80%;
}

/* CAPABILITIES */
.caps { background: var(--bg-deep); }
.caps__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 38px 32px 38px;
  background: var(--bg);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.cap:hover { background: var(--bg-panel); }
.cap__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .28em;
  color: var(--ink-dim); margin-bottom: 26px;
}
.cap__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 14px;
  min-height: 50px;
}
.cap__desc {
  font-family: var(--sans); font-weight: 300;
  font-size: 13.5px; line-height: 1.62; color: var(--ink-soft);
  margin-bottom: 22px;
}
.cap__tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* SCENARIOS */
.scenarios__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.scenario {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 44px 36px;
  background: var(--bg-deep);
  display: flex; flex-direction: column;
}
.scenario__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.scenario__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.scenario__quote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 17px; line-height: 1.55; color: var(--ink-soft);
  border-left: 1px solid var(--accent);
  padding-left: 22px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.scenario__tags { display: flex; gap: 10px; flex-wrap: wrap; }
.scenario__tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-dim);
  border: 1px solid var(--line-2);
  padding: 6px 11px;
}

/* PROOF / STATS */
.proof { background: var(--bg); }
.proof__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 56px 32px;
}
.stat__big {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(60px, 6vw, 96px); line-height: 1;
  color: var(--ink); margin-bottom: 18px;
}
.stat__label {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--ink); margin-bottom: 8px;
}
.stat__sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-dim);
}

/* ADJACENT */
.adjacent { background: var(--bg-deep); }
.adjacent__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.adjacent__item {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transition: background .25s;
  cursor: pointer;
}
.adjacent__item:last-child { border-right: none; }
.adjacent__item:hover { background: var(--bg-panel); }
.adjacent__label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-dim);
}
.adjacent__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.012em;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.adjacent__arrow {
  font-family: var(--mono); font-size: 22px; color: var(--ink-dim);
  transition: color .25s, transform .25s;
}
.adjacent__item:hover .adjacent__arrow { color: var(--accent); transform: translateX(4px); }
.adjacent__desc {
  font-family: var(--sans); font-weight: 300; font-size: 13.5px;
  line-height: 1.6; color: var(--ink-soft); max-width: 38ch;
}

/* CLOSING CTA */
.closing {
  text-align: center;
  padding: 180px 56px 160px;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(229,62,62,.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.closing__line {
  font-family: var(--mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 32px;
}
.closing__h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05; letter-spacing: -0.018em;
  max-width: 18ch; margin: 0 auto 56px;
}
.closing__h em { font-style: italic; color: var(--accent); }
.closing__ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 130px 28px 28px; }
  .hero__viz { padding: 0 28px 36px; }
  .sec { padding: 90px 28px; }
  .sec__head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .threat { grid-template-columns: 60px 1fr; gap: 24px; }
  .threat__body { grid-template-columns: 1fr; gap: 16px; }
  .threat__num { font-size: 36px; }
  .caps__grid, .proof__grid, .scenarios__grid, .adjacent__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 18px 24px; }
  .nav__crumb { display: none; }
}
@media (max-width: 580px) {
  .caps__grid, .proof__grid, .scenarios__grid, .adjacent__grid { grid-template-columns: 1fr; }
  .closing { padding: 110px 28px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
