/* =========================================================
   杨帆云 (yfanyun.homes)
   Apple-Flagship Bento-Grid & Marine-Cobalt Minimalist UI
   Pure Native CSS · Zero External Frameworks · Instant Load
   ========================================================= */

:root {
  /* Pure Cupertino Daylight Palette (Default) */
  --bg-page: #ffffff;
  --bg-bento: #f5f7fa;
  --bg-bento-hover: #eef2f7;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-toggle: rgba(245, 247, 250, 0.72);
  --bg-toggle-hover: rgba(235, 240, 247, 0.96);
  --bg-pill-soft: rgba(0, 102, 204, 0.08);

  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #6e6e73;
  --text-inverse: #ffffff;

  --accent: #0066cc;
  --accent-hover: #0055b3;
  --accent-active: #004494;
  --accent-soft: rgba(0, 102, 204, 0.1);
  --status-emerald: #22c55e;
  --status-emerald-ring: rgba(34, 197, 94, 0.18);

  --border: rgba(29, 29, 31, 0.07);
  --border-strong: rgba(29, 29, 31, 0.14);
  --border-specular: rgba(255, 255, 255, 0.85);
  --border-accent: rgba(0, 102, 204, 0.34);

  --shadow-bento: 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-bento-hover: 0 12px 30px -12px rgba(29, 29, 31, 0.11),
                        0 2px 6px rgba(0, 0, 0, 0.03),
                        inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-pill: 0 2px 8px rgba(0, 102, 204, 0.22);
  --shadow-pill-hover: 0 6px 16px rgba(0, 102, 204, 0.3);

  --radius-bento: 28px;
  --radius-inner: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container-max: 1120px;
  --header-height: 64px;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-transition: background-color 0.36s var(--spring),
                      color 0.36s var(--spring),
                      border-color 0.36s var(--spring),
                      box-shadow 0.36s var(--spring);
}

[data-theme="dark"] {
  --bg-page: #0b0c0f;
  --bg-bento: #16181d;
  --bg-bento-hover: #1d2027;
  --bg-elevated: #1c1e24;
  --bg-glass: rgba(11, 12, 15, 0.78);
  --bg-toggle: rgba(255, 255, 255, 0.07);
  --bg-toggle-hover: rgba(255, 255, 255, 0.15);
  --bg-pill-soft: rgba(41, 151, 255, 0.14);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #86868b;
  --text-inverse: #ffffff;

  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-active: #0077ed;
  --accent-soft: rgba(41, 151, 255, 0.15);
  --status-emerald: #22c55e;
  --status-emerald-ring: rgba(34, 197, 94, 0.22);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-specular: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(41, 151, 255, 0.45);

  --shadow-bento: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-bento-hover: 0 14px 32px -12px rgba(0, 0, 0, 0.65),
                        inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-pill: 0 2px 10px rgba(41, 151, 255, 0.25);
  --shadow-pill-hover: 0 6px 18px rgba(41, 151, 255, 0.36);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Helvetica Neue", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.theme-ready,
.theme-ready *,
.theme-ready *::before,
.theme-ready *::after {
  transition: var(--theme-transition);
}

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

img,
svg {
  display: block;
}

main {
  flex: 1;
}

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

/* =========================================================
   Sticky Frosted-White Top Navigation Bar
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--text-primary);
  text-decoration: none;
  padding: 2px 0;
}

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

.brand-wordmark {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-primary);
  font-style: italic;
}

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

.nav-links a {
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--spring), background-color 0.25s var(--spring);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
  background-color: var(--bg-bento);
}

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

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

/* Refined Glassmorphic Day/Night Toggle */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-toggle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.25s var(--spring), background-color 0.25s ease, border-color 0.25s ease;
}

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

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

.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

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

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

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

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

/* Tactile Marine-Cobalt Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 0.24s var(--spring),
              background-color 0.24s ease,
              border-color 0.24s ease,
              box-shadow 0.24s ease;
}

.btn:active {
  transform: scale(0.975);
}

.btn-sm {
  padding: 8px 17px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 0.98rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: var(--shadow-pill);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: var(--shadow-pill-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: var(--accent-active);
  transform: scale(0.975);
}

.btn-secondary {
  background-color: var(--bg-bento);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-bento-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* =========================================================
   Bento Surface & Trackpad Tactile Lift
   ========================================================= */
.bento-tile {
  background-color: var(--bg-bento);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  box-shadow: var(--shadow-bento);
  transition: transform 0.34s var(--spring),
              box-shadow 0.34s var(--spring),
              border-color 0.34s var(--spring),
              background-color 0.34s var(--spring);
}

.bento-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-bento-hover);
}

/* Anchor Jump Smooth Highlight Animation */
@keyframes anchorArrive {
  0% {
    opacity: 0.72;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anchor-arrived {
  animation: anchorArrive 0.55s var(--spring);
}

/* =========================================================
   Hero Section & Asymmetric Bento Metrics
   ========================================================= */
.hero {
  padding: 88px 0 64px;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-bento);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-emerald);
  box-shadow: 0 0 0 4px var(--status-emerald-ring);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.65;
  font-weight: 400;
}

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

