:root {
  --bg: #020813;
  --bg-deep: #01040b;
  --panel: rgba(7, 17, 34, 0.76);
  --panel-strong: rgba(4, 10, 22, 0.9);
  --line: rgba(146, 178, 226, 0.24);
  --text: #edf7ff;
  --muted: #c1c8ff;
  --green: #f5f7fb;
  --cyan: #8ee8ff;
  --blue: #2563ff;
  --violet: #8f6dff;
  --purple: #5b2dce;
  --navy: #071033;
  --navy-soft: #17215e;
  --blue-panel: rgba(17, 38, 104, 0.84);
  --blue-panel-soft: rgba(41, 58, 139, 0.68);
  --blue-line: rgba(164, 186, 255, 0.42);
  --amber: #ffc86b;
  --red: #ff7a94;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(232, 240, 255, 0.92);
  outline-offset: 3px;
}

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

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

h1 {
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.95rem, 2.8vw, 2.7rem);
  letter-spacing: 0;
}

h2,
h3 {
  font-family: "Merriweather", Georgia, serif;
}

.eyebrow,
.feature-kicker,
.panel-label,
.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.brand-mark {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  width: 34px;
  height: 34px;
  border: 5px solid rgba(212, 228, 255, 0.96);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-mark::after {
  width: 5px;
  height: 48px;
  background: rgba(212, 228, 255, 0.96);
  box-shadow: 0 0 18px rgba(108, 150, 225, 0.34);
}

.pill {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 700;
}

.pill-blue {
  color: #dbe7ff;
  background: linear-gradient(180deg, rgba(125, 141, 255, 0.32), rgba(44, 55, 129, 0.6));
}

.pill-green {
  color: #efe7ff;
  background: linear-gradient(180deg, rgba(140, 109, 255, 0.28), rgba(54, 37, 128, 0.68));
}

.primary-link,
.ghost-link,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-link {
  color: #f8fbff;
  background: linear-gradient(135deg, #20b8ff 0%, #5d7cff 48%, #9b6dff 100%);
  min-width: 240px;
  padding: 0 24px;
  box-shadow:
    0 0 28px rgba(77, 142, 255, 0.28),
    0 14px 30px rgba(83, 65, 210, 0.34);
}

.ghost-link,
.ghost-button {
  color: var(--text);
  background: linear-gradient(135deg, rgba(33, 113, 255, 0.2), rgba(132, 89, 255, 0.18));
  border: 1px solid var(--blue-line);
  min-width: 140px;
}

.secondary-button {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(45, 169, 255, 0.94), rgba(129, 96, 255, 0.92));
  border: 1px solid rgba(218, 228, 255, 0.5);
  box-shadow: 0 10px 28px rgba(67, 91, 224, 0.3);
}

.danger-button {
  color: #ffe6eb;
  background: rgba(83, 12, 24, 0.82);
  border: 1px solid rgba(255, 210, 219, 0.36);
}

button {
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

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

.landing-body {
  background:
    radial-gradient(circle at 14% -4%, rgba(74, 218, 255, 0.48), transparent 30%),
    radial-gradient(circle at 82% 2%, rgba(158, 87, 255, 0.5), transparent 32%),
    radial-gradient(circle at 50% 46%, rgba(37, 99, 255, 0.34), transparent 42%),
    radial-gradient(circle at 18% 86%, rgba(94, 53, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #06113b 0%, #101b65 42%, #25145f 100%);
  overflow-x: hidden;
}

.ocean-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(77, 218, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(171, 92, 255, 0.42), transparent 34%),
    radial-gradient(circle at 52% 42%, rgba(40, 104, 255, 0.3), transparent 40%),
    radial-gradient(circle at 35% 88%, rgba(104, 58, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(1, 8, 34, 0.56), rgba(19, 4, 57, 0.72));
}

.rb-aurora-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(93, 218, 255, 0.35), transparent 38%),
    radial-gradient(circle at 82% 14%, rgba(145, 104, 255, 0.55), transparent 40%),
    radial-gradient(circle at 48% 16%, rgba(37, 99, 255, 0.36), transparent 42%),
    linear-gradient(180deg, rgba(13, 38, 112, 0.3), rgba(14, 4, 42, 0.48));
  background-size: 210% 210%, 210% 210%, 180% 180%, 100% 100%;
  animation: none;
}

.rb-aurora-layer::before,
.rb-aurora-layer::after {
  content: "";
  position: absolute;
  inset: -24%;
  border-radius: 40%;
  filter: blur(64px);
  transform-origin: center;
  will-change: transform, opacity, background-position;
  mix-blend-mode: screen;
}

.rb-aurora-layer::before {
  background:
    radial-gradient(circle at 18% 50%, rgba(101, 224, 255, 0.4), transparent 38%),
    radial-gradient(circle at 52% 46%, rgba(64, 126, 255, 0.48), transparent 40%),
    radial-gradient(circle at 84% 44%, rgba(154, 101, 255, 0.46), transparent 38%);
  background-size: 165% 165%;
  opacity: 0.82;
  filter: blur(82px);
  animation: none;
}

.rb-aurora-layer::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(104, 218, 255, 0.24) 16%, rgba(85, 115, 255, 0.36) 50%, rgba(166, 107, 255, 0.3) 84%, transparent 100%);
  background-size: 160% 105%;
  opacity: 0.48;
  filter: blur(118px);
  animation: none;
}

