@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────────
   VEXIS — Swiss Typographic System
   Class convention: semantic kebab-case
   Layout engine: CSS Grid primary, Flex secondary
   ───────────────────────────────────────────── */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* TOKENS */
:root {
  --ink:         #0F0F0F;
  --ink-mid:     #2C2C2C;
  --ink-muted:   #6B6B6B;
  --surface:     #F5F4F0;
  --surface-alt: #ECEAE4;
  --concrete:    #C8C5BC;
  --rule:        #D4D1C9;
  --red:         #D0021B;
  --red-dark:    #A50115;
  --white:       #FFFFFF;

  --ff-sans:  'Inter', system-ui, sans-serif;
  --ff-mono:  'IBM Plex Mono', monospace;

  --step-xs:  clamp(0.694rem, 0.65rem + 0.22vw, 0.833rem);
  --step-sm:  clamp(0.833rem, 0.79rem + 0.22vw, 1rem);
  --step-md:  clamp(1rem, 0.93rem + 0.35vw, 1.25rem);
  --step-lg:  clamp(1.2rem, 1.08rem + 0.6vw, 1.563rem);
  --step-xl:  clamp(1.44rem, 1.24rem + 1vw, 1.953rem);
  --step-2xl: clamp(1.728rem, 1.44rem + 1.44vw, 2.441rem);
  --step-3xl: clamp(2.074rem, 1.64rem + 2.17vw, 3.052rem);
  --step-4xl: clamp(2.488rem, 1.84rem + 3.24vw, 3.815rem);
  --step-5xl: clamp(3rem, 2.1rem + 4.5vw, 5.5rem);

  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --space-xs:  clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-sm:  clamp(0.75rem, 0.7rem + 0.25vw, 1rem);
  --space-md:  clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-lg:  clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
  --space-xl:  clamp(2.5rem, 2rem + 2.5vw, 5rem);
  --space-2xl: clamp(4rem, 3rem + 5vw, 9rem);

  --radius-sm: 2px;
  --radius-md: 4px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lift: 0 2px 8px rgba(0,0,0,0.10), 0 12px 32px rgba(0,0,0,0.08);

  --nav-h: 64px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* BASE */
body {
  font-family: var(--ff-sans);
  font-size: var(--step-md);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface);
  overflow-x: hidden;
}

/* CONTAINER */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h1 { font-size: var(--step-5xl); font-weight: 900; letter-spacing: -0.04em; }
h2 { font-size: var(--step-3xl); }
h3 { font-size: var(--step-xl); font-weight: 600; }
h4 { font-size: var(--step-lg); font-weight: 600; }
h5 { font-size: var(--step-md); font-weight: 600; }

p { color: var(--ink-mid); max-width: 68ch; }
p + p { margin-top: var(--space-sm); }

strong { font-weight: 600; color: var(--ink); }

.lead {
  font-size: var(--step-lg);
  line-height: 1.45;
  color: var(--ink-mid);
  font-weight: 400;
  max-width: 56ch;
}

.mono {
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-md);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* LINKS */
a:not([class]) {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--transition), color var(--transition);
}
a:not([class]):hover { color: var(--red); border-color: var(--red); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--ff-sans);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 4px 20px rgba(208,2,27,0.3); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--red); }
.btn-ghost::after { content: ' →'; }

/* RULES & DIVIDERS */
.rule-h {
  border: none;
  border-top: 1px solid var(--rule);
  margin-block: var(--space-lg);
}

/* ─── HEADER / NAV ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  border-bottom: none;
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: var(--ff-sans);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand-wordmark span {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 0.35em var(--space-sm);
  font-size: var(--step-sm);
  font-weight: 500;
  color: var(--ink-mid);
  border-bottom: none;
  transition: color var(--transition);
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  margin-left: var(--space-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  color: rgba(245,244,240,0.6);
  font-size: var(--step-sm);
  margin-top: var(--space-sm);
  max-width: 32ch;
}
.footer-brand .brand-wordmark { color: var(--surface); }
.footer-brand .brand-wordmark span { color: var(--red); }

.footer-col h5 {
  color: var(--surface);
  font-size: var(--step-xs);
  font-family: var(--ff-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-col a {
  font-size: var(--step-sm);
  color: rgba(245,244,240,0.65);
  border-bottom: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--surface); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--step-xs);
  color: rgba(245,244,240,0.4);
  max-width: none;
}
.footer-legal {
  display: flex;
  gap: var(--space-md);
}
.footer-legal a {
  font-size: var(--step-xs);
  color: rgba(245,244,240,0.4);
  border-bottom: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(245,244,240,0.8); }

/* ─── SECTIONS ─────────────────────────────── */
.section {
  padding-block: var(--space-2xl);
}
.section-sm {
  padding-block: var(--space-xl);
}
.section-alt {
  background: var(--surface-alt);
}
.section-dark {
  background: var(--ink);
  color: var(--surface);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--surface); }
