/* ==========================================================================
   멀리봐 landing page — "포근한 거리" 브랜드 팔레트
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::as { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- tokens -------------------------------------------------------- */

:root {
  --bg: #fbf4f1;
  --surface: #ffffff;
  --surface-2: #f3e6e4;
  --text: #2b2130;
  --text-muted: #6b5f72;
  --border: #e2d3d8;

  --rose: #c15c77;
  --rose-deep: #9c4560;
  --rose-soft: #f7e6ea;
  --sage: #5f8f69;
  --sage-soft: #e3eee5;
  --coral: #d6543d;
  --coral-soft: #fbe7e2;
  --lavender: #7a6a9e;
  --lavender-soft: #ece8f5;

  --shadow: 0 20px 45px -25px rgba(150, 70, 90, 0.35);

  --font-display: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;

  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1822;
    --surface: #2a2130;
    --surface-2: #251c29;
    --text: #f4e9ef;
    --text-muted: #c9bac7;
    --border: #473a47;

    --rose: #e28ca0;
    --rose-deep: #c15c77;
    --rose-soft: rgba(226, 140, 160, 0.14);
    --sage: #8fc49b;
    --sage-soft: rgba(143, 196, 155, 0.14);
    --coral: #f08268;
    --coral-soft: rgba(240, 130, 104, 0.14);
    --lavender: #a99bcb;
    --lavender-soft: rgba(169, 155, 203, 0.14);

    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #1f1822;
  --surface: #2a2130;
  --surface-2: #251c29;
  --text: #f4e9ef;
  --text-muted: #c9bac7;
  --border: #473a47;

  --rose: #e28ca0;
  --rose-deep: #c15c77;
  --rose-soft: rgba(226, 140, 160, 0.14);
  --sage: #8fc49b;
  --sage-soft: rgba(143, 196, 155, 0.14);
  --coral: #f08268;
  --coral-soft: rgba(240, 130, 104, 0.14);
  --lavender: #a99bcb;
  --lavender-soft: rgba(169, 155, 203, 0.14);

  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
}

/* ---- layout helpers -------------------------------------------------- */

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

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(95, 143, 105, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95, 143, 105, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(95, 143, 105, 0); }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}

.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.02rem; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, #cd6c86, var(--rose));
  color: #ffffff;
  box-shadow: 0 14px 30px -12px rgba(193, 92, 119, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(193, 92, 119, 0.7); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }

/* ---- nav -------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 50%; }

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.94rem; color: var(--text-muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn-primary { padding: 10px 20px; font-size: 0.9rem; }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
  background:
    radial-gradient(640px 380px at 88% -8%, rgba(193, 92, 119, 0.16), transparent 60%),
    radial-gradient(520px 360px at 8% 105%, rgba(95, 143, 105, 0.14), transparent 60%),
    var(--bg);
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.34;
  margin: 20px 0 22px;
}
.hero h1 .accent { color: var(--rose-deep); }
.nowrap { white-space: nowrap; }
.brand-name { color: var(--rose-deep); font-weight: 800; }

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-note { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.86rem; }

/* concentric ring motif (StatusHero echo) + phone mockup */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }

.rings {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, var(--sage-soft) 0 30%, transparent 31%),
    radial-gradient(circle, transparent 0 41%, var(--rose-soft) 42% 54%, transparent 55%),
    radial-gradient(circle, transparent 0 66%, var(--border) 67% 68%, transparent 69%);
  opacity: 0.9;
  z-index: 0;
}
@media (max-width: 600px) { .rings { width: 320px; height: 320px; } }

.phone {
  position: relative;
  z-index: 1;
  width: min(280px, 72vw);
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #3a2c34, #241b22);
  border: 1px solid rgba(43, 33, 48, 0.2);
  box-shadow: 0 40px 80px -30px rgba(88, 40, 55, 0.45), 0 0 0 1px rgba(255,255,255,0.03);
}
.phone img { width: 100%; border-radius: 28px; display: block; }
.phone-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 16px;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.floating-chip.privacy { top: 4%; left: -8%; }
.floating-chip.cm { bottom: 12%; right: -10%; }
.floating-chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
@media (max-width: 940px) {
  .floating-chip.privacy { left: 0; }
  .floating-chip.cm { right: 0; }
}
@media (max-width: 600px) { .floating-chip { display: none; } }

