/* VendorHub — one-page marketing site */

:root {
  /* Brand palette derived from the VendorHub mark */
  --navy-900: #080C24;
  --navy-800: #0B1030;
  --navy-700: #101743;
  --navy-600: #1A2258;
  --navy-line: #2A3470;

  --ink: #16203D;
  --ink-soft: #4A5878;
  --ink-onDark: #C3CCE6;

  --surface: #FFFFFF;
  --surface-alt: #F5F7FC;
  --border: #E1E7F2;

  --blue: #2F62F0;
  --blue-dark: #1E49C4;
  --cyan: #60CCFB;
  --purple: #874CDA;
  --amber: #F2A63B;
  --amber-dark: #C97F17;

  --grad: linear-gradient(100deg, var(--cyan) 0%, #5B7CF6 45%, var(--purple) 100%);

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: clamp(4rem, 8vw, 7rem);

  --fs-eyebrow: .78rem;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.075rem);
  --fs-lede: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  --fs-h3: clamp(1.05rem, 1rem + .3vw, 1.18rem);
  --fs-h2: clamp(1.65rem, 1.25rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 16, 48, .06), 0 2px 8px rgba(11, 16, 48, .05);
  --shadow-md: 0 10px 30px rgba(11, 16, 48, .10);
  --shadow-lg: 0 24px 60px rgba(11, 16, 48, .18);

  --nav-h: 72px;
  --maxw: 1180px;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: #fff; color: var(--ink);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; font-weight: 650; letter-spacing: -.005em;
  padding: .85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47, 98, 240, .32); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47, 98, 240, .38); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .30); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: #2A1B03; box-shadow: 0 8px 22px rgba(242, 166, 59, .30); }
.btn--amber:hover { background: #FFB74D; transform: translateY(-2px); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 12, 36, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav.is-scrolled { background: rgba(8, 12, 36, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border-bottom-color: rgba(255, 255, 255, .12); }
.nav__inner { min-height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-5); }

.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; margin-right: auto; }
.brand__logo { width: 158px; height: auto; }
.brand__descriptor { color: #9FB0D8; font-size: .72rem; letter-spacing: .04em; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links a {
  color: #DCE4F7; text-decoration: none; font-size: .94rem; font-weight: 550;
  padding: .4rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--grad); transition: right .22s ease;
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { right: 0; }

