:root {
  --ink-950: #031019;
  --ink-900: #071d2d;
  --ink-700: #1a425f;
  --ink-500: #4b6881;
  --paper-100: #f4fbff;
  --paper-200: #e8f4fb;
  --accent-500: #0bb2a6;
  --accent-600: #03867d;
  --sun-400: #ffc165;
  --line-weak: rgba(8, 36, 56, 0.14);
  --line-strong: rgba(5, 30, 49, 0.25);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1220px;
  --transition: 220ms cubic-bezier(0.2, 0.7, 0, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink-900);
  line-height: 1.45;
  background:
    radial-gradient(circle at 88% 4%, rgba(11, 178, 166, 0.16), transparent 30%),
    radial-gradient(circle at 10% 14%, rgba(255, 193, 101, 0.14), transparent 32%),
    linear-gradient(180deg, #02121e 0%, #05253a 42%, #eff8fe 42%, #eff8fe 100%);
}

a {
  color: inherit;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 2.5vw, 2rem);
  background: linear-gradient(to bottom, rgba(2, 17, 29, 0.9), rgba(2, 17, 29, 0.35));
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
}

.logo-mark {
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sun-400), #ffe39f);
  color: #081a2a;
  font-weight: 700;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
}

.logo-text {
  color: #ffffff;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-nav a {
  text-decoration: none;
  color: rgba(235, 249, 255, 0.88);
  font-size: 0.94rem;
  transition: opacity var(--transition);
}

.topbar-nav a:hover,
.topbar-nav a:focus-visible {
  opacity: 1;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(11, 178, 166, 0.46);
  background: rgba(11, 178, 166, 0.14);
  color: #ccfff7;
  font-size: 0.79rem;
  padding: 0.34rem 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero {
  min-height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  animation: heroZoom 1800ms ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(3, 20, 32, 0.86) 0%, rgba(3, 20, 32, 0.66) 42%, rgba(3, 20, 32, 0.38) 100%),
    linear-gradient(180deg, rgba(3, 20, 32, 0.45) 0%, rgba(3, 20, 32, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(6rem, 9vw, 8rem) clamp(1rem, 5vw, 2rem) 8.3rem;
  color: #ffffff;
  animation: heroIntro 920ms cubic-bezier(0.18, 0.82, 0.24, 0.98) both;
}

.kicker {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c4fff7;
  font-size: 0.76rem;
}

.hero h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  max-width: 13ch;
}

.hero p {
  margin-top: 1rem;
  max-width: 52ch;
  color: rgba(234, 246, 255, 0.93);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.65rem;
  display: flex;
  gap: 0.84rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.76rem 1.2rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 193, 101, 0.88);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(115deg, var(--sun-400), #ffd892);
  border-color: #ffd892;
  color: #132434;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: #e8f6ff;
  border-color: rgba(232, 246, 255, 0.64);
  background: rgba(6, 27, 44, 0.2);
}

.btn-secondary:hover {
  border-color: rgba(232, 246, 255, 0.92);
}

.hero-track {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  gap: 2.6rem;
  padding: 0.9rem 1rem;
  background: rgba(2, 16, 28, 0.76);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  white-space: nowrap;
}

.hero-track span {
  position: relative;
  color: rgba(229, 245, 255, 0.9);
  padding-left: 1.4rem;
  letter-spacing: 0.02em;
  animation: trackMove 17s linear infinite;
}

.hero-track span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(11, 178, 166, 0.9);
}

main {
  display: grid;
  gap: clamp(3.4rem, 7vw, 6rem);
}

.how,
.workspace,
.checkout,
.cta {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.how {
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.98), rgba(235, 247, 255, 0.96));
  border: 1px solid rgba(5, 33, 53, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.4rem);
  box-shadow: 0 14px 34px rgba(7, 31, 50, 0.08);
  display: grid;
  gap: 1.2rem;
}

