/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #050b16;   /* deep navy, near-black */
  --bg-2:      #0a1526;   /* panel navy */
  --bg-3:      #101f34;   /* card navy */
  --bg-4:      #16283f;   /* card hover navy */
  --ink:       #eef2f7;   /* off-white text, never pure white */
  --ink-soft:  #c7d2e0;
  --ink-mute:  #7c8ba3;
  --silver:    #c7d0da;
  --silver-bright: #f3f6fa;
  --accent:    #6f8bb3;   /* steel blue-silver, glows/highlights */
  --accent-2:  #3d5977;   /* deeper steel blue */
  --line:      rgba(238,242,247,.12);
  --line-strong: rgba(238,242,247,.22);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%; tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--display); color: var(--ink); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--silver-bright); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.section { padding-block: clamp(4rem, 10vw, 7rem); position: relative; }
.section-kicker {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.25rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.8rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.btn-primary {
  background: linear-gradient(135deg, var(--silver-bright), var(--silver));
  color: var(--bg-2);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.35), 0 10px 22px rgba(111,139,179,0.25);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--ink);
}
.btn-ghost:hover { background: rgba(238,242,247,.06); transform: translateY(-4px); }
.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }

.advantage-card, .fleet-card, .testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .3s var(--ease-soft), border-color .3s var(--ease-soft), background .3s;
}
.advantage-card:hover, .testimonial-card:hover { border-color: var(--line-strong); background: var(--bg-4); }

.advantage-card, .testimonial-card { position: relative; isolation: isolate; overflow: hidden; }
.advantage-card::before, .testimonial-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(199,208,218,.14), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.advantage-card:hover::before, .testimonial-card:hover::before { opacity: 1; }

.media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-4), var(--bg-2));
  border: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  color: var(--ink-mute);
  margin-bottom: 1.4rem;
}
.media-placeholder svg { width: 42px; height: 42px; opacity: .55; }
.media-placeholder span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--mono); }

.fleet-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.fleet-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft);
}
.fleet-card:hover .fleet-media img { transform: scale(1.06); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .3s;
  padding-block: 1.4rem;
}
.nav.is-scrolled {
  background: rgba(5,11,22,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: .9rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; color: var(--ink); margin-left: -.85rem; }
.logo-icon { display: block; border-radius: 10px; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .25rem 0; font-size: .92rem; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--silver);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav .btn-sm { display: none; }
@media (min-width: 640px) { .nav .btn-sm { display: inline-flex; } }

.lang-switch { display: flex; gap: .3rem; background: rgba(238,242,247,.05); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--ink-mute); transition: background .3s, color .3s;
}
.lang-btn span { font-size: .9rem; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--silver-bright); color: var(--bg-2); }

/* --- Hero mesh gradient --- */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: clip; padding-block: 9rem 4rem; }
.hero-mesh {
  position: absolute; inset: -10%; z-index: 0;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(111,139,179,.32), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(199,208,218,.12), rgba(61,89,119,.16), rgba(111,139,179,.14), rgba(199,208,218,.12));
  filter: blur(90px) saturate(120%);
  opacity: .85;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: screen;
}
.hero-mesh-contact { inset: -10%; opacity: .55; }
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.hero-lines { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.hero-lines svg { width: 100%; height: 100%; }
.hero-lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  max-width: 14ch;
  margin-bottom: 1.4rem;
}
.hero-sub { max-width: 52ch; color: var(--ink-mute); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-mute); }
.trust-icon { font-size: 1.05rem; }

.split-word { display: inline-block; }

/* --- Advantages --- */
.advantages-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 3.5rem; }
@media (min-width: 720px) { .advantages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .advantages-grid { grid-template-columns: repeat(4, 1fr); } }
.advantage-card { padding: 2rem 1.6rem; }
.advantage-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(111,139,179,.14); color: var(--silver-bright);
  margin-bottom: 1.2rem;
}
.advantage-icon svg { width: 24px; height: 24px; }
.advantage-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.advantage-card p { color: var(--ink-mute); font-size: .92rem; }

/* --- Strip 3D flip badges --- */
.strip { perspective: 1800px; perspective-origin: center 60%; overflow: visible; }
.strip-row { display: flex; flex-wrap: nowrap; gap: 1.1rem; transform-style: preserve-3d; }
.strip-card {
  flex: 1 1 0; min-width: 0; aspect-ratio: 1;
  position: relative; transform-style: preserve-3d;
  animation: stripFlip 8s cubic-bezier(.65,0,.35,1) infinite; animation-delay: var(--d, 0s);
  border-radius: 18px;
}
.strip-card:hover { animation-play-state: paused; }
.strip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center; padding: .8rem;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 18px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 30% 15%, rgba(238,242,247,.09), transparent 60%),
    linear-gradient(155deg, var(--bg-4), var(--bg-3));
  box-shadow: 0 20px 40px -26px rgba(0,0,0,.6), inset 0 1px 0 rgba(238,242,247,.06);
}
.strip-front::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--silver-bright), transparent);
}
.strip-front {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em;
  background: linear-gradient(135deg, var(--silver-bright), var(--silver));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strip-back {
  transform: rotateY(180deg);
  font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); line-height: 1.4;
}
@keyframes stripFlip {
  0%, 42%  { transform: rotateY(0deg); }
  50%, 92% { transform: rotateY(180deg); }
  100%     { transform: rotateY(360deg); }
}
@media (max-width: 1023px) { .strip-card:nth-child(n+6) { display: none; } }
@media (max-width: 719px)  { .strip-card:nth-child(n+4) { display: none; } }