/* Asymmetric Hero Bento Grid */
.hero-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: 16px;
}

.metric-bento {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 158px;
}

.metric-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-bento-value {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 14px 0 4px;
  line-height: 1.1;
}

.metric-bento-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* =========================================================
   Common Section Layout
   ========================================================= */
.section {
  padding: 72px 0;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   Core Advantages (3 Visual Bento Cards)
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-visual {
  height: 148px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.04) 0%, transparent 100%);
}

.feature-visual svg {
  width: 60px;
  height: 60px;
}

.feature-body {
  padding: 26px 26px 30px;
  flex: 1;
}

.feature-body h3 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.feature-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =========================================================
   Streaming & AI Bento Cards (Zero Bot Icons / Zero Neon)
   ========================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.showcase-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.showcase-head h3 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.showcase-head p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.service-tile {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.28s var(--spring), border-color 0.28s ease;
}

.service-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.service-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-tag {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* =========================================================
   Pricing Bento Grid & Full Comparison Table
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.plan-card {
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.plan-card.plan-featured {
  background-color: var(--bg-elevated);
  border: 1.5px solid var(--accent);
  box-shadow: 0 12px 32px -14px rgba(0, 102, 204, 0.22);
}

.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: var(--bg-pill-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.plan-tier {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

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

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

.plan-amount {
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

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

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

.plan-features svg {
  width: 15px;
  height: 15px;
  color: var(--status-emerald);
  flex-shrink: 0;
}

/* Comparison Table */
.table-wrap {
  background-color: var(--bg-bento);
  border: 1px solid var(--border);
  border-radius: var(--radius-bento);
  overflow-x: auto;
  box-shadow: var(--shadow-bento);
}

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

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  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-primary);
}

.compare-table thead th {
  font-weight: 700;
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.018);
}

[data-theme="dark"] .compare-table thead th {
  background-color: rgba(255, 255, 255, 0.03);
}

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

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

.compare-highlight {
  color: var(--accent);
  font-weight: 600;
}

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

/* =========================================================
   Reviews Bento Cards
   ========================================================= */
.review-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

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

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

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

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

.faq-item {
  background-color: var(--bg-bento);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  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.28s var(--spring), color 0.25s ease;
}

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

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
}

/* =========================================================
   Bottom CTA Bento Banner
   ========================================================= */
.cta-banner {
  padding: 56px 36px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
}

/* =========================================================
   Footer (Strictly 4 Links Only)
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-page);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

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

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

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

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

/* =========================================================
   Subpages (About, Terms, Privacy, Sitemap, Insights)
   ========================================================= */
.page-hero {
  padding: 64px 0 36px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1rem;
}

.doc-content {
  padding: 16px 0 80px;
}

.doc-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.doc-block h2 {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.doc-block p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

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

.doc-list {
  padding-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.node-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.node-box,
.insight-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--spring), border-color 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.insight-tag {
  color: var(--accent);
  font-weight: 600;
}

.insight-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

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

.node-box strong {
  display: block;
  color: var(--text-primary);
}

.node-box span {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.sitemap-group {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  padding: 24px;
}

.sitemap-group h2 {
  font-size: 1.08rem;
  margin-bottom: 14px;
}

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

.sitemap-links a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.94rem;
}

.sitemap-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   Long-Form SEO Article Layout
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

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

.article-meta-badge {
  background-color: var(--bg-pill-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 24px 22px;
}

.article-toc h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

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

.toc-list a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--accent);
  background-color: var(--bg-elevated);
}

.article-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-section h2 {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.article-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 18px 0 10px;
}

.article-section p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 12px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

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

.article-section a.inline-link:hover {
  color: var(--accent-hover);
}

.article-callout {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 16px 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-callout strong {
  color: var(--text-primary);
}

.article-table-wrap {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  overflow-x: auto;
  background-color: var(--bg-elevated);
}

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

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

.article-table th {
  font-weight: 700;
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .article-table th {
  background-color: rgba(255, 255, 255, 0.03);
}

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

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

.article-cta-box {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-inner);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-box h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.article-cta-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.related-section {
  margin-top: 32px;
}

.related-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

.insight-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

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

@media (max-width: 640px) {
  .article-body {
    padding: 24px 20px;
  }

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

  .article-cta-box .btn {
    width: 100%;
    min-height: 46px;
  }
}

/* =========================================================
   Responsive Media Queries
   ========================================================= */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

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

@media (max-width: 640px) {
  :root {
    --header-height: 60px;
    --radius-bento: 22px;
  }

  .container {
    padding: 0 16px;
  }

  .brand-emblem {
    height: 30px;
  }

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

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

  .section {
    padding: 48px 0;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .header-actions .btn-sm {
    min-height: 40px;
    padding: 8px 14px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-bento,
  .grid-3,
  .pricing-grid,
  .showcase-grid,
  .node-grid,
  .insights-grid,
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .metric-bento {
    min-height: auto;
    padding: 22px 20px;
  }

  .showcase-card,
  .plan-card,
  .doc-card,
  .cta-banner {
    padding: 24px 20px;
  }

  .showcase-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .faq-answer {
    padding: 0 18px 18px;
  }

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

  .footer-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
