/* ==========================================================================
   大象网络 (elephantvip.homes) — Official Geometric-Refined Pure Native CSS
   Palette: Marine-Teal Navy (#031b29), Pure White (#ffffff),
            Royal Indigo-Violet (#5d5fef), Warm Gold (#facc15), Charcoal (#222222)
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f7f8fc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-hero: #031b29;
  --bg-footer: #222222;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.78);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --accent: #5d5fef;
  --accent-hover: #4b4ddb;
  --accent-soft: rgba(93, 95, 239, 0.1);
  --accent-border: rgba(93, 95, 239, 0.24);
  --accent-text: #ffffff;

  --gold: #facc15;
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  --shadow-sm: 0 2px 8px rgba(3, 27, 41, 0.05);
  --shadow-md: 0 10px 28px -6px rgba(3, 27, 41, 0.1), 0 4px 10px -4px rgba(93, 95, 239, 0.08);
  --shadow-lift: 0 14px 32px -8px rgba(3, 27, 41, 0.14), 0 6px 16px -6px rgba(93, 95, 239, 0.18);

  --toggle-bg: rgba(3, 27, 41, 0.04);
  --toggle-bg-hover: rgba(93, 95, 239, 0.1);
  --toggle-border: rgba(3, 27, 41, 0.12);
  --toggle-icon: #031b29;
}

html[data-theme="dark"] {
  --bg-page: #05121c;
  --bg-surface: #0a1c2b;
  --bg-surface-alt: #071724;
  --bg-header: rgba(5, 18, 28, 0.88);
  --bg-hero: #031b29;
  --bg-footer: #14191f;

  --text-primary: #f1f5f9;
  --text-secondary: #9fb3c8;
  --text-muted: #7890a8;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.78);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #6c6ef5;
  --accent-hover: #7f81ff;
  --accent-soft: rgba(108, 110, 245, 0.18);
  --accent-border: rgba(108, 110, 245, 0.36);
  --accent-text: #ffffff;

  --gold: #facc15;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.52);
  --shadow-lift: 0 18px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(108, 110, 245, 0.25);

  --toggle-bg: rgba(255, 255, 255, 0.07);
  --toggle-bg-hover: rgba(255, 255, 255, 0.15);
  --toggle-border: rgba(255, 255, 255, 0.16);
  --toggle-icon: #f1f5f9;
}

/* Smooth theme transition activated only when toggling */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Dynamic anchor section arrival highlight */
@keyframes sectionFocusPulse {
  0% { opacity: 0.86; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.anchor-arrive {
  animation: sectionFocusPulse 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Header & Navigation (Pure White in Light Mode)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.32);
}

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

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-news-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

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

/* Refined Translucent Day/Night Toggle Button */
.theme-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--toggle-border);
  background: var(--toggle-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--toggle-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

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

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

.theme-icon {
  position: absolute;
  width: 17px;
  height: 17px;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme="light"] .theme-icon--moon {
  opacity: 0;
  transform: rotate(-45deg) scale(0.5);
}

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

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

/* ==========================================================================
   Buttons & Buoyant 2px Lift Micro-interactions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border: 1px solid transparent;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, background-color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 16px -4px rgba(93, 95, 239, 0.45);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(93, 95, 239, 0.56);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #031b29;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

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

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
  min-height: 50px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section (#031b29 Deep Marine-Teal Navy)
   ========================================================================== */
.hero {
  background-color: var(--bg-hero);
  background-image:
    radial-gradient(ellipse 65% 55% at 80% 45%, rgba(93, 95, 239, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 45% at 12% 15%, rgba(20, 184, 166, 0.1), transparent 65%);
  color: var(--text-on-dark);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(93, 95, 239, 0.18);
  border: 1px solid rgba(93, 95, 239, 0.38);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.025rem;
  color: var(--text-on-dark-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 18px;
  margin-bottom: 30px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.925rem;
  color: #ffffff;
  font-weight: 500;
}

.hero-bullets svg {
  width: 17px;
  height: 17px;
  color: #818cf8;
  flex-shrink: 0;
}

.os-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 210px));
  gap: 12px;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 18px;
  min-height: 48px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(93, 95, 239, 0.32);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, box-shadow 0.24s ease;
}

.os-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(93, 95, 239, 0.48);
}

.hero-map-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

.map-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

/* ==========================================================================
   Common Sections
   ========================================================================== */
.section {
  padding: 76px 0;
  background: var(--bg-page);
}

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

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 0.975rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3 Geometric Feature Cards ("大象网络的特色")
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-border);
}

