:root {
  color-scheme: dark;
  --title-blue-dark: #2f5fe6;
  --title-blue-light: #62b6ff;

  --text-strong: rgba(255, 255, 255, 0.94);
  --text: rgba(255, 255, 255, 0.86);
  --bg: #0b1220;
  --bg2: #070d18;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.68);
  --tertiary: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #1f5edb;
  --accent-dark: #1a3fa5;
  --device-mock-max: 720px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      900px 520px at calc(15% + var(--bg-shift-x, 0px))
        calc(10% + var(--bg-shift-y, 0px)),
      rgba(98, 182, 255, 0.1),
      transparent 65%
    ),
    radial-gradient(
      800px 500px at calc(85% - var(--bg-shift-x, 0px))
        calc(40% + var(--bg-shift-y, 0px)),
      rgba(47, 95, 230, 0.08),
      transparent 70%
    ),
    radial-gradient(
      900px 600px at 50% 110%,
      rgba(0, 0, 0, 0.55),
      transparent 65%
    );
  opacity: 1;
  transition: background-position 0.2s linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.35;
  mix-blend-mode: overlay;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 24px;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 30, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-strong);
}

.brand-icon {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transform: translateY(3px);
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-primary {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-secondary {
  font-weight: 400;
  opacity: 0.75;
}

.brand-suffix {
  font-weight: 400;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  line-height: 1;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-cta-full {
  display: inline;
}

.header-cta-short {
  display: none !important;
}

@media (max-width: 520px) {
  .brand {
    font-size: 22px;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
    transform: translateY(3px);
  }

  .header-cta-full {
    display: none !important;
  }

  .header-cta-short {
    display: inline !important;
  }
}

.section {
  padding: 140px 0;
}

.section-compact {
  padding: 70px 0;
}

.feature-section {
  padding: 110px 0;
}

.section-light {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.section-soft {
  background:
    radial-gradient(
      520px 300px at 22% -12%,
      rgba(98, 182, 255, 0.1),
      transparent 72%
    ),
    radial-gradient(
      500px 280px at 84% 102%,
      rgba(47, 95, 230, 0.09),
      transparent 74%
    ),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.section-dark {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(
      540px 320px at 18% 10%,
      rgba(80, 130, 255, 0.16),
      transparent 70%
    ),
    radial-gradient(
      520px 320px at 86% 70%,
      rgba(60, 110, 255, 0.12),
      transparent 72%
    ),
    linear-gradient(180deg, #111a2d 0%, #070d18 100%);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .note {
  color: rgba(255, 255, 255, 0.7);
}

.section-dark .feature-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-dark .icon {
  color: rgba(140, 190, 255, 0.95);
}

.section-gradient {
  background:
    radial-gradient(
      540px 320px at 15% 15%,
      rgba(98, 182, 255, 0.13),
      transparent 70%
    ),
    radial-gradient(
      520px 340px at 85% 80%,
      rgba(47, 95, 230, 0.1),
      transparent 72%
    ),
    linear-gradient(180deg, #0d1527 0%, #09101f 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      560px 320px at 15% 10%,
      rgba(98, 182, 255, 0.2),
      transparent 70%
    ),
    radial-gradient(
      520px 320px at 85% 40%,
      rgba(47, 95, 230, 0.12),
      transparent 72%
    ),
    linear-gradient(180deg, #0b1220 0%, #070d18 100%);
  padding: 120px 0 140px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #3f7df5, #274d87, #1e2f55);
  opacity: 0.03;
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-grid,
.content-grid {
  display: grid;
  gap: 40px;
}

.hero-grid {
  align-items: start;
}

/* Keep section text and media anchored from the top edge. */
.content-grid,
.content-grid.reverse {
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary);
}

h1,
h2,
.section-title {
  margin: 0;
  letter-spacing: -0.02em;
}

h1,
h2 {
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.35rem, 6.5vw, 60px);
  max-width: 14ch;
  color: var(--text-strong);
}

h2 {
  font-size: clamp(2rem, 5.5vw, 42px);
  margin-bottom: 16px;
  max-width: 18ch;
  color: var(--text-strong);
}

.section-title {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  color: var(--text-strong);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0;
}

.section-title .accent {
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading-block {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.title-rule {
  position: relative;
  width: 100%;
  height: 4px;
  margin: 12px 0 22px;
}

.section-accent {
  transform: scaleX(1);
  transform-origin: left;
}

.js .section-accent {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .section-accent.visible {
  transform: scaleX(1);
}

/* Hairline first (above), spanning to the right */
/* Hairline (above): brighter + subtle glow so it reads on dark gradients */
.title-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.12) 55%,
    rgba(255, 255, 255, 0)
  );
  box-shadow:
    0 0 0.5px rgba(255, 255, 255, 0.22),
    0 0 14px rgba(98, 182, 255, 0.12);
}
/* Thick accent bar (below), short and branded */
.title-rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  box-shadow: 0 6px 20px rgba(98, 182, 255, 0.25);
  transform-origin: left;
  transform: scaleX(1);
}

.js .section-accent::after {
  transform: scaleX(0);
}

.js .section-accent.visible::after {
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gradient-text {
  background: linear-gradient(
    90deg,
    var(--title-blue-dark) 0%,
    var(--title-blue-light) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 40px rgba(60, 120, 255, 0.18);
}

p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 28ch;
  margin: 16px 0 18px;
}

.hero h1 {
  color: var(--text-strong);
  font-size: clamp(3.4rem, 4vw, 4.4rem);
  line-height: 1.05;
  max-width: 18ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.7);
}

.hero-copy {
  max-width: 600px;
}

.hero-actions {
  margin-top: 22px;
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

/* Hero actions should be visible immediately (no delayed fade-in) */
.hero-actions {
  opacity: 1;
  transform: none;
}

.hero-actions .btn {
  width: 100%;
}

.hero-title {
  max-width: 20ch;
}

/* HERO TITLE RHYTHM + TAGLINE ANIMATION */
.hero-thinks-ahead {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  margin-bottom: 16px;
  font-weight: 560;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    var(--title-blue-dark) 0%,
    var(--title-blue-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 12px 40px rgba(60, 120, 255, 0.18);
}

.js .hero-thinks-ahead {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  will-change: opacity, clip-path;
}

.js body.is-loaded .hero-thinks-ahead {
  animation: revealThinkAhead 2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.85s
    forwards;
}

@keyframes revealThinkAhead {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@supports not (clip-path: inset(0 100% 0 0)) {
  .js .hero-thinks-ahead {
    clip-path: none;
  }

  .js body.is-loaded .hero-thinks-ahead {
    animation: fadeThinkAhead 2s ease-out 0.85s forwards;
  }

  @keyframes fadeThinkAhead {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}

.hero-subcopy {
  max-width: 38ch;
  margin-top: 24px;
  margin-bottom: 30px;
}

/* Hero subcopy should be visible immediately */
.hero-subcopy {
  opacity: 1;
  transform: none;
}

.hero-subline {
  display: block;
  opacity: 1;
  transform: none;
  will-change: auto;
  transition: none;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(
    circle at center,
    rgba(90, 140, 255, 0.25),
    transparent 70%
  );
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow:
    0 12px 28px rgba(40, 80, 200, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(40, 80, 200, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn-large {
  min-width: min(100%, 380px);
  margin-top: 47px;
}

.free-line {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.inline-link {
  display: block;
  width: min(100%, 360px);
  text-align: center;
  margin-top: 16px;
  color: var(--title-blue-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(98, 182, 255, 0.55);
  text-underline-offset: 4px;
}

.device-frame {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border-radius: 26px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.45);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  transform: scale(1.06);
  transform-origin: center;
}

/* Hero-only stage for the vertical video (keeps black bars looking intentional) */
.hero-video-stage {
  --hero-video-max-h: calc(100svh - 220px);

  position: relative;
  isolation: isolate;
  aspect-ratio: 9 / 16;
  width: min(400px, 100%);
  max-height: var(--hero-video-max-h);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(
    900px 700px at 50% 40%,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.92)
  );
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.6),
    0 18px 44px rgba(0, 0, 0, 0.38);
}

/* subtle blue glow behind the stage to tie into the site palette */
.hero-video-stage::before {
  content: "";
  position: absolute;
  inset: -90px;
  z-index: -1;
  background:
    radial-gradient(
      520px 420px at 50% 45%,
      rgba(98, 182, 255, 0.26),
      transparent 70%
    ),
    radial-gradient(
      520px 420px at 70% 65%,
      rgba(47, 95, 230, 0.18),
      transparent 72%
    );
  filter: blur(60px);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-video-stage {
    --hero-video-max-h: calc(100svh - 180px);
    width: min(360px, 100%);
  }
}

@media (max-width: 819px) {
  .hero-video-stage {
    --hero-video-max-h: calc(100svh - 140px);
    width: min(320px, 100%);
    margin-left: 0;
    margin-right: auto;
    border-radius: 24px;
  }
}

/* Hero video is vertical; it should fill the stage and crop cleanly */
.hero-video {
  width: 100%;
  height: 100%;
  max-width: 540px;
  object-fit: contain;
  border-radius: inherit;
  background: #111c31;
  display: block;
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    radial-gradient(
      420px 260px at 30% 20%,
      rgba(98, 182, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      420px 260px at 70% 70%,
      rgba(47, 95, 230, 0.12),
      transparent 65%
    );
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    transparent 35%
  );
  opacity: 0.35;
  pointer-events: none;
}

.credibility-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.credibility-strip p {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tertiary);
  padding: 16px 0;
}

.credibility-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.credibility-main {
  text-transform: none;
}

.credibility-sub {
  text-transform: none;
  font-weight: 600;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.social-proof-strip {
  border-top: 1px solid var(--line);
  background: transparent;
}

.social-proof-copy {
  margin: 0;
  padding: 12px 0 10px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.text-block p,
#switch > .container > p,
.cta-section p {
  margin: 0 0 18px;
  max-width: 62ch;
}

.text-block p {
  color: rgba(255, 255, 255, 0.76);
}

.text-block ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.text-block li,
#dashboard li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  margin-bottom: 10px;
}

.text-block li::before,
#dashboard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 4px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  box-shadow: 0 0 18px rgba(98, 182, 255, 0.35);
}

.image-block {
  margin: 0;
}

.screenshot-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: transform 180ms ease;
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    circle at center,
    rgba(47, 95, 230, 0.15),
    transparent 65%
  );
  filter: blur(40px);
  opacity: 0.45;
  transform: scale(0.98);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 760ms cubic-bezier(0.2, 0.65, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

.screenshot-frame::after {
  content: none;
}

.screenshot-frame img,
.image-block img {
  width: 100%;
  max-width: var(--device-mock-max);
  height: auto;
  border-radius: 16px;
  display: block;
  transform: scale(1.1);
  transform-origin: center;
  will-change: transform;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(47, 95, 230, 0.18);
}

#dashboard .image-block,
#outlook .image-block,
#insights .image-block {
  max-width: var(--device-mock-max);
  margin-left: auto;
  margin-right: auto;
}

.airline-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.airline-grid span {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 10px;
  text-align: center;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.airline-grid span:hover {
  background: var(--surface-strong);
  border-color: rgba(98, 182, 255, 0.22);
  box-shadow: 0 10px 24px rgba(47, 95, 230, 0.22);
  transform: translateY(-3px);
}

.feature-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.tools-grid {
  column-gap: 28px;
  row-gap: 18px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  height: auto;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.tool-card {
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  height: auto;
  overflow: hidden;
}

.feature-item:hover {
  border-color: rgba(98, 182, 255, 0.22);
  box-shadow: 0 12px 28px rgba(47, 95, 230, 0.2);
  transform: translateY(-2px);
}

.tool-card:hover {
  border-color: rgba(120, 160, 255, 0.35);
  background: rgba(255, 255, 255, 0.035);
}

.feature-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 16px 20px 10px;
  cursor: pointer;
  font: inherit;
}

.feature-title {
  font-weight: 600;
}

.feature-chevron {
  margin-left: auto;
  position: relative;
  top: -4px;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--muted);
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.feature-item.is-open .feature-chevron {
  transform: rotate(180deg);
  color: var(--title-blue-light);
}

.feature-detail {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-item.is-open .feature-detail {
  max-height: 220px;
  cursor: pointer;
}

.feature-body {
  padding-top: 0;
  padding-bottom: 16px;
}

.tool-card-body {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.feature-detail p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 0;
  padding-bottom: 14px;
}

.feature-detail p:first-child {
  margin-top: 8px;
}

#features {
  overflow: visible;
  padding-top: 52px;
  padding-bottom: 52px;
}

#features .container,
#features .feature-grid {
  overflow: visible;
}

#features .feature-item {
  overflow: hidden;
}

#features .title-rule {
  width: 100%;
  max-width: none;
}

.switch-block {
  margin-top: 48px;
}

.switch-block .switch-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.switch-block .switch-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted);
}

.switch-block .switch-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 4px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--title-blue-dark),
    var(--title-blue-light)
  );
  box-shadow: 0 0 18px rgba(98, 182, 255, 0.35);
}

.icon {
  font-size: 0.75rem;
  color: var(--title-blue-light);
}

.note {
  margin-top: 18px;
  font-size: 16px;
  color: var(--muted);
}

.cta-section .container {
  text-align: center;
}

#start-free {
  padding-top: 76px;
  padding-bottom: 76px;
}

.cta-section h2,
.cta-section p {
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  margin-bottom: 0;
}

.cta-section p + p {
  margin-top: 5px;
}

.appstore-badge-link {
  display: inline-block;
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 22px 0 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.9rem;
  color: var(--tertiary);
}

.footer-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-links a,
.footer-link {
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
}

.footer-meta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.footer-copyright {
  margin: 0;
  max-width: max-content;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--tertiary);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

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

.site-modal {
  position: relative;
  width: min(100%, 560px);
  padding: 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(19, 27, 45, 0.96) 0%,
    rgba(10, 16, 30, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

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

.modal-content {
  display: grid;
  gap: 18px;
}

.modal-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.modal-title {
  margin: 0;
  max-width: none;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.08;
}

.modal-body {
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.modal-body p {
  margin: 0;
}

.modal-body a {
  color: var(--title-blue-light);
  text-decoration: underline;
  text-decoration-color: rgba(98, 182, 255, 0.45);
  text-underline-offset: 4px;
}

.modal-action {
  width: fit-content;
  min-width: 0;
  margin-top: 6px;
}

.modal-close {
  appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.modal-close span {
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-1px);
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.js .reveal {
  opacity: 0;
  will-change: opacity, transform, filter;
}

.js .reveal.reveal-heading {
  transform: translateY(26px);
  filter: blur(10px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.reveal-copy {
  transform: translateY(18px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-ui {
  transform: translateY(10px);
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-text {
  transform: translateY(18px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-text.reveal-heading {
  transform: translateY(26px);
  filter: blur(10px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.reveal-text.reveal-copy {
  transform: translateY(18px);
  filter: none;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-text.reveal-ui {
  transform: translateY(10px);
  filter: none;
  transition:
    opacity 380ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-text:not(.reveal-heading):not(.reveal-copy):not(.reveal-ui) {
  transform: translateY(18px);
  filter: none;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.reveal-media {
  transform: translateY(12px) scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 760ms cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: 90ms;
}

.js .reveal.reveal-card {
  transform: translateY(10px);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: calc(min(var(--i, 0), 6) * 70ms);
}

.js .reveal[data-reveal-delay="1"] {
  transition-delay: 80ms;
}

.js .reveal[data-reveal-delay="2"] {
  transition-delay: 160ms;
}

.js .reveal[data-reveal-delay="3"] {
  transition-delay: 240ms;
}

.js .reveal[data-reveal-delay="4"] {
  transition-delay: 320ms;
}

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

.js .reveal.reveal-media.visible {
  transform: translateY(0) scale(1);
}

.js .reveal.reveal-media.visible.screenshot-frame {
  transform: translateY(0);
}

.js .reveal.reveal-text.reveal-heading.gradient-text.visible,
.js .reveal.reveal-heading.gradient-text.visible {
  animation: titleSweep 900ms cubic-bezier(0.2, 0.65, 0.3, 1) 1;
}

.js .reveal.reveal-media.visible.screenshot-frame::before,
.js .reveal.reveal-media.visible .screenshot-frame::before {
  opacity: 1;
  transform: scale(1);
}

.section-glow {
  position: relative;
  overflow: hidden;
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    520px 300px at 50% -10%,
    rgba(90, 140, 255, 0.1),
    transparent 74%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 900ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.section-glow > * {
  position: relative;
  z-index: 1;
}

.js .section-glow.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .section-glow::before {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.js .section-glow.visible::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js .airline-grid .reveal.reveal-card {
  transform: translateY(6px) scale(0.98);
  opacity: 0;
  transition:
    opacity 360ms cubic-bezier(0.2, 0.65, 0.3, 1),
    transform 360ms cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: calc(min(var(--i, 0), 7) * 60ms);
}

.js .airline-grid .reveal.reveal-card.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@keyframes titleSweep {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@media (min-width: 820px) {
  .content-grid {
    align-items: flex-start;
    column-gap: 80px;
  }

  #outlook .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  #insights .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  #dashboard .content-grid.reverse {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 1fr;
    align-items: start;
  }

  .hero-media {
    margin-top: -28px;
    padding-left: 24px;
  }

  /* Give the new stage the same premium perspective feel as the old device frame */
  .hero-video-stage {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transform-origin: center;
    transition: transform 180ms ease;
  }

  .device-frame:not(.hero-device) {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) scale(1.06);
  }

  .device-frame:not(.hero-device):hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(-3px)
      scale(1.06);
  }

  .content-grid.reverse {
    grid-template-columns: 1fr 1.08fr;
  }

  .content-grid.reverse .text-block {
    order: 2;
  }

  .content-grid.reverse .image-block {
    order: 1;
  }

  .airline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 819px) {
  .section {
    padding: 100px 0;
  }

  .section-compact {
    padding: 50px 0;
  }

  .modal-backdrop {
    padding: 18px;
  }

  .site-modal {
    padding: 28px 22px 22px;
    border-radius: 24px;
  }

  p {
    font-size: 17px;
  }

  .hero {
    padding: 100px 0 100px;
  }

  .js .reveal.reveal-media {
    transform: translateY(12px);
  }

  .js .reveal.reveal-media.visible {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .feature-section {
    padding: 70px 0;
  }

  .site-modal {
    padding: 24px 18px 18px;
    border-radius: 22px;
  }

  .modal-content {
    gap: 16px;
  }

  .modal-action {
    width: 100%;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .hero-thinks-ahead {
    margin-top: 12px;
    margin-bottom: 12px;
    font-weight: 560;
  }
}

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

  body::before,
  body::after {
    animation: none;
  }

  .hero::before {
    animation: none;
  }

  .js .reveal,
  .js .reveal.reveal-heading,
  .js .reveal.reveal-copy,
  .js .reveal.reveal-ui,
  .js .reveal.reveal-text,
  .js .reveal.reveal-media,
  .js .reveal.reveal-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .js .reveal.reveal-text.gradient-text.visible {
    animation: none !important;
  }

  .screenshot-frame,
  .device-frame,
  .feature-item,
  .feature-detail,
  .feature-chevron,
  .airline-grid span {
    transition: none !important;
    transform: none !important;
  }

  .hero-thinks-ahead,
  .hero-subline {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .js body.is-loaded .hero-thinks-ahead {
    animation: none !important;
    clip-path: none !important;
  }
}
