/* ==========================================================================
   精灵学院 官方网站 - 数字化城建等轴测架构样式表
   Palette: Pale Sky-Blue, Terracotta, Cream, Dark Teal
   System Chinese Sans-Serif & Architectural Heading Styles
   ========================================================================== */

:root {
  /* Architectural Color System */
  --sky-blue: #e8f3f8;
  --sky-blue-light: #f3f8fb;
  --sky-blue-deep: #bcdbe8;
  --sky-blue-border: #a8cfdf;
  
  --terracotta: #c85a3c;
  --terracotta-dark: #a84227;
  --terracotta-light: #fbf1ed;
  --terracotta-border: #e89c85;

  --cream: #faf7f2;
  --cream-card: #ffffff;
  --cream-subtle: #f4eee5;
  --cream-border: #e6dfd3;

  --dark-teal: #142a2d;
  --teal-deep: #0d1b1d;
  --teal-mid: #1d3e42;
  --teal-light: #2c595f;
  --teal-muted: #527378;
  --teal-border: #23464a;

  --text-primary: #142a2d;
  --text-secondary: #3b585c;
  --text-muted: #627f83;
  --text-inverse: #faf7f2;

  --status-active: #2a9d8f;
  --status-warn: #e76f51;
  --status-highlight: #e9c46a;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Spatial Scales */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 32px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Architectural Shadows */
  --shadow-subtle: 0 2px 8px rgba(20, 42, 45, 0.05);
  --shadow-card: 0 4px 16px rgba(20, 42, 45, 0.07);
  --shadow-elevated: 0 12px 32px rgba(20, 42, 45, 0.12);
  --shadow-hard: 4px 4px 0px var(--dark-teal);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 90, 60, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(44, 89, 95, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Accessible Visible Focus */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Blueprint Line Motif & Architectural Accents */
.arch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background-color: var(--terracotta-light);
  border: 1px solid var(--terracotta-border);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.arch-tag-teal {
  color: var(--teal-light);
  background-color: var(--sky-blue);
  border-color: var(--sky-blue-border);
}

.arch-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--dark-teal);
  margin-bottom: 12px;
}

.arch-subheading {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 28px;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-border);
  transition: box-shadow var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark-teal);
  letter-spacing: -0.01em;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--terracotta);
  background: var(--terracotta-light);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid var(--terracotta-border);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 2px;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--terracotta);
}

.nav-link.active {
  color: var(--dark-teal);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--terracotta);
  border-radius: 1px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background-color: var(--terracotta);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--terracotta-dark);
  box-shadow: 2px 2px 0 var(--dark-teal);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--terracotta-dark);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--dark-teal);
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--dark-teal);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background-color: var(--cream-card);
  color: var(--dark-teal);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
  box-shadow: 2px 2px 0 var(--cream-border);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--sky-blue-light);
  border-color: var(--sky-blue-border);
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--dark-teal);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Permanent Registration & Package Sticky Bar
   ========================================================================== */
.permanent-cta-bar {
  position: relative;
  background-color: var(--dark-teal);
  color: var(--cream);
  padding: 10px 0;
  border-bottom: 2px solid var(--terracotta);
  font-size: 0.88rem;
  z-index: 90;
}

.permanent-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.permanent-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(200, 90, 60, 0.2);
  border: 1px solid var(--terracotta);
  color: #ffd0c2;
  padding: 2px 8px;
  border-radius: 3px;
}

.permanent-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.permanent-bar-desc {
  color: #d1e2e4;
  font-size: 0.84rem;
}

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

.btn-cta-bar {
  padding: 6px 14px;
  font-size: 0.82rem;
  background: var(--terracotta);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: none;
  border: 1px solid var(--terracotta-dark);
}

.btn-cta-bar:hover {
  background: var(--terracotta-dark);
}

.btn-cta-bar-ghost {
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #e2f1f5;
  border: 1px solid var(--teal-muted);
  border-radius: var(--radius-sm);
}

.btn-cta-bar-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   Hero Section: Isometric Village & Brand Intro
   ========================================================================== */
.hero-section {
  padding: clamp(32px, 5vw, 64px) 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  color: var(--dark-teal);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-title .brand-accent {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}

.hero-title .brand-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background-color: rgba(200, 90, 60, 0.18);
  z-index: -1;
  border-radius: 2px;
}

.hero-intro {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-teal);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