.rb-aurora-layer-landing {
  opacity: 0.96;
  filter: saturate(1.05) brightness(1.02) contrast(1.12);
}

.rb-aurora-layer-app {
  opacity: 1;
  filter: saturate(0.68) brightness(1.02) contrast(1.12);
}

.rb-aurora-canvas {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  opacity: 0.72;
  filter: blur(8px) saturate(115%);
}

.rb-aurora-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(2, 8, 18, 0) 0%, rgba(9, 22, 74, 0.34) 44%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(109, 220, 255, 0.08) 0%, rgba(2, 8, 18, 0) 24%, rgba(22, 4, 60, 0.64) 100%);
}

.rb-aurora-vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(112, 224, 255, 0.22), transparent 40%),
    radial-gradient(circle at 82% 10%, rgba(154, 101, 255, 0.42), transparent 42%),
    radial-gradient(circle at 52% 18%, rgba(31, 97, 255, 0.3), transparent 40%);
  background-size: 180% 180%, 180% 180%, 170% 170%;
  opacity: 0.62;
  animation: none;
}

.landing-shell {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 32px 88px;
}

.landing-header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-header {
  margin-bottom: 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(168, 196, 242, 0.62);
}

.landing-nav,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(220, 234, 255, 0.88);
}

.landing-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.landing-nav a:hover,
.site-nav a:hover {
  color: #ffffff;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 132px);
  max-width: 1320px;
  margin: 0 auto;
}

.landing-copy,
.landing-panel,
.story-card,
.system-card,
.cta-card,
.hero-panel,
.panel,
.app-hero-note {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.24);
}

.landing-copy {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-hero-frame {
  position: relative;
  min-height: 78vh;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(6, 27, 90, 0.52), rgba(36, 12, 88, 0.76)),
    radial-gradient(circle at 18% 20%, rgba(95, 219, 255, 0.4), transparent 30%),
    radial-gradient(circle at 72% 28%, rgba(159, 104, 255, 0.52), transparent 34%),
    radial-gradient(circle at 54% 72%, rgba(37, 99, 255, 0.34), transparent 34%),
    #09123a;
  border: 1px solid rgba(191, 207, 255, 0.42);
  box-shadow:
    0 28px 70px rgba(4, 9, 12, 0.22),
    inset 0 1px 0 rgba(245, 250, 252, 0.08);
  overflow: hidden;
}

.landing-hero-frame::before {
  content: none;
}

.landing-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(245, 250, 252, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 250, 252, 0.016) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.42;
}

.hero-ocean-surface {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(76, 211, 255, 0.42), transparent 20%),
    radial-gradient(circle at 58% 48%, rgba(50, 105, 255, 0.5), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(162, 98, 255, 0.42), transparent 24%),
    radial-gradient(circle at 72% 62%, rgba(25, 8, 67, 0.64), transparent 28%),
    linear-gradient(160deg, rgba(28, 106, 210, 0.78), rgba(21, 50, 150, 0.86) 30%, rgba(30, 16, 96, 0.94) 58%, rgba(2, 5, 22, 0.98) 100%);
  filter: saturate(1.14) contrast(1.02);
  background-size: 130% 130%, 150% 150%, 120% 120%, 140% 140%, 100% 100%;
  animation: none;
}

.hero-ocean-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    repeating-radial-gradient(circle at 18% 24%, rgba(245, 250, 252, 0.12) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(132deg, rgba(245, 250, 252, 0.06) 0 2px, transparent 2px 26px);
  mix-blend-mode: screen;
  animation: none;
}

.hero-ocean-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 20, 35, 0.08), transparent 30%, rgba(1, 8, 16, 0.34) 100%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 18%);
}

