:root {
  --night: #03101b;
  --navy: #071a2b;
  --navy-soft: #0c263c;
  --cyan: #42c4ee;
  --cyan-deep: #087ea8;
  --orange: #ff9418;
  --cream: #fffaf1;
  --paper: #ffffff;
  --ink: #08203a;
  --muted: #5f7183;
  --line: rgba(8, 32, 58, 0.12);
  --dark-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 75px rgba(5, 25, 44, 0.18);
  --font-title: 'Outfit', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 148, 24, 0.12), transparent 25rem),
    radial-gradient(circle at 92% 8%, rgba(66, 196, 238, 0.16), transparent 28rem),
    var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.top-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  color: #ffffff;
}

.nav-brand,
.nav-link,
.language-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
}

.nav-brand {
  gap: 0.65rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  aspect-ratio: 1 / 1;
  flex: 0 0 38px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.32);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-link,
.language-link {
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.language-link {
  min-width: 42px;
  justify-content: center;
  padding-inline: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  padding: clamp(7.2rem, 12vh, 9rem) clamp(1rem, 5vw, 5rem) clamp(4.5rem, 8vh, 7rem);
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 80%, rgba(255, 148, 24, 0.32), transparent 27rem),
    radial-gradient(circle at 84% 20%, rgba(66, 196, 238, 0.28), transparent 30rem),
    linear-gradient(145deg, var(--night), #061b2d 54%, #0a2941);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 28rem;
  height: 28rem;
  right: -12rem;
  bottom: -13rem;
  border: 3.8rem solid rgba(66, 196, 238, 0.16);
  border-radius: 50%;
}

.hero::after {
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(180deg, transparent, var(--cream));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-icon {
  width: clamp(76px, 8vw, 108px);
  height: clamp(76px, 8vw, 108px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border-radius: 25%;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.eyebrow,
.section-kicker,
.feature-badge,
.platform-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--cyan);
}

.hero h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(4rem, 9vw, 7.3rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.hero-claim {
  max-width: 680px;
  margin: 1.2rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hero-copy {
  max-width: 610px;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 0.48rem 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-screens {
  position: relative;
  min-height: min(68svh, 690px);
}

.hero-screens.single-screen {
  display: grid;
  place-items: center;
}

.hero-phone {
  position: absolute;
  width: min(54%, 300px);
  height: auto;
  border: 7px solid #0b2236;
  border-radius: 34px;
  background: var(--night);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hero-phone.ios {
  z-index: 2;
  left: 10%;
  top: 1%;
  transform: rotate(-6deg);
}

.hero-phone.android {
  z-index: 3;
  right: 5%;
  bottom: 1%;
  transform: rotate(6deg);
}

.hero-phone.solo {
  position: relative;
  inset: auto;
  width: min(66%, 350px);
  transform: rotate(4deg);
}

.platform-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 18, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.platform-chip.ios {
  left: 2%;
  top: 10%;
}

.platform-chip.android {
  right: 0;
  bottom: 6%;
}

.platform-chip.solo {
  left: 10%;
  top: 9%;
}

.flow-strip,
.showcase-section,
.support-section {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem);
}

.flow-inner,
.showcase-inner,
.support-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.flow-heading,
.section-heading {
  max-width: min(920px, 100%);
  margin-bottom: 2rem;
}

.flow-heading h2,
.section-heading h2,
.showcase-copy h2,
.support-header h2 {
  margin: 0.4rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.flow-heading p,
.section-heading p,
.showcase-copy > p,
.support-header > p {
  color: var(--muted);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-item {
  position: relative;
  min-height: 190px;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 46px rgba(5, 31, 52, 0.08);
}

.flow-item::after {
  content: attr(data-step);
  position: absolute;
  right: 1rem;
  bottom: -1.7rem;
  color: rgba(8, 32, 58, 0.055);
  font-family: var(--font-title);
  font-size: 7rem;
  font-weight: 900;
}

.flow-item strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
}

.flow-item:nth-child(2) strong {
  color: var(--cyan-deep);
}

.flow-item:nth-child(3) strong {
  color: #c76500;
}

.flow-item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.showcase-section {
  position: relative;
}

.showcase-section.dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 15%, rgba(66, 196, 238, 0.18), transparent 24rem),
    linear-gradient(145deg, var(--night), var(--navy));
}

.showcase-section.tint {
  background: linear-gradient(135deg, rgba(66, 196, 238, 0.1), rgba(255, 148, 24, 0.1));
}

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.showcase-section:nth-of-type(even) .showcase-inner {
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
}

.showcase-section:nth-of-type(even) .showcase-copy {
  order: 2;
}

.feature-badge,
.section-kicker {
  color: var(--cyan-deep);
}

.dark .feature-badge {
  color: var(--cyan);
}

.showcase-copy > p {
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.dark .showcase-copy > p {
  color: rgba(255, 255, 255, 0.7);
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.feature-list li::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  box-shadow: 0 0 0 5px rgba(66, 196, 238, 0.12);
}

.platform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.4rem);
  align-items: start;
}

.platform-gallery.single-screen {
  grid-template-columns: minmax(0, 390px);
  justify-content: center;
}

.platform-gallery.single-screen .screen-card {
  margin-top: 0;
}

.screen-card {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.dark .screen-card {
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, 0.07);
}

.screen-card:nth-child(even) {
  margin-top: clamp(2rem, 6vw, 5rem);
}

.screen-card img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--night);
}

.screen-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.35rem 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dark .screen-card figcaption {
  color: rgba(255, 255, 255, 0.66);
}

.platform-label {
  color: var(--cyan-deep);
  letter-spacing: 0.04em;
}

.dark .platform-label {
  color: var(--cyan);
}

.timer-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(760px, 100%);
  margin-inline: auto;
}

