/* =============================================================================
   Strafos — strafos.com
   Design tokens mirror the Strafos app (frontend2/src/app/theme/tokens.ts)
   so the marketing site and the product read as one thing.
   ========================================================================== */

:root {
  /* --- brand (from the app's design tokens) --- */
  --blue: #2b64fc;
  --blue-dark: #1c4bd1;
  --blue-light: #3388d9;
  --white-blue: #eff3ff;
  --blue-border: #d3e0ff;
  --navy: #0d2461;
  --navy-deep: #081538;
  --heading: #00215f;
  --heading-mid: #00396f;
  --orange: #fc8b2a;
  --green: #487d00;
  --profit: #00be9d;
  --red: #d92300;
  --purple: #8a3eff;

  /* --- neutrals --- */
  --ink: #10162b;
  --ink-soft: #465071;
  --ink-mute: #6e7793;
  --line: #e3e8f4;
  --line-soft: #eef2fa;
  --surface: #ffffff;
  --surface-2: #f6f8fd;

  /* --- shape & motion (radius 6/8 as in the app) --- */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 36, 97, 0.06), 0 2px 6px rgba(13, 36, 97, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 36, 97, 0.07), 0 12px 32px rgba(13, 36, 97, 0.08);
  --shadow-lg: 0 12px 28px rgba(13, 36, 97, 0.1), 0 32px 64px rgba(13, 36, 97, 0.14);

  --wrap: 1180px;
  --header-h: 76px;

  /* the app's sidebar backdrop, reused as the site's dark surface */
  --navy-bg:
    radial-gradient(120% 70% at 12% 0%, rgba(43, 100, 252, 0.3) 0%, rgba(43, 100, 252, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 18%),
    linear-gradient(160deg, #1c3c92 0%, #122c6e 42%, #0c1f50 72%, #081538 100%);
}

/* =============================== base ==================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Rubik", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(43, 100, 252, 0.14);
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--heading);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 400;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
  font-weight: 500;
}
h4 {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.1em;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img,
svg {
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
strong,
b {
  font-weight: 500;
}

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

/* safe-area insets keep content clear of the notch in landscape */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

.ta-r {
  text-align: right;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* =============================== buttons ================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 100, 252, 0.28);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43, 100, 252, 0.34);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

/* =============================== header ================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 0;
}
.brand img {
  width: 148px;
  height: auto;
  display: block;
  transition: filter 0.25s;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 400;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  transition:
    color 0.18s,
    background-color 0.18s;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.nav .nav-cta {
  color: #fff;
  margin-left: 10px;
  padding: 11px 20px;
}
.nav .nav-cta:hover {
  background: var(--blue-dark);
}

/* solid state once scrolled past the hero */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(13, 36, 97, 0.06);
}
.site-header.is-solid .brand img {
  filter: brightness(0) saturate(100%) invert(11%) sepia(43%) saturate(3800%) hue-rotate(216deg) brightness(92%)
    contrast(101%);
}
.site-header.is-solid .nav a {
  color: var(--ink);
}
.site-header.is-solid .nav a:hover {
  background: var(--white-blue);
  color: var(--blue);
}
.site-header.is-solid .nav .nav-cta {
  color: #fff;
}
.site-header.is-solid .nav-toggle span {
  background: var(--ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.25s,
    opacity 0.2s,
    background-color 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================== hero ==================================== */

.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 72px) 0 110px;
  background: var(--navy-bg);
  background-color: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
}
/* ---- hero route map -----------------------------------------------------
   A network of airports and routes with aircraft flying the edges. The
   aircraft ride the same curve as the edge they follow via offset-path, so
   the geometry is declared once in the markup and never drifts out of sync.
   ---------------------------------------------------------------------- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* the headline sits on the left, so the network fades out under it and
     only reaches full strength in the empty right half */
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 2%,
    rgba(0, 0, 0, 0.18) 26%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.9) 76%,
    #000 92%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 2%,
    rgba(0, 0, 0, 0.18) 26%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.9) 76%,
    #000 92%
  );
}

/* faint projection lines — reads as a map without competing with the routes */
.graticule path {
  fill: none;
  stroke: #8fb4ff;
  stroke-width: 1;
  opacity: 0.05;
}

.edge {
  fill: none;
  stroke: #6e97ff;
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.34;
}
/* the routes currently being flown sit slightly forward, and their dashes
   drift along the direction of travel */