/* ---- trust strip ---------------------------------------------------- */

.trust { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0; }
.trust .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .trust .wrap { grid-template-columns: 1fr; gap: 18px; } }

.trust-item { display: flex; align-items: baseline; gap: 12px; }
.trust-item .num { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--rose-deep); white-space: nowrap; }
.trust-item .label { color: var(--text-muted); font-size: 0.94rem; }

/* ---- features --------------------------------------------------------- */

.features .wrap.grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 22px; }
@media (max-width: 900px) { .features .wrap.grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.feature-card .icon.rose { background: var(--rose-soft); color: var(--rose-deep); }
.feature-card .icon.sage { background: var(--sage-soft); color: var(--sage); }
.feature-card .icon.lavender { background: var(--lavender-soft); color: var(--lavender); }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
.feature-card .fine { color: var(--text-muted); font-size: 0.82rem; margin-top: -6px; }

/* ---- how it works ----------------------------------------------------- */

.steps { background: var(--surface-2); }
.steps .wrap.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .steps .wrap.grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps .wrap.grid { grid-template-columns: 1fr; } }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px; }
.step .n { font-weight: 800; color: var(--rose-deep); font-size: 0.9rem; }
.step h3 { font-size: 1.02rem; margin-top: 10px; }
.step p { color: var(--text-muted); font-size: 0.92rem; margin: 8px 0 0; }

/* ---- screenshots ------------------------------------------------------ */

.shots .wrap.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) {
  .shots .wrap.grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .shots .shot { scroll-snap-align: start; }
}

.shot { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.shot img { border-radius: 16px; border: 1px solid var(--border); }
.shot .cap { margin-top: 14px; }
.shot .cap h3 { font-size: 1rem; }
.shot .cap p { color: var(--text-muted); font-size: 0.88rem; margin: 6px 0 0; }

/* ---- privacy ------------------------------------------------------------ */

.privacy { background: var(--surface-2); }
.privacy .wrap.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .privacy .wrap.grid { grid-template-columns: 1fr; } }

.privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; }
.privacy-list .mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
}
.privacy-list .body strong { display: block; font-size: 0.98rem; }
.privacy-list .body span { color: var(--text-muted); font-size: 0.9rem; }

.privacy-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 28px;
  color: var(--rose-deep); font-weight: 700; text-decoration: none; font-size: 0.95rem;
}
.privacy-link:hover { text-decoration: underline; }

.privacy-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.privacy-aside h3 { font-size: 1.02rem; margin-bottom: 10px; }
.privacy-aside p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 10px; }
.privacy-aside p:last-child { margin-bottom: 0; }

/* ---- final cta ---------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--rose-deep), #7a3a52 65%, #5f2f42);
  color: #fbf0f3;
  text-align: center;
  padding: 96px 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 320px at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fbf0f3; font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 24ch; margin: 0 auto; }
.cta-band p { color: rgba(251, 240, 243, 0.78); margin: 18px auto 34px; max-width: 46ch; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 18px; }
.cta-band .hero-note { justify-content: center; color: rgba(251, 240, 243, 0.7); }
.cta-band .btn-ghost { border-color: rgba(251, 240, 243, 0.3); color: #fbf0f3; }
.cta-band .btn-ghost:hover { border-color: #fbf0f3; color: #fff; }

/* ---- footer -------------------------------------------------------------- */

footer.site { background: var(--surface-2); color: var(--text-muted); padding: 48px 0 36px; border-top: 1px solid var(--border); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.foot-brand img { width: 26px; height: 26px; border-radius: 50%; }
.foot-tag { font-size: 0.86rem; margin: 10px 0 0; max-width: 32ch; }
.foot-links { display: flex; gap: 22px; font-size: 0.88rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---- reveal on scroll ------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
