/* =========================================================
   카페 스튜디오 랜딩 — 퍼피데스크 랜딩 디자인 시스템 승계
   Type: Pretendard (KR/EN) + Fragment Mono (numerals/labels)
   Rhythm: 1200px container, 24px gutters, generous vertical air
   Palette: white 60 / dark 30 / gray 10 — 무채색, 대비로만 위계 표현
   로드 순서: landing.css(토큰·베이스·nav·hero·statement·stats·partners)
             → sections.css → panels.css
   ========================================================= */

:root {
  /* 60 — white */
  --paper: #ffffff;
  --paper-2: #f3f4f4;
  --paper-3: #fafafa;

  /* 30 — dark */
  --ink: #14181a;
  --ink-2: #3d4447;
  --forest: #16191b;
  --accent: #14181a;

  /* 10 — gray */
  --muted: #8d9391;
  --line: #e6e8e8;
  --gray-soft: #eeefef;
  --on-dark: #ffffff;

  /* type */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, monospace;

  /* space */
  --gutter: 24px;
  --shell: 1200px;
  --section-y: 160px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.28;
}
h1 { font-size: clamp(34px, 4.4vw, 54px); }
h2 { font-size: clamp(28px, 3.3vw, 42px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
h1, h2, h3, .statement-title, .statement-sub { text-wrap: balance; }

.kicker {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.kicker.light { color: #fff; }

.lede {
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.section { padding: var(--section-y) 0; }
.section-title { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--pill);
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s ease, color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--on-dark); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-accent:hover { box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest); }
.btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
/* 브랜드 마크 — 커피잔 실루엣(컵 + 손잡이 + 받침)을 그라디언트로 그린다 */
.brand-mark {
  width: 20px; height: 20px;
  position: relative;
}
.brand-mark::before {
  content: '';
  position: absolute;
  left: 2px; top: 3px;
  width: 11px; height: 10px;
  border-radius: 0 0 6px 6px;
  background: var(--accent);
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 12px; top: 5px;
  width: 6px; height: 6px;
  border: 2px solid var(--accent);
  border-radius: 0 50% 50% 0;
  border-left: 0;
  box-shadow: -11px 10px 0 -1px var(--accent);
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 20px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--forest); }
.nav-cta-mobile { display: none; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: none;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #1a1d1f;
  background-image:
    linear-gradient(100deg, rgba(12,14,15,.80) 0%, rgba(12,14,15,.48) 48%, rgba(12,14,15,.16) 100%),
    url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=2000&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.04); } }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.hero-copy { color: #fff; }
.hero-eyebrow {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: #fff;
}
.hero h1 {
  font-size: clamp(38px, 4.9vw, 62px);
  line-height: 1.24;
  letter-spacing: -0.05em;
  color: #fff;
}
.hero h1 .hl {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  padding: .02em .2em .1em .14em;
}
.hero-sub {
  margin: 26px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.035em;
  color: rgba(255,255,255,.8);
}
.hero-actions { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }

/* 사장님 폰 목업 — 슬랙으로 주문 완료·아침 브리핑이 도착하는 순간 */
.hero-device { display: flex; justify-content: flex-end; }
.device {
  width: 320px;
  background: #fff;
  border-radius: 34px;
  border: 6px solid #0b0f0d;
  box-shadow: 0 40px 90px rgba(0,0,0,.42);
  overflow: hidden;
}
.device-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
}
.device-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: -0.04em;
}
.device-brand i {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent);
}
.device-menu { display: grid; gap: 3px; }
.device-menu b { display: block; width: 15px; height: 1.5px; background: var(--ink); }
.device-body { padding: 6px 14px 20px; display: grid; gap: 9px; }
.chat {
  margin: 0;
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}
.chat.in { background: var(--paper-2); color: var(--ink-2); }
.chat-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: 0 8px 20px rgba(14,21,18,.06);
}
.cc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 11px; border-bottom: 1px solid var(--line);
  font-size: 10px; color: var(--muted); line-height: 1.5;
}
.cc-head b { display: block; font-size: 12px; color: var(--ink); letter-spacing: -0.03em; }
.cc-head i {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--accent);
}
.cc-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; font-size: 10px; color: var(--muted);
}
.cc-row b { font-family: var(--mono); font-size: 10px; color: var(--ink); font-weight: 400; text-align: right; }
.cc-row b.ok { color: var(--accent); }
.cc-foot {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Statement ---------- */
.statement {
  padding: 120px 0;
  text-align: center;
  background: var(--paper);
}
.statement-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.statement-sub {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink-2);
}

/* ---------- Split (why + stats) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split-copy h2 { line-height: 1.35; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat small {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.03em;
}
.stat small em { font-style: normal; color: var(--muted); font-weight: 400; }
.stat b {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.stat-ico {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--gray-soft);
  position: relative;
}
.stat-ico::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--forest);
}
.ico-star::after { width: 22px; height: 22px; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 62%, 81% 100%, 50% 77%, 19% 100%, 29% 62%, 0 38%, 37% 35%); }
.ico-chat::after { width: 22px; height: 19px; clip-path: polygon(0 0, 100% 0, 100% 72%, 34% 72%, 12% 100%, 16% 72%, 0 72%); }
.ico-merge::after { width: 22px; height: 20px; clip-path: polygon(0 0, 38% 0, 38% 38%, 100% 38%, 100% 62%, 38% 62%, 38% 100%, 0 100%); }
.ico-bell::after { width: 20px; height: 22px; clip-path: polygon(50% 0, 66% 8%, 78% 58%, 100% 78%, 0 78%, 22% 58%, 34% 8%); }
.ico-grid::after { width: 20px; height: 20px; clip-path: polygon(0 0, 44% 0, 44% 44%, 0 44%, 0 56%, 44% 56%, 44% 100%, 0 100%, 0 0, 56% 0, 100% 0, 100% 44%, 56% 44%, 56% 56%, 100% 56%, 100% 100%, 56% 100%, 56% 0); }
.ico-check::after { width: 22px; height: 16px; clip-path: polygon(0 55%, 14% 40%, 38% 62%, 86% 0, 100% 14%, 38% 100%); }
.stat-source {
  margin: 40px auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ---------- Partners ---------- */
.partners { padding: 110px 0; background: var(--paper-3); overflow: hidden; }
.partners-title {
  margin: 0;
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--accent);
}
.partners-sub {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.partners-note {
  margin: 34px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: #9aa29e;
}

.logo-marquee {
  margin-top: 54px;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logo-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  animation: marquee 42s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 74px;
  padding: 0 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20,24,26,.1);
}
.logo svg { width: 30px; height: 30px; flex: none; }
.lg-type { display: grid; gap: 3px; }
.lg-type b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
  white-space: nowrap;
}
.lg-type i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}

/* 업종 예시 마크는 제3자 아이덴티티처럼 고유 색을 유지한다 */
.logo-roaster { color: #8a5a2b; }
.logo-knit { color: #b85c7a; }
.logo-dessert { color: #c9962b; }
.logo-book { color: #2b5fb8; }
.logo-class { color: #4a8f4e; }
.logo-garden { color: #16a97a; }
.logo-station { color: #0f8fd6; }
.logo-night { color: #6b4fb5; }

@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .logo-track { animation: none; }
}
