/* SEOULAIM landing — implemented from Figma node 28:17 (랜딩페이지, 1440 frame) */

:root {
  --ink: #172a35;
  --muted: #6e777a;
  --accent: #356a98;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #e8e8e8;
  --divider: #e1e5e3;
  --mist: #eaf0f1;
  --panel-bar: #f1f1ee;
  --panel-side: #f8f8f5;
  --panel-select: #e8eef1;
  --still: #d6c6b5;
  --dots: #a7adac;
  --faq-ink: #1c1d2b;
  --faq-muted: #4b4f5c;
  --frame: 1440px;
  --gutter: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--frame); margin: 0 auto; }

/* ---------- Buttons & shared text ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: 26px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #0e1d26; transform: translateY(-1px); }
.btn--sm { height: 32px; padding: 0 11px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.btn--wide { padding: 0 39px; }
.btn--cta { padding: 0 44px; }
.btn--upload { padding: 0 30px; font-size: 14px; }

.eyebrow { color: var(--accent); font-weight: 700; font-size: 11px; line-height: 15px; letter-spacing: 0; }
.eyebrow--sm { font-size: 10px; line-height: 14px; }
.h2 { font-weight: 700; font-size: 40px; line-height: 55px; }

/* ---------- Navigation ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav__inner {
  height: 89px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px 0 37px;
}
.nav__logo img { width: 164px; height: 35px; }
.nav__links { display: flex; gap: 58px; font-size: 14px; line-height: 19px; }
.nav__links a:hover { color: var(--accent); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 20px; }
.lang {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
}
.lang__btn {
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
}
.lang__btn.is-active { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
/* Pinned intro: the stage sticks while .intro's extra height is scrolled through */
.intro { position: relative; height: calc(100vh + var(--pin-distance, 1300px)); }
.intro__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
.hero { background: var(--paper); }
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: opacity, transform;
}
.hero__title { margin-top: 82px; font-weight: 700; font-size: 70px; line-height: 82px; }
.hero__sub { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 25px; }
.hero .btn { margin-top: 25px; }
.hero__meta { margin-top: 19px; color: var(--muted); font-size: 12px; line-height: 16px; }

/* Reels — staggered arc of five 226×402 slots */
.reels {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translate3d(calc(-50% - 3px), var(--reels-y, 509px), 0);
  will-change: transform;
}
.reel {
  position: relative;
  flex: none;
  width: 226px;
  height: 402px;
  border-radius: 18px;
  overflow: hidden;
  color: var(--white);
  text-align: left;
  isolation: isolate;
}
.reel--1, .reel--5 { margin-top: 74px; }
.reel--2, .reel--4 { margin-top: 32px; }
.reel--4 { background: rgba(0, 0, 0, .2); }
.reel__poster { position: absolute; max-width: none; pointer-events: none; }
.reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.reel.has-video .reel__video { opacity: 1; }
.reel__shade { position: absolute; left: 0; top: 260px; width: 226px; height: 142px; background: var(--ink); opacity: .17; }
.reel__label { position: absolute; left: 18px; top: 18px; font-weight: 700; font-size: 10px; line-height: 14px; }
.reel__play { position: absolute; left: 178px; top: 12px; width: 30px; height: 30px; }
.reel__title { position: absolute; left: 18px; top: 260px; font-weight: 700; font-size: 28px; line-height: 38px; white-space: nowrap; }
.reel__caption { position: absolute; left: 18px; top: 342px; font-size: 11px; line-height: 15px; }
.reel__progress { position: absolute; left: 18px; top: 380px; width: 190px; height: 2px; background: rgba(255, 255, 255, .4); }
.reel__progress span { display: block; width: 42px; height: 100%; background: var(--white); }

