:root {
  color-scheme: dark;
  --bg: #0d1e36;
  --text: #e8eefb;
  --muted: #a9b7d7;
  --line: rgba(156, 182, 220, 0.3);
  --accent: #6fcdf6;
  --glass: rgba(169, 195, 232, 0.14);
  --radius: 18px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1100px 420px at -6% -10%, rgba(71, 126, 194, 0.22), transparent 60%),
    radial-gradient(900px 360px at 102% -2%, rgba(112, 196, 170, 0.15), transparent 58%),
    linear-gradient(180deg, #0c1a31 0%, #132744 50%, #10233e 100%);
}

a { color: var(--accent); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section { padding: 4rem 0; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #fff;
  color: #111;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 1000;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 24, 42, 0.48);
  backdrop-filter: saturate(150%) blur(24px);
  -webkit-backdrop-filter: saturate(150%) blur(24px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav a {
  text-decoration: none;
  color: #dce9ff;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(196, 224, 255, 0.42);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(193, 221, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 18px rgba(4, 12, 24, 0.22);
  color: #e7f2ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.top-nav > a:not(.btn),
.top-nav .menu-dropdown summary {
  position: relative;
  padding: 0.08rem 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 160ms ease, opacity 160ms ease, background-color 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.top-nav > a:not(.btn)::after,
.top-nav .menu-dropdown summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 560ms ease;
  pointer-events: none;
}

.top-nav > a:not(.btn):hover::after,
.top-nav > a:not(.btn):focus-visible::after,
.top-nav .menu-dropdown summary:hover::before,
.top-nav .menu-dropdown summary:focus-visible::before {
  left: 160%;
}

.top-nav > a:not(.btn),
.top-nav > .menu-dropdown {
  margin-left: 0.45rem;
  padding-left: 0.85rem;
}

.top-nav > a:not(.btn):first-of-type {
  margin-left: 0;
  padding-left: 0;
}

.top-nav > a:not(.btn):not(:first-of-type)::before,
.top-nav > .menu-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(166, 191, 225, 0.45);
}

.top-nav > a:not(.btn):hover,
.top-nav > a:not(.btn):focus-visible,
.top-nav .menu-dropdown summary:hover,
.top-nav .menu-dropdown summary:focus-visible {
  color: #f0f5ff;
  opacity: 0.96;
}

.top-nav > a[aria-current="page"]:not(.btn) {
  color: #f1f7ff;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
  text-decoration-color: rgba(152, 192, 242, 0.65);
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: #d7e4ff;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-dropdown summary::-webkit-details-marker {
  display: none;
}

.menu-dropdown summary::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 160ms ease;
}

.menu-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 46, 0.74);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: saturate(132%) blur(20px);
  -webkit-backdrop-filter: saturate(132%) blur(20px);
  display: grid;
  gap: 0.15rem;
  z-index: 30;
}

.menu-panel a {
  color: #d7e4ff;
  text-decoration: none;
  padding: 0.45rem 0.58rem;
  border-radius: 8px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(130, 177, 255, 0.16);
}


.btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  padding: 0.68rem 1.16rem;
  font-weight: 600;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 58%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 620ms ease;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 170%;
}

.btn-primary {
  background: linear-gradient(140deg, #6fd8ff, #90e2c8);
  color: #061327;
  border-color: transparent;
}

.btn-secondary { color: #dbe8ff; }

.hero { padding-top: 4.4rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}

h3 { margin-bottom: 0.35rem; }

.lead { color: #dbe6ff; font-size: 1.08rem; }

.intro-copy,
.inline-links { color: var(--muted); max-width: 82ch; }

.intro-copy {
  margin-bottom: 0.95rem;
}

.intro-copy + .intro-copy {
  margin-top: -0.15rem;
  margin-bottom: 1.15rem;
}

.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.small-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  color: #8ef0d4;
  flex-shrink: 0;
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8de8ff;
  border: 1px solid rgba(104, 194, 237, 0.45);
  background: linear-gradient(145deg, rgba(74, 170, 217, 0.18), rgba(11, 26, 50, 0.7));
  flex-shrink: 0;
}

.checklist-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.group-card,
.note-card,
.cta-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass), rgba(18, 34, 64, 0.58));
  backdrop-filter: saturate(128%) blur(22px);
  -webkit-backdrop-filter: saturate(128%) blur(22px);
  padding: 1.05rem;
}

.group-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.group-card h3 { color: #dce7ff; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.58rem;
  color: #c7d5ef;
}

.note-card p,
.cta-card p { color: #c7d5ef; }

.note-card p + p,
.cta-card p + p {
  margin-top: 0.8rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.8rem 0 0.55rem;
}

.cta-card .inline-links {
  margin-top: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}

.footer-inner { display: grid; gap: 0.3rem; }

.footer-brand {
  font-size: 1.04rem;
  color: #f0f4ff;
  font-weight: 700;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .top-nav {
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .top-nav > a:not(.btn),
  .top-nav .menu-dropdown { display: none; }

  .top-nav:not(.is-open) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  .top-nav:not(.is-open) .btn {
    order: 1;
  }

  .top-nav:not(.is-open) .nav-toggle {
    order: 2;
    margin-left: 0.5rem;
  }

  .top-nav.is-open {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(206, 230, 255, 0.48);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(238, 247, 255, 0.95), rgba(196, 217, 243, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(132, 171, 224, 0.34), 0 20px 40px rgba(4, 12, 24, 0.28);
    backdrop-filter: saturate(210%) blur(42px);
    -webkit-backdrop-filter: saturate(210%) blur(42px);
    z-index: 60;
  }
  .top-nav.is-open > a:not(.btn),
  .top-nav.is-open .menu-dropdown {
    display: block;
    margin-left: 0;
    padding-left: 0;
  }

  .top-nav.is-open > a:not(.btn)::before,
  .top-nav.is-open > .menu-dropdown::before {
    display: none;
  }

  .top-nav.is-open .menu-dropdown summary {
    display: flex;
    justify-content: space-between;
  }

  .top-nav.is-open .menu-panel {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
  }

  .top-nav.is-open .btn {
    width: 100%;
    color: #0a2141;
    border-color: rgba(88, 122, 174, 0.45);
    background: rgba(255, 255, 255, 0.38);
  }

  .top-nav.is-open > a:not(.btn),
  .top-nav.is-open .menu-dropdown summary {
    color: #102b50;
    font-weight: 600;
  }

  .top-nav.is-open .menu-panel {
    background: rgba(246, 252, 255, 0.86);
    border-color: rgba(141, 173, 221, 0.38);
  }

  .top-nav.is-open .menu-panel a {
    color: #11315a;
  }

}

@media (min-width: 860px) {
  .section {
    padding: 4.4rem 0;
  }

  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.footer-inner {
  position: relative;
  padding-right: 5rem;
}

.footer-favicon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  height: 128px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(6, 14, 28, 0.3));
}

@media (max-width: 860px) {
  .footer-inner {
    padding-right: 0;
  }

  .footer-favicon {
    position: static;
    transform: none;
    margin: 0.7rem auto 0;
    width: 84px;
    height: 84px;
  }
}

.footer-favicon-link {
  text-decoration: none;
}

.footer-favicon-link:focus-visible {
  outline: 2px solid rgba(130, 210, 246, 0.72);
  outline-offset: 4px;
  border-radius: 10px;
}