.hero-ocean-foam {
  position: absolute;
  background:
    radial-gradient(circle at 18% 28%, rgba(132, 229, 255, 0.78), rgba(90, 132, 255, 0.32) 40%, transparent 72%),
    radial-gradient(circle at 64% 52%, rgba(160, 101, 255, 0.64), transparent 64%);
  filter: blur(12px);
  opacity: 0.72;
  animation: none;
}

.hero-ocean-foam-left {
  left: -38px;
  top: 16px;
  width: 240px;
  height: 260px;
  transform: rotate(-24deg);
}

.hero-ocean-foam-right {
  right: -64px;
  bottom: -38px;
  width: 260px;
  height: 190px;
  transform: rotate(16deg);
  opacity: 0.26;
}

.hero-frame-top,
.hero-frame-center,
.hero-frame-bottom,
.hero-frame-side {
  position: relative;
  z-index: 2;
}

.hero-frame-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  color: rgba(243, 250, 255, 0.92);
}

.hero-frame-mark {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 3rem;
  line-height: 0.8;
}

.hero-frame-mark-degree {
  font-size: 1.6rem;
  transform: translateY(-6px);
}

.hero-frame-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 18px;
  color: rgba(233, 245, 255, 0.84);
  font-size: 1rem;
  max-width: 40rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-title {
  max-width: none;
  width: 100%;
  margin-bottom: 18px;
  color: #f8fbff;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(4.2rem, 10vw, 8.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

.landing-summary {
  max-width: 44rem;
  color: rgba(233, 244, 255, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

.hero-frame-side {
  position: absolute;
  top: 50%;
  color: rgba(246, 250, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-frame-side-left {
  left: 18px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
}

.hero-frame-side-right {
  right: 18px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right top;
}

.hero-frame-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.hero-preview-card {
  position: relative;
  z-index: 1;
  padding: 18px 18px 20px;
  background:
    linear-gradient(135deg, rgba(65, 151, 255, 0.2), rgba(149, 96, 255, 0.18)),
    rgba(13, 32, 92, 0.46);
  border: 1px solid rgba(210, 222, 255, 0.24);
  border-radius: 18px;
  backdrop-filter: none;
  box-shadow: 0 16px 28px rgba(3, 9, 32, 0.14);
}

.hero-preview-card-wide {
  min-height: 126px;
}

.hero-preview-card-compact {
  min-height: 126px;
}

.hero-preview-card {
  display: block;
  color: rgba(242, 248, 255, 0.96);
}

.hero-preview-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-items: stretch;
  justify-content: center;
}

.landing-actions .primary-link {
  flex: 0 1 240px;
}

.landing-actions .ghost-link {
  flex: 0 1 180px;
}

.signal-card,
.flow-card {
  border: 1px solid var(--blue-line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(245, 250, 252, 0.035), rgba(245, 250, 252, 0.008)),
    var(--blue-panel-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.feature-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: #b7c7ff;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.feature-icon-grid::before {
  inset: 3px;
  border: 1.5px solid rgba(163, 188, 255, 0.9);
  box-shadow:
    8px 0 0 -6.5px rgba(163, 188, 255, 0.9),
    -8px 0 0 -6.5px rgba(163, 188, 255, 0.9),
    0 8px 0 -6.5px rgba(163, 188, 255, 0.9),
    0 -8px 0 -6.5px rgba(163, 188, 255, 0.9);
}

.feature-icon-crew::before {
  left: 4px;
  top: 5px;
  width: 8px;
  height: 8px;
  border: 1.5px solid rgba(163, 188, 255, 0.92);
  border-radius: 50%;
  box-shadow: 12px 3px 0 -1px rgba(163, 188, 255, 0.92);
}

.feature-icon-crew::after {
  left: 3px;
  bottom: 5px;
  width: 22px;
  height: 9px;
  border: 1.5px solid rgba(163, 188, 255, 0.92);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.feature-icon-economics::before {
  left: 4px;
  bottom: 4px;
  width: 4px;
  height: 10px;
  background: linear-gradient(180deg, #b8c8ff, #8f74ff);
  box-shadow:
    7px -4px 0 0 rgba(177, 191, 255, 0.95),
    14px -1px 0 0 rgba(155, 118, 255, 0.95);
}

.feature-icon-economics::after {
  left: 3px;
  top: 4px;
  width: 18px;
  height: 2px;
  background: rgba(163, 188, 255, 0.92);
  transform: rotate(28deg);
  transform-origin: left center;
}

.feature-icon-pin::before {
  left: 8px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(163, 188, 255, 0.92);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.feature-icon-pin::after {
  left: 12px;
  top: 6px;
  width: 4px;
  height: 4px;
  background: rgba(163, 188, 255, 0.92);
  border-radius: 50%;
}

.feature-icon-patch::before {
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(139, 111, 255, 0.32) 0 42%, transparent 43%),
    radial-gradient(circle at center, transparent 0 58%, rgba(163, 188, 255, 0.88) 59% 61%, transparent 62%);
  border: 1.5px solid rgba(163, 188, 255, 0.72);
}

.feature-icon-route::before {
  left: 3px;
  top: 13px;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, rgba(163, 188, 255, 0.1), rgba(163, 188, 255, 0.95));
  transform: rotate(-28deg);
}

.feature-icon-route::after {
  right: 3px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(163, 188, 255, 0.95);
  border-right: 2px solid rgba(163, 188, 255, 0.95);
  transform: rotate(17deg);
}

.signal-card {
  padding: 16px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal-card:last-child {
  grid-column: 1 / -1;
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 6px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.25;
}

.landing-panel-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: none;
  padding-top: 2px;
}

.landing-panel-core strong {
  display: block;
  margin: 10px 0 14px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 1.06;
}

.landing-panel-core p {
  color: rgba(230, 241, 255, 0.84);
  max-width: 30rem;
  line-height: 1.65;
}

.landing-copy-core {
  margin: 0 0 20px;
}

.landing-copy-core strong {
  font-size: clamp(1.75rem, 2.3vw, 2.7rem);
}

.landing-copy-core p {
  max-width: 34rem;
}

.landing-header .eyebrow,
.landing-header h1,
.hero-preview-card .eyebrow,
.landing-panel-core .eyebrow,
.landing-panel-core strong,
.feature-icon {
  color: #f7fbff;
}

.landing-copy-signals {
  margin: 0 0 20px;
  max-width: none;
}

.panel-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(146, 178, 226, 0.18);
}

.orbit-one {
  width: 260px;
  height: 260px;
  top: 22%;
  right: -32px;
  animation: none;
}

.orbit-two {
  width: 420px;
  height: 420px;
  top: 6%;
  right: -168px;
  animation: none;
}

.landing-story,
.system-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.section-divider {
  position: relative;
  padding-top: 34px;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 250, 252, 0.52), transparent);
}

.landing-story {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 42px;
}

.story-card,
.system-card,
.cta-card,
.hero-panel,
.app-hero-note,
.panel {
  padding: 24px;
}

.story-card,
.system-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(166, 111, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(55, 143, 255, 0.18), rgba(119, 82, 255, 0.12)),
    rgba(23, 55, 126, 0.62);
  border: 1px solid rgba(192, 207, 255, 0.38);
  box-shadow: 0 18px 44px rgba(19, 22, 73, 0.22);
}

.story-card-wide {
  grid-column: 1 / -1;
  min-height: 180px;
  background:
    radial-gradient(circle at 15% 0%, rgba(101, 224, 255, 0.24), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(164, 104, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(36, 127, 255, 0.24), rgba(91, 45, 206, 0.24)),
    rgba(18, 55, 130, 0.76);
}

.story-card-wide p {
  max-width: 74ch;
  font-size: 1.04rem;
}

.story-index {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(219, 235, 255, 0.84);
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.story-card h3,
.system-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #f6fbff;
}

.story-card p,
.system-card p,
.cta-card p,
.app-hero-note p,
.section-copy {
  color: rgba(230, 241, 255, 0.84);
  line-height: 1.7;
}

.section-heading h2,
.cta-card h2 {
  color: #f7fbff;
}

.section-heading .feature-kicker,
.cta-card .feature-kicker {
  color: rgba(219, 235, 255, 0.72);
}

.system-section {
  margin-bottom: 40px;
}

.section-heading,
.map-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.system-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.flow-section {
  margin-top: 10px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-card {
  position: relative;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(97, 214, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(46, 121, 255, 0.18), rgba(139, 90, 255, 0.14)),
    rgba(28, 53, 126, 0.6);
  border: 1px solid rgba(192, 207, 255, 0.36);
  box-shadow: 0 18px 44px rgba(19, 22, 73, 0.2);
}

.flow-card.wide {
  grid-column: span 3;
  min-height: 180px;
  overflow: hidden;
}

.flow-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #f7fbff;
}

.flow-card p {
  max-width: 64ch;
  color: rgba(230, 241, 255, 0.84);
  line-height: 1.7;
}

.reveal-block {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.landing-hero-frame.reveal-block {
  opacity: 1;
  transform: none;
}

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

.flow-pulse {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 180px;
  height: 180px;
}

.flow-pulse span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(146, 178, 226, 0.18);
  animation: none;
}

.flow-pulse span:nth-child(2) {
  inset: 18%;
  animation-delay: -3s;
}

.flow-pulse span:nth-child(3) {
  inset: 36%;
  animation-delay: -6s;
}

.cta-section {
  margin-top: 24px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  background:
    radial-gradient(circle at 76% 0%, rgba(166, 111, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(47, 139, 255, 0.2), rgba(118, 77, 255, 0.16)),
    rgba(28, 67, 128, 0.62);
  border: 1px solid rgba(192, 207, 255, 0.4);
  box-shadow: 0 18px 44px rgba(19, 22, 73, 0.22);
}

.cta-card .primary-link {
  min-width: min(320px, 100%);
}

.app-body {
  position: relative;
  background:
    radial-gradient(circle at 18% -2%, rgba(78, 219, 255, 0.42), transparent 30%),
    radial-gradient(circle at 78% 4%, rgba(161, 92, 255, 0.46), transparent 32%),
    radial-gradient(circle at 52% 42%, rgba(39, 105, 255, 0.3), transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(92, 52, 255, 0.28), transparent 34%),
    linear-gradient(180deg, #06113b 0%, #111b66 42%, #25145f 100%);
}

.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(102, 224, 255, 0.22), transparent 24%),
    radial-gradient(circle at 74% 18%, rgba(160, 98, 255, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(18, 56, 148, 0.34), rgba(40, 17, 105, 0.48));
  background-size: 120% 120%;
  filter: none;
  animation: none;
}

.app-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(4, 13, 16, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 13, 16, 0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.3;
  animation: none;
}

.app-ocean-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: contrast(1.16) saturate(1.18);
  opacity: 0.62;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px 24px 44px;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 24% 18%, rgba(109, 220, 255, 0.18), transparent 20%),
    radial-gradient(circle at 62% 34%, rgba(122, 83, 255, 0.36), transparent 25%),
    linear-gradient(135deg, rgba(22, 55, 156, 0.2), transparent 38%);
  background-size: 100% 100%;
  mix-blend-mode: multiply;
}

.app-card {
  position: relative;
  z-index: 1;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-card::after {
  content: none;
}

.app-card::before {
  content: none;
}

.site-header,
.app-hero-strip,
.map-section,
.insight-grid,
.controls-panel,
.alerts-panel {
  position: relative;
  z-index: 3;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 30;
  margin: 0 0 32px;
  padding: 0 0 24px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(168, 196, 242, 0.58);
  backdrop-filter: none;
  box-shadow: none;
}

.site-header .brand .eyebrow,
.site-header h1 {
  color: #f8fbfc;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.52);
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: rgba(245, 250, 252, 0.82);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav a:first-child {
  background: transparent;
  border-color: transparent;
  color: #f8f8ff;
}

.app-hero-strip {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 0;
  margin-bottom: 30px;
  border: 1px solid rgba(188, 207, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(34, 119, 255, 0.18), rgba(132, 81, 255, 0.14)),
    rgba(12, 30, 90, 0.28);
}

.hero-panel-top strong {
  display: block;
  margin-top: 8px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.6rem;
  color: #ffffff;
}

#missionSummary {
  margin-top: 12px;
  color: rgba(245, 247, 255, 0.92);
  line-height: 1.65;
}

.app-hero-note h2 {
  margin: 8px 0 10px;
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 4.9rem);
  line-height: 1.05;
  color: #ffffff;
}

.global-badge {
  margin-top: 18px;
  padding: 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 250, 252, 0.24);
}

.global-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-badge strong {
  display: block;
  margin-top: 8px;
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: #d9f5ff;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.hero-panel,
.app-hero-note,
.panel,
.controls-panel,
.alerts-panel {
  background:
    radial-gradient(circle at 85% 0%, rgba(154, 101, 255, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(43, 130, 255, 0.14), rgba(126, 81, 255, 0.1)),
    rgba(18, 48, 108, 0.74);
  border: 1px solid rgba(193, 207, 255, 0.42);
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
}

.hero-panel,
.app-hero-note {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hero-panel {
  border-right: 1px solid rgba(168, 196, 242, 0.38);
}

.map-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.map-section {
  padding: 28px;
  border: 1px solid rgba(193, 207, 255, 0.5);
  background:
    radial-gradient(circle at 92% 6%, rgba(154, 101, 255, 0.18), transparent 34%),
    radial-gradient(circle at 10% 0%, rgba(91, 212, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(43, 130, 255, 0.14), rgba(126, 81, 255, 0.1)),
    rgba(18, 48, 108, 0.7);
}

.map-header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(168, 196, 242, 0.3);
}

.map-header h2,
.section-heading h2,
.section-heading.small h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.16;
}

.map-header h2,
.section-heading h2,
.section-heading.small h2,
.panel-label,
.feature-kicker,
.section-copy,
.app-hero-note p,
.global-badge strong,
.compact-controls label,
.control-group label,
.form-grid label span {
  color: #f5f7ff;
}

.compact-controls {
  margin-bottom: 14px;
}

.time-route-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(43, 169, 255, 0.18), rgba(145, 92, 255, 0.16)),
    rgba(30, 57, 132, 0.62);
  border: 1px solid rgba(196, 210, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.time-route-panel strong {
  display: block;
  margin-top: 6px;
  color: #f7fbff;
  font-size: 1rem;
}

.time-route-panel input[type="range"] {
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #6effc4;
}

.time-route-footer {
  display: flex;
  justify-content: space-between;
  color: rgba(230, 241, 255, 0.68);
  font-size: 0.82rem;
}

.compact-controls label,
.control-group label,
.form-grid label span {
  display: block;
  margin-bottom: 8px;
  color: #dce9f5;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid rgba(196, 210, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(44, 131, 255, 0.12), rgba(124, 82, 255, 0.1)),
    rgba(23, 52, 122, 0.46);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(245, 250, 252, 0.72);
  box-shadow: 0 0 0 2px rgba(216, 243, 255, 0.14);
}

.status-banner,
.alert-state {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(42, 132, 255, 0.14), rgba(126, 81, 255, 0.12)),
    rgba(28, 62, 138, 0.56);
  border: 1px solid rgba(196, 210, 255, 0.4);
  color: #d7e4f0;
  backdrop-filter: none;
}

.marine-map {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(168, 196, 242, 0.5);
  background: linear-gradient(180deg, rgba(18, 48, 94, 0.96), rgba(7, 16, 38, 0.98));
  box-shadow: inset 0 0 0 1px rgba(216, 243, 255, 0.08);
  isolation: isolate;
}

.marine-map .maplibregl-canvas {
  border-radius: 0;
}

.marine-map .maplibregl-control-container {
  font-family: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

.marine-map .maplibregl-ctrl-group {
  background: rgba(14, 36, 78, 0.94);
  border: 1px solid rgba(168, 196, 242, 0.18);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.marine-map .maplibregl-ctrl button {
  background-color: transparent;
}

.marine-map .maplibregl-ctrl button span {
  filter: invert(1) brightness(1.6);
}

.marine-map .maplibregl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.marine-map .maplibregl-popup-tip {
  background: rgba(6, 17, 29, 0.96);
}

.gps-marker-departure,
.gps-marker-target {
  border-radius: 999px;
  transform: translateZ(0);
}

.gps-marker-departure {
  width: 16px;
  height: 16px;
  background: #eef8ff;
  border: 3px solid rgba(13, 29, 48, 0.92);
  box-shadow:
    0 0 0 7px rgba(238, 248, 255, 0.08),
    0 0 24px rgba(163, 218, 255, 0.16);
}

.gps-marker-target {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(7, 18, 30, 0.92);
  box-shadow:
    0 0 0 10px rgba(238, 248, 255, 0.08),
    0 0 32px rgba(118, 216, 255, 0.22);
  cursor: grab;
}

.gps-marker-target:active {
  cursor: grabbing;
}

.gps-marker-target-green {
  background: #6effc4;
}

.gps-marker-target-amber {
  background: #ffc86b;
}

.gps-marker-target-red {
  background: #ff7a94;
}

.map-popup-card {
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18, 48, 94, 0.96), rgba(10, 23, 48, 0.97));
  border: 1px solid rgba(168, 196, 242, 0.22);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
}

.map-popup-card strong {
  display: block;
  font-size: 1rem;
}

.map-popup-card span {
  display: block;
  margin-top: 6px;
  color: #dceaf6;
  font-size: 0.9rem;
}

.map-popup-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.decision-panel {
  display: flex;
  flex-direction: column;
}

.score-ring {
  --ring-angle: 240deg;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 18px auto 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(5, 9, 20, 0.95) 56%, transparent 57%),
    conic-gradient(from 180deg, var(--ring-color, var(--amber)) var(--ring-angle), rgba(255, 255, 255, 0.12) 0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 32px rgba(118, 216, 255, 0.08);
}

.score-number {
  font-family: "Merriweather", Georgia, serif;
  font-size: 3rem;
}

.score-unit {
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-note {
  min-height: 78px;
  color: #d6e3f0;
  line-height: 1.65;
}

.conditions,
.metric-grid {
  display: grid;
  gap: 12px;
}

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

.conditions div,
.metric-card {
  padding: 14px 16px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(43, 132, 255, 0.16), rgba(134, 88, 255, 0.12)),
    rgba(46, 89, 158, 0.34);
  border: 1px solid rgba(196, 210, 255, 0.32);
}

.conditions strong,
.metric-card strong {
  display: block;
  margin-top: 6px;
}

.decision-actions {
  margin-top: 16px;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 18px;
  margin: 22px 0;
}

.optimal-panel {
  grid-column: 1 / -1;
}

.optimal-window {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(45, 169, 255, 0.18), rgba(154, 101, 255, 0.16)),
    rgba(28, 67, 128, 0.52);
  border: 1px solid rgba(196, 210, 255, 0.38);
}

.optimal-window span {
  color: rgba(230, 241, 255, 0.72);
  font-size: 0.88rem;
}

.optimal-window strong {
  color: #f7fbff;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.optimal-window p {
  margin: 0;
  color: rgba(230, 241, 255, 0.84);
  line-height: 1.6;
}

.reason-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: rgba(245, 250, 252, 0.86);
}

