/* Foo&Friends (fnfjichang.homes) - Pure Native CSS (Zero External Dependencies) */
:root {
  --bg-base: #060913;
  --bg-elevated: rgba(15, 23, 42, 0.72);
  --bg-card: rgba(17, 25, 48, 0.78);
  --bg-card-hover: rgba(24, 35, 66, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(254, 240, 138, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-cyan: #fef08a;
  --accent-blue: #fde68a;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --grad-brand: linear-gradient(135deg, #fffbeb 0%, #fef9c3 48%, #fef08a 100%);
  --grad-cta: linear-gradient(135deg, #fef9c3 0%, #fef08a 52%, #fde68a 100%);
  --shadow-glow: 0 18px 45px -15px rgba(254, 240, 138, 0.24);
  --shadow-card: 0 12px 32px -12px rgba(2, 6, 23, 0.65);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-max: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: transparent;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fef9c3;
}

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

/* ==================== Dynamic Pure CSS Background ==================== */
.bg-dynamic {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #0d172e 0%, #060913 70%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.42;
  will-change: transform, opacity;
}

.bg-orb-1 {
  width: 580px;
  height: 580px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.48), rgba(59, 130, 246, 0.08) 70%);
  animation: auroraDriftA 18s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 640px;
  height: 640px;
  top: 18%;
  right: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), rgba(59, 130, 246, 0.06) 70%);
  animation: auroraDriftB 22s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 28%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), rgba(34, 211, 238, 0.04) 70%);
  animation: auroraDriftC 25s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 35%, transparent 100%);
  animation: gridDrift 28s linear infinite;
}

/* Multi-layer Seamless Animated Waves */
.bg-dynamic::before,
.bg-dynamic::after,
.bg-beam {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 1200px);
  background-repeat: repeat-x;
  background-size: 1200px 100%;
  will-change: transform;
  pointer-events: none;
}

/* Wave Layer 1: Upper-mid cyan signal wave */
.bg-dynamic::before {
  top: 18%;
  height: 220px;
  opacity: 0.72;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w1' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%2322d3ee' stop-opacity='0.22'/%3E%3Cstop offset='100%25' stop-color='%233b82f6' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,110 C150,35 450,35 600,110 C750,185 1050,185 1200,110 L1200,220 L0,220 Z' fill='url(%23w1)'/%3E%3Cpath d='M0,110 C150,35 450,35 600,110 C750,185 1050,185 1200,110' fill='none' stroke='%2322d3ee' stroke-opacity='0.48' stroke-width='2'/%3E%3C/svg%3E");
  animation: waveFlowLeft 18s linear infinite;
}

/* Wave Layer 2: Mid-lower violet-blue counter wave */
.bg-beam {
  top: auto;
  bottom: 10%;
  height: 250px;
  background-color: transparent;
  opacity: 0.78;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w2' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%238b5cf6' stop-opacity='0.22'/%3E%3Cstop offset='100%25' stop-color='%233b82f6' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,110 C150,185 450,185 600,110 C750,35 1050,35 1200,110 L1200,220 L0,220 Z' fill='url(%23w2)'/%3E%3Cpath d='M0,110 C150,185 450,185 600,110 C750,35 1050,35 1200,110' fill='none' stroke='%238b5cf6' stroke-opacity='0.48' stroke-width='2'/%3E%3C/svg%3E");
  animation: waveFlowRight 24s linear infinite;
}

/* Wave Layer 3: Foreground bottom ocean-cyan wave */
.bg-dynamic::after {
  bottom: -18px;
  height: 230px;
  opacity: 0.88;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w3' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%2306b6d4' stop-opacity='0.26'/%3E%3Cstop offset='100%25' stop-color='%23060913' stop-opacity='0.04'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,105 C180,30 420,30 600,105 C780,180 1020,180 1200,105 L1200,220 L0,220 Z' fill='url(%23w3)'/%3E%3Cpath d='M0,105 C180,30 420,30 600,105 C780,180 1020,180 1200,105' fill='none' stroke='%2338bdf8' stroke-opacity='0.55' stroke-width='2.2'/%3E%3C/svg%3E");
  animation: waveFlowLeft 13s linear infinite;
}

@keyframes auroraDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.36; }
  50% { transform: translate3d(90px, 60px, 0) scale(1.12); opacity: 0.48; }
  100% { transform: translate3d(30px, 120px, 0) scale(0.95); opacity: 0.38; }
}

@keyframes auroraDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate3d(-110px, 50px, 0) scale(1.15); opacity: 0.46; }
  100% { transform: translate3d(-40px, -70px, 0) scale(1.02); opacity: 0.34; }
}

@keyframes auroraDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.24; }
  100% { transform: translate3d(80px, -60px, 0) scale(1.14); opacity: 0.36; }
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(56px, 56px, 0); }
}

