:root {
  --bg-primary: #0A0F1C;
  --bg-secondary: #F8FAFC;
  --surface: #FFFFFF;
  --text-primary: #0A0F1C;
  --text-secondary: #475569;
  --text-inverse: #F8FAFC;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --border: #E2E8F0;
  --cert-gold: #B45309;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(10, 15, 28, 0.06);
  --shadow-lg: 0 8px 40px rgba(10, 15, 28, 0.10);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.3s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(10, 15, 28, 0.97);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.header__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

.header__name strong {
  font-weight: 700;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.7);
  transition: color 0.2s ease;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.header__link:hover::after,
.header__link.active::after {
  transform: scaleX(1);
}

.header__cta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-inverse);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 9999px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

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

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch__btn {
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.6);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.lang-switch__btn:hover {
  color: var(--text-inverse);
}

.lang-switch__btn--active {
  background: var(--cert-gold);
  color: #0A0F1C;
  font-weight: 700;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  transition: transform var(--transition), opacity var(--transition);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__bg.parallax {
  transform: scale(1.1) translateY(calc(var(--parallax-y, 0) * 1px));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 15, 28, 0.88) 0%, rgba(10, 15, 28, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content.animate-in {
    animation: heroIn 1s var(--ease-out) 0.1s forwards;
  }

  .hero__badge {
    opacity: 0;
    animation: badgeIn 0.5s var(--ease-out) 0.3s forwards;
  }

  .hero__badge:nth-child(2) {
    animation-delay: 0.45s;
  }

  .hero__title {
    opacity: 0;
    animation: heroIn 0.8s var(--ease-out) 0.2s forwards;
  }

  .hero__title .hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineIn 0.6s var(--ease-out) 0.8s forwards;
  }

  .hero__subtitle {
    opacity: 0;
    animation: heroIn 0.8s var(--ease-out) 0.4s forwards;
  }

  .hero__actions {
    opacity: 0;
    animation: heroIn 0.6s var(--ease-out) 0.55s forwards;
  }

  .hero__trust {
    opacity: 0;
    animation: heroIn 0.6s var(--ease-out) 0.7s forwards;
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cert-gold);
  padding: 0.5rem 1.25rem;
  background: rgba(180, 83, 9, 0.15);
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 6px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

@keyframes badgeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
  margin-bottom: 1.5rem;
}

.hero__title-accent {
  color: var(--accent);
  display: inline;
}

.hero__title .hero__title-accent {
  position: relative;
}

@keyframes underlineIn {
  to {
    transform: scaleX(1);
  }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__trust-item {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.6);
  letter-spacing: 0.02em;
}

.hero__trust-sep {
  width: 4px;
  height: 4px;
  background: rgba(248, 250, 252, 0.3);
  border-radius: 50%;
}

/* ========== Section Entrance Animations ========== */
.section {
  opacity: 1; /* visible by default for JS-fail safety */
}

@media (prefers-reduced-motion: no-preference) {
  .section {
    opacity: 0;
    will-change: opacity, transform, clip-path;
  }
}

.section--light.animate-in {
  animation: sectionRevealLight 0.9s var(--ease-out) forwards;
}

.section--gray.animate-in {
  animation: sectionRevealGray 1s var(--ease-out) forwards;
}

.section--navy.animate-in {
  animation: sectionRevealNavy 0.8s var(--ease-out) forwards;
}

