/* ==========================================================================
   CoffeeCloud (coffee-cloud.sbs) - Pure CSS Design System (Zero JS / Zero Build)
   ========================================================================== */

:root {
  --bg-deep: #0b0908;
  --bg-surface: rgba(24, 19, 16, 0.78);
  --bg-surface-strong: rgba(31, 24, 20, 0.92);
  --bg-card-hover: rgba(41, 32, 26, 0.92);
  --border-subtle: rgba(245, 203, 141, 0.14);
  --border-strong: rgba(245, 203, 141, 0.34);
  --text-primary: #f7f1ea;
  --text-secondary: #cabfb4;
  --text-muted: #938579;
  --amber: #e59247;
  --crema: #f5cb8d;
  --cyan: #5eead4;
  --cyan-soft: rgba(94, 234, 212, 0.14);
  --amber-soft: rgba(229, 146, 71, 0.16);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container-max: 1240px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
}

a {
  color: var(--crema);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

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

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

/* ==========================================================================
   Dynamic Animated Background (Pure CSS, GPU Composited)
   ========================================================================== */

.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 14%, #2b1b11 0%, #160f0a 46%, #080605 100%);
}

/* Flowing Cream & Latte-Foam Ribbons */
.dynamic-bg::before,
.dynamic-bg::after {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  will-change: transform;
}

.dynamic-bg::before {
  background:
    conic-gradient(
      from 40deg at 48% 46%,
      transparent 0deg,
      rgba(255, 243, 224, 0.18) 42deg,
      rgba(247, 214, 168, 0.22) 88deg,
      transparent 148deg,
      rgba(255, 236, 206, 0.14) 210deg,
      rgba(229, 146, 71, 0.16) 265deg,
      transparent 330deg
    );
  filter: blur(44px);
  animation: cremaSwirlA 24s linear infinite;
}

.dynamic-bg::after {
  background:
    radial-gradient(ellipse 46% 24% at 32% 38%, rgba(255, 244, 226, 0.24) 0%, rgba(245, 203, 141, 0.12) 48%, transparent 74%),
    radial-gradient(ellipse 42% 22% at 72% 66%, rgba(255, 238, 212, 0.2) 0%, rgba(229, 146, 71, 0.1) 52%, transparent 76%);
  filter: blur(36px);
  animation: cremaSwirlB 18s ease-in-out infinite alternate;
}

.bg-orb {
  position: absolute;
  border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
  filter: blur(58px);
  opacity: 0.56;
  will-change: transform;
}

.bg-orb-1 {
  width: 54vw;
  height: 54vw;
  max-width: 720px;
  max-height: 720px;
  top: -16%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 242, 220, 0.48) 0%, rgba(245, 203, 141, 0.28) 42%, rgba(229, 146, 71, 0.12) 66%, transparent 78%);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 48vw;
  height: 48vw;
  max-width: 660px;
  max-height: 660px;
  top: 20%;
  right: -12%;
  background: radial-gradient(circle, rgba(255, 245, 228, 0.3) 0%, rgba(94, 234, 212, 0.22) 44%, rgba(20, 140, 130, 0.1) 66%, transparent 78%);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 52vw;
  height: 52vw;
  max-width: 700px;
  max-height: 700px;
  bottom: -20%;
  left: 22%;
  background: radial-gradient(circle, rgba(255, 239, 214, 0.42) 0%, rgba(245, 203, 141, 0.22) 46%, rgba(165, 98, 44, 0.1) 68%, transparent 78%);
  animation: orbDriftC 24s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: -48px;
  background-image:
    radial-gradient(rgba(255, 241, 220, 0.18) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 243, 224, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 243, 224, 0.03) 1px, transparent 1px);
  background-size: 48px 48px, 96px 96px, 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.9) 15%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.9) 15%, transparent 82%);
  animation: gridPan 32s linear infinite;
}

/* Concentric Latte-Cream Foam Waves */
.bg-steam-ring {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 1120px;
  height: 1120px;
  margin-left: -560px;
  border-radius: 44% 56% 51% 49% / 48% 43% 57% 52%;
  border: 2px solid rgba(255, 243, 224, 0.16);
  box-shadow:
    inset 0 0 85px rgba(255, 239, 214, 0.11),
    0 0 60px rgba(245, 203, 141, 0.08);
  animation: ringPulse 20s ease-in-out infinite;
}