.section-dark p { color: rgba(245,244,240,0.72); }
.section-dark .eyebrow { color: var(--red); }
.section-dark .rule-h { border-color: rgba(255,255,255,0.1); }

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 720px;
}
.section-header.center {
  margin-inline: auto;
  text-align: center;
}
.section-header.center .eyebrow { justify-content: center; }
.section-header.center p { margin-inline: auto; }

/* ─── HERO ─────────────────────────────────── */
.hero-section {
  padding-top: calc(var(--space-2xl) + var(--space-lg));
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { margin-bottom: var(--space-md); }
.hero-subtitle {
  font-size: var(--step-lg);
  color: var(--ink-mid);
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-image-slot {
  position: relative;
}
.hero-image-slot img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}
.hero-image-badge {
  position: absolute;
  bottom: -var(--space-sm);
  left: -var(--space-sm);
  background: var(--red);
  color: var(--white);
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
}

/* ─── CARD GRID ─────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--concrete); }
.card:hover::before { transform: scaleX(1); }

.card-num {
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.card h3 {
  font-size: var(--step-lg);
  margin-bottom: var(--space-sm);
}
.card p { font-size: var(--step-sm); color: var(--ink-mid); max-width: none; }

.card-dark {
  background: var(--ink-mid);
  border-color: rgba(255,255,255,0.08);
}
.card-dark h3 { color: var(--surface); }
.card-dark p { color: rgba(245,244,240,0.65); }

/* ─── STATS ─────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: var(--space-lg);
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: var(--step-4xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}
.stat-num sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
}
.stat-label {
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.stat-red .stat-num { color: var(--red); }

/* ─── CTA BAND ──────────────────────────────── */
.cta-band {
  background: var(--ink);
  padding-block: var(--space-2xl);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-xl);
}
.cta-inner h2 { color: var(--surface); font-size: var(--step-3xl); }
.cta-inner p { color: rgba(245,244,240,0.65); margin-top: var(--space-sm); }
.cta-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; flex-shrink: 0; }

.btn-white {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}
.btn-white:hover { background: var(--white); border-color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--surface);
  border-color: rgba(245,244,240,0.35);
}
.btn-outline-white:hover { border-color: var(--surface); background: rgba(245,244,240,0.08); }

/* ─── FAQ ───────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding-block: var(--space-md);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-md);
  color: var(--ink);
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: var(--step-lg);
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  font-size: var(--step-sm);
  color: var(--ink-mid);
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.4,0,0.2,1), padding 350ms;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: var(--space-md);
}

/* ─── CONTENT SECTION ───────────────────────── */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}
.content-body p + p { margin-top: var(--space-sm); }
.content-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.content-body ul li {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--step-sm);
  color: var(--ink-mid);
  align-items: flex-start;
}
.content-body ul li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── INDEX NUMBER GRID ─────────────────────── */
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  counter-reset: idx;
}
.index-item {
  padding: var(--space-lg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--white);
  counter-increment: idx;
  position: relative;
}
.index-item::before {
  content: '0' counter(idx);
  display: block;
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

/* ─── FORM ──────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-bottom: var(--space-md);
}
.form-field label {
  font-family: var(--ff-mono);
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.75em 1em;
  font-size: var(--step-sm);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,15,15,0.08);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-md);
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  h1 { letter-spacing: -0.03em; }

  .site-nav { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--rule); padding: var(--space-md) var(--space-lg); gap: var(--space-xs); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--space-xs) 0; font-size: var(--step-md); }
  .site-nav a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header .wrap { position: relative; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-slot { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item { border-top: 1px solid var(--rule); }
  .stat-item:first-child { border-top: none; }

  .cta-inner { grid-template-columns: 1fr; gap: var(--space-lg); }
  .content-cols { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid var(--rule); }
  .stat-item:first-child { border-top: none; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
}
*{box-sizing:border-box}
img,svg,video{max-width:100%;height:auto}
html{-webkit-text-size-adjust:100%}
body{margin:0}
