:root {
  --color-bg: #ffffff;
  --color-text: #090d2d;
  --color-muted: #5e637d;
  --color-purple: #6425e6;
  --color-purple-dark: #4a16c9;
  --color-pink: #f52994;
  --color-orange: #ff7a3d;
  --color-border: rgba(17, 24, 56, 0.1);
  --color-soft-purple: rgba(100, 37, 230, 0.1);
  --shadow-header: 0 18px 45px rgba(18, 20, 60, 0.08);
  --radius-lg: 22px;
  --container: 1320px;
  --header-height: 88px;
  --font-main: 'Inter', Arial, sans-serif;
  --font-heading: 'Poppins', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(17, 24, 56, 0.06);
  transition:
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-header);
  border-color: rgba(17, 24, 56, 0.1);
}

.header-main {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  display: block;
  width: 190px;
  height: auto;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-pink));
  transform: translateX(-50%);
  transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-purple);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 34px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #5c22e8 0%, #d82ec8 48%, #ff7440 100%);
  box-shadow: 0 14px 28px rgba(100, 37, 230, 0.24);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.header-cta::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.75;
}

.header-cta::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 40%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg) translateX(-130%);
  transition: transform 0.55s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(100, 37, 230, 0.32);
}

.header-cta:hover::after {
  transform: rotate(25deg) translateX(360%);
}

.cta-icon,
.mobile-cta-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-icon svg,
.mobile-cta-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffe661;
  stroke-width: 2;
  stroke-linejoin: round;
}

.disclaimer-bar {
  border-top: 1px solid rgba(17, 24, 56, 0.06);
  border-bottom: 1px solid rgba(17, 24, 56, 0.06);
  background: linear-gradient(
    90deg,
    rgba(100, 37, 230, 0.08),
    rgba(245, 41, 148, 0.05),
    rgba(255, 122, 61, 0.06)
  );
}

.disclaimer-container {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.disclaimer-container p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: #171936;
}

.disclaimer-info {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #11142f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.88;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.disclaimer-info:hover {
  color: var(--color-purple);
  transform: translateY(-1px);
}

.disclaimer-info svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(100, 37, 230, 0.18);
  border-radius: 14px;
  background: rgba(100, 37, 230, 0.06);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-purple);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 30, 0.52);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, calc(100% - 24px));
  height: 100%;
  padding: 22px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(245, 41, 148, 0.14),
      transparent 32%
    ),
    radial-gradient(
      circle at 0% 14%,
      rgba(100, 37, 230, 0.14),
      transparent 34%
    ),
    #ffffff;
  box-shadow: -24px 0 70px rgba(6, 9, 30, 0.18);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-logo {
  display: inline-flex;
}

.mobile-logo img {
  width: 165px;
  height: auto;
  display: block;
}

.mobile-close-btn {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17, 24, 56, 0.1);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: 0 10px 24px rgba(17, 24, 56, 0.08);
}

.mobile-close-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.mobile-disclaimer {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(100, 37, 230, 0.08),
    rgba(245, 41, 148, 0.08)
  );
  border: 1px solid rgba(100, 37, 230, 0.12);
  margin-bottom: 22px;
}

.mobile-disclaimer-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-purple);
}

.mobile-disclaimer-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.mobile-disclaimer p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #171936;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 16px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(17, 24, 56, 0.08);
  background: rgba(255, 255, 255, 0.72);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.mobile-nav-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-purple);
  border-color: rgba(100, 37, 230, 0.24);
  background: rgba(100, 37, 230, 0.07);
  transform: translateX(3px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 24px;
}

.mobile-cta {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5c22e8, #d82ec8 48%, #ff7440);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(100, 37, 230, 0.24);
}

.mobile-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
}

.mobile-legal-links a {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
}

.mobile-legal-links a:hover {
  color: var(--color-purple);
}

@media (max-width: 1024px) {
  :root {
    --header-height: 78px;
  }

  .desktop-nav {
    gap: 28px;
  }

  .header-logo-img {
    width: 168px;
  }

  .header-cta {
    min-height: 50px;
    padding-inline: 20px;
  }
}

@media (max-width: 860px) {
  .header-container {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .disclaimer-container {
    min-height: 46px;
    padding-block: 7px;
  }

  .disclaimer-container p {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-logo-img {
    width: 150px;
  }

  .mobile-menu-panel {
    width: calc(100% - 14px);
    padding: 18px;
  }

  .disclaimer-info {
    display: none;
  }
}
