@font-face {
  font-family: "Kihya Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Jua-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Kihya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/NanumGothic-Regular.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #211518;
  --muted: #735f64;
  --paper: #fff9f4;
  --white: #ffffff;
  --brand: #ff3347;
  --brand-dark: #b91325;
  --line: rgba(33, 21, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(255, 184, 125, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 74%, rgba(255, 51, 71, 0.18), transparent 32rem),
    var(--paper);
  font-family: "Kihya Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 51, 71, 0.12);
  border-radius: 50%;
  content: "";
}

.site-shell::before {
  top: 15%;
  right: -16rem;
  width: 42rem;
  height: 42rem;
}

.site-shell::after {
  bottom: -22rem;
  left: -13rem;
  width: 38rem;
  height: 38rem;
}

.site-header,
.site-footer,
.hero {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: "Kihya Display", sans-serif;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(120, 8, 23, 0.12);
  border-radius: 0.9rem;
  box-shadow: 0 0.55rem 1.4rem rgba(120, 8, 23, 0.15);
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0.5rem 2rem rgba(88, 39, 46, 0.05);
  backdrop-filter: blur(12px);
}

.language-nav a {
  min-width: 2.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.language-nav a:hover {
  color: var(--ink);
}

.language-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--ink);
}

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 9vh, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 43rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}

h1 {
  margin: 0;
  font-family: "Kihya Display", sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h1 span {
  display: block;
}

h1 .coming {
  margin-top: 0.12em;
  color: var(--brand);
  font-size: 0.74em;
  letter-spacing: -0.04em;
}

.intro {
  max-width: 35rem;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  word-break: keep-all;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 51, 71, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0.7rem 2rem rgba(108, 27, 39, 0.07);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0.35rem rgba(255, 51, 71, 0.12);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.app-icon-stage {
  position: relative;
  justify-self: center;
  width: min(30vw, 21rem);
  min-width: 17rem;
  aspect-ratio: 1;
}

.app-icon-stage::before,
.app-icon-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.app-icon-stage::before {
  inset: -10%;
  z-index: -2;
  border: 1px solid rgba(255, 51, 71, 0.24);
  animation: slow-spin 22s linear infinite;
}

.app-icon-stage::after {
  right: -10%;
  bottom: -9%;
  z-index: -1;
  width: 72%;
  height: 72%;
  background: rgba(255, 166, 101, 0.3);
  filter: blur(2.6rem);
}

.app-icon-stage img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(120, 8, 23, 0.14);
  border-radius: 25%;
  box-shadow:
    0 2.4rem 5rem rgba(112, 18, 34, 0.22),
    0 0.4rem 1.2rem rgba(112, 18, 34, 0.12);
  animation: icon-float 5.5s ease-in-out infinite;
}

.orbit-dot {
  position: absolute;
  top: -8%;
  right: 8%;
  width: 1rem;
  height: 1rem;
  border: 0.25rem solid var(--paper);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0.4rem 1rem rgba(112, 18, 34, 0.2);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a {
  font-weight: 700;
  text-decoration-color: rgba(33, 21, 24, 0.25);
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 3px solid rgba(255, 51, 71, 0.42);
  outline-offset: 4px;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-0.8rem) rotate(1.5deg);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 2rem, 42rem);
  }

  .site-header {
    align-items: flex-start;
  }

  .brand span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.25rem;
    padding-block: 3.5rem 4.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .status {
    justify-content: center;
  }

  .eyebrow::before {
    display: none;
  }

  .intro {
    margin-inline: auto;
  }

  .app-icon-stage {
    grid-row: 1;
    width: min(66vw, 17.5rem);
    min-width: 14rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .language-nav a {
    min-width: 2.3rem;
    padding-inline: 0.55rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
