:root {
  --bg-primary: #0b0f19;
  --bg-surface: #111827;
  --bg-elevated: #1e293b;
  --bg-highlight: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --border-color: #334155;
  --border-gold: rgba(245, 158, 11, 0.4);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-w: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  padding-bottom: 70px; /* Space for mobile sticky footer */
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-gold-hover);
}

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

/* Header & Navigation */
header.site-header {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-wrap img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  align-items: center;
}

nav.main-nav a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--bg-elevated);
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
}

/* Primary CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-green:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold) !important;
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 1.2rem;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-features div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-image-wrap img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.breadcrumb-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
}

.breadcrumb-container a {
  color: var(--text-muted);
}

.breadcrumb-container a:hover {
  color: var(--accent-gold);
}

/* Layout & Main Container */
.main-wrapper {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.2rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.full-width {
  grid-template-columns: 1fr;
}

/* Typography & Content Article */
article.article-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

h1.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 2.2rem 0 1rem 0;
  border-left: 4px solid var(--accent-gold);
  padding-left: 0.8rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 1.6rem 0 0.8rem 0;
}

p {
  margin-bottom: 1.2rem;
  color: #cbd5e1;
}

ul, ol {
  margin: 1rem 0 1.4rem 1.5rem;
  color: #cbd5e1;
}

li {
  margin-bottom: 0.5rem;
}

/* Direct Answer Capsule (Generative AI / AEO) */
.answer-capsule {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}

.answer-capsule-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.answer-capsule p {
  color: #f1f5f9;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Callout Box */
.callout {
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent-green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem;
  margin: 1.5rem 0;
}

.callout strong {
  color: #34d399;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.data-table th {
  background: var(--bg-elevated);
  color: var(--accent-gold);
  padding: 0.9rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

table.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: #cbd5e1;
}

table.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
}

.card-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  margin-top: auto;
}

/* FAQ Accordion Section */
.faq-section {
  margin: 2.5rem 0;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: 1.2rem 1.4rem;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.faq-question::before {
  content: "Q.";
  color: var(--accent-gold);
  font-weight: 800;
}

.faq-answer {
  color: #cbd5e1;
  font-size: 0.95rem;
  padding-left: 1.6rem;
}

/* Author Box (E-E-A-T) */
.author-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

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

.author-info h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.author-role {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.author-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Sidebar */
aside.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.widget-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-links li {
  margin-bottom: 0.8rem;
}

.widget-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.15s;
}

.widget-links a:hover {
  color: var(--accent-gold);
}

.promo-sidebar-box {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.promo-sidebar-box h4 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.promo-highlight {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.5rem 0;
}

/* Footer */
footer.site-footer {
  background: #070a10;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 1.2rem 2rem 1.2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badge-item img {
  height: 30px;
  width: auto;
  filter: grayscale(20%);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

/* Floating Bottom Bar for Mobile */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 0.5rem 1rem;
}

.mobile-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--accent-gold);
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-features {
    justify-content: center;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .mobile-bottom-bar {
    display: block;
  }
  article.article-body {
    padding: 1.5rem;
  }
  h1.article-title {
    font-size: 1.7rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
