/* =====================================================================
   Cognivex LLC — style.css
   Premium dark, minimal, enterprise theme
   Sections: Tokens · Base · Layout · Buttons · Header · Hero · Stats ·
             Services · Features · Industries · Process · About ·
             Testimonials · FAQ · CTA · Contact · Footer · Utilities ·
             Animations · Responsive
   ===================================================================== */

/* ----------------------------- Design tokens ----------------------- */
:root {
  --bg: #09090B;
  --surface: #111113;
  --surface-2: #18181B;
  --accent: #3B82F6;
  --accent-2: #06B6D4;
  --highlight: #8B5CF6;
  --text: #FFFFFF;
  --text-muted: #A1A1AA;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --grad: linear-gradient(120deg, var(--accent), var(--accent-2), var(--highlight));
  --grad-soft: linear-gradient(120deg, rgba(59,130,246,.15), rgba(139,92,246,.15));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -8px rgba(59, 130, 246, 0.45);

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- Base -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

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

/* ----------------------------- Layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 820px; }

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
  z-index: 1;
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--grad-soft);
}

.section__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section__lead {
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* Elegant section separator */
.separator { padding-block: 0; }
.separator span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  isolation: isolate;
}
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  border: none;
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.6);
  animation: gradientShift 8s ease infinite;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -8px rgba(59, 130, 246, 0.75), var(--shadow-glow);
}

.btn--ghost { background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn:active { transform: translateY(-1px); }

/* ----------------------------- Background glow --------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob--1 {
  width: 520px; height: 520px;
  top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%);
  animation: floatBlob 22s ease-in-out infinite;
}
.blob--2 {
  width: 460px; height: 460px;
  top: 30%; right: -160px;
  background: radial-gradient(circle, rgba(139,92,246,.45), transparent 70%);
  animation: floatBlob 26s ease-in-out infinite reverse;
}
.blob--3 {
  width: 400px; height: 400px;
  bottom: -160px; left: 35%;
  background: radial-gradient(circle, rgba(6,182,212,.4), transparent 70%);
  animation: floatBlob 30s ease-in-out infinite;
}
/* Animated aurora sweep */
.bg-aurora {
  position: absolute;
  inset: -30%;
  background:
    conic-gradient(from 0deg at 30% 30%, transparent 0deg, rgba(59,130,246,0.16) 90deg, transparent 180deg),
    conic-gradient(from 180deg at 70% 60%, transparent 0deg, rgba(139,92,246,0.16) 120deg, transparent 220deg);
  filter: blur(40px);
  opacity: 0.9;
  animation: auroraSpin 40s linear infinite;
}
/* Drifting grid */
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 85%);
  animation: gridPan 30s linear infinite;
}

/* ----------------------------- Scroll progress --------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ----------------------------- Preloader --------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__spinner {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation: spin 0.9s linear infinite;
}

/* ----------------------------- Header ------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(9, 9, 11, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo { display: inline-flex; transition: opacity 0.3s ease; }
.nav__logo:hover { opacity: 0.85; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0;
  transition: color 0.3s ease;
}
.nav__link:hover { color: var(--text); }
/* Animated underline */
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { flex-shrink: 0; }
.nav__cta-mobile { display: none; }

