/* Shared topbar, footer, and type — matches the landing page. */

:root {
  --px-primary: #4F46E5;
  --px-primary-hover: #4338CA;
  --px-primary-light: #EEF2FF;
  --px-slate-100: #F1F5F9;
  --px-slate-200: #E2E8F0;
  --px-slate-400: #94A3B8;
  --px-slate-600: #475569;
  --px-slate-800: #1E293B;
  --px-slate-900: #0F172A;
  --px-font: "Plus Jakarta Sans", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --px-shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --px-shadow-mock: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

body { font-family: var(--px-font); }

#navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: none;
}
.nav-inner {
  width: min(1200px, calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo:has(.logo-lockup) .logo-img { width: 32px; height: 32px; }
.logo-lockup {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
}
.logo-text {
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--px-slate-900);
}
.logo-tag {
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--px-slate-600);
  white-space: nowrap;
}
.logo-em { color: var(--px-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--px-slate-600);
  background: transparent;
}
.nav-links > li > a:hover { color: var(--px-slate-900); background: var(--px-slate-100); }
.nav-login { color: var(--px-slate-800) !important; font-weight: 600 !important; }
.nav-links > li > a.nav-cta {
  margin-left: 8px;
  background: var(--px-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  box-shadow: var(--px-shadow-card);
}
.nav-links > li > a.nav-cta:hover { background: var(--px-primary-hover) !important; color: #fff !important; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--px-slate-200);
  border-radius: 12px;
  box-shadow: var(--px-shadow-mock);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
}
.dropdown-item:hover { background: var(--px-slate-100); }
.dropdown-item strong { display: block; font-size: 14px; color: var(--px-slate-900); }
.dropdown-item span { display: block; font-size: 12px; color: var(--px-slate-600); margin-top: 2px; }
.di-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--px-primary-light);
  color: var(--px-primary);
}

.nav-hamburger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--px-slate-800); border-radius: 1px;
}
.mobile-menu {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 64px;
  background: #fff;
  border-bottom: 1px solid var(--px-slate-200);
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.mobile-menu.open { max-height: 480px; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--px-slate-800);
  border-top: 1px solid var(--px-slate-100);
  background: transparent;
}

#footer {
  padding: 64px 0 28px;
  background: #fff;
  border-top: 1px solid var(--px-slate-200);
}
#footer .footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 0;
}
#footer .footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--px-slate-600);
  line-height: 1.6;
}
#footer .footer-logo .logo-text,
#footer .nav-logo .logo-text { color: var(--px-slate-900); }
#footer .logo-em { color: var(--px-primary); }
#footer .footer-social { display: flex; gap: 8px; margin-top: 16px; }
#footer .footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--px-slate-200);
  border-radius: 10px;
  color: var(--px-slate-600);
  background: transparent;
}
#footer .footer-social a:hover { color: var(--px-slate-900); background: var(--px-slate-100); }
#footer .footer-links-group h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--px-slate-400);
  margin-bottom: 12px;
}
#footer .footer-links-group ul { display: flex; flex-direction: column; gap: 0; }
#footer .footer-links-group li + li { margin-top: 8px; }
#footer .footer-links-group a {
  font-size: 14px;
  color: var(--px-slate-600);
}
#footer .footer-links-group a:hover { color: var(--px-slate-900); }
#footer .footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--px-slate-100);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#footer .footer-bottom p { font-size: 13px; color: var(--px-slate-400); }

@media (max-width: 768px) {
  .nav-inner { width: min(1200px, calc(100% - 32px)); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  #footer .footer-top { grid-template-columns: 1fr; }
}
