/* ─────────────────────────────────────────────
   HarborBoard WWW — Marketing Site Styles
   ───────────────────────────────────────────── */

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

:root {
  --bg:           #0b0f14;
  --bg-surface:   #111820;
  --bg-raised:    #1a2330;
  --border:       rgba(255,255,255,0.08);
  --border-lit:   rgba(255,255,255,0.14);
  --text:         #e8edf2;
  --text-muted:   #7a8fa8;
  --text-dim:     #4a5f76;
  --accent:       #3b82f6;
  --accent-glow:  rgba(59,130,246,0.18);
  --accent-hover: #60a5fa;
  --green:        #22c55e;
  --red:          #ef4444;
  --gold:         #f59e0b;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.6);
  --font:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --max-w:        1120px;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────── */

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Layout ─────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section:first-of-type { padding-top: 0; }

/* ── Nav ────────────────────────────────────── */

nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(11,15,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo svg { width: 28px; height: 28px; color: var(--accent); }

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-raised);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  font-family: var(--font);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-raised);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-lit);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 7px;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border-lit);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow span { color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.hero h1 {
  max-width: 760px;
  margin: 0 auto 24px;
  background: linear-gradient(160deg, #e8edf2 30%, #7a8fa8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero-note strong { color: var(--text-muted); font-weight: 500; }

@media (max-width: 680px) {
  .nav-links { display: none; }
  .btn-ghost.nav-signin { display: none; }
}

/* ── Section shared ─────────────────────────── */

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 14px 0 48px;
  line-height: 1.75;
}

/* ── How It Works ───────────────────────────── */

.how-it-works {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 56px;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border-lit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.step-content code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.step-connector {
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--border-lit);
  margin-top: 24px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--border-lit);
  border-right: 1px solid var(--border-lit);
  transform: rotate(45deg);
}

.how-cta { text-align: center; }

@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 32px; }
  .step-connector {
    width: 1px;
    height: 24px;
    margin-top: 0;
    margin-left: 23px;
  }
  .step-connector::after {
    right: -3px;
    top: auto;
    bottom: -4px;
    transform: rotate(135deg);
  }
}

/* ── Pricing Table ──────────────────────────── */

.pricing {
  background: var(--bg);
}

.ptable-wrap {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-lit);
  overflow: hidden;
  overflow-x: auto;
}

.ptable {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

/* Header */
.ptable thead tr {
  background: var(--bg-raised);
}

.ptable-feature-col {
  width: 56%;
  padding: 0;
}

.ptable-plan-col {
  width: 22%;
  padding: 24px 16px;
  text-align: center;
  border-left: 1px solid var(--border);
  vertical-align: top;
}

.ptable-plan-paid {
  background: linear-gradient(180deg, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0.03) 100%);
  border-left-color: rgba(59,130,246,0.4);
}

.ptable-plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.ptable-plan-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ptable-plan-price {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}

.ptable-plan-price span {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.ptable-plan-url {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  word-break: break-all;
  line-height: 1.5;
}

.ptable-plan-url em {
  font-style: normal;
  color: var(--accent);
}

.ptable-cta {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

/* Body rows */
.ptable tbody td {
  padding: 10px 16px;
  font-size: 0.87rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.ptable tbody td:nth-child(2),
.ptable tbody td:nth-child(3) {
  text-align: center;
  border-left: 1px solid var(--border);
}

.ptable tbody td:nth-child(3) {
  border-left-color: rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.02);
}

.ptable tbody tr:not(.ptable-group):hover td {
  background: var(--bg-surface);
}

.ptable tbody tr:not(.ptable-group):hover td:nth-child(3) {
  background: rgba(59,130,246,0.05);
}

/* Group header rows */
.ptable-group td {
  padding: 8px 16px 6px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: var(--bg);
  border-top: 1px solid var(--border-lit);
}

.ptable-group td:nth-child(2),
.ptable-group td:nth-child(3) {
  background: var(--bg);
}

/* Check / dash marks */
.pt-yes {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.pt-no {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Footnote */
.ptable-footnote {
  max-width: 620px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.ptable-footnote strong { color: var(--text-muted); }
.ptable-footnote .plank { color: var(--gold); }

@media (max-width: 560px) {
  .ptable-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -24px;
  }
  .ptable-plan-url { display: none; }
  .ptable-plan-price { font-size: 1.5rem; }
}

/* ── Dashboard Preview ──────────────────────── */

.preview { background: var(--bg); }

.preview h2 { max-width: 560px; }

.browser-wrap { position: relative; }

.browser-mockup {
  background: var(--bg-raised);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}

.browser-toolbar {
  background: var(--bg-surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 360px;
}

.browser-screen {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.browser-screen::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-raised));
  pointer-events: none;
}

.browser-caption {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

.browser-caption a { color: var(--text-muted); }
.browser-caption a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .browser-screen { height: 380px; }
}

/* ── Dashboard Mockup ───────────────────────── */

.dash-mockup {
  background: #f0f4f8;
  min-height: 100%;
  padding: 0;
  font-family: var(--font);
  overflow: hidden;
}

.dash-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.dash-logo { width: 28px; height: 28px; color: #3b82f6; }

.dash-boat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.dash-boat-sub { font-size: 0.75rem; color: #64748b; }

.dash-updated {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.dash-card {
  margin: 12px 16px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
}

.dash-conditions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.dash-conditions-row + .dash-conditions-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.dash-label {
  color: #64748b;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.dash-value {
  color: #1e293b;
  font-weight: 600;
  font-family: var(--font-mono);
}

.dash-sep { color: #cbd5e1; }

.dash-live-badge {
  margin-left: auto;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid #bbf7d0;
}

.dash-recommendation {
  border-left: 3px solid #fbbf24;
  background: #fffbeb;
}

.dash-rec-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #92400e;
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.dash-rec-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.dash-rec-body {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
}

.dash-rec-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #fde68a;
}

.dash-rec-tag {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 500;
}

.dash-chart-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.dash-chart-svg { width: 100%; height: 80px; display: block; }

.dash-chart-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ── Footer ────────────────────────────────── */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand { max-width: 240px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-logo svg { color: var(--accent); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-nav { display: flex; gap: 48px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

.footer-inspiration { font-size: 0.8rem; color: var(--text-dim); }

.footer-inspiration a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
}

.footer-inspiration a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 680px) {
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
