/* ==========================================================================
   SEGTOR — GESTIONES VEHICULARES
   Premium landing page styles
   Organized by section. Custom properties drive the whole theme.
   ========================================================================== */

/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — derived from the Segtor brand mark (navy / gold / teal) */
  --bg: #050b14;
  --bg-deep: #03070f;
  --bg-soft: #0a1520;
  --surface: #101f2e;
  --surface-2: #172a3d;
  --text: #f4f5f7;
  --text-dim: #9aa8b5;
  --text-faint: #5a6774;
  --accent-1: #0a8dea;
  --accent-2: #f5b820;
  --accent-3: #5bd1a7;
  --accent-gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --brand-navy: #054471;
  --brand-teal-dark: #017665;
  --brand-offwhite: #f7f7f7;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(10, 141, 234, 0.18);

  /* Typography */
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container: 1240px;
  --header-h: 88px;
}

html {
  scroll-behavior: auto;
  background: var(--bg);
}

html.lenis, html.lenis body {
  height: auto;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection {
  background: var(--accent-2);
  color: #fff;
}

/* Hide native cursor on desktop when custom cursor active */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: none;
  }
}

/* ==========================================================================
   2. GRAIN / TEXTURE OVERLAY
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   3. LOADER
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loader__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.35em;
  color: var(--text);
  opacity: 0.9;
}

.loader__bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
}

/* ==========================================================================
   4. CUSTOM CURSOR
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}

.cursor.is-active .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent-1);
  background: rgba(10, 141, 234, 0.08);
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ==========================================================================
   5. LAYOUT HELPERS
   ========================================================================== */
.section-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 720px;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease-out);
}

.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { color: #fff; transform: translateY(-2px); }

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

.btn--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s var(--ease-out);
}

.btn--glow:hover {
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 40px rgba(245, 184, 32, 0.4);
}

.btn--glow:hover::before { opacity: 1; }

.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   7. HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 20px 0;
  transition: padding 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth),
    backdrop-filter 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header.is-scrolled {
  padding: 12px 0;
  background: rgba(6, 7, 10, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.header__logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-offwhite);
  padding: 6px;
}

.header__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent-1);
  transition: width 0.35s var(--ease-out);
}

.header__link:hover {
  color: var(--text);
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-smooth), opacity 0.3s;
  margin: 0 auto;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 7, 10, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  clip-path: circle(0px at calc(100% - 44px) 44px);
  transition: clip-path 0.7s var(--ease-smooth);
  pointer-events: none;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 52px);
  font-weight: 700;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
}

.mobile-menu.is-open .mobile-menu__link {
  animation: menuLinkIn 0.6s var(--ease-out) forwards;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { animation-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { animation-delay: 0.29s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { animation-delay: 0.36s; }

@keyframes menuLinkIn {
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu__link span {
  font-size: 14px;
  color: var(--accent-1);
  font-weight: 600;
}

.mobile-menu__cta {
  margin-top: 40px;
  align-self: flex-start;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: var(--bg);
  font-weight: 700;
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(245, 184, 32, 0.16), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(10, 141, 234, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 60%, var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10, 141, 234, 0.12), transparent 65%);
  filter: blur(40px);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
}

.hero__vehicle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: scale(1.15) translateY(40px);
  will-change: transform;
}

.vehicle-svg {
  width: min(90vw, 1100px);
  filter: drop-shadow(0 30px 60px rgba(10, 141, 234, 0.15));
}

.vehicle-path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 0; /* fully drawn by default; JS animates from 3000 only if GSAP loads */
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word {
  display: inline-block;
  will-change: transform;
}

.hero__title-line--accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 560px;
  opacity: 0;
  transform: translateY(16px);
}

.hero__cta {
  margin-top: 44px;
  opacity: 0;
  transform: translateY(16px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero__scroll-hint span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  overflow: hidden;
}

.hero__scroll-line span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--accent-1);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ==========================================================================
   9. SCROLL STORYTELLING
   ========================================================================== */
.story {
  position: relative;
  height: 320vh;
  background: var(--bg);
}

.story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story__vehicle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.vehicle-svg--ghost {
  width: min(70vw, 800px);
  filter: blur(0.3px);
}

.story__text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 32px;
  text-align: center;
}

.story__line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.3;
  color: var(--text-dim);
  opacity: 0;
  filter: blur(8px);
  padding: 0 32px;
}

.story__line span {
  color: var(--text);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.35em;
}

/* Fallback layout when GSAP/ScrollTrigger isn't available: stack lines
   statically instead of pinning + cross-fading them. */
.story--static {
  height: auto;
  padding: 140px 0;
}

.story--static .story__pin {
  position: static;
  height: auto;
  flex-direction: column;
  gap: 64px;
}

.story--static .story__text {
  position: static;
}

.story--static .story__line {
  position: static;
  opacity: 1;
  filter: none;
  margin-bottom: 48px;
}

.story--static .story__vehicle {
  position: static;
  margin-bottom: 32px;
}

/* ==========================================================================
   10. SERVICES
   ========================================================================== */
.services {
  position: relative;
  padding: 160px 0 120px;
  background: var(--bg-soft);
}

