@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ==========================================================================
   Design Tokens & Root Variables
   ========================================================================== */
:root {
  /* Colors */
  --bg-deep: #1d1917;
  --bg-main: #2f2a26;
  --bg-card: #3a332d;
  --bg-card-hover: #473e37;
  --bg-light: #f4f1ec;
  --bg-card-light: #fffaf3;
  
  --border-color: #4a4038;
  --border-light: #e8ded2;
  
  --primary: #c49a6c;
  --primary-hover: #d8b98a;
  --primary-glow: rgba(196, 154, 108, 0.15);
  --primary-glow-strong: rgba(196, 154, 108, 0.4);
  
  --text-white: #ffffff;
  --text-muted: #d8c8b8;
  --text-dark: #2b2420;
  --text-light-muted: #6d6258;
  --success: #8bb78f;
  --danger: #cf7c7c;
  
  /* Fonts */
  --font-family: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

ul, ol {
  list-style: none;
}

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

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes glowSpot {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-white) 30%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Glow Spots (Ambient Background)
   ========================================================================== */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.glow-spot {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(47, 42, 38, 0) 70%);
  filter: blur(80px);
  opacity: 0.8;
}

.glow-spot-1 {
  top: -10vw;
  right: -5vw;
  animation: glowSpot 15s infinite alternate ease-in-out;
}

.glow-spot-2 {
  top: 60vh;
  left: -15vw;
  background: radial-gradient(circle, rgba(196, 154, 108, 0.1) 0%, rgba(47, 42, 38, 0) 70%);
  animation: glowSpot 20s infinite alternate-reverse ease-in-out;
}

.glow-spot-3 {
  bottom: 10%;
  right: -10vw;
  animation: glowSpot 18s infinite alternate ease-in-out;
}

/* ==========================================================================
   Buttons & CTA
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--primary-glow-strong);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow-strong);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: rgba(196, 154, 108, 0.05);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.float-btn {
  animation: float 4s infinite ease-in-out;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(47, 42, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 64, 56, 0.4);
  z-index: 1000;
  transition: all var(--transition-speed);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(29, 25, 23, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-weight: 800;
}

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

.nav-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-speed);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-white);
}

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

/* Hamburger menu button for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all var(--transition-speed);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 100px;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

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

.hero-tag {
  background-color: rgba(74, 64, 56, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-tag svg {
  color: var(--primary);
  width: 12px;
  height: 12px;
  animation: breathe 2s infinite ease-in-out;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-box {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: radial-gradient(135deg, var(--bg-card) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.visual-node-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v-node-card {
  background-color: rgba(29, 25, 23, 0.6);
  border: 1px solid rgba(196, 154, 108, 0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v-node-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-node-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.v-node-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.v-node-type {
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(196, 154, 108, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(196, 154, 108, 0.2);
}

.v-node-speed {
  text-align: right;
}

.v-node-ms {
  color: var(--success);
  font-weight: 700;
  font-size: 0.95rem;
}

.v-node-loss {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.visual-glow-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(196, 154, 108, 0.2);
  border-radius: 50%;
  top: -40px;
  right: -40px;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Core Advantages (Why Us)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 154, 108, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background-color: var(--bg-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(196, 154, 108, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid rgba(196, 154, 108, 0.15);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(71, 62, 55, 0.3) 100%);
  box-shadow: 0 10px 30px rgba(196, 154, 108, 0.08);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--primary);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pricing-feature-item.warning {
  color: #e5b986;
}

.pricing-feature-item svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.pricing-feature-item.check svg {
  color: var(--success);
}

.pricing-feature-item.cross svg {
  color: var(--danger);
}

.pricing-btn {
  width: 100%;
}

.pricing-note {
  background-color: rgba(207, 124, 124, 0.08);
  border: 1px dashed rgba(207, 124, 124, 0.2);
  padding: 16px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pricing-note svg {
  color: var(--danger);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.pricing-note p {
  line-height: 1.5;
}

/* ==========================================================================
   Tutorials Section
   ========================================================================== */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tutorial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.tutorial-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  background-color: var(--bg-card-hover);
}

.tutorial-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.client-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}

.client-platform {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(196, 154, 108, 0.1);
  color: var(--primary);
  font-weight: 500;
}

.tutorial-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tutorial-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* ==========================================================================
   Reviews (Evaluations)
   ========================================================================== */
.eval-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}

.eval-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
}

.eval-metric-list {
  margin-top: 30px;
}

.eval-metric-item {
  margin-bottom: 20px;
}

.eval-metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.eval-bar-bg {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.eval-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
}

.eval-content-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
}

.eval-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  overflow-x: auto;
}