.reason-list li {
  line-height: 1.58;
}

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

.metric-card span {
  display: block;
  color: rgba(210, 229, 234, 0.62);
  font-size: 0.9rem;
}

.metric-card strong,
.conditions strong {
  color: #f8fbfc;
}

.controls-accordion {
  border-radius: 0;
  background: rgba(13, 36, 78, 0.5);
  border: 1px solid rgba(168, 196, 242, 0.26);
  overflow: hidden;
}

.controls-accordion summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
}

@keyframes tideShift {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    background-position: 0% 18%;
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.03);
    background-position: 50% 42%;
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
    background-position: 100% 78%;
  }
}

@keyframes swellDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 0%;
  }
  100% {
    transform: translate3d(-1%, 1%, 0) scale(1.04);
    background-position: 100% 100%;
  }
}

@keyframes appAuroraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.08);
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.04);
  }
}

.controls-accordion summary::-webkit-details-marker {
  display: none;
}

.controls-accordion[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.controls-accordion .form-grid,
.controls-accordion .control-group {
  padding: 18px;
}

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

.control-group {
  padding-top: 0;
}

textarea {
  resize: vertical;
}

.alert-log {
  display: grid;
  gap: 12px;
}

.alert-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 122, 148, 0.08);
  border: 1px solid rgba(255, 122, 148, 0.16);
}

