/* =========================================================
   杨帆云 (yfanyun.mom) - Nocturnal Maritime-Chart Design System
   Pure Native CSS · Zero External Libraries · Instant Paint
   ========================================================= */

:root {
  /* Daytime Calm Nautical Chart (Default Light Mode) */
  --bg: #f4f8fb;
  --bg-elevated: #ffffff;
  --bg-subtle: #eaf1f7;
  --bg-glass: rgba(244, 248, 251, 0.8);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);
  --text: #0b192c;
  --text-secondary: #43566e;
  --text-muted: #64748b;
  --border: rgba(14, 116, 144, 0.13);
  --border-strong: rgba(14, 116, 144, 0.24);

  /* Calm Sky-Cyan & Seafoam-Teal Accents */
  --accent: #0284c7;
  --accent-bright: #38bdf8;
  --accent-ink: #07111d;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --teal: #0d9488;
  --teal-bright: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);

  /* Subtle Maritime Grid & Shadows */
  --grid-line: rgba(14, 116, 144, 0.05);
  --shadow-sm: 0 2px 8px rgba(7, 17, 29, 0.04);
  --shadow-md: 0 12px 28px rgba(7, 17, 29, 0.07);
  --rim-glow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 10px 28px rgba(2, 132, 199, 0.1);

  /* Radii & Easing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-transition: background-color 0.4s var(--spring),
                      color 0.4s var(--spring),
                      border-color 0.4s var(--spring),
                      box-shadow 0.4s var(--spring);
}

[data-theme="dark"] {
  /* Nocturnal Maritime-Chart Palette */
  --bg: #07111d;
  --bg-elevated: #0f1b2b;
  --bg-subtle: #0a1524;
  --bg-glass: rgba(7, 17, 29, 0.78);
  --bg-glass-strong: rgba(15, 27, 43, 0.88);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(56, 189, 248, 0.14);
  --border-strong: rgba(56, 189, 248, 0.26);

  --accent: #38bdf8;
  --accent-bright: #38bdf8;
  --accent-ink: #07111d;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --teal: #2dd4bf;
  --teal-bright: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);

  --grid-line: rgba(56, 189, 248, 0.045);
  --shadow-sm: 0 2px 10px rgba(2, 6, 14, 0.35);
  --shadow-md: 0 16px 36px rgba(2, 6, 14, 0.48);
  --rim-glow: 0 0 0 1px rgba(56, 189, 248, 0.42), 0 14px 32px rgba(2, 6, 14, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header & Maritime Navigation Bar
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--theme-transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
  transition: opacity 0.25s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}

.brand-wordmark {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
  font-style: italic;
  transform: skewX(-4deg);
  white-space: nowrap;
}

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

.nav-links a {
  position: relative;
  padding: 7px 11px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.25s var(--spring), background-color 0.25s var(--spring);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-links a.nav-news {
  color: var(--accent);
  font-weight: 600;
}

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

/* Mobile Quick-Scroll Anchor Strip */
.mobile-nav-strip {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-nav-strip::-webkit-scrollbar {
  display: none;
}

.mobile-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 8px 16px;
  width: max-content;
}

.mobile-nav-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.nav-active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.mobile-nav-list a.nav-news {
  color: var(--accent);
  font-weight: 600;
}

/* Refined Transparent Glassmorphic Day/Night Toggle */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.25s var(--spring),
              border-color 0.3s var(--spring),
              background-color 0.3s var(--spring),
              box-shadow 0.3s var(--spring);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.theme-toggle svg {
  position: absolute;
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.35s var(--spring), transform 0.45s var(--spring);
}

.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-40deg) scale(0.65);
}

[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(40deg) scale(0.65);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* =========================================================
   Buttons (Pill for Navbar · Rectangular for Hero & Cards)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--spring),
              box-shadow 0.3s var(--spring),
              background-color 0.25s var(--spring),
              border-color 0.25s var(--spring),
              color 0.25s var(--spring);
  text-align: center;
  white-space: nowrap;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.86rem;
  min-height: 36px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.98rem;
  min-height: 48px;
}

