/* ============================================================
   Visionspeed shared styles
   Display: Fraunces (the human voice / authority)
   Body:    IBM Plex Sans (clear delivery, engineering credibility)
   Data:    IBM Plex Mono (the measured proof, instrument panel)
   ============================================================ */

:root {
  --ink:        #0C1016;
  --ink-2:      #0F1520;
  --panel:      #151D2A;
  --panel-2:    #1B2433;
  --hairline:   #273140;

  --text:       #EEF2F8;
  --muted:      #8B95A7;
  --muted-2:    #748092;

  --signal:     #F2A93B;
  --signal-2:   #FFC56B;
  --signal-soft: rgba(242,169,59,0.12);

  --light:        #F4F6FB;
  --light-panel:  #FFFFFF;
  --ink-on-light: #0C1016;
  --muted-on-light: #586273;
  --hairline-light: #E3E8F1;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --r: 14px;
  --r-sm: 9px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--signal); color: var(--ink); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.bg-light { background: var(--light); color: var(--ink-on-light); }
.bg-panel { background: var(--ink-2); }

.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4 { color: var(--ink-on-light); }

/* ---------- eyebrow / labels ---------- */

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}
.bg-light .eyebrow { color: #B97A12; }
.bg-light .eyebrow::before { background: #B97A12; }

/* ---------- type helpers ---------- */

.display {
  font-size: clamp(2.45rem, 6.2vw, 4.6rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
}
.bg-light .lead { color: var(--muted-on-light); }
.measure { max-width: 62ch; }
.serif-accent { font-family: "Fraunces", serif; font-style: italic; font-weight: 480; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */

.btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-2); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--muted); }
.bg-light .btn--ghost { color: var(--ink-on-light); border-color: var(--hairline-light); }
.bg-light .btn--ghost:hover { border-color: var(--muted-on-light); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- header / nav ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12,16,22,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand__mark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.brand__mark b { color: var(--signal); font-weight: 600; }
.brand__tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 4px auto 0;
  background: var(--signal);
  border-radius: 2px;
}
.nav__cta { margin-left: 10px; }
.nav__cta a { padding: 10px 18px; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  width: 42px; height: 38px;
  cursor: pointer;
  color: var(--text);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(58px, 8vw, 104px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 26px;
  max-width: 46ch;
}
.hero__art {
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink-2) 100%);
  padding: 26px 26px 20px;
}
.hero__art-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hero__art-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero__art-figs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.hero__art-figs .stat__num { font-size: clamp(1.1rem, 2.1vw, 1.55rem); }
.hero__art-figs .stat__label { font-size: 12px; }

/* ---------- signal curve ---------- */

.signal-path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signal-fill { fill: url(#sigGrad); opacity: 0.5; }
.signal-dot { fill: var(--signal); }
.signal-grid { stroke: var(--hairline); stroke-width: 1; }

/* ---------- stat blocks ---------- */

.stat__num {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.bg-light .stat__num { color: var(--ink-on-light); }
.stat__num em { font-style: normal; color: var(--signal); }
.stat__label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.35;
}
.bg-light .stat__label { color: var(--muted-on-light); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat-row--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- generic grid + cards ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 30px); }

.card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
}
.bg-light .card {
  background: var(--light-panel);
  border-color: var(--hairline-light);
  box-shadow: 0 1px 2px rgba(12,16,22,0.04), 0 12px 30px -22px rgba(12,16,22,0.18);
}
.card__index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--signal);
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }
.bg-light .card p { color: var(--muted-on-light); }

/* ---------- section heads ---------- */

.sec-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .lead { margin-top: 18px; }

/* ---------- list ticks ---------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.bg-light .ticks li { color: var(--muted-on-light); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--signal);
}

/* ---------- data bars ---------- */

.bars { display: grid; gap: 16px; }
.bar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.bar__name { font-size: 14.5px; color: var(--muted); }
.bg-light .bar__name { color: var(--muted-on-light); }
.bar__val {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14.5px;
  color: var(--text);
}
.bg-light .bar__val { color: var(--ink-on-light); }
.bar__track {
  height: 8px;
  border-radius: 5px;
  background: var(--hairline);
  overflow: hidden;
}
.bg-light .bar__track { background: var(--hairline-light); }
.bar__fill {
  height: 100%;
  border-radius: 5px;
  background: var(--signal);
  width: var(--w);
}
.js .bar__fill { width: 0; transition: width 1s var(--ease); }
.js [data-reveal].in .bar__fill { width: var(--w); }

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
}
.bg-light .chip { border-color: var(--hairline-light); color: var(--muted-on-light); }

/* ---------- arrow stat (slow to fast) ---------- */

.transit {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
}
.transit__arrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--signal);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

/* ---------- pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier--feature {
  background: var(--panel-2);
  border-color: var(--signal);
}
.tier__flag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
  min-height: 16px;
}
.tier__name { font-size: 1.5rem; margin-bottom: 6px; }
.tier__price {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 14px;
}
.tier__price span { font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }
.tier__rule {
  height: 1px;
  background: var(--hairline);
  margin: 24px 0;
}
.tier--feature .tier__rule { background: rgba(242,169,59,0.3); }
.tier__inc {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.tier .ticks { margin-bottom: 28px; }
.tier .btn { margin-top: auto; justify-content: center; }

/* ---------- form ---------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color 0.15s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--signal);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.person__mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--signal-soft);
  border: 1px solid var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--signal);
  flex-shrink: 0;
}
.person__name { font-family: "Fraunces", serif; font-size: 1.3rem; }
.person__role { font-size: 14px; color: var(--muted); }

.form-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 14px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- divider note ---------- */

.note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--hairline);
  background: var(--ink-2);
  padding-block: clamp(48px, 6vw, 80px);
}
.foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}
.foot__line {
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  max-width: 22ch;
}
.foot__col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 16px;
}
.foot__col a, .foot__col p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 9px;
  transition: color 0.15s var(--ease);
}
.foot__col a:hover { color: var(--text); }
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

/* ---------- reveal animation ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: 2; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-row, .stat-row--3 { grid-template-columns: 1fr 1fr; }
  .foot__top { grid-template-columns: 1fr; }

  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--hairline);
    padding: 10px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--hairline); }
  .nav__links a[aria-current="page"]::after { margin: 6px 0 0; }
  .nav__cta { margin: 14px 0 0; }
  .nav__cta a { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stat-row, .stat-row--3 { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .hero__art-figs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bar__fill { width: var(--w) !important; transition: none !important; }
  .signal-path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}