.services__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
  opacity: 0;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(10, 141, 234, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-1);
  margin-bottom: 24px;
  transition: transform 0.5s var(--ease-out), color 0.4s;
}

.service-card:hover .service-card__icon {
  transform: scale(1.15) rotate(-6deg);
  color: var(--accent-3);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}

.service-card__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-1);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  display: inline-block;
}

.service-card:hover .service-card__more {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   11. SHOWCASE (premium product section)
   ========================================================================== */
.showcase {
  position: relative;
  height: 300vh;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
}

.showcase__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase__vehicle-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase__vehicle {
  width: min(60vw, 900px);
  transform: scale(1);
  will-change: transform;
}

.floating-doc {
  position: absolute;
  display: flex;
  align-items: center;
  opacity: 0;
  filter: blur(6px);
}

.floating-doc--1 { top: 18%; left: 12%; flex-direction: row; }
.floating-doc--2 { top: 24%; right: 10%; flex-direction: row-reverse; }
.floating-doc--3 { bottom: 22%; left: 14%; flex-direction: row; }
.floating-doc--4 { bottom: 16%; right: 12%; flex-direction: row-reverse; }

.floating-doc__line {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-1), transparent);
}

.floating-doc--2 .floating-doc__line,
.floating-doc--4 .floating-doc__line {
  background: linear-gradient(270deg, var(--accent-1), transparent);
}

.floating-doc__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.floating-doc__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--accent-1);
  flex-shrink: 0;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-soft);
}

.showcase__caption {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 640px;
  padding: 0 32px;
  opacity: 0;
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}

.showcase__desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   12. PROCESS ("Así funciona")
   ========================================================================== */
.process {
  padding: 140px 0;
  background: var(--bg);
}

.process__list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.process__item {
  background: var(--bg-soft);
  padding: 48px 32px;
  opacity: 0;
  transform: translateY(40px);
}

.process__number {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.process__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process__desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ==========================================================================
   13. ABOUT
   ========================================================================== */
.about {
  padding: 100px 0 160px;
  background: var(--bg);
}

.about__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.about__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dim);
}

.about__stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__stat-label {
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 160px;
}

/* ==========================================================================
   13b. TESTIMONIALS
   ========================================================================== */
.testimonials {
  padding: 40px 0 160px;
  background: var(--bg);
}

.testimonials__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition: border-color 0.4s var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  color: var(--accent-2);
  margin-bottom: 20px;
}

.testimonial-card__stars svg {
  width: 15px;
  height: 15px;
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dim);
  flex-grow: 1;
  margin-bottom: 28px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.testimonial-card__role {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   14. FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.final-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(245, 184, 32, 0.18), transparent 65%);
  filter: blur(20px);
}

.final-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.final-cta__subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
}

.final-cta__btn {
  margin-top: 48px;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
}

.footer__tagline {
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}

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

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.35s var(--ease-out);
}

.footer__social a svg {
  width: 16px;
  height: 16px;
}

.footer__social a:hover {
  border-color: var(--accent-1);
  color: var(--text);
  transform: translateY(-3px);
}

.footer__contact {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 24px;
}

/* ==========================================================================
   16. FLOATING CONTACT BUTTON
   ========================================================================== */
.float-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: var(--bg);
  box-shadow: 0 10px 40px rgba(10, 141, 234, 0.35);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.float-contact svg { width: 24px; height: 24px; }

.float-contact:hover {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 14px 50px rgba(10, 141, 234, 0.5);
}

/* ==========================================================================
   17. MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 5, 0.75);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 48px 40px;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.5s var(--ease-out);
}

.modal.is-open .modal__panel {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: rotate(90deg);
}

.modal__close svg {
  width: 16px;
  height: 16px;
}

.modal__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: var(--bg);
  margin-bottom: 24px;
}

.modal__icon svg {
  width: 26px;
  height: 26px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.modal__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.modal__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  flex-shrink: 0;
}

/* ==========================================================================
   18. MAGNETIC ELEMENTS (JS-driven transform, base styles here)
   ========================================================================== */
[data-magnetic] {
  will-change: transform;
}

/* ==========================================================================
   19. SCROLL REVEAL BASE STATES
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

[data-tilt] {
  will-change: transform;
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .header__nav,
  .header__cta {
    display: none;
  }
  .header__burger {
    display: flex;
  }
  .about__stats {
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .process__list {
    grid-template-columns: 1fr;
  }
  .floating-doc__card span:last-child {
    display: none;
  }
  .floating-doc__card {
    padding: 12px;
    border-radius: 50%;
  }
  .float-contact {
    bottom: 20px;
    right: 20px;
  }
  .footer__top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(34px, 10vw, 48px); }
  .section-title { font-size: clamp(26px, 7vw, 36px); }
}

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

  .hero__bg,
  .hero__vehicle,
  .hero__subtitle,
  .hero__cta,
  .hero__scroll-hint,
  .word,
  [data-reveal],
  .service-card,
  .process__item,
  .testimonial-card,
  .showcase__caption,
  .floating-doc,
  .story__line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cursor { display: none; }
}
