/* ==========================================================================
   NCloud 奇异云网 (qi-ncloud.homes) - Quantum Nebula Pure CSS3 Stylesheet
   Zero external frameworks, zero blocking JS, GPU-accelerated dynamic backdrop
   ========================================================================== */

:root {
  --bg-void: #050811;
  --bg-deep: #090f1d;
  --bg-surface: rgba(13, 21, 39, 0.74);
  --bg-surface-strong: rgba(16, 26, 48, 0.9);
  --bg-surface-hover: rgba(20, 33, 60, 0.88);
  --border-subtle: rgba(56, 189, 248, 0.16);
  --border-bright: rgba(34, 211, 238, 0.45);
  --border-emerald: rgba(52, 211, 153, 0.42);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --indigo-400: #818cf8;
  --amber-300: #fcd34d;

  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #34d399 52%, #818cf8 100%);
  --grad-cta: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --grad-cta-hover: linear-gradient(135deg, #22d3ee 0%, #34d399 100%);

  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 36px -8px rgba(34, 211, 238, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container-max: 1240px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "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;
  color-scheme: dark;
  background-color: var(--bg-void);
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: transparent;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ==========================================================================
   Dynamic Pure-CSS Quantum Nebula Background
   ========================================================================== */

.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.16) 0%, transparent 44%),
    radial-gradient(circle at 82% 24%, rgba(16, 185, 129, 0.12) 0%, transparent 46%),
    radial-gradient(circle at 52% 88%, rgba(129, 140, 248, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #050811 0%, #070d1a 50%, #04070f 100%);
}

.cyber-grid {
  position: absolute;
  inset: -120px;
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 100%);
  animation: gridDrift 28s linear infinite;
  will-change: transform;
}

.star-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(103, 232, 249, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 38% 16%, rgba(248, 250, 252, 0.65), transparent),
    radial-gradient(2px 2px at 67% 28%, rgba(52, 211, 153, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 86% 18%, rgba(129, 140, 248, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 24% 68%, rgba(103, 232, 249, 0.65), transparent),
    radial-gradient(2px 2px at 74% 76%, rgba(52, 211, 153, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 91% 58%, rgba(248, 250, 252, 0.65), transparent);
  background-size: 420px 420px;
  animation: starPulse 9s ease-in-out infinite alternate;
  will-change: opacity;
}

.nebula-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.nebula-orb--cyan {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.36) 0%, rgba(34, 211, 238, 0) 70%);
  animation: orbFloatA 20s ease-in-out infinite alternate;
}

.nebula-orb--emerald {
  width: 460px;
  height: 460px;
  top: 22%;
  right: -130px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  animation: orbFloatB 24s ease-in-out infinite alternate;
}

.nebula-orb--indigo {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: 32%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.26) 0%, rgba(129, 140, 248, 0) 70%);
  animation: orbFloatC 26s ease-in-out infinite alternate;
}

.quantum-stream {
  position: absolute;
  height: 2px;
  width: 240px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85), rgba(52, 211, 153, 0.9), transparent);
  border-radius: 999px;
  opacity: 0;
  will-change: transform, opacity;
}

.quantum-stream--one {
  top: 18%;
  left: -260px;
  animation: beamSweep 11s linear infinite;
}

.quantum-stream--two {
  top: 52%;
  left: -260px;
  animation: beamSweep 15s linear 4.5s infinite;
}

.quantum-stream--three {
  top: 80%;
  left: -260px;
  animation: beamSweep 13s linear 8s infinite;
}

/* Pure-CSS Falling Autumn Leaves Layer (动态落叶层) */

.leaf-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 900px;
}

.leaf {
  position: absolute;
  top: -10vh;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
  animation: leafFall var(--fall-dur, 14s) linear var(--fall-delay, 0s) infinite;
}

.leaf i {
  position: relative;
  display: block;
  width: var(--leaf-w, 28px);
  height: var(--leaf-h, 28px);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 4px 10px var(--leaf-glow, rgba(251, 191, 36, 0.35)));
  transform-origin: center center;
  will-change: transform;
  animation: leafSway var(--sway-dur, 4.2s) ease-in-out var(--fall-delay, 0s) infinite alternate;
}

