/* ===== Header / Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-align: left;
  pointer-events: none;
}

.nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 48px);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 26px;
  background: linear-gradient(115deg, rgba(250, 255, 252, 0.94), rgba(234, 249, 248, 0.94) 65%, rgba(244, 251, 255, 0.94));
  box-shadow: 0 8px 32px -14px rgba(32, 104, 96, 0.24), 0 1px 3px rgba(32, 104, 96, 0.08), inset 0 0 0 1px rgba(29, 184, 168, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #137e74;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  transform: rotate(-5deg);
  transition: transform 0.25s ease;
}

.nav-logo:hover .nav-icon-wrap {
  transform: rotate(3deg);
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 3px 8px rgba(23, 118, 107, 0.16);
}

.nav-logo-sparkle {
  position: absolute;
  right: -5px;
  top: -5px;
  color: #37ad9d;
  filter: drop-shadow(0 1px 2px #fff);
}

.nav-brand-copy {
  display: grid;
  gap: 6px;
}

.nav-brand-copy small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #5b7a77;
}

.nav-links {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: rgba(29, 184, 168, 0.06);
  border: 1px solid rgba(29, 184, 168, 0.06);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.nav-links a {
  padding: 11px 16px;
  border-radius: 50px;
  color: #486e69;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #137e74;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(23, 118, 107, 0.08);
}

.nav-inner a:focus-visible {
  outline: 2px solid #137e74;
  outline-offset: 4px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: 12px;
  padding: 7px 8px 7px 19px;
  background: linear-gradient(135deg, #158b7f, #107d94);
  color: #fff;
  border: 1px solid rgba(17, 119, 108, 0.22);
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(23, 118, 107, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 184, 168, 0.3);
}

.nav-cta-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-cta-arrow svg {
  transition: transform 0.2s;
}

.nav-cta:hover .nav-cta-arrow svg {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .nav-icon-wrap,
  .nav-links a,
  .nav-cta,
  .nav-cta-arrow svg {
    transition: none;
  }
}

@media (hover: none) {
  .nav-cta:hover { transform: none; }
}

@media (max-width: 768px) {
  /* ── Nav ── */
  .nav {
    padding: 10px 0;
  }

  .nav .nav-inner {
    width: calc(100% - 24px);
    height: 62px;
    padding: 8px 8px 8px 12px;
    border-radius: 22px;
    gap: 10px;
  }

  .nav-logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .nav-logo-sparkle {
    width: 12px;
    height: 12px;
  }

  .nav-brand-copy small {
    font-size: 8px;
    letter-spacing: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding: 5px 5px 5px 13px;
    gap: 8px;
    font-size: 11px;
  }

  .nav-cta-arrow {
    width: 28px;
    height: 28px;
  }

}

.nav, .nav * { box-sizing: border-box; }
.nav a { text-decoration: none; }
.nav svg, .nav img { display: block; }
.nav--document { position: sticky; height: 106px; }
.nav--document ~ main [id] { scroll-margin-top: 110px; }
.nav-links a[aria-current="page"], .nav-links a[aria-current="true"] {
  color: #137e74;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(23, 118, 107, 0.08);
}
@media (max-width: 768px) {
  .nav--document { height: 82px; }
  .nav--document ~ main [id] { scroll-margin-top: 92px; }
}