.how h2,
.workspace-head h2,
.checkout-head h2,
.cta h2 {
  margin: 0;
  color: #042238;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.steps li {
  background: rgba(255, 255, 255, 0.84);
  border-top: 2px solid rgba(5, 69, 105, 0.2);
  border-left: 3px solid rgba(11, 178, 166, 0.44);
  border-radius: 12px;
  padding: 0.95rem 0.78rem 0.82rem;
  display: grid;
  gap: 0.36rem;
}

.steps strong {
  color: #032338;
  font-size: 1.03rem;
}

.steps span {
  color: #2f4d66;
}

.workspace {
  display: grid;
  gap: 1.1rem;
}

.workspace-head p,
.checkout-head p,
.cta p {
  margin: 0.64rem 0 0;
  max-width: 66ch;
  color: #355069;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--line-weak);
  border-radius: 18px;
  background: rgba(251, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(5, 31, 51, 0.06);
}

.booking-form label {
  display: grid;
  gap: 0.34rem;
  color: #0f3551;
  font-size: 0.9rem;
}

.booking-form label:nth-child(1),
.booking-form label:nth-child(2) {
  grid-column: span 1;
}

.booking-form label:nth-child(3),
.booking-form label:nth-child(4) {
  grid-column: span 1;
}

.booking-form label:nth-child(5),
.booking-form label:nth-child(6) {
  grid-column: span 1;
}

.booking-form input,
.booking-form select,
.payment-fields input,
.payment-fields select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(12, 43, 68, 0.24);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.62rem 0.72rem;
  color: #07243a;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form input:focus,
.booking-form select:focus,
.payment-fields input:focus,
.payment-fields select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(11, 178, 166, 0.18);
}

.booking-form button {
  grid-column: span 1;
  align-self: end;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.35em;
  color: #a12f3d;
  font-size: 0.92rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.42fr 0.78fr;
  gap: 1rem;
  align-items: start;
}

.map-stage {
  border: 1px solid var(--line-weak);
  border-radius: var(--radius-lg);
  background: rgba(251, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(7, 31, 50, 0.09);
  padding: 0.9rem;
}

.map-stage-head,
.result-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
}

.map-stage-head h3,
.result-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #042238;
}

.map-stage-head span,
.result-header span {
  margin: 0;
  color: #4a6379;
  font-size: 0.86rem;
}

