/* BoatNav — shared styles (matches design system document) */

:root {
  --ink:       #0B1929;
  --ink-2:     #0D2135;
  --ink-3:     #112840;

  --blue-1:    #042C53;
  --blue-2:    #0C447C;
  --blue-3:    #185FA5;
  --blue-4:    #378ADD;
  --blue-5:    #85B7EB;
  --blue-6:    #B5D4F4;
  --blue-7:    #E6F1FB;

  --green-3:   #0F6E56;
  --green-4:   #1D9E75;
  --green-5:   #5DCAA5;
  --green-6:   #9FE1CB;

  --amber-4:   #BA7517;
  --amber-5:   #EF9F27;

  --red-4:     #E24B4A;

  --purple-4:  #7F77DD;
  --purple-5:  #AFA9EC;

  --gray-3:    #5F5E5A;
  --gray-4:    #888780;
  --gray-5:    #B4B2A9;
  --gray-7:    #F1EFE8;

  --bg:        #F7F6F2;
  --surface:   #FFFFFF;
  --border:    rgba(11,25,41,.1);
  --border-md: rgba(11,25,41,.18);
  --text:      #0B1929;
  --text-2:    #3A5070;
  --text-3:    #7A90A8;

  --mono: 'Space Mono', ui-monospace, 'SF Mono', monospace;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-3); text-decoration: none; }
a:hover { color: var(--blue-4); }

/* ── NAV ── */
.topnav {
  background: var(--ink);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--blue-5);
  letter-spacing: .06em;
  margin-right: 40px;
  white-space: nowrap;
  font-weight: 700;
}
.nav-logo span { color: var(--green-4); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px;
  color: var(--gray-4);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--blue-5); background: rgba(55,138,221,.08); }
.nav-link.active { color: var(--blue-5); background: rgba(55,138,221,.12); }
.nav-spacer { flex: 1; }
.nav-cta {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--blue-5);
  padding: 7px 14px;
  border-radius: var(--r-sm);
  background: rgba(55,138,221,.12);
  border: 1px solid rgba(55,138,221,.25);
  letter-spacing: .03em;
  transition: background .15s;
}
.nav-cta:hover { background: rgba(55,138,221,.2); color: var(--blue-6); }

