:root {
  color-scheme: light;
  --blue: #036dad;
  --blue-dark: #025a94;
  --blue-light: rgba(3, 109, 173, 0.08);
  --blue-mist: rgba(3, 109, 173, 0.04);
  --teal: #0d9488;
  --green: #3A8E69;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #5a6276;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(3, 109, 173, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);

  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }

::selection { background: rgba(3, 109, 173, 0.18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

/* =====================================================
   MOBILE FIRST — Default: 320px+
   ===================================================== */

.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.section { position: relative; padding: 80px 0; }
.section + .section { border-top: 1px solid var(--border); }
main > section:nth-child(odd) { background: var(--surface); }
main > section:nth-child(even) { background: var(--bg); }

/* ── Header ── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; height: 64px; align-items: center;
  justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { height: 24px; width: auto; display: block; }
.desktop-nav, .desktop-actions { display: none; }

/* ── Mobile Menu ── */
.menu-btn {
  display: flex; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); cursor: pointer;
  padding: 0; position: relative;
}
.menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: var(--radius-full);
  background: currentColor; transition: transform 0.25s var(--ease-out), opacity 0.15s;
  position: absolute;
}
.menu-btn span:first-child { transform: translateY(-5px); }
.menu-btn span:last-child { transform: translateY(5px); }
.menu-btn.is-open span:first-child { transform: rotate(45deg); }
.menu-btn.is-open span:last-child { transform: rotate(-45deg); }

