:root {
  color-scheme: light;
  --bg: #07141d;
  --bg-top: #0d2230;
  --surface: rgba(10, 27, 38, 0.78);
  --surface-strong: rgba(8, 23, 33, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(187, 223, 242, 0.18);
  --line-strong: rgba(187, 223, 242, 0.3);
  --text: #ecf6fb;
  --muted: #b1c9d8;
  --muted-strong: #d5e7f1;
  --accent: #7ce3da;
  --accent-strong: #1fb2a6;
  --accent-warm: #ffbd78;
  --danger-soft: rgba(255, 154, 142, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --body-font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(124, 227, 218, 0.16), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(255, 189, 120, 0.12), transparent 18%),
    radial-gradient(circle at 50% 75%, rgba(31, 178, 166, 0.14), transparent 24%),
    linear-gradient(180deg, #0a2230 0%, var(--bg) 34%, #071119 100%);
  font-family: var(--body-font);
  line-height: 1.65;
}

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

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #041018;
  z-index: 30;
}

.skip-link:focus {
  top: 12px;
}

.site-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding-top: 18px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 19, 28, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(180deg, #74ddd5 0%, #1a6f88 100%);
  color: #062231;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 14px;
  transition: color 140ms ease, opacity 140ms ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
button.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #07222e;
  background: linear-gradient(180deg, #9df5ee 0%, #73ddd4 100%);
  box-shadow: 0 16px 28px rgba(31, 178, 166, 0.26);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.button-ghost {
  color: var(--muted-strong);
  background: transparent;
  border-color: var(--line);
}

.button[hidden] {
  display: none;
}

.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.page {
  padding: 28px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(7, 23, 34, 0.78);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -170px;
  right: -90px;
  background: radial-gradient(circle, rgba(124, 227, 218, 0.18), transparent 68%);
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: -130px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 189, 120, 0.15), transparent 66%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 227, 218, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-head h2,
.card h3,
.cta-band h2 {
  margin: 0;
  font-family: var(--display-font);
  letter-spacing: -0.04em;
  line-height: 0.97;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(48px, 8vw, 82px);
}

.hero-copy p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mini-note,
.section-note,
.legal-body .meta,
.download-state {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel,
.card,
.faq-item,
.support-card,
.cta-band,
.page-hero,
.legal-body,
.legal-nav,
.feature-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 24, 34, 0.74);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 24px;
}

.hero-panel h2,
.page-hero p,
.card p,
.card li,
.legal-body p,
.legal-body li,
.support-card p {
  color: var(--muted-strong);
}

.hero-stack,
.card-stack,
.legal-stack,
.support-grid,
.feature-grid,
.detail-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

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

.tide-card strong {
  display: block;
  font-size: 18px;
}

.tide-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-top: 64px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-strong);
}

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

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

.card {
  padding: 24px;
}

.card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.card p {
  margin: 0;
}

.card ul,
.legal-body ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.card li + li,
.legal-body li + li {
  margin-top: 6px;
}

.number-pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(124, 227, 218, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.tag {
  min-height: 34px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-top span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row .tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.feature-banner {
  padding: 30px;
}

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

.current-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(124, 227, 218, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(124, 227, 218, 0.14);
}

.current-card strong {
  display: block;
  font-size: 18px;
}

.current-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted-strong);
}

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

.support-card {
  padding: 22px;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.support-card .button {
  margin-top: 18px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 64px;
  padding: 32px;
}

.cta-band h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.cta-band p {
  max-width: 680px;
  color: var(--muted-strong);
}

.download-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.prelaunch-note[hidden],
.download-state[hidden] {
  display: none;
}

.page-hero {
  margin-top: 18px;
  padding: 32px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.32fr) minmax(0, 0.68fr);
  gap: 18px;
  margin-top: 24px;
}

.legal-nav,
.legal-body {
  padding: 26px;
}

.legal-nav {
  position: sticky;
  top: 104px;
  height: fit-content;
}

.legal-nav h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.legal-nav a {
  display: block;
  color: var(--muted-strong);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-nav a:last-child {
  border-bottom: 0;
}

.legal-body section + section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-body h2,
.legal-body h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.legal-body h3 {
  font-size: 22px;
}

.legal-body p {
  margin: 0 0 14px;
}

.inline-link {
  color: var(--accent);
}

.site-footer {
  padding: 38px 0 34px;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .download-grid,
  .legal-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

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

  .legal-nav {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

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

  .nav-shell,
  .footer-shell,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .page-hero,
  .cta-band,
  .card,
  .legal-nav,
  .legal-body,
  .hero-panel,
  .feature-banner,
  .support-card {
    padding: 22px;
    border-radius: 24px;
  }

  .section {
    padding-top: 48px;
  }

  .grid-3,
  .grid-2,
  .mock-map {
    grid-template-columns: 1fr;
  }

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

  .hero-copy p {
    font-size: 16px;
  }
}