.alert-item p {
  margin-top: 6px;
  color: #f0dbe3;
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scaleX(1);
    border-radius: 45% 55% 0 0;
  }
  50% {
    transform: translate3d(3%, -2%, 0) scaleX(1.04);
    border-radius: 52% 48% 0 0;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.06); opacity: 0.6; }
}

@keyframes currentDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(6%, -10%, 0) rotate(3deg);
  }
}

@keyframes auroraFallbackShift {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(1.02) rotate(-6deg);
    background-position: 0% 50%, 30% 50%, 60% 50%;
    opacity: 0.82;
  }
  50% {
    transform: translate3d(3%, -3%, 0) scale(1.12) rotate(4deg);
    background-position: 50% 44%, 70% 54%, 100% 48%;
    opacity: 1;
  }
  100% {
    transform: translate3d(-2%, 4%, 0) scale(1.04) rotate(-2deg);
    background-position: 100% 52%, 140% 46%, 180% 56%;
    opacity: 0.86;
  }
}

@keyframes auroraLayerDrift {
  0% {
    background-position: 0% 8%, 100% 12%, 50% 50%;
  }
  25% {
    background-position: 58% 2%, 48% 34%, 50% 50%;
  }
  50% {
    background-position: 120% 30%, -10% 18%, 50% 50%;
  }
  75% {
    background-position: 34% 46%, 92% 0%, 50% 50%;
  }
  100% {
    background-position: 0% 8%, 100% 12%, 50% 50%;
  }
}