.geo-icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ==========================================================================
   4 Alternating Minimalist UI Mockup Rows ("为什么选择大象网络")
   ========================================================================== */
.why-stack {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 64px;
}

.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.why-row--reverse .why-visual {
  order: -1;
}

.why-copy h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.why-copy p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.why-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.why-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.why-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.why-mockup:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* ==========================================================================
   Streaming & AI Showcase Cards
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-icon--netflix { background: #e50914; }
.brand-icon--youtube { background: #dc2626; }
.brand-icon--disney { background: #1d4ed8; }
.brand-icon--hbo { background: #5b21b6; }
.brand-icon--chatgpt { background: #0d9488; }
.brand-icon--claude { background: #c2593f; }
.brand-icon--gemini { background: #5d5fef; }
.brand-icon--copilot { background: #031b29; }

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}

.media-card h3 {
  font-size: 1.025rem;
  font-weight: 700;
}

.media-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.eco-banner {
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eco-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Pricing Cards & Detailed Comparison Table (Realistic Market Pricing)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.pricing-card--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

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

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

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

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

.price-amount {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-subnote {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 16px;
}

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

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

.check-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

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

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

.compare-table th {
  font-weight: 700;
  background: var(--bg-surface-alt);
}

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

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.col-highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   FAQ Accordion (6 Rows with Smooth Spring Easing)
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

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

/* ==========================================================================
   Testimonials (2x2 Circular-Avatar Grid + Warm Gold #facc15 Stars)
   ========================================================================== */
.reviews-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-border);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

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

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

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

/* ==========================================================================
   Bottom Marine-Navy Banner (#031b29)
   ========================================================================== */
.bottom-banner {
  background: var(--bg-hero);
  background-image: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(93, 95, 239, 0.26), transparent 72%);
  color: #ffffff;
  padding: 68px 0;
  text-align: center;
}

.bottom-banner h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.bottom-banner p {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Footer (#222222 Charcoal — Strictly 4 Links Only)
   ========================================================================== */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.72);
  padding: 36px 0;
}

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

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

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #818cf8;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.52);
}

/* ==========================================================================
   Standalone Subpages (About, Terms, Privacy, Sitemap, Recommended News)
   ========================================================================== */
.page-hero {
  background: var(--bg-hero);
  color: #ffffff;
  padding: 56px 0 44px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-on-dark-muted);
  max-width: 680px;
}

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

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.doc-section h2 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-section p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.8;
}

.doc-section ul {
  padding-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.75;
}

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

.sitemap-box,
.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-badge {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.news-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.sitemap-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sitemap-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitemap-box a {
  color: var(--accent);
  font-weight: 500;
}

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

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

.breadcrumb a {
  color: #a5b4fc;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.article-meta-tag {
  background: rgba(93, 95, 239, 0.28);
  color: #c7d2fe;
  border: 1px solid rgba(93, 95, 239, 0.45);
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.article-shell {
  padding: 44px 0 76px;
}

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

.toc-box {
  position: sticky;
  top: 90px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.toc-list a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 4px 8px;
  border-radius: 6px;
  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);
}

.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 38px 40px;
  box-shadow: var(--shadow-sm);
}

.article-prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 34px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 88px;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-prose p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.88;
  margin-bottom: 16px;
}

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

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

.article-prose ul,
.article-prose ol {
  padding-left: 22px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 9px;
  line-height: 1.8;
  font-size: 0.96rem;
}

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

.article-prose code {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--accent);
}

.callout-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.callout-box p {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 0.94rem;
}

.article-cta-card {
  margin: 32px 0;
  padding: 26px 28px;
  border-radius: 14px;
  background: var(--bg-hero);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta-card h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.15rem;
}

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

.article-faq {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.article-faq h2 {
  margin-top: 0;
}

.related-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

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

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

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

.related-card span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.related-card h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

/* ==========================================================================
   Responsive Media Queries (@media)
   Single-column mobile layout & touch-friendly buttons
   ========================================================================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc-box {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 14px;
  }

  .hero-grid,
  .why-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-row--reverse .why-visual {
    order: 0;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

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

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

  .header-inner {
    height: 62px;
  }

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

  .hero-bullets {
    grid-template-columns: 1fr;
  }

  .os-btn-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .grid-3,
  .media-grid,
  .reviews-grid-2x2,
  .sitemap-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .os-btn {
    min-height: 48px;
    width: 100%;
  }

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

  .doc-card,
  .article-main {
    padding: 24px 18px;
  }

  .article-cta-card {
    padding: 22px 18px;
  }

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