/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  --night: #02070d;
  --night-2: #071426;
  --sky: #0b1e36;
  --sky-2: #0f2748;
  --ink: #f4f9ff;
  --ink-2: rgba(224, 244, 255, 0.72);
  --ink-3: rgba(224, 244, 255, 0.6);
  --line: rgba(142, 218, 255, 0.14);
  --line-2: rgba(142, 218, 255, 0.08);
  --accent: #3fb6ff;
  --accent-deep: #1388d4;
  --accent-soft: rgba(63, 182, 255, 0.14);
  --amber: #ffb627;
  --amber-soft: rgba(255, 182, 39, 0.16);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.16);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-card: 20px;
  --r-chip: 10px;
  --r-button: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  color: var(--ink);
  background: var(--night);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

ol,
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

::selection {
  color: var(--ink);
  background: #235880;
}

.icon-library {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--night);
  background: var(--accent);
  border-radius: var(--r-chip);
}
.skip-link:focus {
  top: 16px;
}

/* ─────────────────────────── Buttons ─────────────────────────── */
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease-out),
    box-shadow 160ms ease;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button-primary {
  color: var(--night);
  background: var(--accent);
}
.button-primary:hover {
  background: #66c6ff;
  box-shadow: 0 4px 24px rgba(63, 182, 255, 0.2);
}
.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button-ghost:hover:not(:disabled) {
  background: rgba(142, 218, 255, 0.05);
  border-color: rgba(142, 218, 255, 0.4);
}
.button-ghost:disabled {
  color: var(--ink-3);
  cursor: default;
}
.source-status {
  font-weight: 500;
  color: var(--ink-3);
}
.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-soft);
}
.button-small:hover {
  background: rgba(63, 182, 255, 0.24);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
  color: var(--accent);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(63, 182, 255, 0.4);
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-color: var(--accent);
}

/* ─────────────────────────── Header ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 7, 13, 0.72);
  border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 15px;
  color: var(--ink-2);
}
.site-nav a:not(.button):hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
}
.site-nav a:not(.button) {
  position: relative;
  padding-block: 10px;
  transition: color 160ms ease;
}
.site-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.site-nav a:not(.button):hover::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}
@media (max-width: 720px) {
  .header-row {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
  }
  .nav-ready .nav-toggle {
    display: grid;
    gap: 6px;
    align-content: center;
    width: 42px;
    height: 42px;
    padding: 10px;
    color: var(--ink);
    cursor: pointer;
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .nav-toggle span {
    height: 1.5px;
    background: currentColor;
    transition: transform 180ms ease;
  }
  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  .nav-ready .site-nav {
    display: none;
    padding-block: 8px 4px;
    border-top: 1px solid var(--line);
  }
  .nav-ready .nav-toggle[aria-expanded="true"] + .site-nav {
    display: flex;
  }
}

/* ─────────────────────────── Hero ─────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 140px);
  overflow: hidden;
  background:
    radial-gradient(
      900px 520px at 78% 12%,
      rgba(19, 136, 212, 0.22),
      transparent 70%
    ),
    radial-gradient(
      700px 420px at 10% 100%,
      rgba(11, 30, 54, 0.9),
      transparent 70%
    ),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.beta-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 6px 12px 6px 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--ink-2);
  background: rgba(11, 30, 54, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.beta-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.lede {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-actions .button {
  padding-inline: 18px;
  font-size: 14px;
}
.hero-actions .icon {
  width: 18px;
  height: 18px;
}
.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ─────────────────────────── Group board ─────────────────────────── */
.board {
  position: relative;
  padding: 18px 22px 18px;
  background: linear-gradient(180deg, var(--sky) 0%, #08182c 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(142, 218, 255, 0.1);
  transform: rotate(-1.2deg);
}
@media (max-width: 900px) {
  .board {
    max-width: 560px;
    transform: none;
  }
}
.board-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--ink-3);
}
.preview-label {
  flex: none;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.board-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.board-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.board-sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-3);
}
.avatars {
  display: inline-flex;
}
.avatar {
  --hue: 204;
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: center;
  background: hsl(var(--hue) 70% 32%);
  border: 2px solid var(--sky);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.legs {
  display: grid;
}
.leg {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 30px 1fr;
  row-gap: 4px;
  column-gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.leg .avatar {
  grid-row: 1 / span 2;
  border-color: transparent;
}
.leg-route {
  display: flex;
  gap: 12px;
  align-items: center;
}
.iata {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.route-line {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(142, 218, 255, 0.35) 0 4px,
    transparent 4px 9px
  );
}
.route-line::before,
.route-line::after {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  content: "";
  background: rgba(142, 218, 255, 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
}
.route-line::before {
  left: -2px;
}
.route-line::after {
  right: -2px;
}
.plane {
  --progress: 0;
  position: absolute;
  top: 50%;
  left: calc(var(--progress) * 100%);
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  fill: currentColor;
  transform: translate(-50%, -50%) rotate(90deg);
}
.is-live .plane {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(63, 182, 255, 0.8));
}
.is-done .plane {
  color: var(--ink-3);
}
.is-done .iata {
  color: var(--ink-2);
}
.leg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.leg-meta .mono {
  font-size: 12px;
}

.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}
.status .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.status-live {
  color: var(--green);
  background: var(--green-soft);
}
.status-warn {
  color: var(--amber);
  background: var(--amber-soft);
}
.status-accent {
  color: var(--accent);
  background: var(--accent-soft);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  }
  60% {
    box-shadow: 0 0 0 6px rgba(48, 209, 88, 0);
  }
}