/* Product preview window — rises from below after the reels settle (see main.js) */
.preview {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  margin-left: -453px;
  width: 900px;
  height: 298px;
  display: grid;
  grid-template-columns: 218px 1fr;
  grid-template-rows: 42px 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
  text-align: left;
  transform: translate3d(0, var(--preview-y, 100vh), 0);
  will-change: transform;
}
.preview__bar {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 18px;
  background: var(--panel-bar);
}
.preview__dots { position: absolute; left: 18px; top: 13px; color: var(--dots); font-size: 10px; line-height: 14px; }
.preview__name { position: absolute; left: 282px; top: 11px; font-weight: 700; font-size: 12px; line-height: 16px; }
.preview__side { background: var(--panel-side); padding: 20px 10px 0; }
.preview__side h4 { padding-left: 12px; font-weight: 700; font-size: 15px; line-height: 20px; }
.preview__side ol { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.preview__side li {
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  white-space: pre;
}
.preview__side li.is-active { background: var(--panel-select); color: var(--ink); font-weight: 700; }
.preview__main { padding: 24px 0 0 26px; }
.preview__title { font-weight: 700; font-size: 21px; line-height: 29px; }
.preview__desc { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 16px; }
.preview__row { margin-top: 19px; display: flex; gap: 27px; }
.preview__still { position: relative; width: 220px; height: 125px; border-radius: 10px; background: var(--still); color: var(--white); }
.preview__still span { position: absolute; left: 18px; top: 45px; font-weight: 700; font-size: 16px; line-height: 22px; }
.preview__still img { position: absolute; left: 176px; top: 85px; width: 24px; height: 24px; }
.preview__how { padding-top: 3px; }
.preview__steps { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 16px; }
.preview__how .btn { margin-top: 14px; }

/* ---------- How it works ---------- */
.how { background: var(--white); }
.how .wrap { height: 470px; padding: 64px var(--gutter) 0; }
.how .h2 { margin-top: 15px; }
.steps { margin-top: 57px; display: grid; grid-template-columns: repeat(4, 285px); column-gap: 45px; }
.steps__num { display: block; padding-bottom: 18px; border-bottom: 1px solid var(--divider); color: var(--accent); font-weight: 700; font-size: 14px; line-height: 19px; }
.steps h3 { margin-top: 25px; font-weight: 700; font-size: 23px; line-height: 31px; }
.steps p { margin-top: 15px; max-width: 265px; color: var(--muted); font-size: 15px; line-height: 20px; }

/* ---------- A different side of Seoul ---------- */
.seoul { background: var(--paper); }
.seoul__inner { height: 320px; display: grid; grid-template-columns: 610px 1fr; padding: 66px var(--gutter) 0; }
.seoul__title { margin-top: 18px; font-weight: 700; font-size: 43px; line-height: 59px; }
.seoul__body { padding-top: 40px; }
.seoul__lead { color: var(--muted); font-size: 18px; line-height: 25px; }
.seoul__strong { margin-top: 28px; font-weight: 700; font-size: 15px; line-height: 20px; }
.seoul__body .btn { margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq__inner { padding: 135px 0 85px; }
.faq__title { text-align: center; color: var(--faq-ink); font-weight: 700; font-size: 42px; line-height: 50px; }
.faq__list { width: 852px; max-width: 100%; margin: 32px auto 0; border-top: 1px solid #ececec; }
.faq__list > div { padding: 22px 0 26px; border-bottom: 1px solid #ececec; font-family: "Inter", "Manrope", sans-serif; }
.faq__list dt { color: var(--faq-ink); font-weight: 600; font-size: 18px; line-height: 24px; }
.faq__list dd { margin-top: 8px; color: var(--faq-muted); font-size: 16px; line-height: 22px; }

/* ---------- Early access ---------- */
.cta { background: var(--mist); }
.cta__inner { height: 300px; padding-top: 59px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__sub { margin-top: 11px; color: var(--muted); font-size: 17px; line-height: 23px; }
.cta .btn { margin-top: 31px; }
.cta__note { margin-top: 21px; color: var(--muted); font-size: 12px; line-height: 16px; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); }
.footer__inner { height: 104px; display: flex; align-items: flex-start; padding: 39px 191px 0 37px; }
.footer__inner img { width: 164px; height: 35px; }
.footer__tag { margin: 4px 0 0 79px; color: var(--muted); font-size: 13px; line-height: 18px; }
.footer__links { margin: 4px 0 0 auto; display: flex; gap: 12px; color: var(--muted); font-size: 12px; line-height: 16px; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Narrower viewports (design is 1440 only; graceful fallback) ---------- */
@media (max-width: 1240px) {
  .nav__links { gap: 32px; }
  .reels { left: 0; width: 100%; overflow-x: auto; padding: 0 24px 8px; scrollbar-width: none; transform: translate3d(0, var(--reels-y, 509px), 0); }
  .preview { margin-left: -450px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { padding-right: 48px; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; padding: 0 24px; }
  /* No pinning on small screens: everything stacks in normal flow */
  .intro { height: auto; }
  .intro__stage { position: relative; height: auto; overflow: visible; }
  .hero__inner { padding: 0 0 48px; }
  .hero__copy { opacity: 1 !important; transform: none !important; }
  .hero__title { font-size: 44px; line-height: 52px; margin-top: 56px; }
  .reels { position: relative; margin-top: 24px; transform: none; }
  .preview { position: relative; left: auto; top: auto; margin: 32px 16px 0; width: calc(100% - 32px); height: auto; grid-template-columns: 1fr; transform: none; }
  .preview__side { display: none; }
  .preview__main { padding: 24px 20px; }
  .preview__row { flex-wrap: wrap; }
  .how .wrap, .seoul__inner, .cta__inner, .footer__inner { height: auto; padding-bottom: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; column-gap: 24px; }
  .seoul__inner { grid-template-columns: 1fr; }
  .seoul__lead br { display: none; }
  .faq__inner { padding: 80px 24px; }
  .footer__inner { flex-wrap: wrap; gap: 12px; }
  .footer__tag { margin-left: 24px; }
}
@media (max-width: 560px) {
  .lang { display: none; }
  .h2 { font-size: 30px; line-height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .cta__inner { padding: 48px 24px; }
}
