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

:root {
  /* Color Palette */
  --bg-primary: #030712;      /* Deep obsidian black */
  --bg-secondary: #0b0f19;    /* Dark indigo-black */
  --bg-tertiary: #161e2e;     /* Slate grey 800 */
  --bg-card: rgba(15, 23, 42, 0.6);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --accent-primary: #8b5cf6;  /* Cyber Violet */
  --accent-secondary: #06b6d4;/* Cyber Cyan */
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-gold: #f59e0b;     /* Monetization Gold */
  --accent-gold-glow: rgba(245, 158, 11, 0.15);
  
  /* Text Colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-accent: #a78bfa;

  /* Sizing and Layout */
  --max-width-site: 1200px;
  --max-width-article: 800px;
  --border-radius: 12px;
  --sidebar-width: 300px;
  
  /* Shadows and Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --glass-bg: rgba(11, 15, 25, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* Base resets and defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.625;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover {
  color: var(--text-accent);
  text-decoration-color: var(--accent-primary);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

blockquote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(139, 92, 246, 0.03);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

th {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.02);
}

td {
  color: var(--text-secondary);
}

/* Layout Classes */
.container {
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.layout-single {
  max-width: var(--max-width-article);
  margin: 2rem auto;
}

.main-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sticky layout rules for sidebar widgets */
.sidebar-sticky {
  position: sticky;
  top: calc(75px + 2rem); /* height of header + gap */
}

/* Nav Header glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-header);
  -webkit-backdrop-filter: var(--blur-header);
  border-bottom: 1px solid var(--glass-border);
  height: 75px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 48px;
  width: auto;
  border: none;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.2));
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background 0.3s;
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: transform 0.3s, top 0.3s;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Responsive navigation toggle */
.nav-active .hamburger {
  background: transparent;
}
.nav-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Card Foundation */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Ad Containers (AdSense Optimization) */
.ad-container {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
  margin: 2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-container::before {
  content: 'ADVERTISEMENT';
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  width: 100%;
}

.ad-leaderboard {
  min-height: 110px;
  width: 100%;
}

.ad-skyscraper {
  min-height: 620px;
  width: 100%;
}

.ad-square {
  min-height: 270px;
  width: 100%;
}

@media (max-width: 768px) {
  .ad-skyscraper, .ad-leaderboard {
    min-height: auto;
    display: none; /* Hide wide/tall layouts on mobile, use auto responsive instead */
  }
  .ad-container.mobile-fallback {
    display: flex;
    min-height: 270px;
  }
}

/* Premium Compendium Product Card */
.compendium-card {
  background: linear-gradient(145deg, rgba(22, 30, 46, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
  padding: 2.25rem;
  border-radius: var(--border-radius);
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.compendium-card::before {
  content: 'PREMIUM RESOURCE';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
}

.compendium-cover-container {
  display: flex;
  justify-content: center;
}

.compendium-cover {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.compendium-card:hover .compendium-cover {
  transform: translateY(-4px) rotate(-1deg);
}

.compendium-details h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.compendium-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.compendium-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.compendium-features li {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.compendium-features li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: bold;
}

.compendium-checkout-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.compendium-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.pp-form-styled {
  display: flex;
  align-items: center;
}

.pp-button-styled {
  text-align: center;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  background-color: var(--accent-gold);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0 1.5rem;
  height: 42px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.pp-button-styled:hover {
  background-color: #fbbf24;
  transform: translateY(-1px);
}

.pp-button-styled:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .compendium-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .compendium-cover {
    max-width: 140px;
  }
  .compendium-features {
    grid-template-columns: 1fr;
  }
  .compendium-checkout-wrapper {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* Article metadata and details */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.article-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-meta span::after {
  content: '•';
  margin-left: 1rem;
  color: var(--text-muted);
  opacity: 0.3;
}

.article-meta span:last-child::after {
  display: none;
}

.ai-summary {
  margin: 2rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-primary);
  background: rgba(139, 92, 246, 0.04);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.ai-summary::before {
  content: 'BLUF (AI Executive Summary)';
  display: block;
  font-family: 'Space Mono', monospace;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.toc {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.toc strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc li:last-child {
  margin-bottom: 0;
}

.toc a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.toc a:hover {
  color: var(--accent-secondary);
}

.author-bio {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}

.author-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.author-details strong {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
}

/* Form and Interactivity elements (Calculator) */
.calculator-card {
  background: linear-gradient(145deg, rgba(22, 30, 46, 0.4) 0%, rgba(11, 15, 25, 0.6) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin: 2.5rem 0;
}

.calc-group {
  margin-bottom: 1.75rem;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
}

.calc-group label span {
  font-family: 'Space Mono', monospace;
  color: var(--accent-secondary);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-secondary);
  transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-secondary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-secondary);
  border: none;
  transition: transform 0.1s;
}

.calc-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.calc-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

.calc-btn:active {
  transform: translateY(0);
}

.calc-result-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.calc-result-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-score {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.calc-bar-track {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.calc-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.calc-verdict {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Form Styling (Contact) */
.contact-form {
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.form-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

/* Gallery Exhibits Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin: 3rem 0;
}

.exhibit-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
}

.exhibit-image-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  height: 240px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.exhibit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.exhibit-card:hover .exhibit-image {
  transform: scale(1.04);
}

.exhibit-info h3 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.exhibit-prompt {
  font-size: 0.85rem;
  font-family: 'Space Mono', monospace;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.exhibit-quote {
  font-style: italic;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  margin: 0.75rem 0;
}

@media (max-width: 768px) {
  .exhibit-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .exhibit-image-wrapper {
    height: 200px;
  }
}

/* Newsletter styling */
.newsletter-card {
  background: linear-gradient(145deg, rgba(22, 30, 46, 0.7) 0%, rgba(11, 15, 25, 0.8) 100%);
  border: 1px solid var(--accent-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.05);
}

.newsletter-card h3 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.newsletter-card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent-primary);
}

.newsletter-btn {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover {
  background: #7c3aed;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* Footer styling */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 3rem 0;
  margin-top: 5rem;
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

/* Homepage Hero & Specific layouts */
.home-hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.home-hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.home-hero-text p {
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.home-hero-image-wrapper {
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 380px;
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  transition: transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.home-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  color: #fff;
}

.home-features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 4rem 0;
  align-items: center;
}

.home-features-image-wrapper {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-lg);
}

.home-features-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-features-list {
  list-style: none;
  padding-left: 0;
}

.home-features-list li {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-features-list li::before {
  content: '✦';
  color: var(--accent-secondary);
  font-weight: bold;
}

.home-section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.home-articles-list {
  list-style: none;
  padding-left: 0;
}

.home-articles-list li {
  margin-bottom: 1rem;
}

.home-articles-list a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.home-articles-list a:hover {
  color: var(--accent-secondary);
}

.home-articles-list p {
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .home-hero-layout, .home-features-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .home-hero-image-wrapper {
    height: 280px;
  }
  .home-features-image-wrapper {
    height: 240px;
    order: 2; /* Put the image below list on tablet/mobile */
  }
  .home-features-list li {
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dynamic search & filtering styling */
.search-container {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-md);
}

.search-input:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Interactive Gallery Lightbox modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content-container {
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin-top: 1.5rem;
  text-align: center;
  max-width: 600px;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.lightbox-caption p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close-btn:hover {
  color: #fff;
}

@keyframes lightboxZoom {
  from { transform: scale(0.9) translateY(10px); }
  to { transform: scale(1) translateY(0); }
}

/* AI Agent Console specific styles */
.console-section {
  margin: 3rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2.5rem;
}

.console-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.console-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  text-transform: uppercase;
}

.console-code-block {
  background: #020617;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  color: #38bdf8;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.console-code-block pre {
  margin: 0;
}

.console-schema-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