/* Isometric Village Interactive Canvas */
.hero-visual-card {
  background: var(--cream-card);
  border: 2px solid var(--dark-teal);
  border-radius: var(--radius-xl);
  box-shadow: 6px 6px 0 var(--dark-teal);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.village-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background-color: var(--sky-blue);
  border-bottom: 2px solid var(--dark-teal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-teal);
}

.village-window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--dark-teal);
}

.dot-red { background-color: var(--terracotta); }
.dot-yellow { background-color: var(--status-highlight); }
.dot-green { background-color: var(--status-active); }

.village-stage-wrapper {
  position: relative;
  background: linear-gradient(180deg, #f0f7fa 0%, #faf6f0 100%);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-village-svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  filter: drop-shadow(0 8px 16px rgba(20, 42, 45, 0.08));
}

/* Tower Game Controls & Telemetry */
.village-interaction-panel {
  padding: 16px 20px;
  background-color: var(--cream-subtle);
  border-top: 2px solid var(--dark-teal);
}

.village-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.village-control-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.village-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: normal;
  display: block;
  margin-top: 4px;
}

.tower-control-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-tower-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-teal);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-tower-site:hover {
  background: var(--sky-blue);
  border-color: var(--sky-blue-border);
}

.btn-tower-site.active {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--terracotta);
}

.btn-tower-site .key-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-village-reset {
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-muted);
  border: 1px dashed var(--cream-border);
  border-radius: var(--radius-md);
  background: var(--cream-card);
  transition: all var(--transition-fast);
}

.btn-village-reset:hover {
  border-color: var(--dark-teal);
  color: var(--dark-teal);
}

.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--dark-teal);
  color: #d8edf3;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.telemetry-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-active);
  box-shadow: 0 0 6px var(--status-active);
}

/* ==========================================================================
   Section 2: Architectural Cutaway Panels (Advantages)
   ========================================================================== */
.section-advantages {
  padding: clamp(48px, 6vw, 84px) 0;
  position: relative;
}

.cutaway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cutaway-card {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cutaway-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--terracotta-border);
}

.cutaway-blueprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--cream-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cutaway-svg-diagram {
  width: 100%;
  height: 140px;
  background: var(--sky-blue-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--sky-blue-border);
  margin-bottom: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cutaway-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--dark-teal);
  margin-bottom: 10px;
  line-height: 1.35;
}

.cutaway-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cutaway-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--teal-mid);
}

.cutaway-spec-item {
  display: flex;
  justify-content: space-between;
}

.cutaway-spec-item span:first-child {
  color: var(--text-muted);
}

/* ==========================================================================
   Section 3: Connected Neighbourhoods (Node Network)
   ========================================================================== */
.section-nodes {
  padding: clamp(48px, 6vw, 84px) 0;
  background-color: var(--sky-blue-light);
  border-top: 1px solid var(--sky-blue-border);
  border-bottom: 1px solid var(--sky-blue-border);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.district-card {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.district-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.district-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-teal);
}

.district-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--sky-blue);
  color: var(--teal-light);
  border: 1px solid var(--sky-blue-border);
}

.district-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

.district-nodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--cream-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.node-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark-teal);
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--status-active);
  font-weight: 700;
}

.network-topology-banner {
  background: var(--dark-teal);
  color: var(--cream);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.topology-banner-content h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.topology-banner-content p {
  font-size: 0.88rem;
  color: #c8e0e5;
  max-width: 720px;
}

/* ==========================================================================
   Section 4: AI & Streaming Practical Workspace Stories
   ========================================================================== */
.section-ecosystem {
  padding: clamp(48px, 6vw, 84px) 0;
}

.stories-filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
  background: var(--cream-card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-tab-btn:hover {
  background: var(--sky-blue);
  color: var(--dark-teal);
}

.filter-tab-btn.active {
  background: var(--dark-teal);
  color: #fff;
  border-color: var(--dark-teal);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.ecosystem-card {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.eco-platform-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eco-platform-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--sky-blue);
  color: var(--teal-light);
}

.eco-scenario {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.55;
  flex-grow: 1;
}

.eco-consideration-box {
  background: var(--cream-subtle);
  border-left: 3px solid var(--terracotta);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.eco-consideration-box strong {
  color: var(--terracotta-dark);
}

/* ==========================================================================
   Section 5: Pricing Accessible Comparison Table
   ========================================================================== */
.section-pricing {
  padding: clamp(48px, 6vw, 84px) 0;
  background-color: var(--cream-subtle);
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}

.pricing-table-wrapper {
  background: var(--cream-card);
  border: 2px solid var(--dark-teal);
  border-radius: var(--radius-xl);
  box-shadow: 6px 6px 0 var(--dark-teal);
  overflow-x: auto;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 740px;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-border);
  font-size: 0.92rem;
}

.pricing-table thead th {
  background-color: var(--sky-blue);
  color: var(--dark-teal);
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--dark-teal);
  position: sticky;
  top: 0;
}

.pricing-table th.col-highlight,
.pricing-table td.col-highlight {
  background-color: rgba(200, 90, 60, 0.05);
  border-left: 2px solid var(--terracotta);
  border-right: 2px solid var(--terracotta);
}

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

.plan-name-cell {
  display: flex;
  flex-direction: column;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-teal);
}