.nav__toggle {
  display: none; order: 3; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand__descriptor { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { gap: var(--sp-3); flex-wrap: wrap; }
  .nav__cta { order: 2; }
  .nav__menu {
    order: 4; flex-basis: 100%; display: none;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
  .nav__links a { display: block; padding: .8rem .25rem; font-size: 1rem; }
  .nav__links a::after { display: none; }
}
@media (max-width: 420px) {
  .brand__logo { width: 116px; }
  .nav__cta { padding: .55rem .7rem; font-size: .8rem; }
  .nav__toggle { width: 38px; height: 38px; }
  .nav__inner { gap: var(--sp-2); }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; color: #fff;
  background: radial-gradient(1000px 520px at 78% -8%, #1B2A6B 0%, rgba(27, 42, 107, 0) 62%), linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 62%, #0A1136 100%);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 204, 251, .5), rgba(135, 76, 218, .5), transparent);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.hero__title { font-size: var(--fs-h1); max-width: 16ch; margin-bottom: var(--sp-5); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__body { font-size: var(--fs-lede); color: var(--ink-onDark); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__trust { margin-top: var(--sp-5); font-size: .9rem; color: #8FA0C9; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .13em; font-size: var(--fs-eyebrow);
  font-weight: 700; color: var(--blue-dark); margin-bottom: var(--sp-4);
}
.eyebrow--onDark { color: #7FD3FF; }

/* Hero diagram */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.dg-core { fill: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.dg-sub { fill: #93A3CE; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.dg-node rect { fill: rgba(255, 255, 255, .045); stroke: #35427F; stroke-width: 1; }
.dg-label { fill: #FFFFFF; font-size: 14.5px; font-weight: 650; }
.dg-meta { fill: #8C9CC7; font-size: 10.5px; }
.dg-core, .dg-sub, .dg-label, .dg-meta { font-family: inherit; }

/* Sections */
.section { padding-block: var(--sp-9); }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--border); }
.section--dark { background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: var(--ink-onDark); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head h2 { font-size: var(--fs-h2); }
.lede { margin-top: var(--sp-4); font-size: var(--fs-lede); color: var(--ink-soft); }

/* Problem → value */
.shift-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shift {
  display: grid; gap: var(--sp-3); align-content: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C9D6EE; }
.shift__from { color: var(--ink-soft); font-size: .98rem; }
.shift__arrow { color: var(--blue); width: 26px; }
.shift__arrow svg { width: 26px; height: 26px; }
.shift__to { font-weight: 700; font-size: var(--fs-h3); }

/* Capability cards */
.cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #C9D6EE; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: var(--sp-4);
  background: linear-gradient(135deg, rgba(96, 204, 251, .16), rgba(135, 76, 218, .16));
  color: var(--blue-dark); border: 1px solid #D5E1F7;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* Steps */
.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step {
  position: relative; padding: var(--sp-5); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-alt);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-bottom: var(--sp-4);
  background: var(--grad); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(47, 98, 240, .28);
}
.step h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* Lifecycle */
.lifecycle { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stage {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--navy-line);
  border-radius: var(--radius); padding: var(--sp-5);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.stage:hover { border-color: #4A5AA8; background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.stage__marker { display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: var(--sp-4); }
.stage h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  font-size: .85rem; color: #D5DEF5; padding: .3rem .65rem; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
}
.note { margin-top: var(--sp-5); font-size: .86rem; color: #8FA0C9; }

/* Outcomes */
.outcomes { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 820px) { .outcomes { grid-template-columns: repeat(6, 1fr); } .outcome { grid-column: span 2; } .outcome:nth-child(4) { grid-column: 2 / span 2; } .outcome:nth-child(5) { grid-column: 4 / span 2; } }
.outcome {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid transparent;
  border-image: none; border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.outcome::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); }
.outcome:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.outcome h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.outcome p { color: var(--ink-soft); font-size: .97rem; }

/* Final CTA */
.section--cta { padding-block: var(--sp-8); background: var(--surface); }
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(2.25rem, 5vw, 4rem);
  text-align: center; color: #fff;
  background: radial-gradient(700px 320px at 20% 0%, #22307A 0%, rgba(34, 48, 122, 0) 65%), linear-gradient(135deg, var(--navy-800), #141C4E);
  border: 1px solid var(--navy-line); box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.cta-panel h2 { font-size: var(--fs-h2); max-width: 22ch; margin-inline: auto; }
.cta-panel > p { margin-top: var(--sp-4); color: var(--ink-onDark); max-width: 60ch; margin-inline: auto; font-size: var(--fs-lede); }
.cta-panel .btn { margin-top: var(--sp-6); }
.cta-panel__note { margin-top: var(--sp-4) !important; font-size: .88rem; color: #8FA0C9 !important; }

/* Footer */
.footer { background: var(--navy-900); color: #A9B6D8; padding-block: var(--sp-7); border-top: 1px solid rgba(255, 255, 255, .07); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: end; justify-content: space-between; }
.footer__logo { width: 168px; }
.footer__tag { margin-top: var(--sp-3); font-size: .93rem; }
.footer__right { display: grid; gap: var(--sp-2); justify-items: start; }
@media (min-width: 700px) { .footer__right { justify-items: end; text-align: right; } }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__links a { color: #C3CCE6; text-decoration: none; font-size: .9rem; border-bottom: 1px solid transparent; }
.footer__links a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.footer__links a[aria-current="page"] { color: #fff; }
.footer__legal { font-size: .87rem; color: #8492B8; }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 78ch; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.legal__meta { margin-top: var(--sp-3); color: var(--ink-soft); font-size: .92rem; }
.legal section { margin-top: var(--sp-7); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); }
.legal h3 { font-size: var(--fs-h3); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal p { color: #303C5C; }
.legal p + p, .legal ul + p { margin-top: var(--sp-4); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-top: var(--sp-4); color: #303C5C; }
.legal ul li + li { margin-top: var(--sp-2); }
.legal a { color: var(--blue-dark); }

.legal__toc {
  margin-top: var(--sp-6); padding: var(--sp-5);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.legal__toc h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink-soft); border: 0; padding: 0; margin-bottom: var(--sp-3);
}
.legal__toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--sp-5); }
@media (max-width: 620px) { .legal__toc ul { columns: 1; } }
.legal__toc li { break-inside: avoid; margin-top: .35rem; }
.legal__toc a { font-size: .93rem; text-decoration: none; border-bottom: 1px solid transparent; }
.legal__toc a:hover { border-bottom-color: currentColor; }

.legal__back { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.legal__back a { font-weight: 600; text-decoration: none; }
.legal__back a:hover { text-decoration: underline; }

/* Entrance motion */
/* Gated on .js so content stays visible if JavaScript never runs */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .diagram__pulses { display: none; }
}
