/* palette: graphite-amber */
:root {
  --primary-color: #1E2832;
  --secondary-color: #2C3E50;
  --accent-color: #C9900A;
  --background-color: #F5F7F9;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Playfair Display', Georgia, serif;
  --alt-font: 'Roboto', sans-serif;
}

/* Base Styles */
body, html {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* RETRO-CLASSIC preset literal rules */
section {
  padding: 72px 16px;
}
@media(min-width:1024px) {
  section {
    padding: 80px 24px;
  }
}
h1, h2, h3 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}
.card {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  background: #ffffff;
}
.btn {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  transition: transform .15s, box-shadow .15s;
}
hr {
  border: none;
  text-align: center;
}
hr::before {
  content: "— * —";
  display: block;
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Button & Hover interactions */
.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-outline:hover {
  background-color: rgba(30, 40, 50, 0.05);
  transform: translateY(-2px);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
  transition: transform .25s, box-shadow .25s;
}

/* Typography scale */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-color);
}
h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-color);
}
h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--secondary-color);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}
.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* Header & Menu */
.site-header {
  position: relative;
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-color);
}
#menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 999;
  border-bottom: 2px solid var(--primary-color);
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.site-nav ul li a {
  font-weight: bold;
  color: var(--primary-color);
  transition: color 0.2s;
}
.site-nav ul li a:hover {
  color: var(--accent-color);
}
#menu-toggle:checked ~ .site-nav {
  display: block;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}
.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

@media(min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
  }
}

/* HERO (Bento Grid) */
.hero-bento {
  min-height: 79vh;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.bento-cell {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-main {
  background-color: var(--primary-color);
  color: #ffffff;
}
.bento-main h1 {
  color: #ffffff;
}
.bento-image {
  background-size: cover;
  background-position: center;
  min-height: 250px;
}
.bento-accent {
  background-color: var(--accent-color);
  color: #ffffff;
}
.bento-accent h3 {
  color: #ffffff;
}
.bento-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}
.bento-secondary h3 {
  color: #ffffff;
}
.bento-light {
  background-color: #ffffff;
}

@media(min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .bento-main {
    grid-column: span 2;
    padding: 48px;
  }
  .bento-image {
    grid-column: span 1;
  }
  .bento-accent, .bento-secondary, .bento-light {
    grid-column: span 1;
  }
}

/* Animations: Scroll Reveal & Cascade */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Stats Counter (CSS Only via @property) */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.stat-num {
  --target: 80;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}
.stat-num::after {
  content: counter(n);
}
@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}

/* Progress Bars (CSS Only via @property) */
@property --bar {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.bar-fill {
  width: calc(var(--bar) * 1%);
  animation: fill-bar 1.5s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
  background: var(--accent-color);
  height: 12px;
  border-radius: 999px;
}
@keyframes fill-bar {
  from { --bar: 0; }
  to { --bar: var(--pct); }
}
.bar-track {
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

/* Donut Charts (CSS Only via @property) */
@property --deg {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-color) calc(var(--deg) * 1deg), var(--border-color) 0);
  animation: fill-donut 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}
.donut-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
}
@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}
.footer-nav {justify-content: center;}
/* Dark Section styling */
.bg-dark {
  background-color: var(--primary-color);
}

/* Comparison Table styling */
table th, table td {
  border-bottom: 1px solid var(--border-color);
}

/* Footer styling */
.logo-footer {
  filter: brightness(0) invert(1);
  max-height: 48px;
}
footer a:hover {
  text-decoration: underline;
}