/* Foo&Friends (fnfjichang.mom) - Pure Native CSS (Zero JS, Zero External Libraries) */
:root {
  --bg-canvas: #f5f9fc;
  --bg-surface: rgba(255, 255, 255, 0.84);
  --bg-surface-strong: rgba(255, 255, 255, 0.96);
  --bg-soft: #eef5f8;
  --border-light: rgba(15, 23, 42, 0.09);
  --border-accent: rgba(13, 148, 136, 0.36);
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --emerald: #059669;
  --teal: #0d9488;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --amber: #d97706;
  --grad-primary: linear-gradient(135deg, #059669 0%, #0d9488 48%, #2563eb 100%);
  --grad-soft: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(37, 99, 235, 0.08) 100%);
  --shadow-sm: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px -12px rgba(15, 23, 42, 0.1);
  --shadow-accent: 0 18px 40px -14px rgba(13, 148, 136, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --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-canvas);
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Dynamic Animated Background
   =========================== */
.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(160deg, #f6fbfd 0%, #eff6fb 50%, #f3faf7 100%);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.62;
  will-change: transform;
}

.aurora-orb-1 {
  width: 620px;
  height: 620px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.34) 0%, rgba(13, 148, 136, 0.14) 55%, transparent 75%);
  animation: driftOrbOne 22s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  width: 680px;
  height: 680px;
  top: 12%;
  right: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.26) 0%, rgba(56, 189, 248, 0.14) 55%, transparent 76%);
  animation: driftOrbTwo 26s ease-in-out infinite alternate;
}

.aurora-orb-3 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: 28%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28) 0%, rgba(99, 102, 241, 0.12) 55%, transparent 76%);
  animation: driftOrbThree 24s ease-in-out infinite alternate;
}

.animated-grid {
  position: absolute;
  inset: -48px;
  background-image:
    radial-gradient(rgba(13, 148, 136, 0.16) 1.25px, transparent 1.25px),
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px, 80px 80px;
  animation: shiftGrid 30s linear infinite;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}

.floating-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.14);
  will-change: transform;
}

.floating-ring-1 {
  width: 420px;
  height: 420px;
  top: 14%;
  left: 6%;
  animation: spinSlow 46s linear infinite;
}

.floating-ring-2 {
  width: 540px;
  height: 540px;
  bottom: 8%;
  right: 4%;
  border-style: dashed;
  border-color: rgba(37, 99, 235, 0.13);
  animation: spinReverse 58s linear infinite;
}

@keyframes driftOrbOne {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, 60px, 0) scale(1.1); }
  100% { transform: translate3d(30px, 120px, 0) scale(0.95); }
}

@keyframes driftOrbTwo {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-110px, 70px, 0) scale(1.08); }
  100% { transform: translate3d(-50px, -40px, 0) scale(0.94); }
}

@keyframes driftOrbThree {
  0% { transform: translate3d(0, 0, 0) scale(0.96); }
  50% { transform: translate3d(80px, -70px, 0) scale(1.12); }
  100% { transform: translate3d(-70px, -30px, 0) scale(1); }
}

@keyframes shiftGrid {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(40px, 40px, 0); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes spinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb,
  .animated-grid,
  .floating-ring,
  .pulse-dot {
    animation: none !important;
  }
}

/* ===========================
   Layout & Containers
   =========================== */
header,
main,
footer {
  position: relative;
  z-index: 1;
}

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

.section {
  padding: 72px 0;
}

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

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

/* ===========================
   Sticky Header & Top-Left Logo
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 2px;
}

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

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

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

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(13, 148, 136, 0.45);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(37, 99, 235, 0.48);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  padding: 58px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-accent);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55);
  animation: pulseRing 2.1s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.05rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

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

.hero-desc {
  margin: 0 0 26px;
  font-size: 1.06rem;
  color: var(--text-body);
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}

.stat-chip strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-chip span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Hero Telemetry Panel */
.telemetry-card {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.telemetry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.telemetry-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
}

.status-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(5, 150, 105, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.node-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.node-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.88rem;
}

.node-name {
  font-weight: 700;
  color: var(--text-main);
}

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

.node-ping {
  font-weight: 800;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}

.telemetry-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-pill {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 999px;
}

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

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

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-accent);
}

.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 253, 250, 0.95) 100%);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--grad-primary);
  box-shadow: 0 6px 16px -4px rgba(13, 148, 136, 0.45);
}

.plan-name {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.plan-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 2.8em;
}

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

.plan-currency {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
}

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

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

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

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

.plan-features li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

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

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

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

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.inline-jump {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
}

/* ===========================
   Comparison Table (GEO Friendly)
   =========================== */
.table-wrap {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

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

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

.data-table th {
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--text-main);
}

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

/* ===========================
   Article Hub Cards
   =========================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.article-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.cat-tag {
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}

.read-time {
  color: var(--text-muted);
}

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

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

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

.article-card p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-body);
  flex-grow: 1;
}

.kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.kw-chip {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.article-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
}

/* ===========================
   Reviews Section
   =========================== */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

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

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

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

.reviewer-name {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-main);
}

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

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

.review-text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-body);
}

.review-plan {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
}

/* ===========================
   Pure CSS FAQ Accordion
   =========================== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

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

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--teal);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  color: var(--text-body);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 14px;
}

/* ===========================
   External Resource Links
   =========================== */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ext-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.ext-card strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.ext-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================
   CTA Banner & Footer
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  color: #ffffff;
}

.cta-banner p {
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
  max-width: 58ch;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 32px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

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

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--text-body);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===========================
   Article Detail Page Layout
   =========================== */
.article-shell {
  padding: 40px 0 72px;
}

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

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

.article-main {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-light);
}

.article-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 850;
  line-height: 1.3;
  color: var(--text-main);
}

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

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  padding-left: 12px;
  border-left: 4px solid var(--teal);
}

.article-body h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text-body);
  font-size: 1rem;
}

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

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

.callout-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-accent);
  font-size: 0.95rem;
  color: var(--text-main);
}

.inline-cta {
  margin: 28px 0;
  padding: 24px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-pager {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pager-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.pager-link span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pager-link strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-box {
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

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

/* ===========================
   Responsive Breakpoints
   =========================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .article-sidebar {
    position: static;
  }

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

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

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

@media (max-width: 860px) {
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

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

@media (max-width: 767px) {
  .section {
    padding: 52px 0;
  }

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

  .pricing-row {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

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

  .grid-3,
  .grid-2,
  .article-grid,
  .ext-grid,
  .footer-grid,
  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 24px 20px;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}