.edge-live {
  stroke: #a9c6ff;
  opacity: 0.58;
  animation: drift 3.4s linear infinite;
}
@keyframes drift {
  to {
    stroke-dashoffset: -10;
  }
}

.node {
  fill: #bbd2ff;
  opacity: 0.7;
}
.node-m {
  opacity: 0.8;
}
.node-h {
  fill: #fff;
  opacity: 0.85;
}

.halo {
  fill: none;
  stroke: #7fa6ff;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: halo 4.6s ease-out infinite;
}
.halo-b {
  animation-delay: -2.3s;
}
@keyframes halo {
  0% {
    transform: scale(0.5);
    opacity: 0.45;
  }
  70%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.plane {
  display: none;
}

@supports (offset-path: path("M0 0L1 1")) {
  .plane {
    display: block;
    fill: #fff;
    transform-box: fill-box;
    transform-origin: 50% 50%;
    /* the silhouette is authored at ~12 units long so it stays crisp; the map is
       1000 units wide, so it needs a nudge up to read as an aircraft rather than
       a speck. offset-* is applied outside `transform`, so this scales the plane
       in its own space and does not disturb the path or the heading. */
    transform: scale(1.35);
    offset-rotate: auto;
    animation-name: fly;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}
/* fading in and out at the ends hides the jump back to the start of the loop */
@keyframes fly {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  84% {
    opacity: 0.8;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

.hero-map .p1 {
  offset-path: path("M380 150Q463.5 212.4 520 300");
  animation-duration: 19s;
  animation-delay: -0s;
}
.hero-map .p2 {
  offset-path: path("M520 300Q662.2 315.7 790 380");
  animation-duration: 23s;
  animation-delay: -4s;
}
.hero-map .p3 {
  offset-path: path("M430 560Q531.4 521.1 640 520");
  animation-duration: 17s;
  animation-delay: -9s;
}
.hero-map .p4 {
  offset-path: path("M930 230Q824.9 154.3 700 120");
  animation-duration: 26s;
  animation-delay: -2s;
}
.hero-map .p5 {
  offset-path: path("M640 520Q632.6 593.6 600 660");
  animation-duration: 21s;
  animation-delay: -13s;
}
.hero-map .p6 {
  offset-path: path("M120 180Q247.3 141.6 380 150");
  animation-duration: 24s;
  animation-delay: -7s;
}
.hero-map .p7 {
  offset-path: path("M930 230Q846.5 292.4 790 380");
  animation-duration: 20s;
  animation-delay: -16s;
}
.hero-map .p8 {
  offset-path: path("M640 520Q675.1 583.1 730 630");
  animation-duration: 18s;
  animation-delay: -11s;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 21, 56, 0) 0%, rgba(8, 21, 56, 0.35) 100%);
}

.hero-inner {
  max-width: 860px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  max-width: 62ch;
  margin-bottom: 2.2em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86abff;
  margin-bottom: 1.1em;
}
.eyebrow-dark {
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

/* auto-fit rather than a fixed 4-up: the row reflows at every width on its own */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 26px 28px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-facts strong {
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
  /* clamped so the longest value ("EN · DE · FR · ES") never wraps its column */
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
}
.hero-facts span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* =============================== sections ================================ */

.section {
  padding: clamp(64px, 9vw, 118px) 0;
}
.section-tint {
  background: var(--surface-2);
}

.section-dark {
  background: var(--navy-bg);
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}
.section-dark h2,
.section-dark h3 {
  color: #fff;
}
.section-dark .lede {
  color: rgba(255, 255, 255, 0.74);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(38px, 5vw, 62px);
}
.section-head h2 {
  margin-bottom: 0.45em;
}
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--ink-soft);
  margin: 0;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =============================== value props =============================
   Deliberately not a card grid: an asymmetric editorial list. The heading
   column holds still while the numbered items scroll past it.
   ======================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.why-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.props {
  counter-reset: prop;
}
.prop {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 22px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.prop:first-child {
  border-top: 0;
  padding-top: 4px;
}
.prop:last-child {
  padding-bottom: 4px;
}

.prop-n {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  padding-top: 0.45em;
}
.prop h3 {
  font-size: 1.22rem;
  margin-bottom: 0.45em;
}
.prop p {
  margin: 0;
  font-size: 0.96rem;
}

.prop .prop-detail {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-mute);
}

/* =============================== carousel ================================ */

.carousel {
  position: relative;
}

.carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.carousel-tabs button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.carousel-tabs button:hover {
  border-color: var(--blue-border);
  color: var(--blue);
}
.carousel-tabs button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 500;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
}
.carousel-track {
  display: block;
}

.slide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.38s ease both;
}
.slide[hidden] {
  display: none;
}
@media (min-width: 1025px) {
  .slide {
    min-height: 460px;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.slide-copy h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}
.slide-copy p {
  font-size: 0.98rem;
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.c-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.c-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.c-arrow svg {
  width: 20px;
  height: 20px;
}
/* the dot is 8px but the button is a 40px-tall target with a transparent box */
.c-dots {
  display: flex;
  gap: 2px;
}
.c-dots button {
  width: 26px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.c-dots button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue-border);
  transition:
    width 0.22s,
    background-color 0.22s;
}
.c-dots button.is-active::before {
  width: 26px;
  background: var(--blue);
}
.c-dots button.is-active {
  width: 34px;
}

.mock-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 14px 0 0;
}

