/* =========================================================================
   Vannam Labs — Stylesheet
   Structure:
     1. Reset & Base
     2. Design Tokens
     3. Typography & Utility
     4. Header / Navigation (incl. mobile menu)
     5. Hero
     6. Slideshow
     7. Sections (pipeline, approach, products, why)
     8. Contact + Form
     9. Footer
    10. Motion / Reveal
    11. Responsive Breakpoints
    12. Accessibility & Print
   ========================================================================= */

/* ---------- 1. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* ---------- 2. Design Tokens ---------- */
:root {
  --primary: #B10DC9;
  --secondary: #6366F1;
  --accent: #22D3EE;
  --bg: #0F172A;
  --panel: #16213A;
  --panel-2: #1B2A47;
  --raised: #213254;
  --text: #E5E7EB;
  --muted: #9AA4B7;
  --muted-2: #6B7688;
  --line: rgba(229, 231, 235, 0.10);
  --line-strong: rgba(229, 231, 235, 0.18);
  --radius: 14px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --success: #34D399;
  --error: #F87171;
  --focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.35);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

::selection {
  background: var(--accent);
  color: #04222B;
}

/* ---------- 3. Typography & Utility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #04222B;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. Header / Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 99;
  background: rgba(6, 10, 22, 0.98);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 96px 32px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .mobile-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- 5. Hero ---------- */
.hero {
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, black, transparent);
  opacity: 0.5;
  pointer-events: none;
}

.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.hero-inner {
  max-width: 600px;
}

.hero .eyebrow {
  display: block;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hero p.lede {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  border: none;
  cursor: pointer;
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent);
  color: #04222B;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #4FE3F5;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero-tags span {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tags span::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

/* ---------- 6. Slideshow ---------- */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  aspect-ratio: 4 / 3;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-1 { background: linear-gradient(150deg, rgba(177, 13, 201, 0.28), rgba(15, 23, 42, 0.9)); }
.slide-2 { background: linear-gradient(150deg, rgba(99, 102, 241, 0.28), rgba(15, 23, 42, 0.9)); }
.slide-3 { background: linear-gradient(150deg, rgba(34, 211, 238, 0.24), rgba(15, 23, 42, 0.9)); }
.slide-4 { background: linear-gradient(150deg, rgba(177, 13, 201, 0.18), rgba(99, 102, 241, 0.22), rgba(15, 23, 42, 0.9)); }

.slide-mark {
  width: 350px;
  height: 200px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.slide-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
}

.slide-caption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  max-width: 280px;
}

.slide-dims {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px;
}

.slide-controls {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  z-index: 5;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  z-index: 5;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.slide-arrow:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.85);
}

.slide-prev { left: 14px; }
.slide-next { right: 14px; }

/* ---------- 7. Sections ---------- */
section {
  padding: 88px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 540px;
}

.pipeline {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.pipeline-rail {
  position: relative;
  margin-top: 8px;
}

.pipeline-line {
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}

.pipeline-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
  width: 36%;
  animation: flow 5.5s linear infinite;
}

@keyframes flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(380%); }
}

.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.stage {
  position: relative;
  padding-top: 44px;
}

.stage-node {
  position: absolute;
  top: 20px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-node::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.stage-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  display: block;
  margin-bottom: 8px;
}

.stage h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
}

.stage p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}

.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-copy h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.product-copy p {
  color: var(--muted);
  font-size: 16.5px;
  margin-bottom: 28px;
  max-width: 480px;
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step span.label {
  font-size: 15px;
  font-weight: 500;
}

.product-panel {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.product-card .product-mark {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  display: block;
  margin-bottom: 18px;
}

.product-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 22px;
  max-width: 400px;
}

.dev-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 5px 12px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.value {
  background: var(--panel);
  padding: 32px 28px;
}

.value .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  display: block;
  margin-bottom: 18px;
}

.value h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}

.value p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- 8. Contact + Form ---------- */
.contact {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact > .wrap > .reveal > p,
.contact-copy p {
  color: var(--muted);
  font-size: 16px;
  max-width: 440px;
}

.contact-details {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-row .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
}

.contact-row .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-row .meta .k {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-row .meta .v {
  font-size: 15px;
  font-weight: 500;
  word-break: break-word;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Contact form card */
.contact-form-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-2);
}

.form-field label .req {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.form-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%),
                     linear-gradient(135deg, var(--muted-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  font-size: 12.5px;
  color: var(--error);
  display: none;
  min-height: 1em;
}

.form-field.has-error .field-error {
  display: block;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  grid-column: 1 / -1;
}

.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--raised);
  position: relative;
}

.form-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #04222B;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-consent label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-actions .btn {
  min-width: 168px;
  justify-content: center;
}

.form-status {
  font-size: 13.5px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="sending"] { color: var(--muted); }

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(229, 231, 235, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* honeypot field, hidden from real users, visible to bots that fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 12px;
  color: var(--muted-2);
  grid-column: 1 / -1;
}

/* ---------- 9. Footer ---------- */
footer {
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted-2);
}

.footer-inner .brand {
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted-2);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- 10. Motion / Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pipeline-line::after {
    animation: none;
  }
  .spinner {
    animation: none;
  }
}

/* ---------- 11. Responsive Breakpoints ---------- */
@media (max-width: 980px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-inner {
    max-width: 640px;
  }
  .slideshow {
    max-width: 520px;
    margin: 0 auto;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .product-cards {
    grid-template-columns: 1fr;
  }
  .pipeline-stages {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .pipeline-line {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field.full {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 56px 0 0;
  }
  .hero-top {
    padding-bottom: 40px;
  }
  section {
    padding: 56px 0;
  }
  .pipeline-stages {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    flex: 1;
    justify-content: center;
  }
  .slideshow {
    aspect-ratio: 1 / 1;
    max-width: 100%;
  }
  .slide {
    padding: 22px;
  }
  .slide-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .contact-form-card,
  .product-panel {
    padding: 24px;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero p.lede {
    font-size: 16px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ---------- 12. Accessibility & Print ---------- */
@media (forced-colors: active) {
  .btn,
  .nav-cta,
  .social-link,
  .form-field input,
  .form-field select,
  .form-field textarea {
    border: 1px solid CanvasText;
  }
}

@media print {
  header,
  .hero-grid,
  .slideshow,
  .mobile-menu,
  .contact-form-card,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section {
    padding: 24px 0;
  }
}