.btn-cyan {
  background: var(--accent-bright);
  color: var(--accent-ink);
  border-color: var(--accent-bright);
}

.btn-cyan:hover {
  background: #56c8fb;
  border-color: #56c8fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(56, 189, 248, 0.24);
}

.btn-outline {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-bright);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Split Maritime-Chart Hero Section
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 52px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  transition: var(--theme-transition);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
}

.hero-left h1 {
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-left h1 .brand-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.65;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.72;
}

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

/* Right Hero: Dark-Glass Nautical Route Card */
.chart-stage {
  perspective: 1000px;
}

.chart-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 27, 43, 0.96) 0%, rgba(7, 17, 29, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #f8fafc;
  box-shadow: 0 22px 48px rgba(4, 12, 24, 0.34), inset 0 1px 0 rgba(56, 189, 248, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.28s var(--spring), border-color 0.35s var(--spring), box-shadow 0.35s var(--spring);
  will-change: transform;
}

.chart-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 24px 52px rgba(4, 12, 24, 0.45);
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  font-size: 0.8rem;
  color: #94a3b8;
}

.chart-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.chart-coord {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #38bdf8;
  opacity: 0.88;
}

.chart-canvas {
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(7, 17, 29, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.12);
  overflow: hidden;
  margin-bottom: 14px;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ping-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ping-item {
  background: rgba(15, 27, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: border-color 0.25s var(--spring);
}

.ping-item:hover {
  border-color: #38bdf8;
}

.ping-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.ping-ms {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2dd4bf;
}

/* Lower Hero: 4-Column Metric Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring),
              border-color 0.3s var(--spring),
              box-shadow 0.3s var(--spring),
              background-color 0.4s var(--spring);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.metric-val {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.metric-val span {
  color: var(--accent);
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* =========================================================
   Sections & Smooth Anchor Arrival Animation
   ========================================================= */
.section {
  padding: 76px 0;
  scroll-margin-top: 72px;
}

.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--theme-transition);
}

@keyframes sectionArrive {
  0% {
    opacity: 0.72;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-arrive {
  animation: sectionArrive 0.55s var(--spring) both;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* =========================================================
   Shared Rim-Glow Card Behavior
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring),
              border-color 0.3s var(--spring),
              box-shadow 0.3s var(--spring),
              background-color 0.4s var(--spring);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

/* Core Advantages (3 Illustrated Maritime Cards) */
.feature-visual {
  width: 100%;
  height: 128px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--theme-transition);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* =========================================================
   Streaming & AI Support Cards (Restrained Maritime Style)
   ========================================================= */
.media-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring),
              border-color 0.3s var(--spring),
              box-shadow 0.3s var(--spring),
              background-color 0.4s var(--spring);
}

.media-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.media-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.media-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-monogram {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.media-card:hover .media-monogram {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}

.media-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.media-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.media-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  white-space: nowrap;
}

.media-desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.media-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.media-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* =========================================================
   Real-World Pricing Tiers & Comparison Table
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 40px;
}