/* ------------------------- mock product screens -------------------------- */

.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #f7f9fe, #eff3fb);
  border-bottom: 1px solid var(--line);
}
.mock-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6deee;
}
.mock-bar .dot:nth-child(1) {
  background: #f1b0a6;
}
.mock-bar .dot:nth-child(2) {
  background: #f3d9a5;
}
.mock-bar .dot:nth-child(3) {
  background: #b6dcb0;
}
.mock-bar em {
  font-style: normal;
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 400;
}
.mock-body {
  padding: 6px 0 14px;
}

.mock-row {
  display: grid;
  grid-template-columns: 2.1fr 1.3fr 0.9fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mock-row:last-child {
  border-bottom: 0;
}
.mock-row b {
  display: block;
  font-weight: 500;
  font-size: 0.84rem;
}
.mock-row i {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ink-mute);
}
.mock-head {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
  padding-top: 8px;
  padding-bottom: 8px;
}
.mock-row.is-active {
  background: var(--white-blue);
}

.pill {
  display: inline-block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-blue {
  background: #e4ecff;
  color: #1c4bd1;
}
.pill-green {
  background: #e1f4e8;
  color: #1e7a43;
}
.pill-orange {
  background: #ffeedd;
  color: #b75c00;
}
.pill-grey {
  background: #edeff5;
  color: #6e7793;
}

.mock-leg {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mock-leg b {
  font-weight: 500;
  font-size: 0.84rem;
}
.mock-leg i {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--ink-mute);
}
.mock-leg .num {
  font-size: 0.82rem;
  font-weight: 500;
  min-width: 68px;
  text-align: right;
}
.leg-tag {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-sm);
}
.leg-pax {
  background: #e4ecff;
  color: #1c4bd1;
}
.leg-empty {
  background: #edeff5;
  color: #6e7793;
}

.mock-lines {
  padding: 12px 18px 4px;
  display: grid;
  gap: 8px;
}
.mock-lines > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.mock-lines .is-profit {
  color: #00806b;
  font-weight: 500;
}
.mock-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 18px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--heading);
}
.mock-total .num {
  font-size: 1.06rem;
}

.mock-note {
  padding: 12px 18px 0;
  font-size: 0.74rem;
  color: var(--ink-mute);
}

/* gantt */
.mock-gantt {
  padding: 14px 18px 18px;
}
.gantt-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-left: 62px;
  margin-bottom: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.gantt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.gantt-row .tail {
  width: 52px;
  flex: 0 0 52px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}