@keyframes waveFlowLeft {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-600px, 10px, 0); }
  100% { transform: translate3d(-1200px, 0, 0); }
}

@keyframes waveFlowRight {
  0% { transform: translate3d(-1200px, 0, 0); }
  50% { transform: translate3d(-600px, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .bg-grid,
  .bg-beam,
  .bg-dynamic::before,
  .bg-dynamic::after,
  .pulse-dot::after {
    animation: none !important;
  }
}

/* ==================== Layout Utilities ==================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 68px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(254, 240, 138, 0.1);
  border: 1px solid rgba(254, 240, 138, 0.26);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==================== Header & Top-Left Logo ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 19, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--text-primary);
  opacity: 0.94;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
}

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

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

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: #0b1120;
  box-shadow: 0 10px 26px -10px rgba(254, 240, 138, 0.52);
}

.btn-primary:hover {
  color: #0b1120;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(254, 240, 138, 0.72);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

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

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

.btn-block {
  width: 100%;
}

/* ==================== Hero Section ==================== */
.hero {
  padding: 78px 0 56px;
}

.hero-grid {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald);
  animation: pingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 680px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==================== GEO / TL;DR Quick Fact Table ==================== */
.geo-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.geo-summary-box h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.geo-summary-box p {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.table-wrap {
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

.spec-table th {
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(254, 240, 138, 0.06);
  white-space: nowrap;
}

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

/* ==================== Features Grid ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(254, 240, 138, 0.12);
  border: 1px solid rgba(254, 240, 138, 0.26);
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

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

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ==================== Pricing (Strictly Same Horizontal Row) ==================== */
.pricing-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.price-card.featured {
  border-color: rgba(254, 240, 138, 0.55);
  background: linear-gradient(180deg, rgba(28, 36, 58, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #0b1120;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.plan-name {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-weight: 800;
}

.plan-tagline {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

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

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

.plan-highlight {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: rgba(254, 240, 138, 0.09);
  border: 1px solid rgba(254, 240, 138, 0.24);
  color: #fef9c3;
  font-size: 0.88rem;
  font-weight: 700;
}

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

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

.check-icon {
  color: var(--accent-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

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

/* ==================== Articles Grid ==================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-cat {
  color: var(--accent-cyan);
  background: rgba(254, 240, 138, 0.11);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.article-card h3 a {
  color: var(--text-primary);
}

.article-card h3 a:hover {
  color: var(--accent-cyan);
}

.article-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.91rem;
  flex: 1;
}

.article-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}

/* ==================== User Reviews ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
}

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

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

.avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #0b1120;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

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

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

.review-stars {
  color: var(--accent-amber);
  font-size: 0.92rem;
  letter-spacing: 1px;
}

.review-body {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.review-tag {
  font-size: 0.79rem;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

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

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 14px;
}

/* ==================== Outbound Resource Links & CTA Banner ==================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.resource-card strong {
  color: var(--text-primary);
  font-size: 0.96rem;
}

.resource-card span {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.14) 0%, rgba(59, 130, 246, 0.2) 55%, rgba(109, 40, 217, 0.26) 100%);
  border: 1px solid rgba(254, 240, 138, 0.36);
  border-radius: var(--radius-lg);
  padding: 42px 32px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.cta-banner p {
  margin: 0 auto 24px;
  max-width: 640px;
  color: var(--text-secondary);
}

/* ==================== Article Detail Page ==================== */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 42px 22px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.article-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

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

.article-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.3;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.article-content h2 {
  margin: 30px 0 12px;
  font-size: 1.35rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 12px;
}

.article-content h3 {
  margin: 22px 0 10px;
  font-size: 1.12rem;
  color: #e2e8f0;
}

.article-content p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 1.01rem;
  line-height: 1.85;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.inline-callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(254, 240, 138, 0.08);
  border: 1px solid rgba(254, 240, 138, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.inline-callout p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-primary);
}

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

.related-section h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-link-card {
  display: block;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.93rem;
}

.related-link-card:hover {
  border-color: var(--border-accent);
  color: var(--accent-cyan);
}

.related-link-card span {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ==================== Footer ==================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 17, 0.88);
  padding: 46px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: var(--text-primary);
}

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

.footer-col li a {
  color: var(--text-muted);
  font-size: 0.89rem;
}

.footer-col li a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ==================== Responsive Rules ==================== */
@media (max-width: 980px) {
  .features-grid,
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  /* Keep all 3 pricing cards strictly on the same horizontal row on narrow mobile screens via smooth horizontal scroll */
  .pricing-row {
    grid-template-columns: repeat(3, minmax(265px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .price-card {
    scroll-snap-align: start;
  }

  .features-grid,
  .articles-grid,
  .reviews-grid,
  .related-grid,
  .resource-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-shell {
    padding: 26px 20px;
  }
}
