/* ==========================================================================
   Martial Vision Initiative — dark cinematic theme
   Plain CSS, no frameworks. Pairs with script.js (word rotation + reveals).
   ========================================================================== */

:root {
  --bg: #0d0c0b;
  --bg-elev: #14120f;
  --bg-panel: #1a1714;
  --line: #2b2620;
  --text: #f2ede6;
  --muted: #a89e93;
  --faint: #6f665c;
  --accent: #e63c30;
  --accent-deep: #b3261e;
  --blue: #78aaeb;
  --amber: #e0a53a;
  --green: #58c27a;
  --seg-standing: #55504a;
  --seg-guard: #4a749e;
  --seg-half: #a8843c;
  --seg-side: #b3403a;
  --seg-mount: #7a5aa8;
  --seg-scramble: #3a352f;
  --max: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

a { color: var(--accent); }

::selection { background: var(--accent-deep); color: #fff; }

/* ---------- Scroll reveals (JS adds .js to <html>) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 12, 11, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.wordmark span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-cta {
  color: #fff !important;
  background: var(--accent-deep);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--accent); }

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

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 237, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 230, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 75%);
}

.hero-keypoints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-8px); }
  to   { transform: translateY(8px); }
}

.hero-content { position: relative; max-width: 56rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 2rem;
  background: rgba(26, 23, 20, 0.7);
}

.status-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 60, 48, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(230, 60, 48, 0); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.rotator-wrap {
  display: inline-block;
  min-width: 10ch;
  text-align: left;
}

.rotator {
  display: inline-block;
  font-style: italic;
  color: var(--accent);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotator-out { opacity: 0; transform: translateY(-0.5em); }

.rotator-in { animation: rotator-in 0.4s ease; }

@keyframes rotator-in {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: none; }
}

.accent-dot { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 46rem;
  margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--faint);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: var(--muted);
  margin-top: 7px;
  animation: hint 1.8s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--accent); }

.btn-ghost { color: var(--text); border: 1px solid var(--faint); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

.btn-light { background: #fff; color: #14120f; }
.btn-light:hover { background: var(--text); }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 1.1rem 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text);
  white-space: nowrap;
}

.ticker-track i { color: var(--accent); font-style: normal; font-size: 1rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

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

.section {
  padding: 6rem max(1.5rem, calc((100% - var(--max)) / 2));
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 24ch;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 3rem;
}

.strike-accent { color: var(--accent); font-style: italic; }

/* ---------- Product showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.app-frame {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a352f; }
.chrome-dot:first-child { background: var(--accent-deep); }

.chrome-title {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-canvas {
  position: relative;
  background: #0a0908;
  aspect-ratio: 640 / 330;
}

.app-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.chip {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 12, 11, 0.85);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.chip b { font-family: var(--mono); font-weight: 700; margin-left: 0.3rem; }

.chip-confident { border: 1px solid rgba(88, 194, 122, 0.5); color: var(--green); }

.chip-review { border: 1px solid rgba(224, 165, 58, 0.5); color: var(--amber); }

.canvas-time {
  position: absolute;
  bottom: 4%; left: 3%;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.app-timeline { padding: 0.9rem 1rem 1rem; }

.tl-track {
  position: relative;
  display: flex;
  gap: 3px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
}

.tl-seg {
  width: var(--w);
  background: var(--c);
  position: relative;
  transform-origin: left center;
}

.js .showcase.reveal .tl-seg { transform: scaleX(0); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.js .showcase.reveal.visible .tl-seg { transform: scaleX(1); }
.showcase.reveal.visible .tl-seg:nth-child(2) { transition-delay: 0.1s; }
.showcase.reveal.visible .tl-seg:nth-child(3) { transition-delay: 0.2s; }
.showcase.reveal.visible .tl-seg:nth-child(4) { transition-delay: 0.3s; }
.showcase.reveal.visible .tl-seg:nth-child(5) { transition-delay: 0.4s; }
.showcase.reveal.visible .tl-seg:nth-child(6) { transition-delay: 0.5s; }

.tl-seg::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  white-space: nowrap;
}

.tl-seg[style*="--w: 8%"]::after,
.tl-seg[style*="--w: 12%"]::after { content: ""; }

.tl-playhead {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 41%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.tl-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tl-query { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }

.tl-count { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); }

/* Step rail */

.step-rail { list-style: none; display: flex; flex-direction: column; }

.step-rail li {
  display: flex;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.step-rail li:first-child { padding-top: 0; }
.step-rail li:last-child { border-bottom: none; }

.step-rail b {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.35rem;
}

.step-rail h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }

.step-rail p { font-size: 0.9rem; color: var(--muted); }

.promise { text-align: center; }

.promise blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-style: italic;
  color: var(--text);
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------- Problem ---------- */

.prose-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  color: var(--muted);
}

.prose-cols strong { color: var(--text); }

.prose-cols p + p { margin-top: 1rem; }

.pull-quote {
  margin: 4rem auto 0;
  text-align: center;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.pull-quote em { color: var(--accent); }

.photo-slot {
  margin-top: 4rem;
  aspect-ratio: 21 / 8;
  border: 2px dashed var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(230, 60, 48, 0.04), transparent 70%);
}

.photo-slot span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Not-building board ---------- */

.no-board {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.no-board li {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.no-board li:hover { border-color: var(--accent-deep); transform: translateY(-3px); }

.no-x {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.no-board strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.no-board p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Principles ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.principle {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.principle:hover { border-color: var(--faint); transform: translateY(-3px); }

.principle h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

.principle p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Privacy tiers ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.tier {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.7rem;
  background: var(--bg-elev);
  transition: transform 0.2s ease;
}

.tier:hover { transform: translateY(-3px); }

.tier-level {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 0.45rem;
}

.tier h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

.tier p { font-size: 0.95rem; color: var(--muted); }

.rights-list { list-style: none; max-width: 56rem; }

.rights-list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  color: var(--muted);
}

.rights-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Roadmap ---------- */

.roadmap-list {
  list-style: none;
  counter-reset: phase;
  max-width: 46rem;
}

.roadmap-list li {
  counter-increment: phase;
  position: relative;
  padding: 0 0 2.5rem 3.5rem;
  border-left: 2px solid var(--line);
  margin-left: 1.15rem;
}

.roadmap-list li:last-child { border-left-color: transparent; padding-bottom: 0; }

.roadmap-list li::before {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  left: -1.35rem;
  top: -0.1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--faint);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-list li:first-child::before { border-color: var(--accent); color: var(--accent); }

.roadmap-list h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }

.roadmap-list p { color: var(--muted); font-size: 0.97rem; max-width: 58ch; }

.phase-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.phase-now { background: var(--accent-deep); color: #fff; animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Get involved ---------- */

.involved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.involved-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.9rem;
  background: var(--bg-elev);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.involved-card:hover { border-color: var(--accent-deep); transform: translateY(-3px); }

.involved-card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }

.involved-card p { color: var(--muted); font-size: 0.97rem; }

/* Contact finale */

.contact-block {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-deep), #7d150f);
  border-radius: 18px;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.contact-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.contact-block > * { position: relative; }

.contact-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.contact-block h3 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 2rem;
}

.contact-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.4rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 3.5rem 1.5rem;
}

.footer-inner { max-width: var(--max); margin: 0 auto; text-align: center; }

.footer-inner .wordmark { font-size: 1.25rem; display: inline-block; margin-bottom: 0.5rem; }

.footer-tag { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

.footer-links { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.6rem; }

.footer-links a { font-size: 0.9rem; color: var(--muted); text-decoration: none; }

.footer-links a:hover { color: var(--text); }

.footer-fine { font-size: 0.8rem; color: var(--faint); }

/* ---------- Manifesto page ---------- */

.manifesto {
  max-width: 44rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.manifesto-header { margin-bottom: 3.5rem; }

.manifesto-header h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; }

.manifesto-body h2 {
  font-size: 2rem;
  margin: 3rem 0 1.1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.manifesto-body h3 {
  font-size: 1.3rem;
  margin: 2.1rem 0 0.5rem;
  color: var(--accent);
}

.manifesto-body p { margin-bottom: 1.15rem; color: var(--muted); }

.manifesto-open {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-style: italic;
  color: var(--text) !important;
}

.manifesto-close {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text) !important;
  margin-top: 1.9rem;
}

.manifesto-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .no-board { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .hero { padding: 3.5rem 1.25rem 5rem; }
  .prose-cols,
  .principle-grid,
  .involved-grid,
  .no-board { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 0.9rem 1.1rem; }
  .rotator-wrap { min-width: 0; }
  .ticker-track span { font-size: 1.15rem; }
  .photo-slot { aspect-ratio: 16 / 9; }
  .scroll-hint { display: none; }
  .chip { font-size: 0.6rem; padding: 0.25rem 0.55rem; }
  .canvas-time { display: none; }
  .tl-seg::after { content: "" !important; }
  .tl-track { height: 26px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .showcase.reveal .tl-seg { transform: scaleX(1); }
}