.gantt-row .lane {
  position: relative;
  flex: 1;
  height: 22px;
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(
    90deg,
    #f4f7fd 0 calc(100% / 7 - 1px),
    #e7ecf7 calc(100% / 7 - 1px) calc(100% / 7)
  );
}
.blk {
  position: absolute;
  top: 3px;
  height: 16px;
  border-radius: 4px;
  display: block;
}
.b-pax {
  background: linear-gradient(180deg, #4c7cfd, #2b64fc);
}
.b-empty {
  background: #b9c7e8;
}
.b-hold {
  background: repeating-linear-gradient(45deg, #fcc38a 0 5px, #fdd5ac 5px 10px);
}
.b-maint {
  background: #d6dbe7;
  border: 1px dashed #a9b2c8;
}
.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.7rem;
  color: var(--ink-mute);
}
.gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sw {
  width: 14px;
  height: 8px;
  border-radius: 3px;
  display: inline-block;
}

/* kpis + chart */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 6px;
}
.kpi {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.kpi span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.kpi b {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--heading);
  margin-top: 2px;
}
.kpi i {
  font-style: normal;
  font-size: 0.68rem;
}
.kpi .up {
  color: #00806b;
}
.kpi .flat {
  color: var(--ink-mute);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding: 16px 18px 0;
}
.chart i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6e97ff, #2b64fc);
}
.chart i:last-child {
  background: linear-gradient(180deg, #38d9be, #00be9d);
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 8px 18px 0;
  font-size: 0.66rem;
  color: var(--ink-mute);
}

/* =============================== cards =================================== */

.cards .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}
.cards .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-border);
}
.cards .card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.06rem;
  margin-bottom: 0.55em;
}
.cards .card p {
  margin: 0;
  font-size: 0.92rem;
}
.cards .card::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  margin-bottom: 18px;
}
.cards .card-sec::before {
  background: var(--profit);
}

.tag {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-opt {
  background: var(--white-blue);
  color: var(--blue);
}
.tag-beta {
  background: #ffeedd;
  color: #b75c00;
}

/* =============================== integrations ============================ */

.integrations .int {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  transition:
    background-color 0.22s,
    border-color 0.22s,
    transform 0.22s;
}
.integrations .int:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}
.integrations h3 {
  font-size: 1.18rem;
  margin-bottom: 0.25em;
}
.int-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86abff;
  margin-bottom: 1em;
}
.integrations p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}
/* the fifth card has no partner, so it runs the full width instead of
   leaving a ragged half-row */
.integrations .int-wide {
  grid-column: 1 / -1;
}

/* =============================== about =================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-copy h2 {
  margin-bottom: 0.5em;
}
.about-copy .btn {
  margin-top: 12px;
}

.about-stats {
  display: grid;
  gap: 14px;
}
.about-stats li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-md);
  padding: 18px 22px;
}
.about-stats strong {
  display: block;
  color: var(--heading);
  font-size: 1.25rem;
  font-weight: 500;
}
.about-stats span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* =============================== contact ================================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-mail {
  margin-bottom: 2.2em;
}
.contact-mail a {
  color: #fff;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.contact-mail a:hover {
  color: #86abff;
  text-decoration: none;
  border-color: #86abff;
}

.newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 28px;
}
.newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}
.newsletter > p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1 1 220px;
  min-width: 0;
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-lg);
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.field label span {
  color: var(--red);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
textarea {
  resize: vertical;
  min-height: 96px;
}
input::placeholder,
textarea::placeholder {
  color: #9aa3bc;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 100, 252, 0.16);
}
input.is-invalid,
textarea.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217, 35, 0, 0.12);
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: #86abff;
  box-shadow: 0 0 0 3px rgba(134, 171, 255, 0.22);
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
}
.field-check input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.field-check label {
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  min-height: 1.2em;
}
.form-note.is-ok {
  color: var(--profit);
}
.form-note.is-err {
  color: var(--red);
}
.contact-form .form-note.is-ok {
  color: #00806b;
}
.contact-form .form-note.is-err {
  color: var(--red);
}

/* =============================== footer ================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding: clamp(48px, 6vw, 76px) 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(30px, 5vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img {
  width: 150px;
  margin-bottom: 18px;
}
.footer-brand p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.55);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  transition:
    background-color 0.18s,
    color 0.18s;
}
.socials a:hover {
  background: var(--blue);
  color: #fff;
}
.socials svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-nav h4 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}
.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 0;
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p {
  margin: 0;
}

/* =============================== reveal ================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =============================== platform note ===========================
   The language-availability message. It lives in the platform section (it is a
   settings fact, not a trust signal) and reads as a footnote to the carousel,
   which is why it is a bordered strip rather than another card.
   ======================================================================== */

