/* ==========================================================================
   Martial Vision Initiative — dark cinematic theme
   Plain CSS, no frameworks. Pairs with script.js (scroll 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; }

/* ---------- 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;
}

.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); }

/* ---------- 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;
}

/* ---------- 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;
}

/* ---------- General AI vs custom model ---------- */

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

.comparison-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  background: var(--bg-panel);
}

.comparison-custom { border-top: 3px solid var(--accent); }

.comparison-general { border-top: 3px solid var(--faint); }

.comparison-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 0.55rem;
}

.comparison-custom .comparison-label { color: var(--accent); }

.comparison-card h3 { font-size: 1.55rem; margin-bottom: 1rem; }

.comparison-card ul { list-style: none; }

.comparison-card li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.comparison-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}

.comparison-custom li::before { background: var(--accent); }


.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); }

/* ---------- State of computer vision ---------- */

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

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

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

.state-name,
.gap-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.state-card h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }

.state-card p:last-child { color: var(--muted); font-size: 0.95rem; }

.gap-callout {
  margin-top: 2rem;
  padding: 2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
}

.gap-callout h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

.gap-callout > p:last-child { color: var(--muted); max-width: 70ch; }

.source-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--faint);
}

.source-note a { color: var(--muted); }

/* ---------- Outcomes ---------- */

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

.outcome-card {
  position: relative;
  min-height: 12rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
}

.outcome-card span {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.outcome-card h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }

.outcome-card p { color: var(--muted); max-width: 40ch; }

.model-note {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.model-note strong { font-family: var(--serif); font-size: 1.25rem; }

.model-note p { color: var(--muted); }

/* ---------- 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;
}

/* ---------- 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;
}

.access-form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
}

.access-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.access-form input {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: rgba(13, 12, 11, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.access-form input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.access-form-turnstile {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.access-form .btn {
  border: 0;
  cursor: pointer;
  justify-self: center;
}

.access-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

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

.contact-note.access-form-error {
  color: #ffd4cf;
}

/* ---------- 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; }
  .state-grid { grid-template-columns: 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; }
  .comparison-grid,
  .outcome-grid,
  .involved-grid { grid-template-columns: 1fr; }
  .model-note { grid-template-columns: 1fr; gap: 0.6rem; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 0.9rem 1.1rem; }
  .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); }
}