.route-map {
  width: 100%;
  height: clamp(440px, 62vh, 620px);
  border-radius: 14px;
  border: 1px solid rgba(7, 31, 48, 0.24);
  overflow: hidden;
  background: linear-gradient(180deg, #d5effe, #c5e8fb);
}

.map-legend {
  margin: 0.62rem 0 0;
  color: #2f4e68;
  font-size: 0.9rem;
}

.route-chips {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.route-chip {
  border: 1px solid rgba(8, 36, 56, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0d334e;
  font: inherit;
  font-size: 0.84rem;
  padding: 0.38rem 0.66rem;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.route-chip:hover {
  border-color: rgba(3, 134, 125, 0.52);
}

.route-chip.is-active {
  border-color: rgba(3, 134, 125, 0.9);
  background: rgba(11, 178, 166, 0.16);
  color: #045f58;
}

.offers-stage {
  border: 1px solid var(--line-weak);
  border-radius: var(--radius-lg);
  background: rgba(251, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(7, 31, 50, 0.09);
  padding: 0.9rem;
  min-height: 540px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.results {
  margin-top: 0.3rem;
  display: grid;
  gap: 0.68rem;
  max-height: calc(clamp(440px, 62vh, 620px) - 38px);
  overflow: auto;
  padding-right: 0.15rem;
}

.empty-state {
  color: #4d667d;
}

.result-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(8, 35, 54, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.result-item.is-selected {
  border-color: rgba(3, 134, 125, 0.62);
  background: rgba(11, 178, 166, 0.1);
}

.result-main {
  display: grid;
  gap: 0.22rem;
}

.result-main h4 {
  margin: 0;
  color: #042339;
  font-size: 1rem;
}

.result-main p {
  margin: 0;
  color: #36536b;
  font-size: 0.89rem;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.result-meta strong {
  color: #031f33;
  font-size: 1.12rem;
}

.select-offer {
  border-color: rgba(3, 134, 125, 0.56);
  background: rgba(11, 178, 166, 0.14);
  color: #025952;
}

.select-offer:hover {
  background: rgba(11, 178, 166, 0.24);
}

.select-offer.is-selected {
  background: rgba(3, 134, 125, 0.94);
  border-color: rgba(3, 134, 125, 0.98);
  color: #f2fffd;
}

.checkout {
  display: grid;
  gap: 1.1rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 1rem;
  align-items: start;
}

.order-preview,
.payment-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-weak);
  box-shadow: 0 14px 34px rgba(7, 31, 50, 0.09);
  padding: 1rem;
}

.order-preview {
  background: linear-gradient(145deg, #09283f, #0e3e5d);
  color: #e8f8ff;
  min-height: 300px;
}

.order-preview h3 {
  margin: 0 0 0.48rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.42rem;
}

.order-preview p {
  margin: 0.34rem 0;
  color: rgba(226, 244, 255, 0.92);
}

.preview-grid {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
}

.preview-grid span {
  color: rgba(189, 224, 246, 0.95);
  font-size: 0.88rem;
}

.preview-grid strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.preview-empty {
  margin: 0;
  color: rgba(226, 244, 255, 0.88);
}

.payment-panel {
  background: rgba(251, 254, 255, 0.96);
}

.payment-form {
  display: grid;
  gap: 0.82rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.payment-method {
  border: 1px solid rgba(8, 35, 54, 0.22);
  border-radius: 12px;
  background: #ffffff;
  color: #0c2f49;
  padding: 0.6rem 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}

.payment-method:hover {
  border-color: rgba(3, 134, 125, 0.52);
}

.payment-method.is-active {
  border-color: rgba(3, 134, 125, 0.92);
  background: rgba(11, 178, 166, 0.16);
  color: #045f58;
}

.payment-amount {
  margin: 0;
  border-radius: 12px;
  border: 1px dashed rgba(8, 35, 54, 0.24);
  background: rgba(238, 249, 255, 0.86);
  color: #355169;
  padding: 0.7rem 0.75rem;
}

.payment-amount strong {
  color: #05253c;
}

.payment-fields {
  display: grid;
  gap: 0.7rem;
}

.payment-fields label {
  display: grid;
  gap: 0.33rem;
  color: #133752;
  font-size: 0.91rem;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 0.65rem;
}

.payment-message {
  min-height: 1.35em;
  margin: 0;
  color: #9c3040;
  font-size: 0.92rem;
}

.payment-message.is-success {
  color: #0b7f5f;
}

.map-fallback {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: #274961;
}

.port-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #0f5f84;
  box-shadow: 0 0 0 4px rgba(15, 95, 132, 0.24);
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.port-marker.is-from {
  background: var(--accent-500);
  box-shadow: 0 0 0 5px rgba(11, 178, 166, 0.28);
  transform: scale(1.08);
}

.port-marker.is-to {
  background: var(--sun-400);
  box-shadow: 0 0 0 5px rgba(255, 193, 101, 0.34);
  transform: scale(1.08);
}

.maplibregl-popup-content {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: #08253b;
}

.cta {
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta h2 {
  max-width: 34ch;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
}

.footer {
  text-align: center;
  color: #4a667d;
  padding: 1rem;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.05);
  }
}

@keyframes trackMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 1120px) {
  .booking-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .offers-stage {
    min-height: auto;
  }

  .results {
    max-height: none;
  }

  .route-map {
    height: clamp(360px, 54vh, 500px);
  }
}

@media (max-width: 780px) {
  .topbar-nav,
  .pill {
    display: none;
  }

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

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

  .booking-form button {
    width: 100%;
  }

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

  .payment-methods,
  .payment-row,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-content {
    padding-inline: 0.9rem;
    padding-top: 6.1rem;
    padding-bottom: 7.6rem;
  }

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

  .map-stage,
  .offers-stage,
  .order-preview,
  .payment-panel,
  .how,
  .booking-form {
    border-radius: 16px;
  }

  .route-map {
    height: 330px;
  }
}
