/* ============================================================
   TrueVigil — Landing page styles
   Theme: dark (#0f0f0f) + lime accent
   ============================================================ */

:root {
  --bg:        #0f0f0f;
  --bg-alt:    #141414;
  --surface:   #1a1a1a;
  --surface-2: #202020;
  --border:    #2a2a2a;
  --border-lit:#3a3a3a;

  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --faint:     #71717a;

  --lime:      #c7ff3d;
  --lime-dim:  #aee62f;
  --lime-soft: rgba(199, 255, 61, 0.12);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.note { color: var(--faint); font-size: 0.85rem; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--lime); color: #0b0b0b; box-shadow: 0 0 0 rgba(199,255,61,0); }
.btn--primary:hover { background: var(--lime-dim); box-shadow: 0 10px 30px -10px rgba(199,255,61,0.5); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-lit); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--sm { padding: 10px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,15,15,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(15,15,15,0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 85px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 100px; width: auto; display: block; }
.brand__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(199,255,61,0.55);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 2px; background: #0b0b0b;
}
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand__accent { color: var(--lime); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.94rem; color: var(--muted); transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { color: var(--text) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(72px, 12vw, 132px) 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(199,255,61,0.15), transparent 70%);
  filter: blur(10px);
}
.hero__inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero__title { margin-bottom: 22px; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(26,26,26,0.4));
  padding: 26px 20px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--lime); }
.stat__label { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip {
  display: flex; align-items: stretch; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
/* Fixed "BUILT FOR" label, like a news channel's tag */
.strip__label {
  flex: 0 0 auto; display: flex; align-items: center; padding: 18px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  background: var(--surface); border-right: 1px solid var(--border);
  white-space: nowrap; z-index: 2;
}
/* Scrolling viewport with soft fade at both edges (enter from right, leave at left) */
.marquee {
  flex: 1 1 auto; overflow: hidden; position: relative; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex; flex-wrap: nowrap; white-space: nowrap; will-change: transform;
  animation: ticker 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex; align-items: center; padding: 18px 0; margin: 0 26px;
  color: var(--muted); font-family: var(--font-head); font-weight: 500; font-size: 1rem;
}
.marquee__track li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-right: 26px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(199, 255, 61, 0.6);
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section__head h2 { margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__lead em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Problem cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-lit); background: var(--surface-2); }
.card__icon { font-size: 1.7rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card p em { color: var(--text); font-style: normal; }
.card--problem { border-left: 2px solid var(--border-lit); }
.card--problem:hover { border-left-color: var(--lime); }

/* ---------- Feature rows ---------- */
.feature { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--border-lit); transform: translateY(-3px); }
.feature__icon {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center;
  background: var(--lime-soft); border-radius: 12px; font-size: 1.4rem;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Modules ---------- */
.module {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.module:hover { transform: translateY(-4px); border-color: var(--lime); }
.module__tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--lime);
  background: var(--lime-soft); padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.module h3 { margin-bottom: 8px; }
.module p { color: var(--muted); font-size: 0.95rem; }
.module--cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-style: dashed; }
.module--cta .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  font-family: var(--font-head); font-weight: 700; color: #0b0b0b;
  background: var(--lime); border-radius: 12px; box-shadow: 0 0 18px rgba(199,255,61,0.35);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   PLANS
   ============================================================ */
.plans { align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: transform .2s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-lit); }
.plan--featured {
  border-color: var(--lime);
  background: linear-gradient(180deg, rgba(199,255,61,0.06), var(--surface));
  box-shadow: 0 24px 60px -30px rgba(199,255,61,0.4);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: #0b0b0b; font-family: var(--font-head); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
}
.plan__head { margin-bottom: 22px; }
.plan__name { font-size: 1.35rem; margin-bottom: 10px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.plan__amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--text); }
.plan__amount--quote { font-size: 1.75rem; color: var(--lime); }
.inline-link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.plan__period { color: var(--faint); font-size: 0.92rem; }
.plan__pitch { color: var(--muted); font-size: 0.94rem; }
.plan__features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.plan__features li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.94rem; }
.plan__features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--lime); font-weight: 700;
}
.plan__features li strong { color: var(--text); }
/* Best-for tag under each plan name */
.plan__bestfor {
  display: inline-block; margin: 10px 0 4px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.78rem;
  color: var(--lime); background: var(--lime-soft);
  padding: 4px 11px; border-radius: 100px;
}

/* Scans / Alerts / Support mini-spec block at the foot of each card */
.plan__specs {
  display: flex; flex-direction: column; gap: 9px;
  margin: 4px 0 22px; padding-top: 16px; border-top: 1px solid var(--border);
}
.plan__specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 0; }
.plan__specs li::before { content: none; }           /* override the ✓ from .plan__features */
.plan__specs span { color: var(--faint); font-size: 0.85rem; }
.plan__specs strong { color: var(--text); font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; text-align: right; }

/* ---------- Comparison table ---------- */
.compare { margin-top: 48px; }
.compare__title { text-align: center; font-size: 1.35rem; margin-bottom: 22px; }
.compare__scroll {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.compare__table { width: 100%; border-collapse: collapse; min-width: 660px; }
.compare__table th, .compare__table td {
  padding: 14px 18px; text-align: center; font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.compare__table th:first-child, .compare__table td:first-child { text-align: left; color: var(--muted); }
.compare__table thead th {
  font-family: var(--font-head); font-weight: 600; color: var(--text); background: var(--bg-alt);
}
.compare__table thead th.is-featured { color: var(--lime); }
.compare__table td.is-featured { background: rgba(199, 255, 61, 0.05); color: var(--text); }
.compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table .yes::after { content: "\2713"; color: var(--lime); font-weight: 700; }
.compare__table .no::after  { content: "\2013"; color: var(--faint); }

.plans__foot { text-align: center; color: var(--muted); margin-top: 34px; }
.plans__foot a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   CTA
   ============================================================ */
.cta__inner {
  text-align: center; max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-lit); border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
}
.cta__inner h2 { margin-bottom: 14px; }
.cta__inner > p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.cta__fineprint { color: var(--faint); font-size: 0.85rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { height: 110px; width: auto; display: block; }
.footer__brand p { color: var(--muted); font-size: 0.94rem; margin-top: 14px; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color .2s ease; }
.footer__cols a:hover { color: var(--lime); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 28px;
  color: var(--faint); font-size: 0.88rem;
}
.footer__legal a:hover { color: var(--lime); }
.footer__by { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__ld { height: 42px; width: auto; display: block; opacity: 0.9; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-140%); transition: transform .3s ease; z-index: 40;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; text-align: center; }
  .nav__toggle { display: flex; }

  .grid--2, .grid--3, .steps, .hero__stats { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .strip__inner { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .feature:hover, .module:hover, .plan:hover { transform: none; }
  .marquee__track { animation: none; }
}
