/* ── Design tokens ── */
:root {
  --color-bg: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-placeholder-bg: #f5f5f7;
  --color-placeholder-text: #86868b;
  --color-scroll-hint: #86868b;
  --color-cta: #0071e3;
  --color-cta-hover: #0077ed;
  --color-cta-active: #006edb;

  --font-family: "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;

  --radius-image: 1.25rem;
  --radius-cta: 999px;
  --transition: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset (scoped to page) ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100svh;
  padding: var(--space-lg) var(--space-md) calc(var(--space-2xl) + 2rem);
}

.hero__inner {
  width: 100%;
  max-width: 24rem;
  text-align: center;
}

/* ── Hero image placeholder ── */
.hero__figure {
  margin: 0;
}

.hero__image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 42svh;
  overflow: hidden;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 40px 80px -24px rgba(29, 29, 31, 0.1),
    0 12px 28px -12px rgba(29, 29, 31, 0.06);
}

/* ── Copy: image → headline flow ── */
.hero__copy {
  margin-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.hero__headline {
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.hero__cta-hints {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #a1a1a6;
  margin-bottom: var(--space-sm);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  background-color: var(--color-cta);
  border-radius: var(--radius-cta);
  text-decoration: none;
  transition:
    background-color var(--transition),
    transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.hero__cta:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-2px);
}

.hero__cta:active {
  background-color: var(--color-cta-active);
  transform: translateY(0);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
}

/* ── Scroll hint arrow ── */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-scroll-hint);
  pointer-events: none;
}

.hero__scroll-arrow {
  display: block;
  animation: scroll-hint 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(6px);
    opacity: 0.75;
  }
}

/* ── Tablet+ ── */
@media (min-width: 48rem) {
  .hero {
    padding: var(--space-2xl) var(--space-lg) calc(var(--space-2xl) + 2.5rem);
  }

  .hero__inner {
    max-width: 28rem;
  }

  .hero__image {
    aspect-ratio: 5 / 6;
    max-height: 50svh;
  }

  .hero__copy {
    margin-top: var(--space-2xl);
  }

  .hero__headline {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: var(--space-xl);
  }

  .hero__description {
    font-size: 1.1875rem;
    margin-bottom: var(--space-2xl);
  }

  .hero__cta {
    min-height: 3rem;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
  }

  .hero__scroll-hint {
    bottom: var(--space-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-arrow {
    animation: none;
    opacity: 0.5;
  }
}

/* ── Desktop: image left (62%), text right (38%) ── */
@media (min-width: 64rem) {
  .hero {
    padding: 6.5rem var(--space-2xl) 8.5rem;
  }

  .hero__inner {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 78rem;
    text-align: left;
  }

  .hero__figure {
    flex: 0 1 62%;
    min-width: 0;
  }

  .hero__copy {
    flex: 0 1 38%;
    min-width: 0;
    margin-top: 0;
  }

  .hero__image {
    max-height: 66svh;
  }

  .hero__headline {
    font-size: clamp(2.07rem, 3.7vw, 3rem);
    line-height: 1.18;
    margin-bottom: 4.5rem;
  }

  .hero__cta {
    min-height: 3.75rem;
    padding: 1rem 2.5rem;
  }
}
