@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3f3;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eaf1ff;
  --hero-a: #eaf2ff;
  --hero-b: #eefcf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(180deg, #f7f9fe 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav {
  max-width: 1120px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #0b1f4d;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
}

.nav-menu-group {
  position: relative;
}

/* Keep hover active while moving cursor from main menu to submenu */
.nav-menu-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-menu-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu-btn:hover,
.nav-menu-btn:focus-visible,
.nav-menu-group.open .nav-menu-btn {
  background: #eaf1ff;
  color: #1d4ed8;
  outline: none;
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  z-index: 80;
}

.nav-menu-group:hover .nav-menu-list,
.nav-menu-group:focus-within .nav-menu-list,
.nav-menu-group.open .nav-menu-list {
  display: flex;
}

.nav-menu-list a {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu-list a:hover {
  background: #eaf1ff;
  color: #1d4ed8;
}

@media (max-width: 1080px) {
  .nav {
    padding: 10px 14px;
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    gap: 6px;
    padding: 3px;
  }

  .nav-menu-btn {
    font-size: 13px;
    padding: 7px 10px;
  }
}

@media (max-width: 860px) {
  .nav-menu-group::after {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .brand {
    justify-content: flex-start;
    margin-right: auto;
  }

  .nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }

  .nav-links {
    width: min(320px, calc(100vw - 24px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-radius: 12px;
    padding: 8px;
    margin-top: 0;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-menu-group {
    width: 100%;
  }

  .nav-menu-btn {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    border-color: #dbe3f3;
    background: #ffffff;
    padding: 10px 12px;
  }

  .nav-menu-list {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 10px;
    margin-top: 6px;
    background: #f8fbff;
  }

  .nav-menu-list a {
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
  }
}

.hero {
  padding: 60px 20px 30px;
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
}

.hero-content {
  max-width: 920px;
  margin: auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  margin: 18px 0;
}

.subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 28px;
  font-weight: 400;
}

.ad-section {
  max-width: 970px;
  margin: 26px auto;
  padding: 0 20px;
  text-align: center;
}

.ad-label {
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 6px;
}

.ad-placeholder {
  min-height: 96px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #94a3b8;
}

.results-section,
.content-section {
  max-width: 1120px;
  margin: auto;
  padding: 34px 20px;
}

.content-section p {
  color: #475569;
  line-height: 1.7;
}

.footer {
  background: #101828;
  color: #ffffff;
  padding: 24px 20px;
  text-align: center;
}

.footer div {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 720px) {
  .nav {
    padding: 10px 12px;
    gap: 6px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
    align-self: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-radius: 12px;
    padding: 8px;
    width: min(320px, calc(100vw - 24px));
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-menu-btn {
    text-align: left;
    white-space: normal;
    line-height: 1.25;
    min-height: 40px;
    display: block;
  }

  .nav-menu-list a {
    text-align: left;
    white-space: normal;
    line-height: 1.25;
    padding: 10px 12px;
    min-height: 40px;
    display: block;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 18px;
  }

  .nav-menu-btn,
  .nav-menu-list a {
    font-size: 12px;
  }
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.nav-toggle:hover {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
