:root {
  --bg-night: #0f1626;
  --bg-deep: #1b2740;
  --sea-blue: #143052;
  --sea-blue-soft: #214a76;
  --ember: #ff8d4d;
  --gold: #ffcf66;
  --sand: #f7dfb0;
  --wood: #6d3e22;
  --wood-dark: #432513;
  --panel: rgba(14, 18, 32, 0.68);
  --panel-border: rgba(255, 240, 208, 0.14);
  --text-main: #fff3dd;
  --text-soft: rgba(255, 243, 221, 0.76);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(255, 141, 77, 0.16), transparent 26%),
    linear-gradient(180deg, #1b2136 0%, #10172a 28%, #0e1828 58%, #0a111e 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: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  pointer-events: none;
}

button,
a {
  font: inherit;
}

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

.sun-glow {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.3;
  pointer-events: none;
}

.sun-left {
  top: -8rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(255, 141, 77, 0.92), rgba(255, 141, 77, 0));
}

.sun-right {
  right: -6rem;
  top: 14rem;
  background: radial-gradient(circle, rgba(255, 207, 102, 0.66), rgba(255, 207, 102, 0));
}

.topbar,
.hero,
.feature-strip,
.route-section,
.manifesto-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1b2236;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy {
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-main);
}

.nav-external {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  padding-top: 48px;
  align-items: center;
}

.hero-copy,
.hero-scene,
.feature-card,
.route-card,
.manifesto-card {
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.94;
  text-wrap: balance;
}

.lead {
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.route-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-link,
.secondary-link {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
}

.primary-link {
  color: #1b2136;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  box-shadow: 0 14px 32px rgba(255, 141, 77, 0.35);
}

.secondary-link {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.primary-link:hover,
.secondary-link:hover,
.route-card:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible,
.route-card:focus-visible {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stat-box {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-label,
.stat-foot {
  display: block;
  color: var(--text-soft);
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-number,
.stat-text {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

.stat-foot {
  margin-top: 8px;
  font-size: 0.92rem;
}

.hero-scene {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 26px;
  background:
    radial-gradient(circle at top, rgba(255, 207, 102, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(27, 39, 64, 0.96) 0%, rgba(15, 20, 37, 0.98) 100%);
}

.sun-disc {
  position: absolute;
  top: 68px;
  right: 84px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 207, 102, 1) 0%, rgba(255, 141, 77, 0.95) 58%, rgba(255, 141, 77, 0) 72%);
  box-shadow: 0 0 60px rgba(255, 141, 77, 0.3);
}

.compass-card {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 180px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 248, 227, 0.08);
  border: 1px solid rgba(255,248,227,0.14);
}

.compass-title {
  display: block;
  color: var(--sand);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compass-face {
  position: relative;
  width: 108px;
  height: 108px;
  margin-top: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 223, 164, 0.34);
  background: radial-gradient(circle, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

.compass-face::before,
.compass-face::after {
  content: "";
  position: absolute;
  inset: 50%;
  background: rgba(255,223,164,0.2);
  transform-origin: center;
}

.compass-face::before {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.compass-face::after {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

.needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ember), var(--gold));
  transform: translate(-50%, -95%) rotate(28deg);
  transform-origin: center bottom;
  animation: sway 6s ease-in-out infinite;
}

.ship-card {
  position: absolute;
  inset: auto 26px 26px 26px;
  height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 165, 98, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(23, 69, 112, 0.95) 0%, rgba(8, 25, 46, 0.98) 100%);
  overflow: hidden;
}

.mast {
  position: absolute;
  left: 52%;
  bottom: 138px;
  width: 10px;
  height: 210px;
  background: linear-gradient(180deg, #8d5b34, #51311b);
  transform: translateX(-50%);
}

.sail {
  position: absolute;
  bottom: 208px;
  background: linear-gradient(180deg, rgba(255,242,208,0.95), rgba(247,223,176,0.92));
  border-radius: 24px 24px 120px 24px;
  box-shadow: inset -12px -18px 0 rgba(120, 73, 30, 0.07);
}

.sail-main {
  left: 50%;
  width: 190px;
  height: 170px;
  transform: translateX(-6%);
}

.sail-front {
  left: 33%;
  width: 118px;
  height: 112px;
  transform: skewY(-4deg);
}

.hull {
  position: absolute;
  left: 50%;
  bottom: 98px;
  width: 320px;
  height: 90px;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  clip-path: polygon(6% 16%, 100% 16%, 90% 100%, 18% 100%, 0 56%);
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.wave {
  position: absolute;
  left: -5%;
  width: 110%;
  border-radius: 999px;
}

.wave-back {
  bottom: 58px;
  height: 54px;
  background: rgba(34, 95, 146, 0.76);
}

.wave-front {
  bottom: 16px;
  height: 86px;
  background: rgba(20, 53, 92, 0.95);
}

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

.feature-card,
.route-card,
.manifesto-card {
  padding: 24px;
}

.feature-kicker,
.route-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 207, 102, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
}

.feature-card h2,
.section-heading h2,
.manifesto-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.feature-card p,
.section-heading p,
.route-card p,
.manifesto-card p {
  color: var(--text-soft);
  line-height: 1.75;
}

.route-section {
  margin-top: 44px;
}

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

.route-card {
  min-height: 260px;
  background:
    radial-gradient(circle at top right, rgba(255, 141, 77, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
}

.route-card h3 {
  margin: 18px 0 10px;
  font-size: 1.8rem;
}

.route-cta {
  margin-top: 20px;
  color: var(--gold);
  font-weight: 700;
}

.manifesto-section {
  margin-top: 42px;
}

.manifesto-card {
  position: relative;
  overflow: hidden;
}

.manifesto-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 141, 77, 0.24), rgba(255, 141, 77, 0));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 46px;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 16px;
}

@keyframes sway {
  0%, 100% {
    transform: translate(-50%, -95%) rotate(22deg);
  }
  50% {
    transform: translate(-50%, -95%) rotate(34deg);
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    min-height: 520px;
  }

  .feature-strip,
  .route-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-copy,
  .hero-scene,
  .feature-card,
  .route-card,
  .manifesto-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-scene {
    min-height: 420px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .sun-disc {
    width: 150px;
    height: 150px;
    right: 32px;
  }

  .compass-card {
    width: 148px;
  }

  .compass-face {
    width: 92px;
    height: 92px;
  }

  .sail-main {
    width: 150px;
    height: 136px;
  }

  .sail-front {
    width: 88px;
    height: 92px;
  }

  .hull {
    width: 250px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
