.theme-dark {
  --bg-0: #050B14;
  --bg-1: #0A1424;
  --bg-2: #111F35;
  --line-d: rgba(255, 255, 255, 0.10);
  --line-d2: rgba(255, 255, 255, 0.22);

  --accent: #2E9BFF;
  --accent-hi: #6CC0FF;
  --accent-strong: #0B6FE0;
  --accent-glow: rgba(46, 155, 255, 0.45);

  background: var(--bg-0);
  color: var(--on-dark);
}

.theme-dark :focus-visible { outline-color: var(--accent); }
.theme-dark .gnb__link::after { background: var(--accent); }
.theme-dark .mega__head .mega__all,
.theme-dark .drawer__panel a:hover { color: var(--accent-strong); }

.theme-dark .site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--line-d);
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.theme-dark .util-bar {
  background: transparent;
  color: rgba(242, 246, 251, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.theme-dark .util-bar .sep { background: rgba(255, 255, 255, 0.2); }
.theme-dark .site-header .brand img {
  filter: brightness(0) invert(1);
  transition: filter var(--t-mid) var(--ease);
}
.theme-dark .site-header .gnb__link { color: var(--white); }
.theme-dark .site-header .menu-toggle__bar,
.theme-dark .site-header .menu-toggle__bar::before,
.theme-dark .site-header .menu-toggle__bar::after { background: var(--white); }
.theme-dark .site-header.menu-open .menu-toggle__bar { background: transparent; }

.theme-dark .site-header.is-solid,
.theme-dark .site-header:hover,
.theme-dark .site-header:focus-within,
.theme-dark .site-header.menu-open {
  background: var(--white);
  border-bottom-color: var(--line);
}
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .util-bar {
  background: var(--paper);
  color: var(--muted);
  border-bottom-color: var(--line);
}
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .util-bar a:hover,
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .util-bar__logout:hover { color: var(--accent-strong); }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .util-bar__greet strong { color: var(--text); }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .util-bar .sep { background: var(--line-strong); }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .brand img { filter: none; }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .gnb__link { color: var(--text); }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .gnb__item:hover > .gnb__link,
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .gnb__item.is-open > .gnb__link,
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .gnb__link[aria-current] { color: var(--accent-strong); }
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .menu-toggle__bar,
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .menu-toggle__bar::before,
.theme-dark .site-header:is(.is-solid, :hover, :focus-within, .menu-open) .menu-toggle__bar::after { background: var(--text); }
.theme-dark .site-header.menu-open .menu-toggle__bar { background: transparent !important; }

.theme-dark .mega {
  border-radius: 0;
  box-shadow: 0 30px 60px -30px rgba(5, 11, 20, 0.55);
}
.theme-dark .mega__list a:hover,
.theme-dark .mega__list a:focus-visible { background: #EAF4FF; }
.theme-dark .mega__list a:hover strong { color: var(--accent-strong); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-mid) var(--ease),
    transform var(--t-mid) var(--ease);
}
.pill__arrow {
  position: relative;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-mid) var(--ease);
}
.pill__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.pill:hover .pill__arrow { transform: translateX(4px); }

.pill--accent {
  background: var(--accent-strong);
  color: var(--white);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.pill--accent:hover {
  background: #1C82F5;
  box-shadow: 0 14px 38px -10px rgba(46, 155, 255, 0.7);
}
.pill--glass {
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill--glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}
.pill--white { background: var(--white); color: var(--accent-strong); }
.pill--white:hover { background: #EAF4FF; }
.pill--line { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.pill--line:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.pill--block { width: 100%; justify-content: space-between; }

.theme-dark .site-footer { background: var(--bg-0); border-top: 1px solid var(--line-d); }
.theme-dark .site-footer__top { border-bottom-color: var(--line-d); }
.theme-dark .footer-nav a:hover { color: var(--accent-hi); }

.quick {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick__btn {
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  background: var(--accent-strong);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(11, 111, 224, 0.7);
  transition: background var(--t-fast) var(--ease), transform var(--t-mid) var(--ease);
}
.quick__btn:hover { background: #1C82F5; transform: translateY(-2px); }
.quick__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quick__btn--top {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  box-shadow: 0 12px 28px -12px rgba(5, 11, 20, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), visibility 0s linear var(--t-mid), transform var(--t-mid) var(--ease);
}
.quick__btn--top:hover { background: var(--white); color: var(--accent-strong); }
.quick.is-scrolled .quick__btn--top { opacity: 1; visibility: visible; transition-delay: 0s; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .quick { right: 16px; bottom: 16px; }
  .quick__btn { width: 56px; height: 56px; font-size: 0.6875rem; border-radius: 12px; }
  .quick__btn svg { width: 20px; height: 20px; }
}