.platform-note {
  margin-top: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.platform-note h3 {
  grid-column: 1;
  font-size: 1.02rem;
  margin: 0 0 0.3em;
}
.platform-note p {
  grid-column: 1;
  margin: 0;
  max-width: 72ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.platform-note p.platform-note-langs {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue);
  white-space: nowrap;
}

/* =============================== testimonials ============================
   Photo and company logo are optional: `.t-initials` / `.t-logo-text` are the
   text stand-ins, `.t-photo` / `.t-logo` the image slots. They share the same
   box, so swapping one for the other needs no layout change.
   ======================================================================== */

.testimonials {
  margin-top: clamp(52px, 7vw, 92px);
}
.testimonials .section-head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.quotes .quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
/* Three quotes side by side only where a column is still a comfortable reading width
   (≈ 370px inside the 1180px wrap). Between 721 and 1024px the generic `.grid-3` stays at three
   columns, which would squeeze each quote to ~220px — so the quotes stack one per row there. */
@media (max-width: 1024px) {
  .quotes.grid-3 {
    grid-template-columns: 1fr;
  }
}
.quotes blockquote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink);
}

.t-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.t-initials,
.t-photo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.t-photo {
  object-fit: cover;
}
.t-initials {
  display: grid;
  place-items: center;
  background: var(--white-blue);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.t-who {
  display: grid;
  min-width: 0;
}
.t-who b {
  color: var(--heading);
  font-size: 0.96rem;
  font-weight: 500;
}
.t-who i {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.t-logo-text,
.t-logo {
  flex: 0 0 auto;
  margin-left: auto;
}
.t-logo-text {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--heading-mid);
}
.t-logo {
  max-height: 24px;
  width: auto;
}

/* =============================== responsive ============================== */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slide {
    grid-template-columns: 1fr;
  }
  .slide-visual {
    order: -1;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-head {
    position: static;
    margin-bottom: 8px;
  }
  .prop:first-child {
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h)); /* mobile URL bar */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    color: var(--ink);
    padding: 13px 12px;
    font-size: 1rem;
  }
  .nav a:hover {
    background: var(--white-blue);
    color: var(--blue);
  }
  .nav .nav-cta {
    margin: 10px 0 0;
    color: #fff;
    text-align: center;
    justify-content: center;
  }
  .site-header:not(.is-solid) .nav-toggle span {
    background: #fff;
  }
  body.nav-open {
    overflow: hidden;
  }

  /* A portrait phone slices the SVG to roughly its middle 40% — barely a
     network. Zooming the whole graph out about the viewBox centre brings
     about two thirds of it into view; non-scaling-stroke keeps the routes
     a crisp 1px instead of shrinking with it. */
  .hero-map > g {
    transform-origin: 500px 360px;
    transform: scale(0.68);
  }
  .edge {
    vector-effect: non-scaling-stroke;
  }
  .graticule path {
    vector-effect: non-scaling-stroke;
  }

  /* the headline is full-width here, so the left-to-right fade would hide most
     of the map — swap it for a gentle vertical one that keeps it as texture */
  .hero-map {
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.6) 44%,
      rgba(0, 0, 0, 0.8) 74%,
      #000 100%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.6) 44%,
      rgba(0, 0, 0, 0.8) 74%,
      #000 100%
    );
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 56px) 0 72px;
  }
  .hero-facts {
    gap: 22px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .platform-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .platform-note p.platform-note-langs {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }
  .t-logo-text,
  .t-logo {
    margin-left: 60px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prop {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 14px;
  }
  .mock-row {
    grid-template-columns: 1.7fr 1fr 0.8fr;
  }
  .mock-row > *:nth-child(2) {
    display: none;
  }

  /* iOS Safari zooms the page when a focused field is under 16px */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }
  .field-check input {
    width: 21px;
    height: 21px;
    margin-top: 2px;
  }

  /* comfortable thumb targets */
  .footer-nav a {
    padding: 10px 0;
  }
  .contact-mail a {
    display: inline-block;
    padding: 6px 0;
  }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* the tab strip scrolls sideways — fade the right edge so that reads as scrollable */
  .carousel-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
  }
  .carousel-tabs::-webkit-scrollbar {
    display: none;
  }
  .carousel-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .hero-facts {
    gap: 18px;
  }
  .brand img {
    width: 128px;
  }
  .mock {
    font-size: 0.74rem;
  }
  .gantt-row .tail {
    width: 44px;
    flex-basis: 44px;
  }
  .gantt-scale {
    margin-left: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* the route map stays, the moving parts go */
  .plane,
  .halo {
    display: none;
  }
}

@media print {
  .site-header,
  .carousel-controls,
  .nav-toggle,
  .hero-bg {
    display: none;
  }
  body {
    color: #000;
  }
}
