:root {
  --ui-accent: #0585ff;
  --ui-accent-hover: #0077ea;
  --ui-accent-pressed: #006ddb;
  --ui-accent-focus: rgba(5, 133, 255, 0.42);
  --ui-text: #1d1d1f;
  --ui-text-muted: #6e6e73;
  --ui-canvas: #ffffff;
  --ui-surface: #ffffff;
  --ui-border: rgba(0, 0, 0, 0.1);
  --ui-border-soft: rgba(0, 0, 0, 0.06);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.12);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ui-accent);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ui-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background: var(--ui-accent);
}

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

.home {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: clamp(112px, 21vh, 184px) 20px 48px;
}

.hero {
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-card {
  width: min(600px, 100%);
  margin: 0;
  display: grid;
  place-items: center;
}

.logo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  /* 로고 폭 600px 기준 -32px에 해당하는 시각 중심 보정값입니다. */
  transform: translateX(-5.3%);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.menu {
  position: relative;
  width: min(100%, 308px);
  margin-top: 64px;
}

.menu-button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px 0 22px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ui-text);
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 180ms var(--ease-standard),
    background-color 180ms var(--ease-standard),
    transform 120ms var(--ease-standard);
}

.menu-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
}

.menu-button:active {
  transform: scale(0.99);
}

.menu-button:focus-visible,
.menu-panel a:focus-visible {
  outline: 3px solid var(--ui-accent-focus);
  outline-offset: 3px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  color: var(--ui-accent);
  flex: 0 0 auto;
  transition: transform 220ms var(--ease-standard);
}

.menu.is-open .menu-icon {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--ui-border-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms var(--ease-standard),
    transform 220ms var(--ease-standard),
    visibility 0ms linear 220ms;
}

.menu.is-open .menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 220ms var(--ease-standard),
    transform 220ms var(--ease-standard),
    visibility 0ms;
}

.menu-panel a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 180ms var(--ease-standard),
    color 180ms var(--ease-standard);
}

.menu-panel a:hover {
  background: rgba(5, 133, 255, 0.1);
  color: var(--ui-accent-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  padding: 32px;
}

.placeholder-page h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
}

.placeholder-page a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ui-accent);
  font-size: 17px;
  font-weight: 500;
}

@media (max-width: 639px) {
  .home {
    padding: 72px 18px 40px;
  }

  .logo-card {
    border-radius: 20px;
  }

  .menu {
    width: min(100%, 292px);
    margin-top: 40px;
  }

  .menu-button {
    min-height: 56px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