.board-foot {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 14px;
}
.foot-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ink-3);
}
.foot-label .icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
  transform: rotate(90deg);
}
.foot-value {
  color: var(--ink-2);
}
.foot-value .mono {
  margin-right: 8px;
  font-weight: 700;
  color: var(--amber);
}

/* ─────────────────────────── Sections ─────────────────────────── */
.section-title {
  max-width: 18em;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.features {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line-2);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(32px, 4.5vw, 56px);
}
.features .section-title + .feature {
  padding-top: clamp(40px, 5vw, 64px);
}
.feature + .feature {
  border-top: 1px solid var(--line-2);
}
.feature-flip .feature-copy {
  order: 2;
}
@media (max-width: 820px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature-flip .feature-copy {
    order: 0;
  }
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(63, 182, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature-icon .icon {
  width: 23px;
  height: 23px;
}
.feature h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
}
.feature-copy p {
  max-width: 30em;
  margin-top: 14px;
  color: var(--ink-2);
}

/* Fragments: small, drawn pieces of the product, each a different shape. */
.fragment {
  min-width: 0;
  margin: 0;
}

.route-card {
  max-width: 460px;
  padding: 20px 22px 22px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--sky-2), var(--sky));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
}
.airline {
  font-weight: 600;
  color: var(--ink);
}
.airline .mono {
  margin-left: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.route-arc svg {
  width: 100%;
  height: auto;
  margin-top: 6px;
}
.arc-track {
  fill: none;
  stroke: rgba(142, 218, 255, 0.18);
  stroke-width: 2;
  stroke-dasharray: 3 6;
}
.arc-done {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 62 100;
}
.arc-dot {
  fill: var(--accent);
}
.arc-plane {
  filter: drop-shadow(0 0 6px rgba(63, 182, 255, 0.7));
  fill: var(--ink);
}
.route-codes {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.route-codes > :last-child {
  text-align: right;
}
.route-city {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.route-codes .iata {
  display: block;
  font-size: 40px;
  color: var(--amber);
}
.route-time {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.route-mid {
  padding-bottom: 6px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.route-mid .mono {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}

.fragment-timeline,
.fragment-roster {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(15, 39, 72, 0.5),
    rgba(11, 30, 54, 0.2)
  );
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.fragment-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.fragment-heading > .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.fragment-heading .preview-label {
  margin-left: auto;
}
.timeline {
  position: relative;
  display: grid;
  gap: 6px;
  max-width: 480px;
  padding: 14px 14px 14px 6px;
  margin-inline: auto;
}
.timeline::before {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 77px;
  width: 1px;
  content: "";
  background: var(--line);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px 12px 0;
}
.timeline li::before {
  position: absolute;
  top: 50%;
  left: 67px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--night-2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.timeline li:first-child::before {
  background: var(--accent);
}
.tl-time {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.tl-body {
  display: grid;
  padding-left: 14px;
}
.tl-title {
  font-size: 15px;
  font-weight: 600;
}
.tl-sub {
  font-size: 13px;
  color: var(--ink-3);
}
.timeline .avatar {
  border-color: var(--night);
}
.avatars .avatar + .avatar {
  margin-left: -8px;
}

.fragment-alerts {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin-inline: auto;
}
.notif {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(
    130deg,
    rgba(244, 249, 255, 0.12),
    rgba(244, 249, 255, 0.055)
  );
  border: 1px solid rgba(244, 249, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.notif img {
  border-radius: 9px;
}
.notif-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 14px;
}
.notif-head .mono {
  font-size: 11px;
  color: var(--ink-3);
}
.notif-body {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.fragment-alerts .notif:nth-child(2) {
  opacity: 0.85;
  transform: scale(0.965);
}
.fragment-alerts .notif:nth-child(3) {
  opacity: 0.65;
  transform: scale(0.93);
}

.roster {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  overflow: hidden;
  font-size: 15px;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}
.roster th,
.roster td {
  padding: 12px 16px;
  text-align: left;
}
.roster th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.roster td + td {
  text-align: right;
}
.roster th:first-child {
  width: 44%;
}
.roster th:nth-child(2) {
  width: 16%;
  text-align: right;
}
.roster th:last-child {
  width: 40%;
  text-align: right;
}
.roster tbody tr + tr td {
  border-top: 1px solid var(--line-2);
}

/* ─────────────────────────── Split ─────────────────────────── */
.split {
  padding-block: clamp(72px, 10vw, 128px);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  border-top: 1px solid var(--line-2);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 760px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}
.split-col {
  padding: clamp(24px, 3vw, 36px);
  background: rgba(2, 7, 13, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.split-col-platform {
  background: linear-gradient(180deg, var(--sky-2), var(--sky));
}
.split-col h3 {
  font-size: 22px;
}
.split-col p {
  margin-top: 12px;
  color: var(--ink-2);
}
.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--ink);
}
.checks li::before {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  content: "";
  background:
    var(--accent-soft)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%233fb6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center / 18px no-repeat;
  border-radius: 50%;
}
.fine {
  font-size: 14px;
  color: var(--ink-3);
}
.split-col .fine {
  margin-top: 0;
}

/* ─────────────────────────── Access ─────────────────────────── */
.access {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--line-2);
}
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}
.access-copy p {
  max-width: 30em;
  margin-top: 16px;
  color: var(--ink-2);
}
.access-form {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(180deg, var(--sky), #08182c);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.access-form label,
.access-form legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.optional {
  font-weight: 400;
  color: var(--ink-3);
}
.access-form input[type="email"],
.access-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: rgba(2, 7, 13, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 140ms ease;
}
.access-form textarea {
  min-height: 64px;
  resize: vertical;
}
.access-form input:focus-visible,
.access-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.access-form input::placeholder,
.access-form textarea::placeholder {
  color: var(--ink-3);
}
.access-form fieldset {
  padding: 0;
  margin: 0 0 14px;
  border: 0;
}
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.radios label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.radios label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.radios input {
  margin: 0;
  accent-color: var(--accent);
}
.access-form label + input,
.access-form label + textarea {
  margin-bottom: 14px;
}
.access-form .button {
  width: 100%;
  margin-top: 8px;
}
.form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}
.form-status:empty {
  display: none;
}
.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--ink-2);
}
.form-status.is-error {
  color: var(--amber);
}
.form-status.is-success {
  color: var(--green);
}

/* ─────────────────────────── Footer ─────────────────────────── */
.site-footer {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line-2);
}
.footer-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 32px;
  align-items: center;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-row nav a:hover {
  color: var(--ink);
}
.footer-row .fine {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .footer-row {
    grid-template-columns: 1fr;
  }
  .footer-row nav {
    justify-content: flex-start;
  }
}

/* Motion is progressively enabled only for visible product illustrations. */
@keyframes board-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes notification-arrive {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .board.is-visible .leg {
    animation: board-arrive 640ms var(--ease-out) both;
  }
  .motion-ready .board.is-visible .leg:nth-child(2) {
    animation-delay: 100ms;
  }
  .motion-ready .board.is-visible .leg:nth-child(3) {
    animation-delay: 200ms;
  }
  .motion-ready .board.is-visible .leg:nth-child(4) {
    animation-delay: 300ms;
  }
  .motion-ready .board.is-visible .board-foot {
    animation: board-arrive 640ms 420ms var(--ease-out) both;
  }
  .motion-ready .is-visible .live-dot {
    animation: pulse 2.8s ease-out 3;
  }
  .motion-ready .fragment-alerts.is-visible .notif {
    animation: notification-arrive 700ms var(--ease-out) both;
  }
  .motion-ready .fragment-alerts.is-visible .notif:nth-child(2) {
    animation-delay: 140ms;
  }
  .motion-ready .fragment-alerts.is-visible .notif:nth-child(3) {
    animation-delay: 280ms;
  }
  .motion-ready .fragment-timeline.is-visible .timeline li {
    animation: board-arrive 640ms var(--ease-out) both;
  }
  .motion-ready .fragment-timeline.is-visible .timeline li:nth-child(2) {
    animation-delay: 100ms;
  }
  .motion-ready .fragment-timeline.is-visible .timeline li:nth-child(3) {
    animation-delay: 200ms;
  }
  .motion-ready .fragment-timeline.is-visible .timeline li:nth-child(4) {
    animation-delay: 300ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Board legs: only the airborne flight carries a plane; landed legs read as a solid line. */
.leg:not(.is-live) .plane {
  display: none;
}
.is-done .route-line {
  background: rgba(142, 218, 255, 0.28);
}

@media (max-width: 900px) {
  .stars {
    opacity: 0.55;
  }
}

@media (max-width: 600px) {
  .board {
    padding: 16px;
  }
  .board-head {
    gap: 8px;
  }
  .board-sub {
    font-size: 12px;
  }
  .board-head .avatar {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .board-foot {
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 12px;
  }
  .leg {
    column-gap: 10px;
  }
  .leg-meta {
    gap: 5px 8px;
  }
  .hero-actions .button {
    min-height: 50px;
    padding-inline: 16px;
    font-size: 14px;
  }
  .hero-note {
    max-width: 32em;
  }
  .route-card {
    padding: 18px;
  }
  .timeline {
    padding: 10px 4px;
  }
  .timeline::before {
    left: 67px;
  }
  .timeline li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding-right: 8px;
  }
  .timeline li::before {
    left: 59px;
  }
  .timeline .tl-title {
    font-size: 13px;
  }
  .timeline .tl-sub {
    font-size: 12px;
  }
  .timeline .avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .fragment-heading {
    padding: 14px;
  }
  .roster th,
  .roster td {
    padding: 12px 10px;
    font-size: 12px;
  }
  .roster .status {
    gap: 4px;
    padding: 3px 6px;
    font-size: 10px;
  }
  .roster th:first-child {
    width: 41%;
  }
  .roster th:nth-child(2) {
    width: 17%;
  }
  .roster th:last-child {
    width: 42%;
  }
  .notif {
    gap: 10px;
    padding: 12px;
  }
  .notif-head {
    font-size: 13px;
  }
  .notif-body {
    font-size: 13px;
  }
  .notif-head .mono {
    flex: none;
    font-size: 10px;
  }
  .split-col .text-link {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero-actions {
    display: grid;
  }
  .board-title {
    font-size: 16px;
  }
  .board-head .avatars {
    display: none;
  }
  .beta-pill {
    font-size: 12px;
  }
  .timeline .avatars .avatar + .avatar {
    margin-left: -12px;
  }
}

.access-form input[aria-invalid="true"] {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.access-form .button:disabled {
  cursor: wait;
  box-shadow: none;
  opacity: 0.72;
}
.access-form .button:disabled .icon {
  opacity: 0.5;
}
