/* ==========================================================================
   VendTitan — design system
   Tokens first, then layout primitives, then components, then responsive.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #0C1728;   /* headlines, near-black navy — from logo */
  --ink-2:      #26344A;   /* strong body */
  --muted:      #5A6980;   /* secondary copy */
  --muted-2:    #8A97AB;   /* eyebrows, meta */
  --accent:     #185DEB;   /* cobalt — from logo */
  --accent-700: #1148C0;
  --accent-50:  #EDF3FE;

  --bg:         #FFFFFF;
  --bg-alt:     #F6F8FB;   /* off-white section band */
  --bg-dark:    #0C1728;
  --line:       #E4E9F0;
  --line-2:     #D5DDE8;

  --graphite:   #22272E;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Space */
  --gutter: 24px;
  --max: 1200px;
  --section-y: 96px;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 23, 40, .06), 0 1px 1px rgba(12, 23, 40, .04);
  --shadow-md: 0 12px 32px rgba(12, 23, 40, .08);
  --shadow-lg: 0 28px 64px rgba(12, 23, 40, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 62ch; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.link-arrow {
  color: var(--accent); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn svg { flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(24, 93, 235, .22); }
.btn--primary:hover { background: var(--accent-700); box-shadow: 0 8px 22px rgba(24, 93, 235, .28); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-block; line-height: 1; }
.wordmark__name {
  font-size: 25px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); display: block;
}
.wordmark__name em { font-style: normal; color: var(--accent); }
.wordmark__tag {
  display: block; margin-top: 5px;
  font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
}
.wordmark--light .wordmark__name { color: #fff; }
.wordmark--light .wordmark__name em { color: #fff; }
.wordmark--light .wordmark__tag { color: rgba(255, 255, 255, .55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(12, 23, 40, .05); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-cta { display: inline-flex; }
.header-cta--mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #FAFBFD 0%, #F2F5F9 100%); border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px; align-items: center; padding: 84px 0 88px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -.035em; }
.hero__lede { margin-top: 26px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-2);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
}
.hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #EDF1F7 0%, #DFE6EF 100%);
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---------- Benefits strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strip__item { padding: 0 26px; border-left: 1px solid var(--line); }
.strip__item:nth-child(6n + 1) { border-left: 0; padding-left: 0; }
.strip__item:nth-child(6n) { padding-right: 0; }
.strip__icon { color: var(--accent); margin-bottom: 18px; }
.strip__item h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; min-height: 2.2em; }
.strip__item p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { background: transparent; }
.card__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(155deg, var(--from, #EEF2F7) 0%, var(--to, #DDE4ED) 100%);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover .card__media { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media svg { color: rgba(12, 23, 40, .17); width: 46%; height: auto; }
.card__title { display: flex; align-items: center; gap: 9px; margin-top: 16px; }
.card__title svg { color: var(--accent); flex: none; }
.card__title h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin-top: 7px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.card--product .card__media { aspect-ratio: 3 / 2; background: linear-gradient(155deg, #FFFFFF 0%, #EFF3F8 100%); }
.card--product .card__title { justify-content: flex-start; }
.note { margin-top: 26px; font-size: 14px; color: var(--muted-2); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; letter-spacing: -.02em;
}
.step h3 { font-size: 17px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.about h2 { font-size: clamp(28px, 3.4vw, 40px); }
.about__body p { font-size: 17.5px; color: var(--muted); }
.about__body p + p { margin-top: 18px; }
.about__points { margin-top: 30px; display: grid; gap: 14px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.about__points svg { color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 82% 0%, rgba(24, 93, 235, .34) 0%, transparent 68%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative; z-index: 1; padding: 74px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); max-width: 20ch; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: 17px; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact__lede { margin-top: 14px; color: var(--muted); font-size: 17px; }
.contact__list { margin-top: 34px; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { color: var(--accent); flex: none; margin-top: 3px; }
.contact__list span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.contact__list a, .contact__list p { font-size: 16px; color: var(--ink); font-weight: 500; }
.contact__list a:hover { color: var(--accent); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--muted-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235A6980' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24, 93, 235, .16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C0392B; }
.field .error { font-size: 13px; color: #C0392B; min-height: 0; }
.form__footer { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__legal { font-size: 13px; color: var(--muted-2); max-width: 42ch; }
.form__status { margin-top: 18px; font-size: 15px; border-radius: var(--radius-sm); padding: 14px 16px; display: none; }
.form__status.is-ok { display: block; background: var(--accent-50); color: var(--accent-700); border: 1px solid #CFDFF8; }
.form__status.is-error { display: block; background: #FDF0EE; color: #9E2E20; border: 1px solid #F3D2CC; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .65); padding: 56px 0 40px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.site-footer__meta { max-width: 34ch; margin-top: 20px; font-size: 14.5px; line-height: 1.6; }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.footer-nav a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px;
}
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --section-y: 76px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 0 68px; }
  .hero__media { aspect-ratio: 16 / 11; }
  .hero__note { margin-top: 34px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .strip__item:nth-child(6n + 1) { border-left: 1px solid var(--line); padding-left: 26px; }
  .strip__item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { height: 68px; }
  html { scroll-padding-top: 78px; }

  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-open .nav a[aria-current="true"] { border-bottom-color: var(--line); }
  .site-header.is-open .header-cta--mobile { display: inline-flex; margin-top: 18px; }
}

@media (max-width: 640px) {
  :root { --section-y: 62px; --gutter: 20px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .strip__item { padding: 0 18px; }
  .strip__item:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: 18px; }
  .strip__item:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .grid--6, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { padding: 24px 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .section-head { margin-bottom: 32px; }
}

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

@media print {
  .site-header, .cta-band, .form { box-shadow: none; }
}