@keyframes auroraHighlightDrift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 0%;
  }
  50% {
    background-position: 84% 22%, 18% 10%, 92% 14%;
  }
  100% {
    background-position: 132% 10%, -18% 28%, 18% 24%;
  }
}

@keyframes auroraMistDrift {
  0% {
    transform: translate3d(-4%, 2%, 0) scale(1.02) rotate(-4deg);
    background-position: 0% 42%, 42% 48%, 100% 46%;
    opacity: 0.62;
  }
  50% {
    transform: translate3d(3%, -3%, 0) scale(1.12) rotate(3deg);
    background-position: 58% 36%, 86% 54%, 28% 40%;
    opacity: 0.92;
  }
  100% {
    transform: translate3d(2%, 4%, 0) scale(1.04) rotate(-2deg);
    background-position: 112% 50%, 132% 44%, -18% 52%;
    opacity: 0.7;
  }
}

@keyframes auroraFallbackBand {
  0% {
    transform: translate3d(-6%, 8%, 0) rotate(-10deg) scale(1);
    background-position: 0% 50%;
  }
  50% {
    transform: translate3d(4%, -6%, 0) rotate(8deg) scale(1.08);
    background-position: 100% 50%;
  }
  100% {
    transform: translate3d(-2%, 5%, 0) rotate(-4deg) scale(1.02);
    background-position: 200% 50%;
  }
}