.bg-steam-ring::before,
.bg-steam-ring::after {
  content: "";
  position: absolute;
  border-radius: 52% 48% 45% 55% / 46% 54% 46% 54%;
  border: 1.5px solid rgba(255, 244, 226, 0.14);
}

.bg-steam-ring::before {
  inset: 11%;
  box-shadow: inset 0 0 65px rgba(255, 240, 218, 0.1);
  animation: cremaSpinRev 26s linear infinite;
}

.bg-steam-ring::after {
  inset: 24%;
  border-color: rgba(247, 214, 168, 0.18);
  box-shadow: inset 0 0 50px rgba(255, 245, 230, 0.09);
  animation: cremaSpinFwd 18s linear infinite;
}

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

@keyframes cremaSwirlB {
  0% { transform: translate3d(-4%, -3%, 0) rotate(-6deg) scale(0.98); }
  50% { transform: translate3d(5%, 4%, 0) rotate(8deg) scale(1.07); }
  100% { transform: translate3d(-2%, 6%, 0) rotate(-3deg) scale(1.02); }
}

@keyframes cremaSpinRev {
  0% { transform: rotate(360deg) scale(0.98); }
  50% { transform: rotate(180deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(0.98); }
}

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

@keyframes orbDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(9%, 7%, 0) scale(1.09) rotate(16deg); }
  100% { transform: translate3d(15%, -4%, 0) scale(0.97) rotate(32deg); }
}

@keyframes orbDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-9%, 8%, 0) scale(1.1) rotate(-18deg); }
  100% { transform: translate3d(-4%, -7%, 0) scale(0.95) rotate(-34deg); }
}

@keyframes orbDriftC {
  0% { transform: translate3d(0, 0, 0) scale(0.98) rotate(0deg); }
  50% { transform: translate3d(-8%, -6%, 0) scale(1.08) rotate(14deg); }
  100% { transform: translate3d(9%, -10%, 0) scale(1.02) rotate(28deg); }
}

@keyframes gridPan {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(48px, 48px, 0); }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(0.95) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.06) rotate(180deg); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-bg::before,
  .dynamic-bg::after,
  .bg-orb,
  .bg-grid,
  .bg-steam-ring,
  .bg-steam-ring::before,
  .bg-steam-ring::after {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--amber-soft);
  color: var(--crema);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

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

/* ==========================================================================
   Header & Top-Left Brand Logo
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 9, 8, 0.78);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.brand:hover {
  color: var(--crema);
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245, 203, 141, 0.35);
  box-shadow: 0 4px 12px rgba(229, 146, 71, 0.28);
}

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

.brand-name {
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.93rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

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

.nav-links a.nav-active {
  position: relative;
}

.nav-links a.nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crema), var(--cyan));
}

.page-hero {
  padding: 44px 0 18px;
}

.page-hero-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
}

.page-hero-box h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.25;
}

.page-hero-box p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 760px;
}

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

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--crema);
  font-size: 0.88rem;
  font-weight: 600;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(18, 14, 12, 0.97);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-panel a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.mobile-nav-panel a:hover {
  background: rgba(245, 203, 141, 0.1);
  color: var(--crema);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f5cb8d 0%, #e59247 55%, #d9772c 100%);
  color: #160e08;
  box-shadow: 0 8px 24px rgba(229, 146, 71, 0.35);
}

.btn-primary:hover {
  color: #120b06;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 146, 71, 0.48);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(94, 234, 212, 0.08);
}

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

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 58px 0 42px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(94, 234, 212, 0.32);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}

.hero-theme {
  display: block;
  font-size: clamp(2.2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--crema);
  margin-bottom: 8px;
}

.hero-highlight {
  background: linear-gradient(120deg, #f7cf92 0%, #e59247 52%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 26px;
  color: var(--text-secondary);
  font-size: 1.06rem;
  max-width: 600px;
}

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

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

.stat-chip {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.stat-value {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--crema);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.telemetry-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(33, 25, 20, 0.92), rgba(16, 13, 12, 0.94));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

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

.telemetry-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.telemetry-status {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-weight: 600;
}

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

.node-row {
  display: grid;
  grid-template-columns: 134px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 0.87rem;
}

.node-name {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.node-bar-track {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.node-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--crema));
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.35);
}

.node-ms {
  text-align: right;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.82rem;
}

.unlock-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.pill {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Pricing Section — Strictly Same-Row Display ("所有价格要同排")
   ========================================================================== */

