:root {
  --bg: #070b14;
  --bg-elevated: #0f1629;
  --surface: #151d33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-sans: "Noto Sans KR", system-ui, sans-serif;
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --container-padding: 24px;
  --header-height: 80px;
  --section-space: clamp(64px, 10vw, 96px);
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - var(--container-padding) * 2));
  margin: 0 auto;
}

.carousel {
  position: relative;
  z-index: 1;
  --carousel-visible-count: 3;
  --carousel-label-gap: 4px;
}

.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(16px, 3vw, 22px);
  margin-bottom: clamp(22px, 3.5vw, 32px);
  border-bottom: 1px solid var(--border);
}

.site-top__brand {
  flex-shrink: 0;
  color: rgba(238, 242, 255, 0.9);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.1vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .site-top__brand:hover {
    color: #fff;
  }
}

.site-top__contact {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: var(--touch-min);
  padding: 0 2px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .site-top__contact:hover {
    color: var(--text);
  }
}

.site-tagline {
  margin: 0 0 clamp(22px, 3.8vw, 32px);
  padding: 0 clamp(8px, 2vw, 16px);
  color: rgba(191, 219, 254, 0.78);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-align: center;
  transform: rotate(-1.8deg);
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 14px);
  width: 100%;
  margin-bottom: clamp(22px, 3.5vw, 32px);
}

.carousel__controls[hidden] {
  display: none;
}

.carousel__controls--single .carousel__arrow[hidden] {
  display: none;
}

.carousel__controls--single .carousel__rail {
  flex: 1;
}

.carousel__labels-viewport--single {
  mask-image: none;
  -webkit-mask-image: none;
}

.carousel__labels-viewport--single .carousel__labels {
  justify-content: center;
  overflow-x: hidden;
}

.story {
  touch-action: pan-y;
}

.showcase {
  position: relative;
  overflow: hidden;
  padding: calc(clamp(28px, 5vw, 44px) + env(safe-area-inset-top, 0)) 0
    var(--section-space);
}

.carousel__swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -10px 0 clamp(18px, 3vw, 26px);
  color: rgba(148, 163, 184, 0.88);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    filter 0.55s ease;
}

.carousel__swipe-hint[hidden],
.carousel__swipe-hint--hide {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(2px);
}

.carousel__swipe-hint-glyph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: clamp(68px, 16vw, 88px);
}

.carousel__swipe-hint-chevron {
  flex-shrink: 0;
  color: rgba(147, 197, 253, 0.55);
  font-size: 0.95rem;
  line-height: 1;
  animation: carousel-swipe-chevron 2.4s ease-in-out infinite;
}

.carousel__swipe-hint-chevron:first-child {
  --chevron-shift: -2px;
  animation-direction: reverse;
}

.carousel__swipe-hint-chevron:last-child {
  --chevron-shift: 2px;
}

.carousel__swipe-hint-line {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.carousel__swipe-hint-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.15) 35%,
    rgba(147, 197, 253, 0.95) 50%,
    rgba(59, 130, 246, 0.15) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: carousel-swipe-pulse 2.4s ease-in-out infinite;
}

.carousel__swipe-hint-text {
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.75),
    rgba(191, 219, 254, 0.95),
    rgba(148, 163, 184, 0.75)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: carousel-swipe-text 3.6s ease-in-out infinite;
}

@keyframes carousel-swipe-pulse {
  0%,
  100% {
    background-position: 120% 0;
    opacity: 0.35;
  }

  50% {
    background-position: -20% 0;
    opacity: 1;
  }
}

@keyframes carousel-swipe-chevron {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(var(--chevron-shift, 2px));
  }
}

