/* ============================================================
   Service Product — Apple-style product marketing
   Light surface · quiet type · product first · no glow chrome
   ============================================================ */

.service-product {
  --spl-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spl-rise-dur: 780ms;
  --spl-reveal-dur: 700ms;
  --spl-bg: #f5f5f7;
  --spl-bg-elevated: #ffffff;
  --spl-fg: #1d1d1f;
  --spl-muted: #6e6e73;
  --spl-faint: #86868b;
  --spl-line: rgba(0, 0, 0, 0.08);
  --spl-blue: #0071e3;
  --spl-blue-hover: #0077ed;
  --spl-nav-bg: rgba(245, 245, 247, 0.72);

  position: absolute;
  top: var(--top-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: none;
  flex-direction: column;
  color: var(--spl-fg);
  background: var(--spl-bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    'SF Pro Text',
    'Helvetica Neue',
    Helvetica,
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.service-product--open {
  display: flex;
}

.service-product[data-theme='haksi'] {
  --spl-bg: #f5f5f7;
  --spl-blue: #0071e3;
}

.service-product[data-theme='wiki'] {
  --spl-bg: #f5f5f7;
  --spl-blue: #0071e3;
}

.service-product__close {
  position: absolute;
  top: calc(14 * var(--ui-scale) * 1px);
  right: calc(18 * var(--ui-scale) * 1px);
  z-index: 20;
  padding: calc(6 * var(--ui-scale) * 1px) calc(12 * var(--ui-scale) * 1px);
  border-radius: calc(8 * var(--ui-scale) * 1px);
  border: none;
  background: transparent;
  color: var(--spl-blue);
  font-family: inherit;
  font-size: calc(14 * var(--ui-scale) * 1px);
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.service-product__close:hover {
  opacity: 0.72;
}

.service-product__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  color: var(--spl-fg);
}

.service-product__scroll::-webkit-scrollbar {
  display: none;
}

/* ── Nav ── */
.spl-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: calc(10 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px);
  transition: background 0.3s var(--spl-ease), border-color 0.3s var(--spl-ease),
    backdrop-filter 0.3s var(--spl-ease);
  border-bottom: 1px solid transparent;
}

.spl-nav.is-scrolled {
  background: var(--spl-nav-bg);
  border-bottom-color: var(--spl-line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.spl-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto;
  padding-right: calc(56 * var(--ui-scale) * 1px);
}

.spl-nav__brand {
  display: flex;
  align-items: center;
}

.spl-nav__name {
  font-size: calc(17 * var(--ui-scale) * 1px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--spl-fg);
}

.spl-nav__cta {
  color: var(--spl-blue);
  text-decoration: none;
  font-size: calc(14 * var(--ui-scale) * 1px);
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.spl-nav__cta:hover {
  opacity: 0.72;
}

/* ── Hero: brand first, one composition ── */
.spl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: calc(56 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px)
    calc(48 * var(--ui-scale) * 1px);
  box-sizing: border-box;
}

.spl-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  will-change: transform, opacity;
}

[data-spl-rise] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--spl-rise-dur) var(--spl-ease),
    transform var(--spl-rise-dur) var(--spl-ease);
  transition-delay: calc(40ms + var(--spl-i, 0) * 90ms);
}

[data-spl-rise].is-ready {
  opacity: 1;
  transform: none;
}

.spl-hero__brand {
  margin: 0 0 calc(12 * var(--ui-scale) * 1px);
  font-size: clamp(40px, calc(56 * var(--ui-scale) * 1px), 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--spl-fg);
}

.spl-hero__title {
  margin: 0 0 calc(18 * var(--ui-scale) * 1px);
  font-size: clamp(22px, calc(28 * var(--ui-scale) * 1px), 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--spl-fg);
}

.spl-hero__subtitle {
  margin: 0 auto calc(28 * var(--ui-scale) * 1px);
  max-width: 34em;
  font-size: calc(17 * var(--ui-scale) * 1px);
  line-height: 1.47;
  font-weight: 400;
  color: var(--spl-muted);
}

.spl-hero__actions {
  display: flex;
  justify-content: center;
  gap: calc(20 * var(--ui-scale) * 1px);
  margin-bottom: calc(48 * var(--ui-scale) * 1px);
}

.spl-hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: min(48vh, 480px);
}