.pricing-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--crema);
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

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

.plan-card.plan-featured {
  border-color: rgba(229, 146, 71, 0.68);
  background: linear-gradient(175deg, rgba(46, 33, 22, 0.95), rgba(24, 18, 15, 0.96));
  box-shadow: 0 18px 44px rgba(229, 146, 71, 0.16);
}

.plan-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--crema);
  margin-bottom: 12px;
}

.plan-featured .plan-tag {
  background: linear-gradient(135deg, #f5cb8d, #e59247);
  color: #160e08;
}

.plan-name {
  margin: 0 0 4px;
  font-size: 1.28rem;
  color: var(--text-primary);
}

.plan-sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 14px;
}

.plan-currency {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--crema);
}

.plan-price {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--crema);
  font-family: var(--font-mono);
}

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

.plan-quota {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
  text-align: center;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-footnote {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Keep all 4 pricing cards in a single horizontal row on narrower screens too */
@media (max-width: 1020px) {
  .pricing-hint {
    display: block;
  }
  .pricing-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(248px, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .plan-card {
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Features & GEO Region Grid
   ========================================================================== */

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

.feature-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--crema);
}

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

.geo-strip {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
}

.geo-strip h3 {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.geo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.geo-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Articles Hub
   ========================================================================== */

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.kw-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--crema);
  border: 1px solid rgba(229, 146, 71, 0.26);
}

.read-time {
  color: var(--text-muted);
  padding: 3px 0;
}

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

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

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

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

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

/* ==========================================================================
   Reviews & FAQ
   ========================================================================== */

.rating-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}

.rating-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rating-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--crema);
  font-family: var(--font-mono);
}

.rating-stars {
  color: #f5b942;
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.review-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.review-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.review-plan {
  font-size: 0.76rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

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

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

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

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

.faq-item[open] summary::after {
  content: "−";
  color: var(--cyan);
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* ==========================================================================
   External Links & Footer
   ========================================================================== */

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

.ext-link-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.ext-link-title {
  font-weight: 700;
  color: var(--crema);
  font-size: 0.95rem;
}

.ext-link-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .ext-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .ext-links-grid {
    grid-template-columns: 1fr;
  }
}

.cta-banner {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(48, 32, 20, 0.94), rgba(18, 28, 28, 0.94));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 7, 6, 0.88);
  padding: 40px 0 28px;
  margin-top: 32px;
}

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

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--crema);
  font-size: 0.95rem;
}

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

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

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

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

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Dedicated Article Page Styles
   ========================================================================== */

.article-shell {
  padding: 36px 0 64px;
}

.article-container {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
}

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

.article-hero-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
  margin-bottom: 26px;
}

.article-hero-box h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.3;
}

.article-info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.geo-callout {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(94, 234, 212, 0.07);
  border-left: 4px solid var(--cyan);
  margin-bottom: 24px;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.toc-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.toc-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--crema);
}

.toc-box ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.article-prose {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: rgba(20, 16, 14, 0.88);
  border: 1px solid var(--border-subtle);
  font-size: 1.01rem;
  line-height: 1.85;
  color: #e6ddd4;
}

.article-prose h2 {
  margin: 30px 0 12px;
  font-size: 1.35rem;
  color: var(--crema);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

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

.article-prose h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  color: var(--cyan);
}

.article-prose p {
  margin: 0 0 15px;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-prose li {
  margin-bottom: 6px;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: rgba(14, 11, 10, 0.8);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.data-table th {
  background: rgba(229, 146, 71, 0.14);
  color: var(--crema);
  font-weight: 700;
}

.inline-cta-box {
  margin: 26px 0;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(45, 31, 20, 0.9), rgba(16, 29, 28, 0.9));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-nav-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-nav-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-nav-card:hover {
  border-color: var(--cyan);
}

.article-nav-dir {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--crema);
}

.related-articles-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.related-articles-box h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--crema);
}

.related-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .article-hero-box,
  .article-prose {
    padding: 20px 16px;
  }
  .article-nav-grid {
    grid-template-columns: 1fr;
  }
}
