/* ============================================================================
   Bok — 섹션별 스타일
   ============================================================================
   IA: Header → Hero → Problem → How → Product → Value → Trust → CTA → Footer
   ============================================================================ */

/* ── 제목계열 — NoonnuBasicGothic ─────────────────────────────────────────── */
.hero__title,
.section-header__title,
.how-step__title,
.product-showcase__caption-title,
.trust-card__title,
.final-cta__title,
.contact-block__title,
.footer__col-title {
  font-family: var(--font-display);
}

/* ── 공통 헤더 ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--color-surface) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-sm);
  color: var(--color-text-primary);
}
.site-header__brand:hover { color: var(--color-text-primary); }

.site-header__brand-text--bok {
  font-family: var(--font-icon);
  font-size: var(--text-headline);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-headline);
  color: var(--color-text-primary);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.site-header__nav-link {
  font-size: var(--text-body-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--motion-fast);
}
.site-header__nav-link:hover { color: var(--color-text-primary); }
.site-header__nav-link.is-active { color: var(--color-primary-hover); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-lg);
}

/* Hamburger */
.site-header__nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}
.site-header__nav-toggle:hover { background: var(--color-surface-container); }

.site-header__hamburger {
  display: block;
  width: 18px; height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: background var(--motion-fast);
}
.site-header__hamburger::before,
.site-header__hamburger::after {
  content: '';
  position: absolute; left: 0;
  width: 18px; height: 2px;
  background: var(--color-text-primary);
  transition: transform var(--motion-base);
}
.site-header__hamburger::before { top: -6px; }
.site-header__hamburger::after { top: 6px; }

.site-header__nav-toggle.is-open .site-header__hamburger { background: transparent; }
.site-header__nav-toggle.is-open .site-header__hamburger::before { top: 0; transform: rotate(45deg); }
.site-header__nav-toggle.is-open .site-header__hamburger::after { top: 0; transform: rotate(-45deg); }

/* Scrim */
.site-header__nav-scrim {
  position: fixed; inset: 0;
  background: var(--color-scrim-nav);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base);
}
.site-header__nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

/* Mobile nav */
@media (max-width: 1024px) {
  .site-header__nav-toggle { display: flex; }
  .site-header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) var(--container-padding);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--motion-base), opacity var(--motion-base);
    z-index: 99;
  }
  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__actions .btn { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.section--hero {
  background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 540px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--weight-semi-bold);
  letter-spacing: var(--tracking-micro);
  color: var(--color-primary-hover);
  text-transform: uppercase;
}

.hero__title {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-text-primary);
}

.hero__subtitle {
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  max-width: 44ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Hero with mockup layout */
.section--hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-x6l);
}

.hero__mockup { flex-shrink: 0; }

.hero__phone-frame {
  width: 300px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--color-border);
  background: var(--color-surface);
}

.hero__screenshot { display: block; width: 100%; height: auto; }

@media (max-width: 768px) {
  .section--hero .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__title { font-size: var(--text-headline-large); }
  .hero__subtitle { font-size: var(--text-body); }
  .hero__mockup { width: 100%; }
  .hero__phone-frame { width: 250px; margin: 0 auto; }
}

/* ── PROBLEM ──────────────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.problem-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--problem-accent);
  background: var(--color-surface);
  transition: border-color var(--motion-base), box-shadow var(--motion-base), transform var(--motion-base);
}

.problem-card:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  border-left-color: var(--problem-accent);
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.problem-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-well);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.problem-card__title {
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-title);
  margin-bottom: var(--space-sm);
}

.problem-card__desc {
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 640px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  transition: box-shadow var(--motion-base);
}
.how-step:hover { box-shadow: var(--shadow-elevated); }

.how-step__number {
  font-family: var(--font-display);
  font-size: var(--text-headline-large);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.how-step__content { flex: 1; }

.how-step__title {
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-title);
  margin-bottom: var(--space-xs);
}

.how-step__desc {
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .how-step { padding: var(--space-base); gap: var(--space-lg); }
  .how-step__number { font-size: var(--text-headline); min-width: 36px; }
}

/* ── PRODUCT SHOWCASE ─────────────────────────────────────────────────────── */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-x5l);
}

.product-showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.product-showcase__phone {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px var(--color-border);
  background: var(--color-surface);
  transition: box-shadow var(--motion-base), transform var(--motion-base);
}
.product-showcase__phone:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--color-border);
  transform: translateY(-4px);
}

