:root {
  --primary: #0266ff;
  --primary-hover: #0052cc;
  --primary-light: #eaf2ff;
  --navy: #0e1b2f;
  --navy-light: #162a45;
  --text-dark: #1b2b3e;
  --text-muted: #5e6d82;
  --text-light: #8795a8;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --success: #10b981;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s ease-in-out;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}


.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Banner Section */
.hero-banner {
  background: linear-gradient(135deg, #0e1b2f 0%, #162a45 100%);
  color: #ffffff;
  padding: 56px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 102, 255, 0.25) 0%, rgba(2, 102, 255, 0) 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-banner h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-banner p {
  font-size: 17px;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Filter Navigation */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.filter-btn .count {
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 50px 0 80px;
}

.category-group {
  margin-bottom: 56px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

.category-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 20px;
  height: 20px;
}

.category-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.category-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Theme Grid */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .themes-grid {
    grid-template-columns: 1fr;
  }
}

/* Theme Card */
.theme-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-preview {
  position: relative;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  display: block;
  line-height: 0;
}

.card-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.theme-card:hover .card-preview img {
  transform: scale(1.02);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.theme-card:hover .card-overlay {
  opacity: 1;
}

.overlay-btn {
  background: #ffffff;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.overlay-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.card-title-row .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.35;
  flex: 1 1 240px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-title a {
  color: inherit;
  transition: var(--transition);
}

.card-title a:hover {
  color: var(--primary);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(2, 102, 255, 0.2);
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  flex: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--navy);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Feature Highlights Bar */
.highlights-sec {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 20px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.highlight-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner h1 {
    font-size: 28px;
  }
  .hero-banner p {
    font-size: 15px;
  }
  .header-inner {
    height: 72px;
  }
  .brand-logo img {
    height: 52px;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    display: flex;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