.plan-recom-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--terracotta);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.plan-price-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--terracotta-dark);
}

.plan-price-period {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan-price-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.pricing-disclaimer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Section 6: Nine SEO Cards (Immediately below pricing)
   Desktop 3x3, Tablet 2 cols, Mobile 1 col
   ========================================================================== */
.section-seo-articles {
  padding: clamp(48px, 6vw, 84px) 0;
}

.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .seo-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .seo-articles-grid {
    grid-template-columns: 1fr;
  }
}

.seo-article-card {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.seo-article-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-elevated);
}

.seo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.seo-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark-teal);
  margin-bottom: 10px;
  line-height: 1.4;
}

.seo-card-title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.seo-card-title a:hover {
  color: var(--terracotta);
}

.seo-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.seo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--cream-border);
  padding-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* ==========================================================================
   Section 7: Review Cards (Simulated/Labelled Testimonials)
   ========================================================================== */
.section-reviews {
  padding: clamp(48px, 6vw, 84px) 0;
  background: var(--sky-blue-light);
  border-top: 1px solid var(--sky-blue-border);
  border-bottom: 1px solid var(--sky-blue-border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
}

.review-label-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--cream-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 10px;
  align-self: flex-start;
}

.review-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky-blue);
  border: 1px solid var(--sky-blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--teal-light);
  font-size: 0.95rem;
}

.review-user-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark-teal);
}

.review-user-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 8: FAQ Accordion
   ========================================================================== */
.section-faq {
  padding: clamp(48px, 6vw, 84px) 0;
}

.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--dark-teal);
}

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

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-light);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--terracotta-light);
  color: var(--terracotta);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 22px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

/* ==========================================================================
   Article & Support Page Layouts
   ========================================================================== */
.page-header {
  padding: 48px 0 32px;
  background-color: var(--sky-blue-light);
  border-bottom: 1px solid var(--sky-blue-border);
}

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

.breadcrumbs a {
  color: var(--teal-light);
}

.breadcrumbs a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: var(--cream-border);
}

.article-content-wrapper {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark-teal);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-border);
}

.article-body h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cream-subtle);
  border: 1px solid var(--cream-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--terracotta-dark);
}

.article-body pre {
  background: var(--dark-teal);
  color: #dbeaf0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.article-callout {
  padding: 16px 20px;
  background: var(--sky-blue-light);
  border-left: 4px solid var(--teal-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

.article-callout strong {
  color: var(--dark-teal);
}

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

.sidebar-box {
  background: var(--cream-card);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark-teal);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--cream-border);
}

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

.sidebar-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.sidebar-links a:hover {
  color: var(--terracotta);
}

/* ==========================================================================
   Footer & Mandated Recommendations
   ========================================================================== */
.site-footer {
  background-color: var(--dark-teal);
  color: var(--cream);
  padding: 60px 0 32px;
  border-top: 4px solid var(--terracotta);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

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

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: #b0c9cd;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-links-list a {
  color: #b8d2d6;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffd0c2;
}

/* Mandatory Related Recommendations in Footer */
.footer-recommendations-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.recom-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffd0c2;
  letter-spacing: 0.05em;
}

.recom-links-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.recom-link {
  font-size: 0.86rem;
  color: #e2f1f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.recom-link:hover {
  color: #ffd0c2;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: #8da7ab;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: #8da7ab;
}

.footer-legal-links a:hover {
  color: #fff;
}

/* Responsive Hamburger Menu Open State */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--cream);
    border-bottom: 2px solid var(--dark-teal);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-elevated);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screen Refinements (375px, 390px, 430px, 600px) */
@media (max-width: 600px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tower-control-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-village-reset {
    grid-column: span 2;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .stories-filter-tabs {
    flex-direction: column;
    width: 100%;
  }

  .filter-tab-btn {
    width: 100%;
    text-align: center;
  }

  .permanent-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .permanent-bar-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .telemetry-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