/* ── LAYOUT ── */
.page { max-width: 1100px; margin: 0 auto; padding: 48px 32px 80px; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 48px 32px 80px; }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.6;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
}
.sub-label {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── HERO ── */
.hero {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 72px 56px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(55,138,221,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-4);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-title {
  font-size: 56px;
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-title strong { color: var(--blue-5); font-weight: 500; }
.hero-desc {
  font-size: 17px;
  color: var(--gray-4);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Device illustration right side */
.hero-device {
  position: relative;
  aspect-ratio: 9 / 18;
  max-width: 280px;
  margin-left: auto;
  background: var(--ink-2);
  border-radius: 28px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.hero-device-notch {
  width: 60px; height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  margin: 0 auto 10px;
}
.hero-device-map {
  background: #0D2D4A;
  border-radius: 14px;
  flex: 1;
  height: calc(100% - 130px);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.hero-vessel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-5);
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(133,183,235,.25);
}
.hero-depth {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(4,44,83,.9);
  border: 1px solid var(--blue-3);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue-5);
  font-weight: 700;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.hero-stat {
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.hero-sv { font-family: var(--mono); font-size: 14px; font-weight: 700; color: #E8F4FF; display: block; }
.hero-sl { font-size: 8px; color: var(--blue-5); opacity: .7; margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: opacity .15s, transform .1s, background .15s;
  letter-spacing: .01em;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-appstore {
  background: var(--ink-2);
  color: var(--blue-5);
  border: 1px solid rgba(133,183,235,.2);
}
.btn-appstore:hover { background: var(--ink-3); color: var(--blue-6); }

.btn-navy { background: var(--ink-2); color: var(--blue-5); }
.btn-navy:hover { opacity: .85; }

.btn-go { background: #073D1E; color: var(--green-6); }
.btn-go:hover { opacity: .85; }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-md);
}
.btn-outline:hover { background: rgba(11,25,41,.04); }

.btn-outline-light {
  background: transparent;
  color: var(--gray-4);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-outline-light:hover { background: rgba(255,255,255,.04); color: var(--blue-5); }

/* ── FEATURE GRID ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--blue-5); }
.feature-icon.green { background: rgba(29,158,117,.1); }
.feature-icon.green svg { color: var(--green-4); }
.feature-icon.amber { background: rgba(239,159,39,.1); }
.feature-icon.amber svg { color: var(--amber-4); }
.feature-icon.purple { background: rgba(127,119,221,.1); }
.feature-icon.purple svg { color: var(--purple-4); }
.feature-icon.red { background: rgba(226,75,74,.1); }
.feature-icon.red svg { color: var(--red-4); }
.feature-card h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ── PRO SECTION ── */
.pro-section {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.pro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(127,119,221,.12) 0%, transparent 70%);
  pointer-events: none;
}
.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
}
.pro-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--amber-5);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.pro-title {
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.pro-desc {
  font-size: 15px;
  color: var(--gray-4);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pro-features { display: flex; flex-direction: column; gap: 12px; }
.pro-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}
.pro-feature-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(133,183,235,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pro-feature-icon svg { width: 14px; height: 14px; color: var(--blue-5); }
.pro-feature-text { flex: 1; }
.pro-feature-title { font-size: 14px; font-weight: 500; color: #E8F4FF; margin-bottom: 2px; }
.pro-feature-desc { font-size: 12px; color: var(--gray-4); line-height: 1.5; }

.price-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 28px;
  color: #fff;
}
.price-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.price-card-label { font-family: var(--mono); font-size: 10px; color: var(--green-5); letter-spacing: .1em; text-transform: uppercase; }
.price-card-name { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.price-card-price { font-family: var(--mono); font-size: 32px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.price-card-price-unit { font-size: 14px; color: var(--gray-4); font-weight: 400; font-family: var(--sans); }
.price-card-trial { font-size: 12px; color: var(--green-5); margin-bottom: 20px; }
.price-card-divider { height: 1px; background: rgba(255,255,255,.08); margin: 20px 0; }
.price-alt { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-4); }
.price-alt-val { font-family: var(--mono); font-weight: 500; color: var(--blue-5); }

/* ── CONTENT PAGES (support, privacy) ── */
.content-page h1 {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.content-page .subtitle {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 40px;
}
.content-page h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
}
.content-page h3 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.content-page p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.7;
}
.content-page ul, .content-page ol {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--text-2);
}
.content-page li { margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
.content-page strong { color: var(--text); font-weight: 500; }
.content-page code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--gray-7);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}
.content-page .updated {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 15px;
}
.faq-item p {
  margin-bottom: 0;
  font-size: 14px;
}

.contact-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 40px;
  color: #fff;
}
.contact-card h2 {
  color: #fff;
  margin-top: 0;
}
.contact-card p { color: var(--gray-4); }
.contact-card a { color: var(--blue-5); font-family: var(--mono); font-size: 14px; }

/* ── FOOTER ── */
.footer {
  margin-top: 64px;
  padding: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-family: var(--mono); font-size: 13px; color: var(--text-3); font-weight: 700; }
.footer-logo span { color: var(--green-4); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-3); letter-spacing: .02em; }
.footer-links a:hover { color: var(--text-2); }
.footer-meta { font-size: 11px; color: var(--text-3); font-family: var(--mono); letter-spacing: .05em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .pro-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { max-width: 220px; margin: 0 auto; }
  .hero-title { font-size: 42px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topnav { padding: 0 16px; }
  .nav-links { display: none; }
  .page, .page-narrow { padding: 32px 20px 60px; }
  .hero { padding: 48px 24px; border-radius: var(--r-lg); }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 15px; }
  .pro-section { padding: 40px 24px; border-radius: var(--r-lg); }
  .pro-title { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .content-page h1 { font-size: 32px; }
  .footer { flex-direction: column; text-align: center; }
}