@keyframes tideGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -4%, 0) scale(1.08);
  }
}

@keyframes auroraSweep {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 50%, 0% 50%;
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.06);
    background-position: 100% 44%, 70% 56%;
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
    background-position: 180% 50%, 160% 48%;
  }
}

@keyframes auroraBandShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes auroraField {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 50%, 20% 40%, 0% 70%, 0% 50%;
  }
  50% {
    transform: translate3d(2%, -1%, 0) scale(1.04);
    background-position: 80% 46%, 70% 50%, 60% 78%, 65% 48%;
  }
  100% {
    transform: translate3d(-2%, 2%, 0) scale(1.02);
    background-position: 180% 52%, 160% 40%, 140% 76%, 180% 50%;
  }
}

@keyframes auroraFieldSoft {
  0% {
    background-position: 0% 40%, 30% 30%, 0% 50%, 0% 50%;
  }
  100% {
    background-position: 180% 50%, 170% 44%, 160% 50%, 180% 50%;
  }
}

@keyframes ringPulse {
  0%, 100% {
    opacity: 0.22;
    transform: scale(1);
  }
  50% {
    opacity: 0.48;
    transform: scale(1.06);
  }
}

@keyframes foamShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2%, 1%, 0);
  }
}

@media (max-width: 1220px) {
  .landing-hero,
  .landing-story,
  .system-grid,
  .flow-grid,
  .app-hero-strip,
  .map-layout,
  .insight-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-preview-card-wide {
    grid-column: 1 / -1;
  }

  .marine-map {
    height: 540px;
  }
}

