/* palette: startup-gradient preset */
:root {
  --primary-color: #1A1C28;
  --secondary-color: #2C2E3E;
  --accent-color: #B83838;
  --background-color: #F8F8FB;
  --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: 'Oswald', sans-serif;
  --alt-font: 'Noto Sans', sans-serif;
}

/* @property animations */
@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; 
}

/* General resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Typography Scale */
h1 {
  font-family: var(--main-font);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}
h2 {
  font-family: var(--main-font);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary-color);
}
h3 {
  font-family: var(--main-font);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--primary-color);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* Section styling with STARTUP-GRADIENT preset */
section {
  padding: 56px 16px;
  margin: 0;
}
@media (min-width: 1024px) {
  section {
    padding: 64px 24px;
  }
}

/* Gradient text and button elements from preset */
h1 .grad, .hero h1 span {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: #fff;
  border: none;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-color) 50%, transparent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.icon-bg {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 12px;
  padding: 12px;
}

/* Buttons basic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(184, 56, 56, 0.1);
}

/* Header & CSS Burger Menu */
header {
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
}

.header-inner {
  position: relative;
}

header .logo img {
  max-height: 40px;
  width: auto;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  padding: 20px;
  border-bottom: 3px solid var(--accent-color);
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav 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;
  z-index: 1000;
}
.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

#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;
    background: transparent;
    padding: 0;
    border: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}

/* Hero Section (stats-anchored) */
.hero-section {
  min-height: 86vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.hero-upper {
  flex-grow: 1;
  background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 16px;
}
.hero-badge {
  background-color: var(--accent-color);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.hero-stats-bar {
  background-color: var(--primary-color);
  padding: 24px 16px;
  border-top: 4px solid var(--accent-color);
}

/* Stats Counter animation */
.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 animation */
.bar-fill {
  --pct: 78;
  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 animation */
.donut-container {
  width: 120px;
  height: 120px;
}
.donut {
  --target-deg: 245;
  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-color: var(--background-color);
  border-radius: 50%;
  z-index: 2;
}
@keyframes fill-donut {
  from { --deg: 0; }
  to { --deg: var(--target-deg); }
}

/* Scroll reveal animations */
@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%;
}

/* Cards & Hover effects */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Stats Counter Section specific */
.stats-counter-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.stat-counter-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

/* Comparison Table styling */
.comparison-table {
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-table thead {
  background-color: var(--primary-color);
}
.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}
.comparison-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

/* Contact Form Input styles */
.contact-form-container input, .contact-form-container textarea {
  border: 1px solid var(--border-color);
  background-color: #fff;
  transition: border-color 0.2s;
}
.contact-form-container input:focus, .contact-form-container textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(184, 56, 56, 0.15);
}

/* Footer styling */
footer {
  background-color: var(--primary-color);
  color: #fff;
  border-top: 4px solid var(--accent-color);
}
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
  max-height: 35px;
}
footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
footer a:hover {
  color: var(--accent-color);
}

/* Responsive Grid layouts without inline grids */
@media (min-width: 768px) {
  .grid-cols-custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid-cols-custom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}