@keyframes carousel-swipe-text {
  0%,
  100% {
    background-position: 100% 0;
  }

  50% {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__swipe-hint-chevron,
  .carousel__swipe-hint-pulse,
  .carousel__swipe-hint-text {
    animation: none;
  }

  .carousel__swipe-hint-pulse {
    opacity: 0.65;
    background-position: 50% 0;
  }
}

.carousel__rail {
  flex: 1;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(40px, 10vw, 48px);
  height: clamp(40px, 10vw, 48px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

@media (hover: hover) {
  .carousel__arrow:hover:not(:disabled) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.carousel__arrow:active:not(:disabled) {
  transform: scale(0.94);
}

.carousel__arrow:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

.carousel__labels-viewport {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}

.carousel__labels-viewport--at-start {
  mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
}

.carousel__labels-viewport--at-end {
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

.carousel__labels-viewport--at-middle {
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.carousel__labels {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--carousel-label-gap);
  min-width: 0;
  padding: 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__labels::-webkit-scrollbar {
  display: none;
}

.carousel__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 0;
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.22);
  pointer-events: none;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.carousel__labels--guiding .carousel__indicator {
  opacity: 0;
}

.carousel__guide {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 2;
  height: calc(100% - 4px);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.95),
    rgba(59, 130, 246, 0.85)
  );
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.25),
    0 6px 28px rgba(59, 130, 246, 0.38);
  pointer-events: none;
  opacity: 0;
  transform: translateX(0);
  will-change: transform, width, opacity;
}

.carousel__guide.is-visible {
  opacity: 0.82;
}

.carousel__guide.is-animating {
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    width 1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.carousel__guide.is-fading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__guide.is-animating {
    transition-duration: 0.01ms;
  }
}

.carousel__label {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--carousel-label-slot, 7rem);
  width: var(--carousel-label-slot, 7rem);
  max-width: var(--carousel-label-slot, 7rem);
  box-sizing: border-box;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  opacity: 0.55;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 2.2vw, 1.02rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    font-size 0.22s ease;
}

@media (hover: hover) {
  .carousel__label:not(.is-active):hover {
    color: var(--text);
    opacity: 0.82;
  }
}

.carousel__label.is-active {
  color: #fff;
  opacity: 1;
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(59, 130, 246, 0.28);
}

.story--swipeable {
  cursor: grab;
}

.story--dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.story--dragging * {
  cursor: grabbing;
}

.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__viewport--dragging {
  cursor: grabbing;
}

.carousel__viewport--dragging * {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  gap: var(--carousel-gap, 32px);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 var(--carousel-slide-width, 100%);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.carousel__slide .showcase__video {
  position: relative;
  top: auto;
}

.showcase__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.52fr);
  grid-template-rows: auto auto;
  row-gap: clamp(8px, 1.5vw, 14px);
  column-gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.hero__heading {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  max-width: 480px;
  min-width: 0;
  min-height: clamp(56px, 11vw, 80px);
}

.showcase__video {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: clamp(20px, 4vw, 32px);
  width: 100%;
  align-self: start;
}

.intro {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
  max-width: 480px;
}

.intro .section__title {
  margin-bottom: clamp(20px, 4vw, 28px);
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(22px, 4vw, 32px);
  max-width: 680px;
}

.feature-item {
  position: relative;
  padding-left: 28px;
}

.feature-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
}

.feature-item__title {
  margin: 0 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.feature-item__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 2.1vw, 1rem);
  line-height: 1.55;
}

.hero__icon {
  width: clamp(56px, 11vw, 80px);
  height: clamp(56px, 11vw, 80px);
  border-radius: 22%;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  object-fit: cover;
}

.hero__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero__badge {
  display: inline-block;
  margin: 0 0 clamp(20px, 4vw, 28px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero__badge--live {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.hero__badge--soon {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.hero__glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
  isolation: isolate;
}

.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.hero-video__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.08) 0%, transparent 18%, transparent 82%, rgba(7, 11, 20, 0.18) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.12) 0%, transparent 12%, transparent 88%, rgba(7, 11, 20, 0.12) 100%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 clamp(20px, 4vw, 24px);
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(21, 29, 51, 0.95);
  }
}

.btn:active,
.link-card:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.story-block + .story-block {
  padding-top: clamp(40px, 8vw, 72px);
}

.story-block:last-of-type {
  padding-bottom: var(--section-space);
}

.section {
  padding: 0;
}

.section__title {
  margin: 0 0 clamp(14px, 3vw, 20px);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.section__title--center,
.section__lead {
  text-align: center;
}

.section__lead {
  margin: 0 auto clamp(28px, 5vw, 40px);
  max-width: 560px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1rem);
  padding-inline: 4px;
}

.trailer {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 22, 41, 0.8) 100%);
}

.link-card--soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.link-card--soon .link-card__hint {
  color: #64748b;
  font-style: italic;
}

.link-card--active {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(21, 29, 51, 1) 0%, rgba(30, 41, 79, 0.85) 100%);
}

.link-card--active .link-card__hint {
  color: #93c5fd;
}

.download__inner {
  padding: clamp(28px, 6vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 18px);
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: clamp(18px, 3vw, 24px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.link-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(21, 29, 51, 0.95);
}

.link-card__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.link-card__hint {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer {
  padding: clamp(32px, 5vw, 40px) 0 calc(40px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__contact {
  margin: 0 0 8px;
}

.footer__contact a {
  color: #93c5fd;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .footer__contact a:hover {
    color: #bfdbfe;
  }
}

.footer__copy {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 2vw, 0.9rem);
}

/* ── Tablet (768px ~ 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --container-padding: 20px;
  }

  .showcase__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: clamp(28px, 5vw, 40px);
  }

  .hero__heading,
  .intro,
  .showcase__video {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .showcase__video {
    position: static;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-grid .link-card:last-child {
    grid-column: 1 / -1;
  }

  .hero__glow {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -120px;
  }
}

/* ── Mobile (~768px 이하) ── */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --header-height: 72px;
  }

  .site-top__contact {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-grid .link-card:last-child {
    grid-column: auto;
  }

  .link-card {
    min-height: var(--touch-min);
  }

  .hero__glow {
    width: 280px;
    height: 280px;
    top: -40px;
    right: -80px;
    opacity: 0.7;
  }
}

/* ── Small mobile (~480px 이하) ── */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .section__title {
    font-size: clamp(1.45rem, 6.5vw, 1.8rem);
  }

  .download__inner {
    border-radius: var(--radius);
  }
}