@keyframes sectionRevealLight {
  from {
    opacity: 0;
    clip-path: inset(0 0 8% 0);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@keyframes sectionRevealGray {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes sectionRevealNavy {
  from {
    opacity: 0;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateY(0);
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(29, 78, 216, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border: 1px solid rgba(248, 250, 252, 0.3);
}

.btn--ghost:hover {
  background: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.5);
  transform: translateY(-2px);
}

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

.btn--accent:hover {
  background: var(--accent);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

/* ========== Sections ========== */
.section {
  padding: 6rem 0;
  position: relative;
}

/* Section divider accents */
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transition: width 1s var(--ease-out);
}

.section.animate-in::after {
  width: 80%;
}

.section--navy.section::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.section--light {
  background: var(--surface);
}

.section--gray {
  background: var(--bg-secondary);
}

.section--navy {
  background: var(--bg-primary);
  color: var(--text-inverse);
}

.section__header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section--navy .section__title {
  color: var(--text-inverse);
}

.section__lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section--navy .section__lead {
  color: rgba(248, 250, 252, 0.7);
}

.subsection__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding-top: 3rem;
  position: relative;
  display: inline-block;
}

.subsection__title:first-of-type {
  padding-top: 0;
}

.subsection__title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.subsection__title:first-of-type::before {
  display: none;
}

/* ========== About ========== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about__block {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.about__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Services ========== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.02) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.service__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.08);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.service:hover .service__icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(29, 78, 216, 0.15);
}

.service__icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-out);
}

.service:hover .service__icon svg {
  transform: scale(1.1);
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Technical Capabilities ========== */
.tech-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, #0A0F1C 0%, #1A2235 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.tech-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(29, 78, 216, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.tech-hero.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .tech-hero.reveal.visible {
    animation: techHeroIn 0.9s var(--ease-out) forwards;
  }
}

@keyframes techHeroIn {
  from {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

.tech-hero__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cert-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .tech-hero__label {
    opacity: 0;
  }

  .tech-hero.reveal.visible .tech-hero__label {
    animation: fadeSlideUp 0.5s var(--ease-out) 0.1s forwards;
  }

  .tech-hero__title {
    opacity: 0;
  }

  .tech-hero.reveal.visible .tech-hero__title {
    animation: fadeSlideUp 0.6s var(--ease-out) 0.2s forwards;
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tech-hero__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.tech-hero__text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(248, 250, 252, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tech-hero__text strong {
  color: var(--text-inverse);
}

.tech-hero__features {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tech-hero__feature {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(29, 78, 216, 0.2);
  border: 1px solid rgba(29, 78, 216, 0.4);
  border-radius: 6px;
  color: #93C5FD;
}

.tech-hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-hero__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  border-radius: var(--radius);
  position: relative;
}

.tech-hero__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('files/images.jpeg') center/cover;
  opacity: 0.85;
}

/* ========== Fleet ========== */
.fleet__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
}

.fleet__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.fleet__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
}

.fleet__card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.fleet__card:hover::before {
  height: 100%;
}

.fleet__manufacturer {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

.fleet__models {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.fleet__services {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Engines ========== */
.engines__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.engine {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow var(--transition), transform var(--transition), border-color 0.3s ease;
}

.engine:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.engine__brand {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.engine__model {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========== Location ========== */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location__text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.location__meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.location__badge {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 9999px;
  color: var(--accent);
}

.location__address {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.location__map {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  filter: saturate(0.95) contrast(1.05);
  transition: filter 0.3s ease;
}

.location__map:hover {
  filter: saturate(1) contrast(1.1);
}

/* ========== Metrics ========== */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition), border-color 0.3s ease;
}

.metric:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--accent);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.metric:hover .metric__value {
  color: var(--accent-hover);
  transform: scale(1.05);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== Header Entrance ========== */
.header {
  /* visible by default for JS-fail safety */
}

@media (prefers-reduced-motion: no-preference) {
  .header {
    transform: translateY(-100%);
    animation: headerSlideIn 0.6s var(--ease-out) 0.1s forwards;
  }
}

@keyframes headerSlideIn {
  to {
    transform: translateY(0);
  }
}

/* ========== Certifications ========== */
.certifications__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cert {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cert:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cert__code-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cert__seal {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 83, 9, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--cert-gold);
  transition: transform 0.4s var(--ease-out), background 0.3s ease;
}

.cert:hover .cert__seal {
  transform: rotate(-8deg) scale(1.08);
  background: rgba(180, 83, 9, 0.18);
}

.cert__seal svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s var(--ease-out);
}

.cert:hover .cert__seal svg {
  transform: scale(1.1);
}

.cert__code {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.cert__issuer {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cert-gold);
}

.cert__description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 0;
}

a.cert {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cert__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cert-gold);
}

.cert:hover .cert__link {
  text-decoration: underline;
}

/* ========== Team ========== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.team__member {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition), border-color 0.3s ease;
}

.team__member:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.team__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.team__member:hover .team__role {
  color: var(--accent-hover);
}

.team__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team__email,
.team__phone {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.team__email:hover,
.team__phone:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* ========== CTA / Contact ========== */
.section--contacto {
  background: radial-gradient(circle at 85% 15%, rgba(29, 78, 216, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 15% 85%, rgba(180, 83, 9, 0.12) 0%, transparent 45%),
              var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contacto-header {
  margin-bottom: 3rem;
  max-width: 820px;
}

.contacto-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93C5FD;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--text-inverse);
}

.cta__text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.65;
  margin-bottom: 0;
}

.cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cta__form-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta__panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.cta__info {
  display: flex;
  flex-direction: column;
}

.cta__group {
  padding: 1.25rem 0;
}

.cta__group:first-child {
  padding-top: 0;
}

.cta__group:last-child {
  padding-bottom: 0;
}

.cta__group + .cta__group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta__group-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.cta__group-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-inverse);
  line-height: 1.6;
}