.timer-gallery .screen-card:nth-child(even) {
  margin-top: 2.8rem;
}

.support-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 88%, rgba(255, 148, 24, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(66, 196, 238, 0.2), transparent 24rem),
    var(--night);
}

.support-header {
  max-width: 800px;
  margin-bottom: 2rem;
}

.support-header > p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(14px);
}

.support-card h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-title);
  font-size: 1.45rem;
}

.support-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

.support-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-link {
  display: block;
  width: fit-content;
  margin: 0.7rem 0 1rem;
  color: var(--cyan);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.note {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  padding: 1.8rem 1rem 2rem;
  color: rgba(255, 255, 255, 0.54);
  background: var(--night);
  font-size: 0.86rem;
}

.footer-nav a {
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.language-link:hover,
.language-link:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.15);
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .showcase-inner,
  .showcase-section:nth-of-type(even) .showcase-inner {
    grid-template-columns: 1fr;
  }

  .showcase-section:nth-of-type(even) .showcase-copy {
    order: 0;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero-screens {
    width: min(680px, 100%);
    min-height: 650px;
    margin: 0 auto;
  }

  .timer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-nav {
    width: min(100% - 1.25rem, 1240px);
  }

  .nav-brand span {
    display: none;
  }

  .nav-link,
  .language-link {
    min-height: 40px;
    padding-inline: 0.72rem;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 6.8rem;
  }

  .hero-screens {
    min-height: 540px;
  }

  .hero-phone {
    width: min(59%, 265px);
    border-width: 5px;
    border-radius: 27px;
  }

  .flow-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .flow-item {
    min-height: 150px;
  }

  .platform-gallery,
  .timer-gallery {
    gap: 0.6rem;
  }

  .screen-card {
    padding: 0.5rem;
    border-radius: 19px;
  }

  .screen-card img {
    border-radius: 14px;
  }

  .screen-card:nth-child(even),
  .timer-gallery .screen-card:nth-child(even) {
    margin-top: 1.5rem;
  }

  .screen-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
    padding-top: 0.6rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 430px) {
  .hero-screens {
    min-height: 455px;
  }

  .platform-chip {
    display: none;
  }

  .flow-strip,
  .showcase-section,
  .support-section {
    padding-inline: 0.8rem;
  }

  .timer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Korean typography and line wrapping optimizations */
:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

:lang(ko) h1,
:lang(ko) h2,
:lang(ko) h3,
:lang(ko) .hero-claim {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:lang(ko) p,
:lang(ko) li {
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

@media (min-width: 981px) {
  :lang(ko) .hero-content,
  :lang(ko) .hero-claim {
    max-width: 720px;
  }

  :lang(ko) .hero-copy {
    max-width: 660px;
  }

  :lang(ko) .flow-heading,
  :lang(ko) .section-heading {
    max-width: min(960px, 100%);
  }

  :lang(ko) .showcase-inner {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }

  :lang(ko) .showcase-section:nth-of-type(even) .showcase-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

  :lang(ko) .support-header {
    max-width: 860px;
  }
}