.leaf--gold i {
  --leaf-glow: rgba(251, 191, 36, 0.42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 L37 18 L52 13 L45 26 L59 31 L44 40 L48 51 L34 46 L33 60 L31 60 L30 46 L16 51 L20 40 L5 31 L19 26 L12 13 L27 18 Z' fill='%23fbbf24' fill-opacity='0.88' stroke='%23fef3c7' stroke-opacity='0.45' stroke-width='1.5'/%3E%3C/svg%3E");
}

.leaf--maple i {
  --leaf-glow: rgba(249, 115, 22, 0.42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 5 L38 19 L53 14 L46 27 L58 33 L43 41 L47 52 L34 47 L33 60 L31 60 L30 47 L17 52 L21 41 L6 33 L18 27 L11 14 L26 19 Z' fill='%23fb923c' fill-opacity='0.9' stroke='%23ffedd5' stroke-opacity='0.4' stroke-width='1.5'/%3E%3C/svg%3E");
}

.leaf--crimson i {
  --leaf-glow: rgba(248, 113, 113, 0.38);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 6 C46 14 55 28 50 42 C46 50 38 52 33 48 L33 60 L31 60 L31 48 C26 52 18 50 14 42 C9 28 18 14 32 6 Z' fill='%23f87171' fill-opacity='0.86' stroke='%23fee2e2' stroke-opacity='0.4' stroke-width='1.5'/%3E%3C/svg%3E");
}

.leaf--jade i {
  --leaf-glow: rgba(34, 211, 238, 0.38);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 5 C47 16 54 32 46 46 C40 52 35 51 33 47 L33 60 L31 60 L31 47 C29 51 24 52 18 46 C10 32 17 16 32 5 Z' fill='%2334d399' fill-opacity='0.82' stroke='%23cffafe' stroke-opacity='0.42' stroke-width='1.5'/%3E%3C/svg%3E");
}

.leaf--1  { left: 4%;  --leaf-w: 28px; --leaf-h: 28px; --fall-dur: 13s;   --sway-dur: 3.6s; --fall-delay: -2s;   --drift-x: 85px; }
.leaf--2  { left: 10%; --leaf-w: 22px; --leaf-h: 22px; --fall-dur: 17s;   --sway-dur: 4.3s; --fall-delay: -8s;   --drift-x: -60px; }
.leaf--3  { left: 17%; --leaf-w: 34px; --leaf-h: 34px; --fall-dur: 12s;   --sway-dur: 3.3s; --fall-delay: -4.5s; --drift-x: 95px; }
.leaf--4  { left: 24%; --leaf-w: 25px; --leaf-h: 25px; --fall-dur: 15.5s; --sway-dur: 4.1s; --fall-delay: -11.5s;--drift-x: -75px; }
.leaf--5  { left: 31%; --leaf-w: 30px; --leaf-h: 30px; --fall-dur: 14.2s; --sway-dur: 3.8s; --fall-delay: -3.2s; --drift-x: 70px; }
.leaf--6  { left: 39%; --leaf-w: 21px; --leaf-h: 21px; --fall-dur: 18.5s; --sway-dur: 4.7s; --fall-delay: -14s;  --drift-x: -55px; }
.leaf--7  { left: 46%; --leaf-w: 36px; --leaf-h: 36px; --fall-dur: 13.5s; --sway-dur: 3.5s; --fall-delay: -6.8s; --drift-x: 90px; }
.leaf--8  { left: 53%; --leaf-w: 26px; --leaf-h: 26px; --fall-dur: 16.5s; --sway-dur: 4.2s; --fall-delay: -10.2s;--drift-x: -85px; }
.leaf--9  { left: 60%; --leaf-w: 32px; --leaf-h: 32px; --fall-dur: 14s;   --sway-dur: 3.7s; --fall-delay: -1.4s; --drift-x: 75px; }
.leaf--10 { left: 67%; --leaf-w: 23px; --leaf-h: 23px; --fall-dur: 18s;   --sway-dur: 4.5s; --fall-delay: -15s;  --drift-x: -65px; }
.leaf--11 { left: 74%; --leaf-w: 35px; --leaf-h: 35px; --fall-dur: 12.8s; --sway-dur: 3.4s; --fall-delay: -5.8s; --drift-x: 85px; }
.leaf--12 { left: 81%; --leaf-w: 25px; --leaf-h: 25px; --fall-dur: 16s;   --sway-dur: 4.0s; --fall-delay: -9.6s; --drift-x: -80px; }
.leaf--13 { left: 88%; --leaf-w: 29px; --leaf-h: 29px; --fall-dur: 15s;   --sway-dur: 3.9s; --fall-delay: -3.8s; --drift-x: -70px; }
.leaf--14 { left: 94%; --leaf-w: 22px; --leaf-h: 22px; --fall-dur: 17.8s; --sway-dur: 4.6s; --fall-delay: -13.2s;--drift-x: -90px; }
.leaf--15 { left: 21%; --leaf-w: 28px; --leaf-h: 28px; --fall-dur: 16.8s; --sway-dur: 4.3s; --fall-delay: -8.2s; --drift-x: 65px; }
.leaf--16 { left: 71%; --leaf-w: 27px; --leaf-h: 27px; --fall-dur: 14.8s; --sway-dur: 3.8s; --fall-delay: -12s;  --drift-x: -60px; }

@keyframes leafFall {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  8% {
    opacity: 0.88;
  }
  88% {
    opacity: 0.78;
  }
  100% {
    transform: translate3d(var(--drift-x, 60px), 120vh, 0);
    opacity: 0;
  }
}

@keyframes leafSway {
  0% {
    transform: translateX(-22px) rotate(-28deg) rotateX(16deg) rotateY(-22deg);
  }
  50% {
    transform: translateX(14px) rotate(18deg) rotateX(40deg) rotateY(32deg);
  }
  100% {
    transform: translateX(26px) rotate(48deg) rotateX(-24deg) rotateY(150deg);
  }
}

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

@keyframes starPulse {
  0% { opacity: 0.42; }
  100% { opacity: 0.88; }
}

@keyframes orbFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(110px, 80px, 0) scale(1.16); }
}