.mobile-nav {
  display: grid; max-height: 0; overflow: hidden; gap: 2px;
  border-top: 1px solid transparent; background: var(--surface);
  padding: 0 24px; transition: border-color 0.3s ease;
}
.mobile-nav.is-open { max-height: 420px; border-color: var(--border); padding: 12px 24px 20px; }
.mobile-nav a:not(.btn) {
  width: 100%; border-radius: var(--radius-md);
  color: var(--text-secondary); padding: 12px 10px;
  font-size: 14px; font-weight: 600; transition: background 0.15s;
}
.mobile-nav a:not(.btn):hover { background: var(--blue-light); color: var(--blue); }
.mobile-nav .btn { width: 100%; margin: 8px auto 0; justify-content: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; border: none; border-radius: var(--radius-full);
  padding: 0 20px; font-family: var(--font); font-size: 14px;
  font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
}
.btn span { transition: transform 0.2s var(--ease-out); }
.btn:hover { transform: translateY(-1px); }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 24px rgba(3,109,173,0.25); }
.btn-secondary { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-lg { min-height: 48px; padding: 0 28px; font-size: 15px; width: 100%; }

/* ── Section intro ── */
.section-intro { max-width: 680px; }
.section-intro.centered { margin-inline: auto; text-align: center; max-width: 760px; }
.section-intro h2, .cta-panel h2 {
  font-size: 1.75rem;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
}
.section-intro p, .cta-panel p {
  margin: 14px 0 0; color: var(--text-secondary);
  font-size: 15px; line-height: 1.7; max-width: 70ch;
}
.accent-line { margin-top: 20px; font-weight: 700; color: var(--blue); font-size: 14px; }

.two-column { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.two-column.bottom-aligned { align-items: start; }
.two-column.centered-y { align-items: start; }

/* ── HERO ── */
.hero { padding-top: 100px; padding-bottom: 60px; min-height: 100dvh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero-copy { max-width: 100%; }
.hero-copy h1 {
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.hero-tagline { margin-top: 16px; color: var(--blue); font-size: 14px; font-weight: 700; }
.hero-subheadline { margin-top: 14px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; max-width: 70ch; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero-actions .btn-secondary { white-space: nowrap; font-size: 13px; }
.trust-line { margin-top: 24px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.microcopy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.microcopy span {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
  padding: 5px 12px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ── Hero video ── */
.hero-visual { position: relative; }
.video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #f8f9fa;
}
.hero-video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── PROBLEM ── */
.stat-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.stat-block { padding: 20px; background: #f8f7f4; border-radius: var(--radius-lg); transition: background 0.2s; }
.stat-block:hover { background: #f4f2ee; }
.stat-block-label { font-size: 11px; font-weight: 700; color: rgba(0,0,0,0.55); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.03em; }
.stat-block-desc { font-size: 13px; color: rgba(0,0,0,0.65); margin-top: 6px; line-height: 1.55; }

/* ── PRODUCT ── */
.checklist { display: flex; flex-direction: column; gap: 0; }
.checklist-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.checklist-item:last-child { border-bottom: none; }
.checklist-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--blue); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; color: var(--blue); font-size: 12px; font-weight: 700; font-family: inherit; }
.checklist-mark.green { border-color: var(--teal); color: var(--teal); }
.checklist-item h3 { font-size: 15px; font-weight: 700; }
.checklist-item p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

/* ── STEPS ── */
.v-steps { display: flex; flex-direction: row; justify-content: center; gap: 0; position: relative; max-width: 780px; margin-inline: auto; padding-bottom: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.v-steps::before {
  content: ''; position: absolute;
  top: 24px; left: 5%; right: 5%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 50%, var(--blue) 100%);
  opacity: 0.12;
  z-index: 0;
}
.v-step { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px; position: relative; flex: 1; min-width: 0; }
.v-step:not(:last-child)::after {
  content: ''; position: absolute;
  right: -5px; top: 22px;
  width: 10px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M2 7h12M9 2l5 5-5 5' stroke='%23036dad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.v-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-family: inherit; position: relative; z-index: 1; }
.v-step-num.green { background: var(--teal); }
.v-step h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.v-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; max-width: 100%; }

/* ── FEATURES ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-md); background: #f8f7f4; font-size: 12px; font-weight: 600; color: rgba(0,0,0,0.55); transition: background 0.2s; }
.tag:hover { background: #f0eeea; }
.tag-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.tag-dot.blue { background: var(--blue); }
.tag-dot.green { background: var(--teal); }

/* ── BRIEFING ── */
.briefing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.briefing-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(4,128,198,0.03), rgba(13,148,136,0.02));
}
.briefing-header h3 { font-size: 16px; font-weight: 700; }
.briefing-header > span { display: block; font-size: 12px; color: var(--green); font-weight: 600; margin-top: 6px; }
.briefing-card dl { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.briefing-card dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.briefing-card dd { font-size: 14px; margin-top: 4px; font-weight: 500; line-height: 1.5; }

/* ── USE CASES ── */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; justify-content: center; }
.pill-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid rgba(0,0,0,0.04); background: #f8f7f4; font-size: 13px; font-weight: 600; transition: background 0.2s, border-color 0.2s; }
.pill-item:hover { background: #f0eeea; border-color: rgba(0,0,0,0.08); }
.pill-icon { width: 16px; height: 16px; opacity: .5; flex-shrink: 0; }

/* ── LEARNING ── */
.text-col-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.text-col-3 h3 { font-size: 15px; font-weight: 700; }
.text-col-3 p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; max-width: 70ch; }

/* ── CTA ── */
.final-cta { padding-bottom: 80px; }
.cta-panel {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
}
.cta-panel h2 { margin: 0; }
.cta-panel p { max-width: 600px; margin: 14px 0 24px; text-align: center; width: 100%; }
.cta-panel .btn { width: auto; margin-inline: auto; }

/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  margin-top: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form .btn {
  width: 100%;
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.site-footer p { margin: 0; font-weight: 800; font-size: 16px; }
.site-footer span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--blue); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   MOBILE (max-width: 640px)
   ===================================================== */
@media (max-width: 640px) {
  .v-steps {
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: none;
    max-width: 100%;
    padding-bottom: 0;
  }
  .v-steps::before {
    left: 50%; right: auto;
    top: 28px; bottom: 28px;
    width: 1.5px; height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--blue) 0%, var(--teal) 50%, var(--blue) 100%);
    opacity: 0.12;
  }
  .v-step {
    padding: 24px 16px;
    gap: 10px;
    max-width: 320px;
    flex: none;
  }
  .v-step:not(:last-child)::after {
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M3 9l5 5 5-5' stroke='%23036dad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
    right: auto;
    top: auto;
  }
  .v-step-num { width: 28px; height: 28px; font-size: 12px; }
  .v-step h3 { font-size: 17px; margin-bottom: 8px; }
  .v-step p { font-size: 15px; max-width: 100%; }
}

/* =====================================================
   TABLET (min-width: 641px)
   ===================================================== */
@media (min-width: 641px) {
  .container { width: min(100% - 48px, 1180px); }
  .section { padding: 100px 0; }
  .hero { padding-top: 116px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }

  .header-inner { height: 68px; }
  .brand { font-size: 18px; }
  .brand-mark { height: 26px; }

  .btn-lg { width: auto; }

  .section-intro h2, .cta-panel h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
  .section-intro p, .cta-panel p { font-size: 16px; margin: 18px 0 24px; }

  .hero-copy h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
  .hero-tagline { font-size: 15px; }
  .hero-subheadline { font-size: 16px; }
  .hero-actions { flex-direction: row; margin-top: 32px; }
  .hero-actions .btn-lg { min-width: 200px; }

  .two-column { grid-template-columns: 1fr 1fr; gap: 48px; }
  .two-column.bottom-aligned { align-items: end; }
  .two-column.centered-y { align-items: center; }

  .stat-row { grid-template-columns: 1fr 1fr; }
  .text-col-3 { grid-template-columns: 1fr 1fr; gap: 24px; }

  .v-steps { overflow-x: visible; -webkit-overflow-scrolling: auto; scroll-snap-type: none; }
  .v-step { padding: 20px 12px; gap: 10px; }
  .v-step h3 { font-size: 17px; margin-bottom: 8px; }
  .v-step p { font-size: 15px; max-width: 160px; }
  .v-step-num { width: 28px; height: 28px; font-size: 12px; }
  .v-step:not(:last-child)::after { right: -8px; top: 27px; width: 16px; height: 14px; }
  .v-steps::before { top: 32px; left: 10%; right: 10%; }

  .footer-inner { flex-direction: row; align-items: center; gap: 28px; }
  .site-footer p { font-size: 16px; }
}

/* =====================================================
   DESKTOP (min-width: 1025px)
   ===================================================== */
@media (min-width: 1025px) {
  .desktop-nav { display: flex; gap: 28px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
  .desktop-nav a { transition: color 0.2s; position: relative; }
  .desktop-nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 1.5px; background: var(--blue);
    border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .desktop-nav a:hover::after { transform: scaleX(1); }
  .desktop-nav a:hover { color: var(--blue); }
  .desktop-actions { display: flex; gap: 12px; align-items: center; }
  .header-link { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
  .header-link:hover { color: var(--blue); }

  .menu-btn, .mobile-nav { display: none; }

  .section { padding: 120px 0; }
  .hero { padding-top: 124px; padding-bottom: 80px; }
  .hero-copy h1 { font-size: clamp(3rem, 6.5vw, 4rem); }
  .final-cta { padding-bottom: 120px; }

  .hero-grid { grid-template-columns: 1fr 2.5fr; gap: 64px; align-items: center; }

  .v-steps::before { left: 10%; right: 10%; }

  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .text-col-3 { grid-template-columns: repeat(3, 1fr); }

  .section-intro h2, .cta-panel h2 { font-size: clamp(2.2rem, 4.5vw, 2.8rem); }
}

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