:root {
  /* Legacy variables (used by other page CSS) */
  --purple-50: #EEEDFE;
  --purple-100: #CECBF6;
  --purple-200: #AFA9EC;
  --purple-400: #7F77DD;
  --purple-600: #534AB7;
  --purple-800: #3C3489;
  --purple-900: #26215C;
  --gray-50: #F8F8F7;
  --gray-100: #F1EFE8;
  --gray-200: #D3D1C7;
  --gray-400: #888780;
  --gray-600: #5F5E5A;
  --border: rgba(0, 0, 0, 0.1);
  --text-primary: #1A1A1A;
  --text-secondary: #5F5E5A;
  --radius-md: 10px;
  --gradient: linear-gradient(135deg, #534AB7 0%, #2d3c8e 100%);
  --primary-blue: #4a5fd7;
  --dark-blue: #2d3c8e;
  --light-blue: #6b7dff;

  /* New design variables */
  --p: #4F46E5;
  --pd: #3730A3;
  --pl: #818CF8;
  --pf: #EEF2FF;
  --pe: #E0E7FF;
  --text: #16131f;
  --muted: #6b7280;
  --light: #9ca3af;
  --bg: #f9f8f6;
  --white: #ffffff;
  --surface: #f3f2ef;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ── NAV ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 66px;
  background: rgba(249, 248, 246, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(79, 70, 229, 0.1);
}

.logo-link {
  height: 46px;

}

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

.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--p);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-weight: 600;
  font-size: 17px;
  color: var(--pd);
  line-height: 1;
  margin-bottom: 1px;
}

.nav-logo-sub {
  font-size: 10px;
  color: var(--light);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--p);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active {
  border-bottom: 1.5px solid var(--p);
  padding-bottom: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after,
.nav-links a.active:hover::after {
  width: 0;
}

.nav-cta {
  background: var(--p);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--pd);
  transform: translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── SIDEBAR ── */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.sidebar-menu.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sidebar-content {
  padding: 5rem 2rem 2rem;
}

.sidebar-menu .nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.sidebar-menu .nav-links li {
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-menu .nav-links a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: none;
}

.sidebar-menu .nav-links a:hover,
.sidebar-menu .nav-links a.active {
  color: var(--p);
  padding-left: 1rem;
  border-bottom: none;
}

.sidebar-menu .nav-cta {
  display: block;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  padding: 10px 20px;
}

/* ── FOOTER ── */
footer {
  background: #111827;
  padding: 0;
  margin-top: 0;
}

.footer-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 56px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}


.footer-logo {
  background: url("../assets/logo_white.png");
  height: 64px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
}

.footer-logo-m {
  width: 30px;
  height: 30px;
  background: var(--p);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.footer-logo-text {
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.footer-logo-sub {
  font-size: 10px;
  color: #6b7280;
  line-height: 1;
}

.footer-tagline {
  font-size: 13.5px;
  color: #9ca3af;
  line-height: 1.65;
  margin: 10px 0 24px;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background: var(--p);
  border-color: var(--p);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: #9ca3af;
  transition: fill 0.2s;
}

.social-btn:hover svg {
  fill: #fff;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin: 12px 0 18px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13.5px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: #fff;
}

.footer-compliance {
  background: #0d1117;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding: 28px 56px;
}

.footer-compliance-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.compliance-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comp-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
  min-width: 80px;
}

.comp-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 70, 229, 0.5);
}

.comp-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.comp-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.comp-badge-sub {
  font-size: 9.5px;
  color: #6b7280;
  white-space: nowrap;
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 56px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: #4b5563;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 12px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #9ca3af;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .header {
    padding: 0 24px;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .sidebar-content .nav-cta {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 48px 24px 32px;
    gap: 32px;
  }

  .footer-compliance {
    padding: 20px 24px;
  }

  .footer-bottom {
    padding: 20px 24px;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}