@keyframes orbFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-120px, 100px, 0) scale(1.18); }
}

@keyframes orbFloatC {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(70px, -90px, 0) scale(1.12); }
}

@keyframes beamSweep {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.72; }
  82% { opacity: 0.55; }
  100% { transform: translate3d(calc(100vw + 520px), 0, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

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

.section {
  padding: 76px 0;
}

.section-compact {
  padding: 52px 0;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 8, 17, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

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

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

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

.brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

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

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

.main-nav a:hover {
  color: var(--cyan-300);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: #031318;
  box-shadow: 0 8px 26px -6px rgba(16, 185, 129, 0.52);
}

.btn-primary:hover {
  background: var(--grad-cta-hover);
  color: #021014;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(34, 211, 238, 0.58);
}

.btn-outline {
  background: rgba(13, 21, 39, 0.72);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan-300);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

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

.hero {
  padding: 68px 0 48px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-emerald);
  background: rgba(16, 185, 129, 0.11);
  color: var(--emerald-400);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

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

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hero-h1-sub {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.38rem, 2.55vw, 2.12rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

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

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

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(12px);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan-300);
}

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

.metric-box {
  background: rgba(6, 11, 23, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric-val {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.metric-lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.coupon-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-emerald);
  background: rgba(16, 185, 129, 0.08);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.coupon-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber-300);
  background: rgba(252, 211, 77, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   SINGLE-ROW PRICING MATRIX (所有价格严格同排)
   ========================================================================== */

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.plan-card--featured {
  background: linear-gradient(180deg, rgba(16, 36, 58, 0.88) 0%, rgba(11, 21, 41, 0.92) 100%);
  border-color: var(--border-emerald);
  box-shadow: var(--shadow-card), 0 0 38px -10px rgba(52, 211, 153, 0.32);
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan-300);
  margin-bottom: 12px;
}

.plan-card--featured .plan-badge {
  background: rgba(52, 211, 153, 0.18);
  color: var(--emerald-400);
}

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

.plan-tagline {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  min-height: 2.6em;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

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

.plan-price {
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text-primary);
}

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

.plan-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.plan-specs li {
  position: relative;
  padding-left: 20px;
}

.plan-specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-400);
  font-weight: 800;
}

.plan-cycles {
  background: rgba(5, 10, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.plan-cycles strong {
  color: var(--text-primary);
}

.pricing-footnote {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-footnote > div > strong:first-child {
  color: var(--cyan-300);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   Feature Cards, Architecture & GEO Summary
   ========================================================================== */

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

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

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

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-300);
  font-family: var(--font-mono);
  font-weight: 800;
  margin-bottom: 14px;
}

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

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Comparison / GEO Table */

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

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.spec-table th {
  background: rgba(15, 23, 42, 0.9);
  color: var(--cyan-300);
  font-weight: 700;
  white-space: nowrap;
}

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

.spec-table tr:hover td {
  background: rgba(34, 211, 238, 0.04);
}

.geo-summary-box {
  background: linear-gradient(135deg, rgba(14, 25, 48, 0.85), rgba(8, 18, 34, 0.9));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 28px;
}

.geo-summary-box h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--cyan-300);
}

.geo-summary-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Articles Grid & Article Detail Page
   ========================================================================== */

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

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

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

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--emerald-400);
  margin-bottom: 10px;
}

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

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

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

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

.article-readmore {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--cyan-400);
}

/* Article Detail Reading View */

.article-layout {
  padding: 46px 0 72px;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
}

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

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

.article-paper h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.28;
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.32rem;
  color: var(--cyan-300);
}

.article-body h3 {
  margin: 20px 0 8px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

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

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

.article-callout {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--emerald-400);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

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

.article-nav-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

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

.article-nav-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ==========================================================================
   User Reviews, Native FAQ & Outbound Links
   ========================================================================== */

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.review-stars {
  color: var(--amber-300);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

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

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-plan-tag {
  color: var(--cyan-300);
  font-weight: 600;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

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

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

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

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cyan-400);
  flex-shrink: 0;
}

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

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

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

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

.ext-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.ext-card strong {
  color: var(--cyan-300);
  font-size: 0.94rem;
}

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

/* ==========================================================================
   CTA Box & Footer
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, rgba(11, 29, 51, 0.92), rgba(7, 25, 34, 0.92));
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-glow);
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

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

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 15, 0.9);
  padding: 52px 0 32px;
}

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

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

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.87rem;
}

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

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

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .pricing-row {
    gap: 14px;
  }
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }
  .pricing-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-grid,
  .grid-3 {
    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));
  }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .main-nav {
    order: 3;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(56, 189, 248, 0.12);
  }
  .main-nav a {
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .pricing-row,
  .article-grid,
  .grid-3,
  .grid-2,
  .ext-grid,
  .pricing-footnote,
  .article-nav-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-paper {
    padding: 24px 20px;
  }
}
