/* === CSS Variables === */
:root {
  --brand: #491c0f;
  --brand-contrast: #fff;
  --muted: #6b6b6b;
  --card-bg: #ffffff;
  --page-bg: #fbf7f6;
  --glass: rgba(73, 28, 15, 0.06);
  --radius: 10px;
  --shadow: 0 6px 18px rgba(73, 28, 15, 0.08);
  --max-width: 1100px;
}

/* === Base Styles === */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--brand);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* === Header === */
.site-header {
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

/* === Navigation === */
nav.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav.main-nav a {
  color: var(--brand-contrast);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, transform 0.12s;
}

nav.main-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

h1 {
  text-align: center;
}

/* === Content Blocks === */
.config-block {
  background-color: #fff;
  border: 1px solid #ccc;
  border-left: 5px solid #491c0f;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.config-title {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.config-default {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.config-description {
  font-size: 14px;
  color: #444;
}

/* === Dropdown === */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--brand);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 10;
  min-width: 180px;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 8px 12px;
  color: var(--brand-contrast);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* === CTA Buttons in Header === */
.cta {
  display: flex;
  gap: 10px;
}

/* === Buttons === */
.btn {
  background: var(--brand-contrast);
  color: var(--brand);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #f2dfdb;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--brand-contrast);
  color: var(--brand-contrast);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* === Hero Section === */
.hero {
  background: rgba(73, 28, 15, 0.92);
  color: var(--brand-contrast);
  padding: 2rem 0 3rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-top: -0.5rem;
}

#hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--brand-contrast);
  margin-top: 0;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.lead {
  font-size: 1.1rem;
  color: var(--brand-contrast);
  margin: 1rem 0 1.5rem;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
}

/* === KPI Boxes === */
.kpi {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.kpi .item {
  background: var(--card-bg);
  color: var(--brand);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1 1 0;
  text-align: center;
}

/* === Card Aside === */
.card.quick-links {
  background: var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  color: var(--brand-contrast);
  max-width: 280px;
  justify-self: end;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title {
  font-weight: 700;
  font-size: 1rem;
}

.card-description {
  font-size: 0.95rem;
  color: #f2dfdb;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.card-actions .btn {
  width: 100%;
}

.card-footer {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--brand-contrast);
}

/* === Sections === */
.section {
  padding: 3rem 0;
}

.section h2 {
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.feature {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 30%;
}

/* === Demo Section === */
.product {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mock {
  flex: 1 1 40%;
  background: var(--glass);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prod-info {
  flex: 1 1 50%;
}

/* === Footer === */
.site-footer {
  background: var(--glass);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid > div {
  flex: 1 1 200px;
}

.footer-note {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* === Enhanced Mobile Styles === */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav.main-nav {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
  }

  .card {
    justify-self: start;
    margin-top: 2rem;
  }

  .product {
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
  }

  .kpi {
    flex-wrap: wrap;
  }

  .kpi .item {
    flex: 1 1 100%;
    margin-bottom: 12