.eval-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.eval-tab-btn.active {
  color: var(--primary);
  position: relative;
}

.eval-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.eval-tab-panel {
  display: none;
}

.eval-tab-panel.active {
  display: block;
}

.eval-list {
  display: grid;
  gap: 20px;
}

.eval-list-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(74, 64, 56, 0.4);
  padding: 20px;
  border-radius: 8px;
}

.eval-list-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-list-title span {
  font-size: 0.75rem;
  color: var(--success);
  border: 1px solid rgba(139, 183, 143, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
}

.eval-list-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pros and Cons styling */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.pros-card, .cons-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.pros-card {
  background-color: rgba(139, 183, 143, 0.03);
  border-color: rgba(139, 183, 143, 0.15);
}

.cons-card {
  background-color: rgba(207, 124, 124, 0.03);
  border-color: rgba(207, 124, 124, 0.15);
}

.pros-title {
  color: var(--success);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cons-title {
  color: var(--danger);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-list li, .cons-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

.cons-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--danger);
}

/* ==========================================================================
   Knowledge Base Articles
   ========================================================================== */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.kb-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-hover);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.kb-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kb-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.kb-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.kb-title a:hover {
  color: var(--primary);
}

.kb-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   User Reviews (Testimonials)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: all var(--transition-speed) ease;
}

.review-card:hover {
  border-color: var(--primary);
  background-color: var(--bg-card-hover);
}

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

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.avatar-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.review-stars {
  color: var(--primary-hover);
  margin-bottom: 12px;
  font-size: 0.85rem;
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.faq-icon {
  transition: transform var(--transition-speed);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Tag Cloud Section
   ========================================================================== */
.tags-cloud {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 960px;
  margin: 0 auto;
}

.tag-cloud-link {
  font-size: 0.88rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 64, 56, 0.5);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.tag-cloud-link:hover {
  background-color: var(--primary);
  color: var(--bg-deep);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ==========================================================================
   CTA Box Widget
   ========================================================================== */
.cta-banner-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(71, 62, 55, 0.7) 100%);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius);
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.cta-banner-box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
  top: -150px;
  left: -150px;
  pointer-events: none;
}

.cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  line-height: 1.7;
}

.footer-title {
  color: var(--text-white);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(74, 64, 56, 0.5);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Floating Mobile CTA
   ========================================================================== */
.mobile-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(47, 42, 38, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--primary);
  padding: 12px 24px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.mobile-fixed-cta .btn {
  width: 100%;
  box-shadow: 0 4px 15px var(--primary-glow-strong);
}

/* ==========================================================================
   Article Pages Template Layout
   ========================================================================== */
.article-layout {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

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

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--border-color);
}

.article-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}

.article-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.article-h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-white);
}

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

/* Table of Contents in Article */
.article-toc {
  background-color: rgba(29, 25, 23, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.article-toc-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.article-toc-list {
  list-style: none;
}

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

.article-toc-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-toc-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Rich Text Formatting */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 1.6rem;
  color: var(--text-white);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(74, 64, 56, 0.5);
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--text-white);
  margin: 28px 0 12px;
}

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

.article-body strong {
  color: var(--text-white);
}

.article-body blockquote {
  background-color: rgba(196, 154, 108, 0.05);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.article-body th, .article-body td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.article-body th {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-white);
}

.article-body tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.01);
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

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

.article-body code {
  font-family: monospace;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary-hover);
}

.article-body pre {
  background-color: var(--bg-deep);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.article-body pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.88rem;
}

.article-cta {
  margin-top: 50px;
}

.article-related {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.article-related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.related-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all var(--transition-speed);
}

.related-card:hover {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.related-title {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
}

.sidebar-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* ==========================================================================
   Responsive Design & Breakpoints
   ========================================================================== */

/* Medium Devices (Tablets, less than 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-h1 {
    font-size: 2.6rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tutorials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .kb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .article-main-grid {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Small Devices (Landscape Phones & Small Tablets, less than 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .visual-box {
    max-width: 320px;
  }
  
  /* Navigation Hamburger Behavior */
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-main);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: left var(--transition-speed) ease;
    z-index: 999;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.open {
    left: 0;
  }
  
  .nav-actions {
    display: none; /* Hide top right action in mobile, user will see CTAs */
  }
  
  .eval-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 576px) {
  .hero-h1 {
    font-size: 2.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .kb-grid {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-fixed-cta {
    display: block;
  }
  
  body {
    padding-bottom: 70px; /* Space for the sticky mobile CTA */
  }
  
  .article-content {
    padding: 24px 16px;
  }
  
  .article-h1 {
    font-size: 1.7rem;
  }
}