.product-showcase__screenshot { display: block; width: 100%; height: auto; }

.product-showcase__caption { text-align: center; max-width: 320px; }

.product-showcase__caption-title {
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-title);
  margin-bottom: var(--space-sm);
}

.product-showcase__caption-desc {
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .product-showcase { grid-template-columns: 1fr; gap: var(--space-x4l); }
  .product-showcase__phone { width: 230px; }
}

/* ── VALUE ─────────────────────────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  text-align: center;
  transition: box-shadow var(--motion-base), transform var(--motion-base);
}
.value-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }

.value-card__before,
.value-card__after {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-base);
  border-radius: var(--radius-md);
}

.value-card__before {
  background: var(--value-before-bg);
  border: 1px solid var(--value-before-border);
}

.value-card__after {
  background: var(--value-after-bg);
  border: 1px solid var(--value-after-border);
}

.value-card__label {
  display: inline-block;
  font-size: var(--text-micro);
  font-weight: var(--weight-semi-bold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
}

.value-card__after .value-card__label { color: var(--color-primary-hover); }

.value-card__text {
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

.value-card__arrow { color: var(--color-text-muted); }

@media (max-width: 1024px) {
  .value-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ── TRUST ────────────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.trust-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow var(--motion-base);
}
.trust-card:hover { box-shadow: var(--shadow-elevated); }

.trust-card--does { border-top: 3px solid var(--color-primary); }
.trust-card--doesnt { border-top: 3px solid var(--color-text-muted); }

.trust-card__title {
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: var(--leading-title);
  margin-bottom: var(--space-lg);
}

.trust-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trust-card__list li {
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  padding-left: var(--space-lg);
  position: relative;
}

.trust-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.trust-card--doesnt .trust-card__list li::before { background: var(--color-text-muted); }

.trust-note {
  margin-top: var(--space-xl);
  padding: var(--space-base) var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--color-surface-container);
  font-size: var(--text-body-small);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── FINAL CTA ────────────────────────────────────────────────────────────── */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-x5l) var(--space-xl);
  background: linear-gradient(180deg, var(--color-primary-well) 0%, var(--color-bg) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.final-cta__title {
  font-size: var(--text-headline-large);
  font-weight: var(--weight-bold);
  line-height: var(--leading-headline);
  letter-spacing: var(--tracking-headline-large);
}

.final-cta__desc {
  font-size: var(--text-body-large);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
  max-width: 44ch;
}

/* ── CONTACT BLOCK ────────────────────────────────────────────────────────── */
.contact-block {
  margin-bottom: var(--space-x5l);
  padding-bottom: var(--space-x5l);
  border-bottom: 1px solid var(--color-border);
}

.contact-block__title {
  font-size: var(--text-headline);
  font-weight: var(--weight-bold);
  line-height: var(--leading-headline);
  margin-bottom: var(--space-xl);
}

.contact-block__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.contact-block__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxs);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow var(--motion-base), border-color var(--motion-base);
}

.contact-block__item:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-border);
}

.contact-block__label {
  font-size: var(--text-micro);
  font-weight: var(--weight-semi-bold);
  color: var(--color-text-muted);
}

.contact-block__value {
  font-size: var(--text-body-small);
  color: var(--color-text-primary);
}

.contact-block__value a { color: var(--color-primary-hover); }
.contact-block__value a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .contact-block__list { grid-template-columns: 1fr; }
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-x5l);
  background: var(--color-surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-x5l);
}

.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__brand-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-primary);
}

.footer__brand-text {
  font-family: var(--font-brand);
  font-size: var(--text-body-large);
  font-weight: var(--weight-semi-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-body-large);
}

.footer__brand-tagline {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  max-width: 40ch;
}

.footer__col-title {
  font-size: var(--text-body-small);
  font-weight: var(--weight-semi-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col-link {
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  transition: color var(--motion-fast), padding-left var(--motion-fast);
  display: inline-block;
}
.footer__col-link:hover { color: var(--color-text-primary); padding-left: var(--space-xs); }

.footer__legal {
  margin-top: var(--space-x5l);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-caption);
  line-height: var(--leading-body-small);
  color: var(--color-text-secondary);
}

.footer__legal-line {
  margin-bottom: var(--space-xs);
  overflow-wrap: anywhere;
}

.footer__copyright {
  margin-top: var(--space-lg);
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  text-align: center;
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer__brand-block { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}
