/* palette: royal-copper */
:root {
  --primary-color: #12294F;
  --secondary-color: #1E4080;
  --accent-color: #A06830;
  --background-color: #EEF4FA;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Montserrat', sans-serif;
  --alt-font: 'Inter', sans-serif;
}

/* --- DARK-PRO PRESET (LITERAL RULES APPLIED) --- */
body,html{background:var(--secondary-color);color:#F0F0F0} 
section{background:var(--secondary-color);padding:56px 16px;margin:0} 
@media(min-width:1024px){section{padding:72px 24px}} 
.card{background:rgba(255,255,255,0.06);border-top:3px solid var(--accent-color);border-radius:8px} 
p,.subtitle{color:rgba(240,240,240,0.75)} 
.btn:hover,.btn:focus{box-shadow:0 0 24px var(--accent-color)} 
section+section{border-top:1px solid rgba(255,255,255,0.08)}
/* ----------------------------------------------- */

/* Global Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--alt-font);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: clamp(14px, 1.6vw, 17px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  color: #FFFFFF;
}

h1 { font-size: clamp(32px, 6vw, 64px); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(18px, 2.8vw, 28px); font-weight: 600; }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #FFFFFF;
}

/* Touch targets */
button, .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--main-font);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #b57a3e;
}

/* Header & Mobile Navigation */
header {
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: relative;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  z-index: 999;
  border-bottom: 2px solid var(--accent-color);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.site-nav ul li {
  margin: 12px 0;
  text-align: center;
}

.site-nav ul li a {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 600;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(8.5px) rotate(45deg);
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

#menu-toggle:checked ~ .site-nav {
  display: block;
}

@media (min-width: 768px) {
  .burger-btn { display: none; }
  .site-nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
  }
  .site-nav ul {
    flex-direction: row;
    padding: 0;
  }
  .site-nav ul li {
    margin: 0 16px;
  }
  .site-nav ul li a {
    font-size: 0.95rem;
  }
}

/* Hero Section (editorial-bleed) */
.hero-section {
  background-color: var(--primary-color);
  min-height: 77vh;
  display: flex;
  align-items: center;
  padding: 64px 24px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(3.2rem, 9vw, 8rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.text-accent {
  color: var(--accent-color);
}

.editorial-divider {
  border-top: 2px solid var(--accent-color);
  margin-bottom: 32px;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-cta-wrapper {
  margin-top: 24px;
}

/* Titles and Subtitles general */
.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Animations (CSS Only @property Chrome 115+) */
@property --count { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --bar { syntax: '<integer>'; initial-value: 0; inherits: false; }
@property --deg { syntax: '<integer>'; initial-value: 0; inherits: false; }

/* Scroll Reveal */
@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 */
.stat-num {
  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 */
.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: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

/* Donut Charts */
.donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-color) calc(var(--deg) * 1deg), rgba(255, 255, 255, 0.12) 0);
  animation: fill-donut 2s ease-out forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-inner {
  position: absolute;
  width: 90px;
  height: 90px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.2rem;
}
@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

/* Comparison Table Styling */
.table-responsive {
  overflow-x: auto;
}
.comparison-table {
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.comparison-table th {
  background-color: var(--primary-color);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
}
.comparison-table td, .comparison-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.comparison-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Forms styling */
.form-input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--accent-color);
}

/* Footer logo filter override */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Footer layout */
footer {
  background-color: var(--primary-color);
  padding: 48px 24px;
  border-top: 2px solid var(--accent-color);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-nav a {
  color: rgba(240, 240, 240, 0.8);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--accent-color);
}
.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-logo img {
    margin-bottom: 0;
  }
}

.bg-gray-100,
.bg-white,
.bg-yellow-100,
.bg-blue-100,
.bg-red-100,
.bg-green-100,
.bg-gray-100 p,
.bg-white p,
.bg-yellow-100 p,
.bg-blue-100 p,
.bg-red-100 p,
.bg-green-100 p {
  color: #111A13;
}