/* Hamburger (mobile) */
.nav__checkbox { display: none; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

/* ----------------------------- Hero -------------------------------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero__text {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero__trust {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Hero visual: real photo + floating glass UI */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}
.hero__media {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 60px -20px rgba(59, 130, 246, 0.5);
  animation: floatY 8s ease-in-out infinite;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(59,130,246,0.18), transparent 45%, rgba(9,9,11,0.55));
}
/* Floating glass info cards over the photo */
.hero__badge,
.hero__chip {
  position: absolute;
  z-index: 2;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
}
.hero__badge {
  left: -14px; bottom: 22px;
  display: flex; align-items: center; gap: 0.6rem;
  animation: floatY 6s ease-in-out infinite 0.4s;
}
.hero__badge-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hero__badge strong { display: block; font-size: 0.85rem; }
.hero__badge span { color: var(--text-muted); font-size: 0.72rem; }
.hero__chip {
  right: -14px; top: 26px;
  text-align: center;
  animation: floatY 7s ease-in-out infinite 0.9s;
}
.hero__chip strong { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.hero__chip span { color: var(--text-muted); font-size: 0.72rem; }
/* Decorative accents */
.hero__ring {
  position: absolute;
  width: 118%; aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.22);
  z-index: -1;
}
.hero__ring--1 { animation: spin 40s linear infinite; }
.hero__spark {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
  z-index: 3;
}
.hero__spark--a { top: 4%; left: 40%; animation: floatY 6s ease-in-out infinite; }
.hero__spark--b { bottom: 6%; right: 12%; animation: floatY 8s ease-in-out infinite 1s; }

/* ----------------------------- Stats ------------------------------- */
.stats-section { padding-block: clamp(2rem, 4vw, 3rem); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat {
  text-align: center;
  padding: 1.75rem 1.25rem;
}
.stat__value {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----------------------------- Glass cards ------------------------- */
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* ----------------------------- Cards grid (services) --------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  margin-bottom: 1.35rem;
  color: var(--accent-2);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), color 0.4s ease;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); color: #fff; }

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.card__text { color: var(--text-muted); font-size: 0.98rem; }

/* ----------------------------- Features ---------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature {
  padding: 2rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature__num {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature__title { font-size: 1.15rem; font-weight: 700; margin: 0.75rem 0 0.5rem; }
.feature__text { color: var(--text-muted); font-size: 0.95rem; }

/* ----------------------------- Industries -------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.industry {
  position: relative;
  isolation: isolate;
  padding: 1.9rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  justify-content: flex-end;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.industry:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.industry__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.02);
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.industry::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9,9,11,0.35) 0%, rgba(9,9,11,0.82) 65%, rgba(9,9,11,0.94) 100%);
  transition: background 0.4s ease;
}
.industry:hover .industry__bg { transform: scale(1.09); opacity: 0.7; }
.industry .industry__icon,
.industry .industry__title,
.industry .industry__text { position: relative; }
.industry__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--highlight);
  background: var(--grad-soft);
  border: 1px solid var(--border);
}
.industry__icon svg { width: 24px; height: 24px; }
.industry__title { font-size: 1.15rem; font-weight: 700; }
.industry__text { color: var(--text-muted); font-size: 0.95rem; }

/* ----------------------------- Process timeline -------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 7px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--highlight));
  opacity: 0.4;
}
.timeline__step {
  position: relative;
  padding-top: 2.5rem;
  text-align: center;
}
.timeline__dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px var(--bg), var(--shadow-glow);
}
.timeline__index {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.timeline__title { font-size: 1.15rem; font-weight: 700; margin: 0.35rem 0 0.4rem; }
.timeline__text { color: var(--text-muted); font-size: 0.9rem; }

/* ----------------------------- About ------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__text { color: var(--text-muted); margin-top: 1.25rem; font-size: 1.05rem; }
.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.about__pillars li {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.about__pillars li:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.about__pillars strong { display: block; font-size: 1.05rem; }
.about__pillars span { color: var(--text-muted); font-size: 0.9rem; }

.about__visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
}
.about__glow {
  position: absolute;
  z-index: 2;
  bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.about__photo {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.6s var(--ease);
}
.about__visual:hover .about__photo { transform: scale(1.04); }
.about__badge {
  position: absolute;
  z-index: 3;
  left: 1.1rem; bottom: 1.1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}
.about__badge strong { display: block; font-size: 0.95rem; }
.about__badge span { color: var(--text-muted); font-size: 0.82rem; }

/* ----------------------------- Testimonials ------------------------ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.testimonial__stars { color: #FBBF24; letter-spacing: 2px; font-size: 1rem; }
.testimonial blockquote { font-size: 1.02rem; line-height: 1.6; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}
.testimonial figcaption strong { display: block; font-size: 0.95rem; }
.testimonial figcaption em { color: var(--text-muted); font-size: 0.85rem; font-style: normal; }

/* ----------------------------- FAQ (CSS accordion) ----------------- */
.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq__item[open] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-2);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-muted);
}

