:root {
  --bs-body-bg: #0e1117;
  --bs-body-color: #f5f3ee;
  --accent: #f6c65b;
  --accent-strong: #ff9f1a;
  --accent-cool: #4fd1c5;
  --panel: rgba(18, 22, 30, 0.88);
  --border: rgba(246, 198, 91, 0.18);
  --shadow: 0 30px 60px rgba(7, 8, 12, 0.45);
}

body.site-body {
  background: radial-gradient(circle at top, rgba(28, 33, 44, 0.9), #0e1117 55%);
  color: var(--bs-body-color);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.site-body::before,
body.site-body::after {
  content: '';
  position: fixed;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.15), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

body.site-body::after {
  inset: auto auto -30% -10%;
  background: radial-gradient(circle, rgba(246, 198, 91, 0.12), transparent 60%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
}

.site-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.text-accent {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.link-accent {
  color: var(--accent);
  text-decoration: none;
}

.link-accent:hover {
  color: var(--accent-strong);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #0b0e14;
  font-weight: 600;
}

.btn-accent:hover {
  background-color: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #0b0e14;
}

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(246, 198, 91, 0.6);
}

.hero-section {
  padding: 4.5rem 0 5rem;
}

.hero-title {
  text-shadow: 0 0 24px rgba(246, 198, 91, 0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c6c2b6;
}

.hero-meta span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 198, 91, 0.35);
  background: rgba(15, 18, 26, 0.7);
}

.hero-media {
  position: relative;
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(25, 30, 40, 0.8), rgba(12, 14, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-media img {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-carousel .carousel-inner {
  border-radius: 18px;
  overflow: hidden;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-carousel .carousel-caption {
  background: rgba(12, 14, 20, 0.7);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  bottom: 1.25rem;
}

.hero-product-strip {
  margin-top: 2rem;
}

.hero-product-card {
  background: rgba(16, 20, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(4, 5, 8, 0.35);
}

.hero-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hero-product-card .card-body {
  padding: 1.25rem;
}

.hero-media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #d7d2c4;
}

.hero-media-badges span {
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  background: rgba(79, 209, 197, 0.12);
  border: 1px solid rgba(79, 209, 197, 0.4);
}

.features-section,
.snippet-section,
.download-section,
.blog-section,
.about-section {
  padding: 3.5rem 0;
}

.feature-card,
.download-card,
.blog-card {
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 16px;
  box-shadow: 0 16px 35px rgba(4, 5, 8, 0.35);
}

.download-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(18, 22, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2.5rem;
}

.download-selector-control {
  min-width: 220px;
}

.download-platform {
  display: none;
  margin-bottom: 3rem;
}

.download-platform.is-active {
  display: block;
}

.download-platform-header {
  margin-bottom: 1.5rem;
}

.download-product-card {
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(5, 6, 10, 0.4);
}

.download-product-media {
  background: rgba(10, 12, 18, 0.9);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.download-product-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.download-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.download-tag {
  background: rgba(79, 209, 197, 0.2);
  border: 1px solid rgba(79, 209, 197, 0.5);
  color: #c8f5ef;
  font-weight: 600;
}

.download-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.blog-card {
  overflow: hidden;
}

.blog-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #0c0f16;
}

.blog-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-hero-image {
  margin: -0.5rem -0.5rem 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-hero-image img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.breadcrumb {
  margin-bottom: 0.75rem;
}

.breadcrumb-item a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(245, 243, 238, 0.45);
}

.breadcrumb-item.active {
  color: rgba(245, 243, 238, 0.7);
}

.blog-sidebar-panel {
  align-self: flex-start;
}

.pagination-dark .page-link {
  background: rgba(12, 14, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f3ee;
}

.pagination-dark .page-link:hover {
  color: #0b0e14;
  background: var(--accent);
  border-color: var(--accent);
}

.pagination-dark .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0e14;
  font-weight: 600;
}

.pagination-dark .page-item.disabled .page-link {
  background: rgba(12, 14, 20, 0.6);
  color: #8f98a8;
}

.feature-card .card-title,
.download-card .card-title,
.blog-card .card-title {
  color: #ffffff;
}

.code-block {
  background: #0b0f1a;
  color: #d9ffe9;
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.9rem;
  border: 1px solid rgba(47, 240, 177, 0.2);
  margin: 0;
}

.section-heading {
  max-width: 640px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.share-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.share-card {
  background: rgba(10, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.share-card h5 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.share-card p {
  margin-bottom: 0;
  color: #bdb8aa;
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.85s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero {
  padding: 3rem 0 2rem;
}

.blog-body p {
  margin-bottom: 1rem;
  color: #c0c6d4;
}

.site-footer {
  background: #0b0e14;
}

.site-banner {
  background: linear-gradient(120deg, rgba(246, 198, 91, 0.2), rgba(67, 99, 246, 0.2));
  border-bottom: 1px solid rgba(246, 198, 91, 0.2);
  font-size: 0.9rem;
}

.footer-links a {
  color: #c0c6d4;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-footer a {
  color: #c0c6d4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

.footer-meta-link {
  color: #c0c6d4;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-meta-link:hover {
  color: #ffffff;
}

.footer-social a {
  color: #c0c6d4;
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: #ffffff;
}

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

.accordion-button {
  color: #f5f7ff;
}

.accordion-button::after {
  filter: invert(1);
}

.badge.bg-accent {
  background: rgba(246, 198, 91, 0.15);
  color: var(--accent);
  border: 1px solid rgba(246, 198, 91, 0.3);
}

@media (max-width: 991px) {
  .hero-media {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
