:root {
  color-scheme: dark;
  --site-bg: #07111f;
  --site-panel: #0e1b2d;
  --site-panel-raised: #13243a;
  --site-text: #f4f8ff;
  --site-muted: #a9bbcf;
  --site-line: rgba(175, 206, 233, .13);
  --site-blue: #4f91f7;
  --site-cyan: #20d4d2;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 0 28px !important;
  overflow-x: hidden;
  background: var(--site-bg) !important;
  color: var(--site-text) !important;
  font-family: "Lato", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body > a.w3-button[href="index.html"] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--site-line);
  background: rgba(7, 17, 31, .94);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  width: min(1160px, calc(100% - 36px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--site-text);
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 212, 210, .3);
  border-radius: 50%;
  background: #000;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.site-nav a {
  color: #d0dced;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.site-nav a:hover { color: var(--site-cyan); }

.site-nav .site-nav-contact {
  padding: 10px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #052013;
}

.site-nav .site-nav-contact:hover {
  background: #68e895;
  color: #052013;
}

body > .w3-content,
body > .downloads .w3-content {
  width: min(1120px, calc(100% - 36px));
  max-width: 1120px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  color: var(--site-text);
  font-family: "Montserrat", "Lato", sans-serif;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(25px, 4vw, 34px); }

p, li { color: #c4d1e0; line-height: 1.7; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--site-cyan);
  outline-offset: 3px;
}

.w3-button,
.btn-modern,
.cta-whatsapp,
.btn-primary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(105deg, var(--site-blue), #367ce6);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.w3-button:hover,
.btn-modern:hover,
.cta-whatsapp:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.w3-button.w3-light-grey {
  margin: 16px max(18px, calc((100% - 1120px) / 2));
  border-color: var(--site-line);
  background: var(--site-panel-raised) !important;
  color: var(--site-text) !important;
}

.cta-whatsapp {
  padding: 11px 16px;
  background: #25d366;
  color: #052013 !important;
}

.service-item,
.download-card,
.category-section {
  border: 1px solid var(--site-line);
  border-radius: 16px !important;
  background: linear-gradient(150deg, rgba(19, 36, 58, .96), rgba(12, 25, 42, .96)) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18) !important;
}

.service-item {
  padding: 20px;
}

.service-item i { color: var(--site-cyan) !important; }

.download-card {
  min-height: 100%;
}

.download-card img {
  height: 150px !important;
  max-height: 150px !important;
}

.download-card h3 { color: var(--site-text) !important; }
.download-card p.w3-text-grey { color: var(--site-muted) !important; }

.category-section { margin: 18px 0; padding: 20px; }
.category-section h4 { color: var(--site-text); }

.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) !important;
  gap: 16px !important;
}

.category-grid > div { min-width: 0; }

#downloads-search,
.w3-input {
  min-height: 46px;
  border: 1px solid var(--site-line) !important;
  border-radius: 12px;
  background: #0d1b2d !important;
  color: var(--site-text) !important;
}

#downloads-search::placeholder { color: #91a5bb; }

#downloads-categories-list .category-pill {
  border: 1px solid var(--site-line) !important;
  border-radius: 999px !important;
  background: var(--site-panel) !important;
  color: #d0dced !important;
}

#downloads-categories-list .category-pill.active {
  border-color: transparent !important;
  background: linear-gradient(105deg, var(--site-blue), var(--site-cyan)) !important;
  color: #06131f !important;
}

#downloads-categories-list .count { color: inherit !important; }

.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 13px;
  text-align: center;
}

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

@media (max-width: 680px) {
  .site-header { position: relative; }
  .site-header-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 0; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; padding-bottom: 4px; }
  .site-nav a { font-size: 11px; }
  .site-nav .site-nav-contact { padding: 8px 10px; }
  body > .w3-content,
  body > .downloads .w3-content { width: min(100% - 24px, 1120px); }
  .category-section { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
