:root {
  --landing-background-dark: #08090c;
  --landing-surface-dark: #101216;
  --landing-background-light: #f5f5f5;
  --landing-text-primary-dark: #f2f2f2;
  --landing-text-secondary-dark: #b8b8b8;
  --landing-text-primary-light: #111111;
  --landing-text-secondary-light: #5e5e5e;
  --landing-decorative-text-on-dark: var(--landing-text-secondary-dark);
  --landing-decorative-text-on-light: var(--landing-text-secondary-light);
  color-scheme: dark;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--landing-text-primary-dark);
  background: var(--landing-background-dark);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--landing-background-dark);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand-link {
  width: 158px;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(242, 242, 242, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.language-setting {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-trigger {
  width: 74px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(242, 242, 242, 0.9);
  cursor: pointer;
}

.language-trigger:hover,
.language-trigger:focus-visible,
.language-setting[data-open="true"] .language-trigger {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.language-icon,
.language-chevron {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.8;
}

.language-chevron {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 160ms ease;
}

.language-setting[data-open="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 104px;
  padding: 8px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 14px;
  background: #ffffff;
  color: #17191f;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
}

.language-menu[hidden] {
  display: none;
}

.language-menu-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #424752;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu-item:hover,
.language-menu-item:focus-visible {
  background: #eef2f7;
  color: #111111;
  outline: none;
}

.hero {
  position: relative;
  min-height: min(600px, 84vh);
  display: grid;
  grid-template-columns: minmax(0, 456px) minmax(228px, 264px);
  justify-content: center;
  gap: clamp(8px, 1.6vw, 22px);
  align-items: center;
  overflow: hidden;
  padding: 76px clamp(20px, 7vw, 96px) 16px;
  background: var(--landing-background-dark);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--landing-background-dark);
  background-size: 96px 100%;
  pointer-events: none;
}

.hero-preview {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  width: min(228px, 24vw);
  perspective: 920px;
  perspective-origin: 64% 62%;
}

.hero-preview::before {
  content: "";
  position: absolute;
  left: 12%;
  right: -12%;
  bottom: -16px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  filter: blur(24px);
  transform: rotateZ(-6deg) translateZ(-80px);
  pointer-events: none;
}

.hero-video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 540 / 1170;
  overflow: hidden;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, #2c3138 0%, #050608 24%, #000000 72%, #30343b 100%);
  box-shadow:
    18px 40px 96px rgba(0, 0, 0, 0.64),
    -18px 20px 42px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotateY(-14deg) rotateX(8deg) rotateZ(-1.5deg);
  transform-origin: 56% 82%;
  transform-style: preserve-3d;
}

.hero-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 76%, rgba(255, 255, 255, 0.26) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.18) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #000000;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: min(456px, 100%);
  margin-top: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--landing-decorative-text-on-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
  word-break: keep-all;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-body {
  width: min(504px, 100%);
  margin-bottom: 30px;
  color: #c7cbd3;
  font-size: 28px;
  line-height: 1.36;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.store-badge-link:hover,
.store-badge-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.store-badge {
  width: auto;
  display: block;
}

.app-store-badge {
  height: 54px;
}

.google-play-badge {
  height: 80px;
  margin: -13px 0;
}

.intro-band {
  background: var(--landing-background-light);
  color: var(--landing-text-primary-light);
  padding: 56px clamp(20px, 7vw, 96px);
}

.intro-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.intro-grid article {
  min-width: 0;
}

.feature-index {
  display: block;
  margin-bottom: 16px;
  color: var(--landing-decorative-text-on-light);
  font-size: 13px;
  font-weight: 900;
}

.intro-grid h2,
.download-band h2,
.section-heading h2 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0;
}

.intro-grid p,
.section-heading p {
  color: #5e5e5e;
  font-size: 16px;
  line-height: 1.7;
}

.screen-band {
  padding: 74px 0 86px;
  background: var(--landing-surface-dark);
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 0 clamp(20px, 7vw, 96px);
}

.section-heading p {
  max-width: 620px;
  color: #b8b8b8;
}

.screen-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 286px);
  gap: 22px;
  overflow-x: auto;
  padding: 6px clamp(20px, 7vw, 96px) 16px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #4b5563 transparent;
}

.screen-rail figure {
  margin: 0;
  scroll-snap-align: start;
}

.screen-rail picture {
  display: block;
}

