/* ============================================================
   VeGuard — marketing site
   Palette: white ground · orange #f97316 accent · black ink
   Type:    Space Grotesk (display/body) · Space Mono (labels)
   ============================================================ */

:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --hairline: rgba(10, 10, 10, 0.14);
  --hairline-soft: rgba(10, 10, 10, 0.07);
  --font-sans: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

.o { color: var(--orange); }
.w { color: var(--paper); }

/* ---------- type scale ---------- */
h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 20px;
}
.kicker-dark { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.72rem; }

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-deep); color: var(--paper); }

.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--paper); color: var(--ink); }

.btn-outline-dark { border-color: rgba(10, 10, 10, 0.45); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.35); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
  z-index: 100;
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 100%; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 7px; }

.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-cta-mobile { display: none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { opacity: 1; color: var(--orange-deep); }

/* hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  margin-left: 4px;
  padding: 0;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 88px) 0 88px;
  position: relative;
  overflow: hidden;
  /* faint vertical hairlines, spec-sheet feel */
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 279px,
      var(--hairline-soft) 279px, var(--hairline-soft) 280px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-copy .lede {
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 44ch;
  opacity: 0.85;
}
.cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* hero load-in */
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.18s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-panel { animation: rise 0.8s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- hero terminal panel ---------- */
.hero-panel {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 24px 60px -30px rgba(10, 10, 10, 0.25);
}
.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
}
.panel-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.panel-body { padding: 20px 18px; overflow-x: auto; }
.panel-body .ln {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2.1;
  white-space: nowrap;
}
.panel-body .dim { opacity: 0.45; }
.panel-body .c-ok { color: var(--orange); }

.tag {
  display: inline-block;
  min-width: 76px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  margin-right: 10px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  text-align: center;
}
.tag-block { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag-warn  { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* terminal lines type in one by one after the panel lands */
.ln { animation: appear 0.01s both; }
.ln-1 { animation-delay: 0.9s; }
.ln-2 { animation-delay: 1.3s; }
.ln-3 { animation-delay: 1.6s; }
.ln-4 { animation-delay: 1.9s; }
.ln-5 { animation-delay: 2.5s; }
.ln-6 { animation-delay: 3.0s; }
.ln-7 { animation-delay: 3.2s; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.caret { color: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 36s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.ticker-track span:nth-child(even) { color: var(--orange); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section-ruled { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); }
.section-lede { margin-top: 20px; font-size: 1.1rem; max-width: 52ch; opacity: 0.8; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-panel, .ln, .ticker-track, .caret { animation: none !important; }
}

/* ---------- problem: 3 columns ---------- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
}
.cols-3 .col { padding: 8px 36px 8px 0; }
.cols-3 .col + .col { border-left: 1px solid var(--hairline); padding-left: 36px; }
.cols-3 h3 { margin-bottom: 14px; }
.cols-3 h3::before { content: "< "; color: var(--orange); font-weight: 700; }
.cols-3 p { font-size: 0.98rem; opacity: 0.82; }

/* ---------- platform cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 64px;
}
.card {
  background: var(--paper);
  padding: 36px 30px;
  transition: background 0.2s ease;
}
.card:hover { background: #fff7ef; } /* whisper of orange */
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; }
.card > p { font-size: 0.95rem; opacity: 0.82; margin-bottom: 20px; }
.card ul { list-style: none; }
.card li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 9px 0;
  border-top: 1px solid var(--hairline-soft);
}
.card li::before { content: "< "; color: var(--orange); font-weight: 600; }

/* ---------- use cases ---------- */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
  margin-top: 48px;
}
.uc {
  display: block;
  padding: 28px 4px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
}
.uc .chev {
  color: var(--orange);
  font-weight: 700;
  display: inline-block;
  transition: transform 0.2s ease;
}
.uc:hover .chev { transform: translateX(-5px); }
.uc:hover h3 { color: var(--orange-deep); }
.uc h3 { transition: color 0.15s ease; }
.uc p { margin-top: 6px; font-size: 0.92rem; opacity: 0.7; }

/* ---------- comparison table ---------- */
.compare-wrap { margin-top: 64px; overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 15px 18px;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 1px solid var(--hairline); }
.compare .row-label {
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  padding-left: 0;
}
.compare thead th {
  border-top: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-bottom: 18px;
  vertical-align: bottom;
}
.compare thead th.vg-col {
  opacity: 1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
}
.compare thead .chev { color: var(--orange); font-weight: 700; }
.compare .vg-col {
  background: #fff7ef; /* same whisper of orange as card hover */
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.compare thead .vg-col { border-top: 2px solid var(--orange); }
.compare .yes { color: var(--orange-deep); font-weight: 700; }
.compare .no { opacity: 0.3; }
.compare .partial {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* second, qualitative table: approach breakdown */
.compare-sub {
  margin-top: 96px;
  font-size: 1.35rem;
}
.compare-sub .chev { color: var(--orange); font-weight: 700; }
.compare-detail { min-width: 860px; }
.compare-detail thead th,
.compare-detail td { text-align: left; }
.compare-detail td {
  font-size: 0.92rem;
  line-height: 1.5;
  vertical-align: top;
  opacity: 0.85;
  padding-right: 28px;
}
.compare-detail td.vg-col { opacity: 1; padding-right: 18px; padding-left: 18px; }
.compare-detail .row-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: top;
  padding-top: 19px; /* optically align with 0.92rem body cells */
  padding-right: 28px;
  white-space: nowrap;
}
.compare-detail thead .row-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.65;
  padding-top: 0;
  vertical-align: bottom;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- deployment steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.step-n {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; opacity: 0.82; }

.deploy-note {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* ---------- FAQ ---------- */
#faq h2 { margin-bottom: 40px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  align-items: start; /* an opened item shouldn't stretch its row neighbor */
}
.faq { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  color: var(--orange);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq[open] .plus { transform: rotate(45deg); }
.faq p { padding: 0 40px 26px 0; opacity: 0.82; max-width: 62ch; }
.faq summary:hover { color: var(--orange-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--ink);
  padding: 120px 0;
  text-align: left;
}
.cta-band h2 { max-width: none; }
.cta-band .cta-row { margin-top: 44px; }

/* ---------- demo form ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-note {
  margin-top: 24px;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.6;
}
.demo-form {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 36px 32px;
  color: var(--ink);
}
.demo-form h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.demo-form h3::before { content: "< "; color: var(--orange); font-weight: 700; }
.ff { display: flex; flex-direction: column; flex: 1; margin-bottom: 18px; }
.ff-row { display: flex; gap: 16px; }
.ff label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ff label em { color: var(--orange-deep); font-style: normal; }
.ff input,
.ff select,
.ff textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ff input:focus,
.ff select:focus,
.ff textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.ff textarea { resize: vertical; min-height: 96px; }
.demo-submit { width: 100%; margin-top: 6px; cursor: pointer; }

/* honeypot: visually removed but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile { margin-bottom: 18px; }

.demo-error {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange-deep);
}
.demo-error a { color: var(--orange-deep); }

.demo-thanks p { font-size: 1rem; line-height: 1.6; }
.demo-thanks-sub {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.demo-thanks a { color: var(--orange-deep); }

/* ---------- footer ---------- */
.footer { padding: 48px 0; }
.footer-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 0.95rem; }
.footer .brand img { border-radius: 5px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  text-decoration: none;
}
.footer-links a:hover { opacity: 1; color: var(--orange-deep); }
.footer-bottom {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
}
.footer-legal a:hover { opacity: 1; color: var(--orange-deep); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards-3, .cols-3, .steps { grid-template-columns: 1fr; }
  .cols-3 .col { padding: 24px 0; }
  .cols-3 .col + .col { border-left: none; border-top: 1px solid var(--hairline); padding-left: 0; }
  .steps { gap: 40px; }
  .uc-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-inner { gap: 16px; }
  /* nav links become a dropdown panel under the bar */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 8px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 14px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 16px;
    border-bottom: none;
  }
  .section { padding: 88px 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 56px; }
  .ff-row { flex-direction: column; gap: 0; }
  .panel-body .ln { font-size: 0.68rem; }
}
