/* ============================================================
   CELVEX Group — website-v2 shared stylesheet
   Senior-pass refresh: typography-first, whitespace > icons.
   No emoji icons. Card numerals replace decorative glyphs.
   System font stack first; Inter as a brand-system fallback.
   ============================================================ */

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

:root {
  --navy: #043b73;
  --cyan: #30b8dc;
  --cyan-hover: #28a0c0;
  --dark-bg: #0a1628;
  --dark-bg-2: #0e1e36;
  --card-bg: #0f1f3a;
  --dark-card: #112240;
  --glass: rgba(15,31,58,0.72);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #e2e8f0;
  --text-secondary: #b0c4de;
  --text-dim: #94a3b8;
  --text-muted: #6889a8;
  --white: #ffffff;
  --gold: #eab308;
  --green: #10b981;
  --red: #ef4444;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;

  /* Modern type scale (clamp-based, fluid) */
  --fs-h1: clamp(2.4rem, 5.4vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.6rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;     /* 17px */
  --fs-sub: 1.18rem;
  --fs-small: .9rem;
  --lh-display: 1.06;
  --lh-body: 1.65;

  /* Spacing scale — tighter clusters, generous section rhythm */
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;     /* 96px */
  --space-9: 8rem;     /* 128px */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--dark-bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ---------- Navigation (sticky, restrained) ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,22,40,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--white); font-size: 1.02rem; letter-spacing: -.005em; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; vertical-align: middle; }
.nav-links { display: flex; gap: 1.75rem; font-size: .94rem; list-style: none; }
.nav-links a { color: var(--text-dim); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--white);
  color: var(--dark-bg) !important;
  padding: .5rem 1rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: .88; }

