:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #a855f7;
  --dark-bg: #0a0f1e;
  --dark-hero: #1e1b4b;
  --card-bg: #ffffff;
  --card-dark: #1e293b;
  --border-light: #e2e8f0;
  --border-dark: #334155;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: #f8fafc;
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

/* Header & Nav */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

/* Dropdowns */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.dropdown-link {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.15s ease;
}

.dropdown-link:hover {
  background: #f1f5f9;
  color: var(--primary);
  padding-left: 22px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 16px 20px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
}

.mobile-nav-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.mobile-sub-list {
  list-style: none;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 8px;
}

.mobile-sub-link {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-body);
}

/* Main Content Wrapper */
.site-main {
  flex: 1 0 auto;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px 50px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .copyright {
  opacity: 0.7;
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}

/* Scroll to Top */
#scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

/* Media Queries */
@media (max-width: 920px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}