/* ===========================================================
   댕동네 — 우리 동네 반려생활 플랫폼
   Design system: clean, friendly, walk/neighborhood green
   =========================================================== */
:root {
  color-scheme: light;
  --green: #1f8a4c;
  --green-strong: #156b3a;
  --green-soft: #e8f5ec;
  --coral: #ff6b45;
  --coral-strong: #ed5530;
  --ink: #12241b;
  --body: #3c4d44;
  --muted: #74857b;
  --line: #e4ebe5;
  --bg: #f6f9f5;
  --card: #ffffff;
  --cream: #fff8ee;
  --shadow-sm: 0 1px 3px rgba(18, 36, 27, 0.06), 0 1px 2px rgba(18, 36, 27, 0.04);
  --shadow-md: 0 10px 30px rgba(18, 36, 27, 0.08);
  --shadow-lg: 0 24px 60px rgba(18, 36, 27, 0.14);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --max: 1160px;
  --sans: "Noto Sans KR", "Inter", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin: 0; }

section[id] { scroll-margin-top: 84px; }

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 69, 0.32); }
.btn-primary:hover { background: var(--coral-strong); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-strong); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 21px; color: var(--ink); letter-spacing: -0.03em; }
.brand .dot { width: 26px; height: 26px; border-radius: 9px; background: var(--green); display: grid; place-items: center; color: #fff; font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--body); }
.nav-links a:hover { color: var(--green-strong); }
.nav-cta { margin-left: auto; }

/* ===== Hero ===== */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 900; }
.hero h1 .hl { color: var(--green); }
.hero-sub { margin: 22px 0 30px; max-width: 520px; font-size: 18px; color: var(--body); word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { margin-top: 22px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-trust b { color: var(--green-strong); }

/* phone mockup */
.mockup { display: grid; place-items: center; }
.phone {
  width: 300px;
  max-width: 78vw;
  background: #fff;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--green-soft); border: 1px solid var(--line); }

/* ===== Section heading ===== */
.sec { padding: 64px 0; }
.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.sec-head p { margin: 16px 0 0; font-size: 17px; color: var(--body); word-break: keep-all; }

/* ===== Pillar cards ===== */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; stroke: var(--green-strong); }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); word-break: keep-all; }

/* ===== Feature rows ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature-row.flip .fr-media { order: 2; }
.feature-row.flip .fr-copy { order: 1; }
.fr-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 16px; }
.fr-copy .lead { font-size: 16.5px; color: var(--body); margin: 0 0 22px; word-break: keep-all; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.flist .chk { width: 24px; height: 24px; border-radius: 8px; background: var(--green-soft); display: grid; place-items: center; flex: none; margin-top: 2px; }
.flist .chk svg { width: 14px; height: 14px; stroke: var(--green-strong); }
.flist b { color: var(--ink); font-weight: 700; }
.flist span { color: var(--muted); }
.fr-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.fr-media.tint-green { background: linear-gradient(160deg, #f0faf3, #e3f3e9); }
.fr-media.tint-cream { background: linear-gradient(160deg, #fff8ee, #ffeedd); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.step .n { font-size: 14px; font-weight: 800; color: var(--coral); letter-spacing: 0.1em; }
.step h3 { font-size: 18px; font-weight: 800; margin: 10px 0 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); word-break: keep-all; }

/* ===== Market ===== */
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mkt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.mkt .tag { font-size: 12px; font-weight: 700; color: var(--green); }
.mkt h3 { font-size: 16px; font-weight: 800; margin: 8px 0 6px; }
.mkt p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ===== CTA band ===== */
.cta { padding: 72px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  border-radius: var(--r-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.cta-box p { margin: 16px auto 28px; max-width: 520px; color: rgba(255, 255, 255, 0.9); font-size: 17px; }
.cta-box .btn-ghost { background: #fff; border-color: #fff; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #c9d6cd; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: 14px; color: #c9d6cd; }
.footer a:hover { color: #fff; }
.footer-tag { font-size: 14px; color: #9fb1a6; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; color: #8a9d92; flex-wrap: wrap; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid, .feature-row, .feature-row.flip .fr-media, .feature-row.flip .fr-copy { grid-template-columns: 1fr; }
  .feature-row.flip .fr-media { order: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pillars, .market-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .cta-box { padding: 40px 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card:hover { transform: none; } }