.cta__group-sub {
  font-family: var(--font-body);
  font-size: 0.84375rem;
  color: rgba(248, 250, 252, 0.65);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.cta__sep {
  color: rgba(248, 250, 252, 0.3);
  margin: 0 0.375rem;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.cta__status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.cta__status-dot.pulse {
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* ========== Contact Form ========== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.85);
  letter-spacing: 0.01em;
}

.contact-form__input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-inverse);
  caret-color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.8125rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input::placeholder {
  color: rgba(248, 250, 252, 0.45);
}

.contact-form__input:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.contact-form__input:focus {
  outline: none;
  border-color: #60A5FA;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form__input:user-invalid {
  border-color: #F87171;
}

.contact-form__input:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.contact-form__input:-webkit-autofill {
  -webkit-text-fill-color: var(--text-inverse);
  caret-color: var(--text-inverse);
  transition: background-color 9999s ease-out;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 110px;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-form__status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #4ADE80;
}

.contact-form__status[hidden] {
  display: none;
}

.contact-form__note {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.6);
  margin-top: 0.25rem;
}

.contact-form__note strong {
  color: rgba(248, 250, 252, 0.75);
  font-weight: 600;
}

.contact-form__footer--center {
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.contact-form__note--center {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: rgba(248, 250, 252, 0.88);
  margin-bottom: 4rem;
}

.contact-form__note--center strong {
  color: rgba(248, 250, 252, 0.95);
  font-weight: 600;
}

.contact-form__email-line {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.88);
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.contact-form__email-label {
  color: rgba(248, 250, 252, 0.6);
  font-weight: 500;
}

.contact-form__email-link {
  color: #93C5FD;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(147, 197, 253, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.contact-form__email-link:hover {
  color: #DBEAFE;
  border-bottom-color: #DBEAFE;
}

@media (max-width: 768px) {
  .contact-form__note--center {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
  }

  .contact-form__email-line {
    font-size: 0.9375rem;
    margin-top: 1.75rem;
    gap: 0.5rem;
  }

  .contact-form__email-link {
    font-size: 0.875rem;
  }

  .cta__content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-form__note--center {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .contact-form__email-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 1.5rem;
  }

  .contact-form__email-link {
    font-size: 0.8125rem;
    word-break: break-all;
  }

  .cta__content {
    padding: 1.25rem;
  }

  .cta__info {
    padding: 1.25rem;
  }
}

@media (max-width: 600px) {
  .cta__panel {
    padding: 1.25rem;
  }
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-primary);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 4px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.footer__cert {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(248, 250, 252, 0.65);
}

.footer__address {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.4);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(248, 250, 252, 0.3);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
}

.footer__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--text-inverse);
  transform: translateX(3px);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .tech-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .tech-hero__visual {
    order: -1;
  }

  .location {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location__visual {
    order: -1;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__links {
    align-items: center;
  }

  .engines__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .lang-switch {
    margin-top: 0.5rem;
    align-self: flex-start;
  }

  .header__toggle {
    display: flex;
  }

  .header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .fleet__grid {
    grid-template-columns: 1fr;
  }

  .certifications__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cert {
    padding: 1.25rem;
    min-width: 0;
  }

  .cert__code-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .cert__seal {
    width: 40px;
    height: 40px;
  }

  .cert__seal svg {
    width: 20px;
    height: 20px;
  }

  .cert__code {
    font-size: 1.0625rem;
  }

  .cert__description {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .hero__trust-item {
    font-size: 0.8125rem;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .engines__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engines__grid {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .certifications__grid {
    gap: 0.75rem;
  }

  .cert {
    padding: 1rem;
  }

  .cert__code {
    font-size: 0.9375rem;
  }

  .cert__issuer {
    font-size: 0.75rem;
  }

  .hero__badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
  }

  .hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero__trust-sep {
    display: none;
  }
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Focus States ========== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== Selection ========== */
::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

/* ========== 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;
  }

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

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

  .section {
    opacity: 1;
  }

  .service:hover,
  .cert:hover,
  .fleet__card:hover,
  .engine:hover,
  .team__member:hover,
  .metric:hover {
    transform: none !important;
  }

  .header__bg {
    transform: scale(1) !important;
  }

  .service__icon,
  .cert__seal {
    transition: none !important;
    transform: none !important;
  }

  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__trust {
    opacity: 1;
  }

  .tech-hero__label,
  .tech-hero__title {
    opacity: 1;
  }

  .header {
    transform: none !important;
    animation: none !important;
  }

  .section::after {
    width: 80% !important;
    transition: none !important;
  }
}

/* ========== Legal pages (Privacidad / Términos) ========== */
.legal {
  padding: 8rem 0 5rem;
}

.legal__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal li + li {
  margin-top: 0.375rem;
}

.legal a {
  color: var(--accent);
}

.legal__back {
  display: inline-block;
  margin-top: 3rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}

.legal__back:hover {
  text-decoration: underline;
}
