:root {
  --bg: #05050a;
  --bg-alt: #0a0b12;
  --panel: rgba(10, 10, 16, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(12, 218, 153, 0.22);
  --text: #f7f7fb;
  --muted: #aeafbf;
  --muted-strong: #d7d8e3;
  --accent: #11e9a9;
  --accent-strong: #0bda99;
  --accent-soft: rgba(17, 233, 169, 0.12);
  --success: #8affcb;
  --warning: #ffd782;
  --danger: #ff9a9a;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(11, 218, 153, 0.08), transparent 28%),
    linear-gradient(180deg, #07070c 0%, #05050a 42%, #09090f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 76%);
  pointer-events: none;
}

.page-glow {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 88vw);
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.78;
}

.glow-top {
  top: 240px;
  height: 90px;
  background: rgba(11, 218, 153, 0.28);
}

.glow-middle {
  top: 760px;
  height: 110px;
  background: rgba(11, 218, 153, 0.18);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
  position: relative;
  z-index: 1;
}

.topbar,
.brand,
.brand-copy,
.hero-actions,
.topbar-links,
.airline-card header {
  display: flex;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.brand {
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 92px;
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.brand-copy {
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-links {
  gap: 12px;
  align-items: center;
}

main {
  display: grid;
  gap: 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 4px;
}

.hero-copy,
.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 16, 0.92), rgba(8, 8, 12, 0.96));
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 36px;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 8% -90px auto;
  width: 340px;
  height: 170px;
  border-radius: 999px;
  background: rgba(11, 218, 153, 0.12);
  filter: blur(50px);
}

.hero-subtitle {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 1.16rem;
  line-height: 1.6;
}

.hero-problem {
  margin-top: 28px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.problem-kicker {
  font-size: 1.35rem;
  font-weight: 700;
}

.problem-copy {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.62;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.business-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.business-stat-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(17, 233, 169, 0.12);
  background: rgba(17, 233, 169, 0.06);
}

.business-stat-grid strong {
  color: var(--text);
  font-size: 1rem;
}

.business-stat-grid span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.integration-flow { overflow: hidden; }
.flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.flow-step {
  min-height: 152px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}
.flow-step-featured {
  border-color: rgba(17, 233, 169, 0.35);
  background: linear-gradient(145deg, rgba(17, 233, 169, 0.14), rgba(255, 255, 255, 0.035));
  box-shadow: 0 14px 34px rgba(17, 233, 169, 0.08);
}
.flow-number { color: var(--accent); font-size: 0.76rem; letter-spacing: 0.16em; font-weight: 700; }
.flow-step strong { color: var(--text); font-size: 1rem; }
.flow-step > span:last-child { color: var(--muted); line-height: 1.45; font-size: 0.88rem; }
.flow-arrow { color: var(--accent); font-size: 1.5rem; font-weight: 700; }

.account-active,
.plan-card,
.airline-card,
.timeline-step,
.roadmap-grid > div,
.status-chip,
.progress-copy,
.progress-state,
.progress-number {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel-soft);
}

.card {
  padding: 28px;
}

.section-text {
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-grid,
.membership-grid,
.traveler-grid,
.workflow,
.plan-grid,
.airline-grid,
.roadmap-grid,
.progress-rail {
  display: grid;
  gap: 18px;
}

.dashboard-grid,
.membership-grid,
.traveler-grid,
.workflow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card-head {
  margin-bottom: 20px;
}

.card-head .section-text {
  margin-top: 10px;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-chip {
  display: grid;
  gap: 7px;
}

.status-chip small {
  color: var(--muted);
  line-height: 1.55;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea,
button,
a {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

textarea {
  min-height: 148px;
  padding: 14px 16px;
  resize: vertical;
}

input::placeholder {
  color: #8f90a3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(17, 233, 169, 0.46);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

select option {
  color: #09090f;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.primary-button {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #17efb3, #08de9e);
  color: #04110d;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(17, 233, 169, 0.22);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover,
.tab:hover {
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
  grid-column: 1 / -1;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tab-row {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--accent);
  color: #06120d;
}

.account-active {
  margin-bottom: 18px;
  background: rgba(17, 233, 169, 0.08);
  border-color: rgba(17, 233, 169, 0.16);
}

.account-active .primary-button {
  margin-top: 16px;
}

.account-active p + p {
  margin-top: 8px;
  color: var(--muted);
}

.progress-rail {
  gap: 0;
}

.progress-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.progress-step + .progress-step {
  margin-top: 2px;
}

.progress-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.progress-number {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.progress-line {
  position: absolute;
  top: 42px;
  bottom: -18px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-copy {
  display: grid;
  gap: 12px;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.progress-copy p,
.airline-meta,
.plan-meta,
.timeline-note,
.roadmap-grid > div p {
  color: var(--muted);
  line-height: 1.6;
}

.progress-state {
  padding: 8px 12px;
  width: fit-content;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-step.done .progress-number,
.progress-state.done {
  color: var(--success);
  background: rgba(138, 255, 203, 0.1);
  border-color: rgba(138, 255, 203, 0.16);
}

.progress-step.ready .progress-number,
.progress-state.ready {
  color: #04110d;
  background: linear-gradient(180deg, #17efb3, #08de9e);
  border-color: transparent;
}

.progress-step.assist .progress-number,
.progress-state.assist {
  color: var(--warning);
  background: rgba(255, 215, 130, 0.12);
  border-color: rgba(255, 215, 130, 0.16);
}

.progress-step.coming .progress-number,
.progress-state.coming {
  color: var(--danger);
  background: rgba(255, 154, 154, 0.1);
  border-color: rgba(255, 154, 154, 0.14);
}

.progress-step.next .progress-number,
.progress-state.next {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill.live,
.pill.active,
.pill.connected {
  background: rgba(138, 255, 203, 0.12);
  color: var(--success);
}

.pill.pilot,
.pill.assisted {
  background: rgba(255, 215, 130, 0.12);
  color: var(--warning);
}

.pill.roadmap,
.pill.pending {
  background: rgba(255, 154, 154, 0.1);
  color: var(--danger);
}

.plan-card strong {
  display: block;
  font-size: 1.12rem;
}

.plan-price {
  margin: 12px 0 6px;
  font-size: 1.7rem;
  color: var(--text);
}

.plan-meta {
  margin-bottom: 12px;
}

.plan-card button {
  width: 100%;
  margin-top: 16px;
}

.airline-card {
  display: grid;
  gap: 10px;
}

.airline-card-simple {
  align-content: start;
  min-height: 148px;
}

.airline-card-simple strong {
  font-size: 1.08rem;
}

.airline-card header {
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.airline-score {
  color: var(--accent);
  font-weight: 700;
}

.timeline {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.timeline-step {
  position: relative;
  padding-left: 44px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(17, 233, 169, 0.1);
}

.empty-state {
  padding: 14px 2px 0;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 16, 0.96);
  box-shadow: var(--shadow);
  z-index: 10;
}

.traveler-hero {
  padding-top: 34px;
  padding-bottom: 34px;
}

.traveler-subtitle {
  max-width: 56ch;
  margin-top: 16px;
}

.connect-ready-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(17, 233, 169, 0.12), transparent 36%),
    var(--panel);
}

.connect-ready-layout,
.connect-grid {
  display: grid;
  gap: 18px;
}

.connect-ready-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  align-items: end;
}

.connect-ready-meta {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.connect-ready-actions {
  width: 100%;
}

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

.connect-state-panel {
  min-height: 320px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

.connect-status-stack {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.connect-status-stack strong {
  font-size: 1.3rem;
}

.spinner,
.check-badge {
  width: 72px;
  height: 72px;
}

.spinner {
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}

.check-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 650ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 90ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 170ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 250ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 330ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .dashboard-grid,
  .membership-grid,
  .traveler-grid,
  .connect-grid,
  .workflow,
  .plan-grid,
  .airline-grid,
  .roadmap-grid,
  .business-stat-grid {
    grid-template-columns: 1fr;
  }

  .connect-ready-layout {
    grid-template-columns: 1fr;
  }

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

  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-arrow { display: none; }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1160px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-links {
    flex-direction: column;
  }

  .hero-copy,
  .card {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .flow-track { grid-template-columns: 1fr; }

  .progress-step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .progress-heading {
    flex-direction: column;
    align-items: start;
  }

  h1 {
    font-size: 2.85rem;
  }
}