.spl-hero__product {
  position: relative;
  width: min(88%, 560px);
  aspect-ratio: 4 / 3;
  border-radius: calc(18 * var(--ui-scale) * 1px);
  background-size: cover;
  background-position: center;
  background-color: #e8e8ed;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  will-change: transform;
}

.spl-hero__hint {
  position: absolute;
  left: 50%;
  bottom: calc(8 * var(--ui-scale) * 1px);
  width: 1px;
  height: 36px;
  margin-left: -0.5px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.22));
  transition: opacity 0.3s ease;
}

.spl-hero__hint > span {
  display: none;
}

/* Buttons — Apple blue, quiet radius */
.spl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(11 * var(--ui-scale) * 1px) calc(22 * var(--ui-scale) * 1px);
  border-radius: calc(980 * var(--ui-scale) * 1px);
  border: none;
  font-family: inherit;
  font-size: calc(15 * var(--ui-scale) * 1px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.spl-btn--primary {
  background: var(--spl-blue);
  color: #fff;
}

.spl-btn--primary:hover {
  background: var(--spl-blue-hover);
}

.spl-btn--text {
  padding: 0;
  background: transparent;
  color: var(--spl-blue);
  border-radius: 0;
}

.spl-btn--text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spl-btn--text::after {
  content: ' ›';
}

.spl-btn--xl {
  padding: calc(14 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px);
  font-size: calc(17 * var(--ui-scale) * 1px);
}

/* ── Feature sticky ── */
.spl-feature {
  position: relative;
  background: var(--spl-bg-elevated);
}

.spl-feature__sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: calc(48 * var(--ui-scale) * 1px);
  align-items: center;
  min-height: calc(100vh - var(--top-height));
  min-height: calc(100dvh - var(--top-height));
  max-width: 980px;
  margin: 0 auto;
  padding: calc(56 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px);
  box-sizing: border-box;
}

.spl-feature__spacer {
  height: calc(var(--spl-feature-count, 3) * 80vh);
  pointer-events: none;
}

.spl-feature__eyebrow {
  margin: 0 0 calc(28 * var(--ui-scale) * 1px);
  font-size: calc(12 * var(--ui-scale) * 1px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spl-faint);
}

.spl-feature__tabs {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--ui-scale) * 1px);
}

.spl-feature__tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: calc(16 * var(--ui-scale) * 1px) 0;
  border: none;
  border-left: 2px solid transparent;
  padding-left: calc(16 * var(--ui-scale) * 1px);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.4s var(--spl-ease), border-color 0.4s var(--spl-ease);
}

.spl-feature__tab.is-active {
  opacity: 1;
  border-left-color: var(--spl-fg);
}

.spl-feature__tab-kicker {
  display: block;
  margin-bottom: calc(6 * var(--ui-scale) * 1px);
  font-size: calc(12 * var(--ui-scale) * 1px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--spl-faint);
}