.plan-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring),
              border-color 0.3s var(--spring),
              box-shadow 0.3s var(--spring),
              background-color 0.4s var(--spring);
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.plan-card.featured {
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.plan-ribbon {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent-bright);
  color: var(--accent-ink);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.plan-tier {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.plan-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 40px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.plan-currency {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.plan-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.plan-period {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.check-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Comparison Table */
.table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.89rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.compare-table thead th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.compare-table thead th.col-featured {
  color: var(--accent);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody td {
  color: var(--text-secondary);
}

.compare-table tbody td.col-featured {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.yes-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
}

/* =========================================================
   User Reviews
   ========================================================= */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.review-role {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* =========================================================
   FAQ Accordion (Pure HTML details/summary)
   ========================================================= */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s var(--spring), box-shadow 0.25s var(--spring), background-color 0.4s var(--spring);
}

.faq-item[open] {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

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

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--spring), color 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* =========================================================
   Pre-footer Calm Maritime CTA Banner
   ========================================================= */
.cta-banner {
  background: linear-gradient(145deg, #0f1b2b 0%, #07111d 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 20px 44px rgba(4, 12, 24, 0.28);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #f8fafc;
}

.cta-banner p {
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 0.98rem;
}

/* =========================================================
   Footer (Strictly 4 Titles Opening Standalone Pages)
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 34px 0;
  transition: var(--theme-transition);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

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

/* =========================================================
   Subpages (Insights / About / Terms / Privacy / Sitemap)
   ========================================================= */
.doc-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  transition: var(--theme-transition);
}

.doc-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}

.doc-hero p {
  color: var(--text-secondary);
  max-width: 700px;
}

.doc-content {
  padding: 48px 0 72px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.doc-article {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.doc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--spring), box-shadow 0.3s var(--spring), background-color 0.4s var(--spring);
}

.doc-card:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.doc-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.doc-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 12px;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.doc-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.sitemap-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  transition: border-color 0.25s var(--spring), color 0.25s ease, transform 0.25s var(--spring);
}

.sitemap-links a:hover {
  border-color: var(--accent-bright);
  color: var(--accent);
  transform: translateX(3px);
}

.sitemap-links span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.highlight-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

/* =========================================================
   SEO Long-Form Article Layout (Breadcrumb, TOC, Prose, Related)
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.article-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.toc-card {
  position: sticky;
  top: 88px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.toc-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: var(--accent-bright);
}

.toc-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

.prose-card section {
  scroll-margin-top: 86px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.prose-card section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.prose-card h2 {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.prose-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 10px;
}

.prose-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.82;
  margin-bottom: 14px;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.prose-card a.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-card a.inline-link:hover {
  opacity: 0.85;
}

.prose-card ul,
.prose-card ol {
  margin: 10px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.prose-card li {
  margin-bottom: 7px;
}

.prose-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--accent);
}

.prose-table-wrap {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.88rem;
}

.prose-table th,
.prose-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.prose-table thead th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 700;
}

.prose-table tbody td {
  color: var(--text-secondary);
}

.prose-table tbody tr:last-child td {
  border-bottom: none;
}

.related-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.related-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--spring), border-color 0.25s var(--spring), box-shadow 0.25s var(--spring);
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.related-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}

.related-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.related-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Insights Hub Article Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), border-color 0.3s var(--spring), box-shadow 0.3s var(--spring), background-color 0.4s var(--spring);
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-bright);
  box-shadow: var(--rim-glow);
}

.insight-card.featured-article {
  border-color: var(--accent-bright);
}

.insight-card h2 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.48;
  color: var(--text);
}

.insight-card p {
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.68;
  flex: 1;
}

.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   Responsive Media Queries (Mobile Single-Column & Touch)
   ========================================================= */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .mobile-nav-strip {
    display: block;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .grid-3,
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
    order: -1;
  }

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

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .section {
    padding: 52px 0;
    scroll-margin-top: 104px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  /* Strict Single-Column Display on Mobile */
  .grid-3,
  .grid-4,
  .pricing-grid,
  .doc-grid,
  .insights-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prose-card {
    padding: 22px 18px;
  }

  .related-section {
    padding: 20px 16px;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ping-row {
    grid-template-columns: 1fr;
  }

  /* Touch-Friendly Buttons */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .plan-card .btn,
  .cta-banner .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.98rem;
  }

  .card,
  .plan-card,
  .doc-card {
    padding: 22px 18px;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-body {
    padding: 0 18px 16px;
  }

  .cta-banner {
    padding: 36px 20px;
  }

  .footer-nav {
    gap: 10px 24px;
  }
}

@media (max-width: 480px) {
  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    font-size: 1.2rem;
  }

  .header-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 38px;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

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