/* Butler landing — full marketing page styles.
   Tokens come from _shared.css. No new colors introduced here.
   Single source of truth: /Users/ted/side_projects/butler/DESIGN.md */

/* ---------- Reset for landing page (override _shared.css .wrap centering) ---------- */
.landing-body { background: var(--bg); color: var(--text-primary); }
.landing-body .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.landing-body .container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease-out;
}
.nav-cta:hover { background: var(--accent-press); text-decoration: none; color: var(--accent-on); }

/* ---------- General section spacing ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--text-primary);
}
.section-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 0 48px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(50% 50% at 70% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-headline {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text-primary);
  /* 한글 헤드라인에서 단어 단위 줄바꿈 명시 (글로벌 기본은 keep-all). */
  word-break: keep-all;
}
.hero-headline .accent { color: var(--accent); }
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 52ch;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.btn-primary-lg:hover { background: var(--accent-press); color: var(--accent-on); text-decoration: none; transform: translateY(-1px); }
.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 22px;
  border-radius: 14px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.btn-ghost-lg:hover { border-color: var(--text-secondary); color: var(--text-primary); text-decoration: none; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Geist Mono', ui-monospace, monospace;
  flex-wrap: wrap;
}
.hero-meta span::before {
  content: "▸ ";
  color: var(--accent);
  margin-right: 4px;
}

/* ---------- HERO PHONES ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}
.phone-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}
.phone {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 10px 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5), 0 8px 22px -8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px;
  background: #000;
  border-radius: 9999px;
  z-index: 10;
}
.phone-1 { top: 0; left: 0; transform: rotate(-6deg); animation: float 6s ease-in-out infinite; }
.phone-2 { top: 30px; left: 50%; transform: translateX(-50%) rotate(0deg); z-index: 2; animation: float 6s ease-in-out infinite 1.5s; }
.phone-3 { top: 0; right: 0; transform: rotate(6deg); animation: float 6s ease-in-out infinite 3s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-1, .phone-2, .phone-3 { animation: none; }
}
.phone-body {
  flex: 1;
  padding: 32px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.phone-greet {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 0 4px;
  line-height: 1.15;
}
.phone-greet small {
  display: block;
  font-family: 'Pretendard Variable';
  font-size: 9px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  position: relative;
  overflow: hidden;
}
.mini-card.action::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.mini-card .kicker {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.mini-card .title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 3px;
}
.mini-card .meta {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mini-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-row .ico {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--surface-elev);
  display: grid; place-items: center;
  font-size: 9px;
}
.mini-row .who { flex: 1; min-width: 0; }
.mini-row .name {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-row .snip {
  font-size: 8px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-row .when {
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: var(--text-muted);
}

/* Phone 2 — call detail */
.phone-call-name {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 0 4px;
}
.phone-call-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: var(--text-muted);
  padding: 0 4px;
  margin-top: 2px;
}
.phone-utter {
  display: flex;
  gap: 6px;
  padding: 0 4px;
  margin-top: 4px;
}
.phone-utter .who {
  font-family: 'Geist Mono', monospace;
  font-size: 8px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 16px;
}
.phone-utter .what {
  font-size: 9px;
  line-height: 1.35;
  color: var(--text-primary);
}
.phone-utter.them .what { color: var(--text-secondary); }
.phone-sum {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 6px;
}
.phone-sum .head {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.phone-sum .body {
  font-size: 9px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-top: 3px;
}

/* Phone 3 — chat */
.phone-bubble {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.4;
  max-width: 88%;
}
.phone-bubble.me {
  align-self: flex-end;
  background: var(--surface-elev);
}
.phone-bubble.ai {
  align-self: flex-start;
  background: transparent;
  padding-left: 4px;
}
.phone-bubble.ai .pfx {
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.phone-bubble.ai .body { margin-top: 2px; color: var(--text-primary); }

/* ---------- PROBLEM ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}
.problem-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  transform: translateY(-2px);
}
.problem-quote {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.problem-quote::before {
  content: "“";
  display: block;
  font-size: 56px;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 18px;
}
.problem-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- SOLUTION (Hero Loop) ---------- */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
  position: relative;
}
.loop-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 12%, var(--border) 88%, transparent);
  z-index: 0;
}
.loop-step {
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.loop-step-num {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative;
}
.loop-step-num::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  pointer-events: none;
}
.loop-step-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.loop-step-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FEATURES ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-elev));
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.feature-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- TRUST ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.trust-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.trust-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- FOR WHO ---------- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.persona-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: left;
}
.persona-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 18px;
}
.persona-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.persona-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- CTA BOTTOM ---------- */
.cta-bottom {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-bottom::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 80%;
  max-width: 720px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}
.cta-bottom-inner { position: relative; z-index: 1; }
.cta-headline {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 24px;
  word-break: keep-all;
}
.cta-fine {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 22px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--accent);
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 32ch;
}
.footer-col-title {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { font-size: 14px; color: var(--text-muted); }
.footer-list a:hover { color: var(--text-primary); text-decoration: none; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ---------- Reveal-on-scroll (CSS + IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero entrance ---------- */
.hero-fade-in {
  animation: heroIn 900ms ease-out both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fade-in { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 460px; order: 2; }
  .hero-headline { font-size: 54px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 36px; }
  .problem-grid, .feature-grid, .trust-grid, .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-grid { grid-template-columns: 1fr; gap: 32px; }
  .loop-grid::before { display: none; }
  .cta-headline { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .landing-body .container, .landing-body .container-narrow { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .hero::before { inset: -10% -20% auto -20%; height: 70%; filter: blur(28px); }
  .hero-headline { font-size: 40px; line-height: 1.15; }
  .hero-sub { font-size: 16px; }
  .hero-visual { min-height: 380px; }
  .phone-stack { max-width: 360px; }
  .phone { width: 168px; }
  .phone-1 { left: -8px; }
  .phone-3 { right: -8px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .section-lede { font-size: 16px; margin-bottom: 36px; }
  .problem-grid, .feature-grid, .trust-grid, .persona-grid { grid-template-columns: 1fr; }
  .problem-card, .feature-card, .trust-card, .persona-card { padding: 24px; }
  .problem-quote { font-size: 19px; }
  .cta-headline { font-size: 34px; }
  .cta-bottom { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn-primary-lg, .btn-ghost-lg { padding: 14px 20px; font-size: 15px; }
  .hero-ctas { width: 100%; }
  .hero-ctas a { flex: 1; justify-content: center; }
}