.spl-feature__tab-title {
  display: block;
  margin-bottom: calc(8 * var(--ui-scale) * 1px);
  font-size: clamp(24px, calc(32 * var(--ui-scale) * 1px), 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.spl-feature__tab-body {
  display: block;
  max-width: 28em;
  font-size: calc(15 * var(--ui-scale) * 1px);
  line-height: 1.47;
  color: var(--spl-muted);
}

.spl-feature__media {
  position: relative;
  height: min(58vh, 520px);
  border-radius: calc(18 * var(--ui-scale) * 1px);
  overflow: hidden;
  background: #e8e8ed;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.spl-feature__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--spl-ease);
  pointer-events: none;
}

.spl-feature__panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.spl-feature__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ── Specs ── */
.spl-proof {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(100 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px)
    calc(64 * var(--ui-scale) * 1px);
}

.spl-proof__head {
  max-width: 560px;
  margin: 0 auto calc(48 * var(--ui-scale) * 1px);
  text-align: center;
}

.spl-proof__eyebrow {
  margin: 0 0 calc(10 * var(--ui-scale) * 1px);
  font-size: calc(12 * var(--ui-scale) * 1px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spl-faint);
}

.spl-proof__title {
  margin: 0;
  font-size: clamp(28px, calc(40 * var(--ui-scale) * 1px), 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.spl-proof__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: calc(56 * var(--ui-scale) * 1px);
  align-items: start;
}

.spl-proof__specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--spl-line);
}

.spl-spec {
  display: grid;
  grid-template-columns: minmax(88px, 0.35fr) 1fr;
  gap: calc(12 * var(--ui-scale) * 1px) calc(20 * var(--ui-scale) * 1px);
  padding: calc(20 * var(--ui-scale) * 1px) 0;
  border-bottom: 1px solid var(--spl-line);
}

.spl-spec__label {
  margin: 0;
  font-size: calc(14 * var(--ui-scale) * 1px);
  font-weight: 400;
  color: var(--spl-faint);
  padding-top: 0.2em;
}

.spl-spec__value {
  margin: 0 0 calc(4 * var(--ui-scale) * 1px);
  font-size: calc(21 * var(--ui-scale) * 1px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spl-spec__detail {
  margin: 0;
  font-size: calc(14 * var(--ui-scale) * 1px);
  color: var(--spl-muted);
}

.spl-proof__quotes {
  display: flex;
  flex-direction: column;
  gap: calc(36 * var(--ui-scale) * 1px);
  padding-top: calc(8 * var(--ui-scale) * 1px);
}

.spl-quote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.spl-quote__text {
  margin: 0 0 calc(12 * var(--ui-scale) * 1px);
  font-size: calc(21 * var(--ui-scale) * 1px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--spl-fg);
}

.spl-quote__author {
  font-size: calc(14 * var(--ui-scale) * 1px);
  color: var(--spl-faint);
  font-style: normal;
}

/* ── Final CTA ── */
.spl-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: calc(12 * var(--ui-scale) * 1px);
  padding: calc(100 * var(--ui-scale) * 1px) calc(28 * var(--ui-scale) * 1px)
    calc(120 * var(--ui-scale) * 1px);
  background: var(--spl-bg-elevated);
}

.spl-cta__title {
  margin: 0;
  max-width: 16em;
  font-size: clamp(32px, calc(48 * var(--ui-scale) * 1px), 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.spl-cta__note {
  margin: 0 0 calc(16 * var(--ui-scale) * 1px);
  font-size: calc(15 * var(--ui-scale) * 1px);
  color: var(--spl-muted);
}

/* Reveal — no blur */
[data-spl-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity var(--spl-reveal-dur) var(--spl-ease),
    transform var(--spl-reveal-dur) var(--spl-ease);
  transition-delay: var(--spl-delay, 0ms);
}

[data-spl-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px), (max-aspect-ratio: 3 / 4) {
  .spl-hero {
    padding-top: calc(36 * var(--ui-scale) * 1px);
    padding-bottom: calc(32 * var(--ui-scale) * 1px);
  }

  .spl-hero__actions {
    margin-bottom: calc(32 * var(--ui-scale) * 1px);
  }

  .spl-hero__visual {
    min-height: min(36vh, 300px);
  }

  .spl-hero__product {
    width: min(92%, 420px);
  }

  .spl-feature__sticky {
    grid-template-columns: 1fr;
    align-content: start;
    gap: calc(24 * var(--ui-scale) * 1px);
    min-height: auto;
    position: relative;
    padding-top: calc(40 * var(--ui-scale) * 1px);
  }

  .spl-feature__spacer {
    display: none;
  }

  .spl-feature__media {
    height: min(36vh, 260px);
    order: -1;
  }

  .spl-feature__tab {
    opacity: 1;
  }

  .spl-feature__tab:not(.is-active) .spl-feature__tab-body {
    display: none;
  }

  .spl-proof__grid {
    grid-template-columns: 1fr;
    gap: calc(40 * var(--ui-scale) * 1px);
  }

  .spl-spec {
    grid-template-columns: minmax(72px, 0.32fr) 1fr;
  }

  .spl-nav {
    padding-left: max(14px, calc(16 * var(--ui-scale) * 1px));
    padding-right: max(14px, calc(16 * var(--ui-scale) * 1px));
  }

  .spl-nav__inner {
    padding-right: calc(48 * var(--ui-scale) * 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-spl-rise],
  [data-spl-reveal],
  .spl-feature__tab,
  .spl-feature__panel,
  .spl-btn {
    transition: none !important;
    animation: none !important;
  }

  [data-spl-rise],
  [data-spl-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