@media (max-width: 1460px) {
  .landing-title {
    max-width: none;
    font-size: clamp(3rem, 5vw, 4.8rem);
  }
}

@media (max-width: 780px) {
  .landing-shell,
  .page-shell {
    padding: 16px 14px 56px;
  }

  .app-card {
    padding: 18px;
    border-radius: 10px;
  }

  .landing-header,
  .site-header,
  .section-heading,
  .map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    top: 10px;
    padding: 12px 14px;
  }

  .landing-nav,
  .site-nav,
  .landing-actions,
  .map-actions {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
  }

  .landing-copy,
  .landing-panel,
  .story-card,
  .system-card,
  .flow-card,
  .cta-card,
  .hero-panel,
  .panel,
  .app-hero-note {
    padding: 18px;
  }

  .landing-hero-frame {
    min-height: 76vh;
    padding: 18px;
    border-radius: 22px;
  }

  .hero-frame-top,
  .hero-frame-bottom {
    gap: 10px;
  }

  .hero-frame-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero-frame-center {
    min-height: 44vh;
  }

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

  .hero-preview-card-wide,
  .hero-preview-card-compact {
    min-height: auto;
  }

  .hero-frame-side {
    display: none;
  }

  .flow-card.wide {
    grid-column: span 1;
  }

  .flow-pulse,
  .tide-rings {
    display: none;
  }

  .landing-title {
    max-width: none;
    font-size: 3.2rem;
  }

  .search-row,
  .compact,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .marine-map {
    height: 420px;
  }

  .map-center-label {
    width: calc(100% - 28px);
    justify-content: center;
  }

  .map-indicator button {
    min-width: 96px;
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-block {
    opacity: 1;
    transform: none;
  }
}
