:root {
  --itris-brand: #3b6882;
  --itris-button: #1e91c1;
  --itris-button-dark: #177aa3;
  --itris-blue: #0bade8;
  --itris-blue-dark: #0891c7;
  --itris-blue-light: #e8f7fd;
  --itris-navy: #0f2942;
  --itris-gray-50: #f8fafc;
  --itris-gray-100: #f1f5f9;
  --itris-gray-200: #e2e8f0;
  --itris-gray-500: #64748b;
  --itris-gray-700: #334155;
  --shadow-sm: 0 1px 3px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 173, 232, 0.15);
  --radius: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--itris-navy);
  background: var(--itris-gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.site-navbar {
  background: var(--itris-brand);
  box-shadow: var(--shadow-md);
  padding-block: 0.75rem;
}

.site-navbar .navbar-brand img.navbar-logo {
  height: 36px;
  width: auto;
  transition: opacity 0.2s ease;
}

.site-navbar .navbar-brand:hover img {
  opacity: 0.9;
}

.site-navbar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

/* Hero */
.hero {
  margin-top: 72px;
  padding: 3.5rem 0 4rem;
  background: linear-gradient(160deg, var(--itris-navy) 0%, #1a4a6e 50%, var(--itris-blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(11, 173, 232, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.hero-subtitle strong {
  color: var(--itris-blue);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Main content */
.downloads-main {
  padding: 2.5rem 1rem 4rem;
  max-width: 900px;
}

.download-section {
  margin-bottom: 1.25rem;
}

/* Cards */
.section-card {
  background: #fff;
  border: 1px solid var(--itris-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-md);
}

.section-card--featured {
  border-color: rgba(11, 173, 232, 0.35);
  box-shadow: var(--shadow-lg);
}

.section-card--featured:hover {
  transform: translateY(-2px);
}

.section-card--docs {
  border-left: 4px solid var(--itris-blue);
}

.section-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.section-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--itris-blue-light);
  color: var(--itris-blue);
  border-radius: var(--radius);
  font-size: 1.25rem;
}

.section-icon--docs {
  background: linear-gradient(135deg, var(--itris-blue-light), #d4f0fc);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--itris-navy);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--itris-gray-500);
  margin: 0;
}

.section-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.version-badges {
  margin-bottom: 0.5rem;
}

.badge-latest {
  background: linear-gradient(135deg, var(--itris-blue), var(--itris-blue-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35em 0.75em;
  border-radius: 999px;
}

/* Download buttons */
.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-download i {
  font-size: 1rem;
}

.btn-primary.btn-download {
  background: var(--itris-button);
  border: none;
  box-shadow: 0 2px 8px rgba(30, 145, 193, 0.3);
}

.btn-primary.btn-download:hover {
  background: var(--itris-button-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 145, 193, 0.4);
}

.btn-outline-primary.btn-download {
  color: var(--itris-button);
  border: 2px solid var(--itris-button);
  background: transparent;
}

.btn-outline-primary.btn-download:hover {
  background: var(--itris-button);
  color: #fff;
  border-color: var(--itris-button);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--itris-brand);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 576px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  .section-card-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .download-grid {
    flex-direction: column;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}