/* --- Fleet showcase (pinned horizontal) --- */
.showcase { position: relative; padding-block: clamp(4rem, 10vw, 7rem) 2rem; overflow: clip; }
.showcase-head { margin-bottom: 3rem; }
.showcase.is-pinned { overflow: visible; }
.showcase-track {
  display: flex; flex-wrap: nowrap; gap: 1.5rem;
  padding-inline: var(--gutter);
  will-change: transform;
}
@media (max-width: 1023px) {
  .showcase-track { overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; padding-block: .5rem 2rem; }
  .fleet-card { scroll-snap-align: start; }
}
.fleet-card {
  flex: 0 0 clamp(280px, 34vw, 400px);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.6rem;
}
.fleet-card-future { border-color: rgba(111,139,179,.4); background: var(--bg-4); }
.fleet-tag {
  display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .8rem; margin-bottom: .9rem;
}
.fleet-tag-future { color: var(--silver-bright); border-color: var(--accent); }
.fleet-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.fleet-sub { font-size: .85rem; color: var(--ink-mute); margin-bottom: .9rem; font-weight: 600; }
.fleet-card p:last-child { color: var(--ink-mute); font-size: .92rem; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card { padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.testimonial-card blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.55; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .8rem; font-size: .85rem; color: var(--ink-mute); }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--silver), var(--accent-2));
  color: var(--bg); font-family: var(--display); font-weight: 700; font-size: .8rem;
}

/* --- Contact --- */
.section-contact { position: relative; overflow: clip; background: var(--bg-2); }
.contact-inner { position: relative; z-index: 1; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.contact-method { display: inline-flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--ink); width: fit-content; }
.contact-method:not(.contact-method-static):hover { color: var(--silver-bright); }
.contact-method-static { color: var(--ink-mute); }

.contact-form-wrap { position: relative; }
.cta-form {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem;
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft);
}
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(238,242,247,.03); color: var(--ink); font-family: var(--sans); font-size: .95rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label {
  position: absolute; left: 1rem; top: 1.1rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: .92rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .45rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.cta-submit { position: relative; margin-top: .3rem; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(5,11,22,.25); border-top-color: var(--bg-2);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }

.form-error {
  margin-top: .9rem; padding: .7rem .9rem; border-radius: 10px;
  background: rgba(214,90,90,.1); border: 1px solid rgba(214,90,90,.3);
  color: #e2a3a3; font-size: .85rem; text-align: center;
}

.cta-success {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%);
  opacity: 0; pointer-events: none; text-align: center; max-width: 340px;
  transition: opacity .8s var(--ease-out) .2s, transform .9s var(--ease-soft) .2s;
}
.cta-success h3 { font-size: 1.5rem; margin-bottom: .6rem; color: var(--silver-bright); }
.cta-success p { color: var(--ink-mute); }
.cta-success.is-visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }

/* --- Gallery --- */
.gallery-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); position: relative; isolation: isolate;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-soft), filter .5s;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
.gallery-item::after {
  content: "＋"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.6rem; color: var(--silver-bright);
  background: rgba(5,11,22,.35); opacity: 0; transition: opacity .35s;
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,11,22,.92);
  display: grid; place-items: center; padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(238,242,247,.1); border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 1.1rem; display: grid; place-items: center;
  transition: background .3s;
}
.lightbox-close:hover { background: rgba(238,242,247,.2); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.footer-logo .logo-icon { border-radius: 6px; }
.footer-brand p { font-size: .85rem; color: var(--ink-mute); margin-top: .3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: .88rem; color: var(--ink-mute); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--ink-mute); }

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  animation: splashSafety .01s 3.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-icon { border-radius: 14px; }
.splash-mark { font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: 1.4rem; color: var(--ink); }
.splash-line { width: 120px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; background: var(--silver-bright);
  animation: splashLoad 1.6s var(--ease-out) infinite;
}
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* =============================================================
   8. Tilt (JS-driven custom property hook)
   ============================================================= */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

/* =============================================================
   9. Responsive breakpoints notes: 540 / 720 / 960 / 1280 / 1600
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { gap: 1.2rem; }
}

/* =============================================================
   9. Reduced-motion (only INTRUSIVE effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .splash-line::after { animation: none; }
}