/* ----------------------------- CTA --------------------------------- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  border-color: var(--border-strong);
}
.cta__glow {
  position: absolute;
  inset: -40% 20% auto;
  height: 300px;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.35), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.cta__title {
  position: relative;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.cta__text {
  position: relative;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
}

/* ----------------------------- Contact ----------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ico {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent-2);
  background: var(--grad-soft);
  border: 1px solid var(--border);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__list em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.contact__list a, .contact__list address { font-style: normal; font-weight: 500; transition: color 0.3s ease; }
.contact__list a:hover { color: var(--accent); }

.contact__form { padding: 2rem; display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #52525B; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.contact__note { text-align: center; font-size: 0.9rem; color: var(--accent-2); min-height: 1.2em; }
.field__opt { color: #52525B; font-weight: 400; }

/* SMS consent (10DLC opt-in) */
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }

/* ----------------------------- Footer ------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand p {
  color: var(--text-muted);
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: 0.98rem;
}
.footer__col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col a, .footer__col address {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer__legal { display: flex; gap: 0.6rem; align-items: center; }
.footer__legal a { transition: color 0.3s ease; }
.footer__legal a:hover { color: var(--accent); }

/* ----------------------------- Legal pages ------------------------- */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal__header { max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.legal__header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.legal__updated { color: var(--text-muted); margin-top: 0.75rem; font-size: 0.95rem; }
.legal__body { max-width: 820px; margin-inline: auto; }
.legal__body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.legal__body h2:first-of-type { border-top: none; padding-top: 0; }
.legal__body h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal__body p,
.legal__body li { color: var(--text-muted); font-size: 1rem; }
.legal__body p { margin-bottom: 1rem; }
.legal__body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: 0.5rem; }
.legal__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--accent); }
.legal__body strong { color: var(--text); }
.legal__note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
}
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 2rem; color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s ease; }
.legal__back:hover { color: var(--accent); }

/* ----------------------------- Back to top ------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  z-index: 800;
  box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s ease;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 36px -8px rgba(59, 130, 246, 0.8); }

/* ----------------------------- Utilities --------------------------- */
.gradient-text {
  background: var(--grad);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

/* ----------------------------- Animations -------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.9s var(--ease) forwards;
}
.hero__visual.fade-in { animation-delay: 0.15s; }

/* Scroll-reveal (toggled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.floating { animation: floatY 7s ease-in-out infinite; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.96); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes auroraSpin {
  0% { transform: rotate(0deg) scale(1.05); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1.05); }
}
@keyframes gridPan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ----------------------------- Responsive -------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; min-height: 320px; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .about__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .cards-grid,
  .industry-grid,
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline::before { display: none; }
}

@media (max-width: 760px) {
  /* Mobile nav */
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(9, 9, 11, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav__checkbox:checked ~ .nav__menu { transform: translateY(0); }
  .nav__menu li { border-bottom: 1px solid var(--border); }
  .nav__link { display: block; padding: 1rem 0.25rem; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: block; border-bottom: none !important; padding-top: 1rem; }
  .nav__cta-mobile .btn { width: 100%; }
  /* Hamburger → X */
  .nav__checkbox:checked ~ .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__checkbox:checked ~ .nav__hamburger span:nth-child(2) { opacity: 0; }
  .nav__checkbox:checked ~ .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .cards-grid,
  .industry-grid,
  .testimonial-grid,
  .feature-grid,
  .stats-grid,
  .about__pillars,
  .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bar { flex-direction: column; text-align: center; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* ----------------------------- Reduced motion ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .reveal { opacity: 1; transform: none; }
}
