/* ===================================================================
   IPLC.APP - Nordic Cold-Grey Editorial Minimalist Design System
   Monastic intellectual palette: architectural concrete-white (#f0f2f5),
   deep graphite pencil charcoal (#212529), and stark clinical white card surfaces.
   Completely devoid of AI sparks. Flawless typographic purity.
   =================================================================== */

:root {
  /* Light Theme (Default: Nordic Architectural Concrete) */
  --bg-page: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-alt: #e9ecef;
  --bg-subtle: #f8f9fa;
  --bg-nav: rgba(240, 242, 245, 0.88);
  --hairline: #e2e5e9;
  --hairline-dark: #cfd4dc;
  
  --text-main: #212529;
  --text-secondary: #495057;
  --text-muted: #79828d;
  --text-inverted: #ffffff;

  --accent-graphite: #212529;
  --accent-blue: #1d4ed8;
  --accent-beacon: #0ea5e9;
  --accent-pill-bg: #e5e8ec;

  --btn-primary-bg: #212529;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #111417;

  --shadow-editorial: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-elevated: 0 8px 24px rgba(33, 37, 41, 0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  
  --transition-fast: all 0.15s ease;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Dark Theme (Monastic Graphite & Cold Slate) */
  --bg-page: #0f1115;
  --bg-card: #16191f;
  --bg-card-alt: #1c2027;
  --bg-subtle: #12151a;
  --bg-nav: rgba(15, 17, 21, 0.88);
  --hairline: #242932;
  --hairline-dark: #323946;

  --text-main: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  --text-inverted: #0f1115;

  --accent-graphite: #f8f9fa;
  --accent-blue: #38bdf8;
  --accent-beacon: #38bdf8;
  --accent-pill-bg: #1e232b;

  --btn-primary-bg: #f8f9fa;
  --btn-primary-text: #0f1115;
  --btn-primary-hover: #e9ecef;

  --shadow-editorial: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px; /* Offset for sticky nav */
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Monospace Editorial Labels */
.editorial-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hairline Rules */
.hairline-divider {
  height: 1px;
  background-color: var(--hairline);
  border: none;
  margin: 0;
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--hairline);
}

.brand-icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoRotate2D 12s linear infinite;
  transform-origin: center center;
  will-change: transform;
}

.brand-logo:hover .brand-icon-inner {
  animation-duration: 2.2s; /* Accelerates spin on hover */
}

.brand-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 4px;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a.active-pill {
  color: var(--text-main);
  font-weight: 600;
}

/* Recommended Insights Badge */
.nav-badge-new {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  margin-left: 4px;
  vertical-align: middle;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Day/Night Theme Switcher Button - Refined Minimalist */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: var(--bg-card);
  border-color: var(--hairline-dark);
  color: var(--text-main);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

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

.theme-icon-moon {
  display: none;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

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

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

/* Mechanical Ink-Stamp Depression Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.06s ease, box-shadow 0.06s ease;
  user-select: none;
}

.btn:active {
  /* Crisp mechanical ink-stamp depression */
  transform: translateY(1.5px) scale(0.985);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  border-color: var(--hairline-dark);
  background: var(--bg-card-alt);
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.84rem;
}

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

/* ===================================================================
   Hero Section - Editorial Stillness & Typographic Purity
   =================================================================== */
.hero-section {
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Minimalist Feature Pills */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* Pulsing Beacon Micro-Interaction */
.beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  display: inline-block;
}

.beacon-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: beaconPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title-accent {
  display: inline-block;
  color: var(--text-main);
  border-bottom: 3px solid var(--text-main);
  padding-bottom: 2px;
}

.hero-subtitle {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 640px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Hero Right: Rotating Badge & Engineering Status Board */
.hero-status-panel {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-editorial);
}

.hero-token-display {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.hero-token-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: logoRotate2D 12s linear infinite;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hero-token-disc:hover {
  animation-duration: 2s;
}

.hero-token-disc img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero-token-caption h4 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.hero-token-caption p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Metric Rows with Pulsing Beacon Micro-Interaction */
.metric-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  font-size: 0.84rem;
  cursor: default;
  position: relative;
  transition: var(--transition-fast);
}

.metric-row:hover {
  background: var(--bg-card-alt);
  border-color: var(--hairline);
}

.metric-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.row-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background-color 0s; /* 0ms anchor transition as requested */
}