/* Mobile nav: simple disclosure-friendly stack. Hamburger toggling
   is JS-free (CSS-only) on smaller breakpoints. */
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.4rem; cursor: pointer; padding: .25rem .5rem; }
@media (max-width: 840px) {
  .nav-wrap { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 7rem 2rem 4rem;
  text-align: center;
}
@media (max-width: 840px) { .hero { padding: 4.5rem 1.25rem 3rem; } }

.eyebrow {
  display: inline-block;
  padding: .3rem .75rem;
  background: rgba(48,184,220,.08);
  border: 1px solid rgba(48,184,220,.25);
  border-radius: 999px;
  color: var(--cyan); font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: var(--lh-display);
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: none;
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
.hero p.sub {
  color: var(--text-dim); font-size: var(--fs-sub);
  max-width: 62ch; margin: 0 auto 2rem; line-height: 1.6;
  font-weight: 400;
}
.hero p.sub strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons (2 styles only) ---------- */
.btn {
  display: inline-block; text-align: center;
  padding: .8rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .96rem;
  letter-spacing: -.005em;
  transition: opacity var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer; border: 1px solid transparent; font-family: inherit;
}
.btn-primary {
  background: var(--white);
  color: var(--dark-bg);
  border-color: var(--white);
}
.btn-primary:hover { background: #d6eaf3; color: var(--dark-bg); border-color: #d6eaf3; }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--white); background: transparent;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.04); }
.btn-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Hero scan form (homepage) ---------- */
.hero-form {
  max-width: 540px; margin: 0 auto 1rem;
  display: flex; gap: .55rem;
}
.hero-form input[type=text], .hero-form input[type=email] {
  flex: 1;
  padding: .85rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--white);
  font-size: .96rem; font-family: inherit;
  outline: none; transition: border-color var(--transition);
  min-width: 0;
}
.hero-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(48,184,220,.15); }
.hero-form input::placeholder { color: var(--text-muted); }
.hero-form .btn { padding: .85rem 1.4rem; white-space: nowrap; }
@media (max-width: 540px) { .hero-form { flex-direction: column; } }

/* ---------- Trust bar (under hero) ---------- */
.trust-bar {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap;
  color: var(--text-muted); font-size: .85rem; font-weight: 500;
}
.trust-bar span { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.trust-bar .divider { color: var(--border); }
@media (max-width: 540px) { .trust-bar { flex-direction: column; align-items: center; gap: .5rem; } .trust-bar .divider { display: none; } }

/* ---------- Section primitives ---------- */
section.block { padding: var(--space-8) 2rem; }
@media (max-width: 840px) { section.block { padding: var(--space-7) 1.25rem; } }
section.block.alt { background: var(--dark-bg-2); }
.block-inner { max-width: 1100px; margin: 0 auto; }
.block-inner.narrow { max-width: 760px; }

.section-label {
  font-size: .76rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--cyan); margin-bottom: 1rem;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600; line-height: 1.18; letter-spacing: -.018em;
  color: var(--white); margin-bottom: 1.25rem;
  max-width: 28ch;
}
.text-center .section-title { margin-left: auto; margin-right: auto; }
.section-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 65ch; line-height: 1.65;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Card grid (3-up / 2-up / 4-up) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 3rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 1000px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .cards-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), background var(--transition);
}
.card:hover { border-color: var(--border-strong); background: #11254a; }

/* New card-numeral (replaces old emoji card-icon).
   Thin display weight, large numeral; carries the visual ordering. */
.card-num {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: .12em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

/* Backwards-compat: legacy .card-icon class is now invisible.
   Any page still containing an emoji card-icon will render
   as a small cyan eyebrow rather than a glyph. */
.card-icon {
  display: none;
}

.card h3 { color: var(--white); font-size: 1.08rem; font-weight: 600; margin-bottom: .55rem; letter-spacing: -.01em; }
.card p { color: var(--text-dim); font-size: .96rem; line-height: 1.65; }
.card p + p { margin-top: .65rem; }
.card a { color: var(--cyan); }
.card a:hover { color: var(--white); }

/* ---------- Comparison table ---------- */
.compare-wrap { margin-top: 3rem; }
.compare {
  width: 100%; border-collapse: collapse; font-size: .94rem;
  background: var(--card-bg); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.compare th, .compare td {
  text-align: left; padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.compare th {
  color: var(--text-dim); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 600; background: rgba(0,0,0,.18);
}
.compare td:first-child { color: var(--white); font-weight: 500; }
.compare tr:nth-child(2n) td { background: rgba(255,255,255,.012); }
.compare .check { color: var(--cyan); font-weight: 600; }
.compare .dash { color: var(--text-dim); }
.compare .us { background: rgba(48,184,220,.04); }
.compare .us td:first-child { color: var(--cyan); font-weight: 600; }
@media (max-width: 840px) {
  .compare { font-size: .85rem; }
  .compare th, .compare td { padding: .7rem; }
}

/* ---------- Pricing tier grid ---------- */
.tiers {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color var(--transition);
}
.tier:hover { border-color: var(--border-strong); }
.tier.featured {
  border-color: rgba(48,184,220,.5);
  background: linear-gradient(180deg, rgba(48,184,220,.05), var(--card-bg) 60%);
  position: relative;
}
.tier.featured::before {
  content: 'Most popular'; position: absolute; top: -11px; left: 1.5rem;
  background: var(--cyan);
  color: #061018; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; padding: .25rem .75rem; border-radius: 999px;
  text-transform: uppercase;
}
.tier h3 { color: var(--white); font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: -.01em; }
.tier .tag { color: var(--text-dim); font-size: .9rem; margin-bottom: 1rem; min-height: 2.6em; }
.tier .price { font-size: 2.25rem; font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -.02em; }
.tier .price small { font-size: .8rem; font-weight: 500; color: var(--text-dim); }
.tier .anchor-line {
  font-size: .8rem; color: var(--gold);
  margin: .55rem 0 1.1rem;
  font-weight: 500;
  border-left: 2px solid var(--gold); padding-left: .55rem;
  line-height: 1.4;
}
.tier ul { list-style: none; padding: 0; margin-bottom: 1.5rem; flex: 1; }
.tier ul li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem;
  color: var(--text); font-size: .92rem; line-height: 1.55;
}
.tier ul li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 14px; height: 1.5px; background: var(--cyan);
}
.tier ul li.dim { color: var(--text-dim); }
.tier ul li.dim::before { background: var(--text-dim); opacity: .4; }
.tier .btn { width: 100%; }

/* ---------- Pull-quote / testimonial ---------- */
.quote {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem 1.75rem;
}
.quote blockquote {
  font-size: 1.05rem; color: var(--text);
  line-height: 1.65; margin-bottom: 1rem; font-style: normal;
  letter-spacing: -.005em;
}
.quote .who { font-size: .85rem; color: var(--text-dim); }
.quote .who strong { color: var(--white); font-weight: 600; }

/* ---------- Stats bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 700;
  color: var(--white); letter-spacing: -.02em;
  line-height: 1.1;
}
.stat-label { font-size: .88rem; color: var(--text-muted); font-weight: 500; margin-top: .25rem; }
@media (max-width: 640px) { .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
details {
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: 1.25rem 0; margin-bottom: 0;
  cursor: pointer;
}
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  font-weight: 500; color: var(--white); font-size: 1.02rem;
  list-style: none; position: relative; padding-right: 2rem;
  letter-spacing: -.005em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 0; top: -.05em;
  color: var(--text-dim); font-size: 1.4rem; line-height: 1;
  font-weight: 300;
  transition: transform .2s ease, color .2s ease;
}
details[open] summary::after { transform: rotate(45deg); color: var(--cyan); }
details p { color: var(--text-dim); margin-top: .9rem; font-size: .96rem; line-height: 1.65; }

/* ---------- Step list (numbered) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1.25rem;
  position: relative;
}
.step .num {
  display: inline-block;
  background: transparent;
  color: var(--cyan); font-weight: 500; font-size: .92rem;
  letter-spacing: .12em;
  margin-bottom: .65rem;
  font-variant-numeric: tabular-nums;
}
.step h4 { color: var(--white); font-size: 1.02rem; font-weight: 600; margin-bottom: .35rem; letter-spacing: -.005em; }
.step p { color: var(--text-dim); font-size: .92rem; line-height: 1.6; }

/* ---------- Highlight banner (for the hero loss-aversion line) ---------- */
.highlight-banner {
  margin: 0 auto 1.5rem;
  max-width: 700px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 2px solid var(--red);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  text-align: left;
  font-size: .95rem; color: var(--text);
}
.highlight-banner strong { color: #fca5a5; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0; padding: 4rem 2rem 2.5rem;
  background: rgba(0,0,0,.18);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand { color: var(--text-dim); font-size: .9rem; max-width: 38ch; }
.footer-brand p { margin-top: .9rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white); font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col a { display: block; color: var(--text-dim); font-size: .9rem; margin-bottom: .55rem; }
.footer-col a:hover { color: var(--white); }
.footer-bot {
  max-width: 1200px; margin: 3rem auto 0; padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll (inherits page-level JS) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.muted { color: var(--text-muted); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.cyan { color: var(--cyan); }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; } .mb-4 { margin-bottom: 3rem; }

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