.screen-rail img {
  width: 100%;
  aspect-ratio: 720 / 1561;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08090c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.screen-rail figcaption {
  margin-top: 12px;
  color: #d7d9de;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.download-band {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 74px clamp(20px, 7vw, 96px);
  background: var(--landing-background-light);
  color: var(--landing-text-primary-light);
}

.download-band .eyebrow {
  color: var(--landing-decorative-text-on-light);
}

.download-band h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 20px 36px;
  align-items: start;
  padding: 38px clamp(20px, 7vw, 96px);
  background: var(--landing-background-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b8b8b8;
}

.site-footer img {
  width: 160px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #f2f2f2;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  grid-column: 2;
  margin: -4px 0 0;
  color: #7a7a7a;
  font-size: 13px;
  line-height: 1.55;
}

.footer-copy {
  grid-column: 2;
  margin-top: -4px;
}

.footer-copy p {
  grid-column: auto;
  margin: 0;
}

.footer-copy .footer-contact {
  color: #c7cbd3;
}

.footer-contact a {
  color: #ffffff;
}

.footer-copy .footer-note {
  margin-top: 6px;
  color: #7a7a7a;
}

.error-main {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 86px clamp(20px, 7vw, 96px) 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #08090c;
  background-size: 96px 100%;
}

.error-layout {
  width: min(860px, 100%);
  display: block;
  margin: 0 auto;
}

.error-content {
  max-width: 760px;
}

.error-nav-en,
.site-footer .error-footer-en {
  display: none;
}

body[data-error-locale="en"] .error-nav-ko,
body[data-error-locale="en"] .error-footer-ko {
  display: none;
}

body[data-error-locale="en"] .error-nav-en {
  display: flex;
}

body[data-error-locale="en"] .error-footer-en {
  display: flex;
}

body[data-error-locale="en"] .footer-copy.error-footer-en {
  display: block;
}

.error-code {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--landing-decorative-text-on-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.error-locale {
  display: none;
}

body[data-error-locale="ko"] .error-locale-ko,
body[data-error-locale="en"] .error-locale-en {
  display: block;
}

.error-title {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
}

.error-copy {
  max-width: 560px;
  margin-bottom: 0;
  color: #c7cbd3;
  font-size: 18px;
  line-height: 1.55;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.error-contact {
  max-width: 520px;
  margin: 14px 0 0;
  color: #8f96a3;
  font-size: 13px;
  line-height: 1.6;
}

.error-contact a {
  color: #f2f2f2;
  font-weight: 800;
  text-decoration: none;
}

.error-action-primary,
.error-action-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 18px;
  text-decoration: none;
}

.error-action-primary {
  background: #ffffff;
  color: #000000;
}

.error-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.04);
}

.error-action-primary:hover,
.error-action-primary:focus-visible,
.error-action-secondary:hover,
.error-action-secondary:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

@media (max-width: 880px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-link {
    width: 134px;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
    padding: 80px 20px 34px;
  }

  .hero-preview {
    grid-row: 1;
    grid-column: 1;
    width: min(176px, 45vw);
    justify-self: center;
  }

  .hero-video-shell {
    max-height: none;
    border-radius: 32px;
  }

  .hero-phone-screen {
    border-radius: inherit;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 38px;
  }

  .hero-body {
    margin-bottom: 22px;
    font-size: 22px;
  }

  .error-main {
    min-height: auto;
    padding: 92px 20px 32px;
  }

  .error-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .error-content {
    max-width: none;
  }

  .error-title {
    max-width: 520px;
    font-size: 38px;
  }

  .error-copy {
    font-size: 16px;
  }

  .error-actions {
    margin-top: 22px;
  }

  .error-action-primary,
  .error-action-secondary {
    min-height: 48px;
  }

  .store-actions {
    gap: 8px;
  }

  .app-store-badge {
    height: 48px;
  }

  .google-play-badge {
    height: 72px;
    margin: -12px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-band {
    padding: 48px 20px;
  }

  .intro-grid h2,
  .download-band h2,
  .section-heading h2 {
    font-size: 27px;
  }

  .download-band {
    display: grid;
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p,
  .footer-copy {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 12px;
  }

  .brand-link {
    width: 122px;
  }

  .language-trigger {
    width: 62px;
  }

  .language-icon {
    width: 24px;
    height: 24px;
  }

  .language-menu {
    min-width: 104px;
  }

  .hero {
    gap: 10px;
    padding: 72px 20px 24px;
  }

  .hero-preview {
    width: min(142px, 44vw);
  }

  .hero-video-shell {
    border-radius: 28px;
  }

  .hero-phone-screen {
    border-radius: inherit;
  }

  h1 {
    font-size: 30px;
  }

  .hero-body {
    margin-bottom: 18px;
    font-size: 19px;
    line-height: 1.5;
  }

  .app-store-badge {
    height: 40px;
  }

  .google-play-badge {
    height: 58px;
    margin: -9px 0;
  }

  .error-title {
    font-size: 30px;
  }

  .error-actions {
    align-items: stretch;
  }

  .error-action-primary,
  .error-action-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .store-badge-link:hover,
  .store-badge-link:focus-visible {
    transform: none;
  }
}