.metric-row:hover .row-beacon {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.metric-row-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

/* ===================================================================
   Section Shared Headers
   =================================================================== */
.section-wrapper {
  padding: 84px 0;
  border-bottom: 1px solid var(--hairline);
}

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

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ===================================================================
   Core Advantages (3 Stark Clinical White Cards)
   =================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-editorial);
  position: relative;
}

.feature-card:hover {
  border-color: var(--hairline-dark);
  box-shadow: var(--shadow-elevated);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}

.feature-spec-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.feature-spec-list li:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.spec-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0s; /* 0ms anchor activation */
}

.feature-spec-list li:hover .spec-beacon {
  background: #10b981;
}

/* ===================================================================
   Streaming & AI Dual Cards
   =================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-editorial);
  display: flex;
  flex-direction: column;
}

.showcase-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.showcase-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.showcase-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.grid-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.grid-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.grid-pill:hover {
  background: var(--bg-card-alt);
  border-color: var(--hairline-dark);
}

.pill-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
}

.showcase-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===================================================================
   Pricing Comparison Table (Market Realistic Pricing)
   =================================================================== */
.pricing-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.billing-switcher {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.billing-btn {
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.billing-btn.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.save-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-editorial);
  transition: var(--transition-fast);
}

.pricing-card:hover {
  border-color: var(--hairline-dark);
  box-shadow: var(--shadow-elevated);
}

.pricing-card.recommended {
  border: 2px solid var(--text-main);
}

.recommended-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 2px;
}

.plan-tier-header {
  margin-bottom: 20px;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

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

.plan-price-block {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}

.price-flip-container {
  overflow: hidden;
  height: 48px;
  display: flex;
  align-items: baseline;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-right: 2px;
}

.price-number {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-main);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-billing-cycle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.plan-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
}

.spec-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.plan-cta-btn {
  width: 100%;
}

/* ===================================================================
   User Reviews & Testimonials
   =================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-editorial);
  display: flex;
  flex-direction: column;
}

.review-stars {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.client-avatar-monogram {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.client-name {
  font-size: 0.88rem;
  font-weight: 700;
}

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

/* ===================================================================
   FAQ Section
   =================================================================== */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--hairline-dark);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding: 0 22px 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

/* ===================================================================
   Bottom Callout Banner
   =================================================================== */
.editorial-banner {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-editorial);
  margin-top: 48px;
}

.editorial-banner h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

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

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

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

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

.footer-nav a:hover {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===================================================================
   Editorial Article & Info Pages
   =================================================================== */
.article-page {
  max-width: 840px;
  margin: 44px auto 80px;
  padding: 44px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-editorial);
}

.article-header {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.article-body p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body li {
  margin-bottom: 8px;
}

.callout-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--text-main);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Insights Cards List */
.insights-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.insight-entry {
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: var(--transition-fast);
}

.insight-entry:hover {
  background: var(--bg-card);
  border-color: var(--hairline-dark);
}

.insight-entry-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.insight-entry h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.insight-entry p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Article Enhancements: Breadcrumbs, TOC, FAQ, Related Posts */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.article-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 28px 0 36px;
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.toc-list li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-block;
  transition: var(--transition-fast);
}

.toc-list li a:hover {
  color: var(--text-main);
  transform: translateX(3px);
  text-decoration: underline;
}

.toc-list li.toc-sub {
  padding-left: 18px;
  font-size: 0.84rem;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-main);
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  color: var(--text-main);
}

.article-body pre {
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 18px 0;
}

.article-faq-section {
  margin: 44px 0 36px;
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
}

.related-section {
  margin-top: 52px;
  border-top: 1px solid var(--hairline);
  padding-top: 36px;
}

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

.related-card {
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  background: var(--bg-card);
  border-color: var(--hairline-dark);
}

.related-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text-main);
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ===================================================================
   Keyframes
   =================================================================== */
@keyframes logoRotate2D {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===================================================================
   Mobile Media Queries
   =================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .grid-pills {
    grid-template-columns: 1fr;
  }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
  .article-page {
    padding: 24px 18px;
  }
  .btn {
    width: 100%;
    min-height: 46px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}
