:root {
  --bg: #f6ead7;
  --bg-soft: #fbf4e8;
  --paper: #fffdf8;
  --paper-warm: #faf1e2;
  --ink: #4a3324;
  --ink-soft: #7b5e46;
  --wood: #cf965c;
  --wood-dark: #946132;
  --wood-line: #dec6a4;
  --coral: #d97856;
  --coral-dark: #be5f3e;
  --sage: #7a9a6e;
  --sage-soft: #eef4ea;
  --bezel: #261d17;
  --bezel-rim: #524136;
  --shadow: 0 12px 32px rgba(74, 51, 36, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f8eee0 0%, var(--bg) 100%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 244, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 97, 50, 0.14);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none !important;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(74,51,36,0.16); }
.brand-sub { font-weight: 600; font-size: 0.84rem; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; opacity: 0.86; }
.nav a:hover, .nav a.active { color: var(--coral-dark); opacity: 1; }
.lang-pill {
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--wood-line);
  font-size: 0.84rem; font-weight: 700; color: var(--ink) !important;
}
.lang-pill:hover { background: var(--paper-warm); }

/* Hero */
.hero { padding: 48px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 42px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--sage-soft); color: #47633d;
  border: 1px solid rgba(122, 154, 110, 0.35);
  font-size: 0.84rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 900;
}
.hero-lead { font-size: 1.06rem; color: var(--ink-soft); margin: 0 0 26px; max-width: 540px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 14px; font-weight: 800; font-size: 0.94rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dark) 100%);
  color: #fff8ec; box-shadow: 0 8px 20px rgba(190, 95, 62, 0.28);
}
.btn-secondary {
  background: var(--paper); color: var(--ink);
  border-color: var(--wood-line); box-shadow: 0 4px 12px rgba(74, 51, 36, 0.06);
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }

/* Realistic Hero Device Mockup Stage */
.device-stage {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 28px; padding: 18px 20px 18px; box-shadow: var(--shadow);
  text-align: center;
}
.device-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px;
}
.device-tab {
  border: 1px solid var(--wood-line); background: var(--bg-soft); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; font-size: 0.79rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.device-tab:hover { background: var(--paper-warm); color: var(--ink); }
.device-tab.active {
  background: var(--ink); color: #fff8ec; border-color: var(--ink);
}
.device-frame {
  background: radial-gradient(circle at 50% 20%, #f9ebd6 0%, #edd9bc 100%);
  border-radius: 20px; padding: 20px 14px;
  display: flex; justify-content: center; align-items: center; min-height: 520px;
}

/* Titanium / Warm Espresso Mobile Phone Mockup */
.mockup-shell {
  position: relative;
  background: linear-gradient(145deg, #3c3029 0%, var(--bezel) 45%, #19130f 100%);
  border: 2px solid var(--bezel-rim);
  box-shadow: 0 24px 48px rgba(42, 26, 15, 0.34), inset 0 1px 1px rgba(255,255,255,0.16);
  transition: all 0.25s ease;
}
.mockup-phone {
  width: 248px;
  border-radius: 40px;
  padding: 10px;
}
.mockup-tablet {
  width: 344px;
  border-radius: 26px;
  padding: 11px;
}
.mockup-island {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 18px; border-radius: 999px;
  background: #120d0a; z-index: 4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.mockup-tablet .mockup-island { display: none; }
.mockup-screen {
  border-radius: 30px; overflow: hidden; background: #e8d5b8;
  position: relative;
}
.mockup-tablet .mockup-screen { border-radius: 16px; }
.mockup-screen video,
.mockup-screen img {
  width: 100%; height: auto; display: block;
}
.video-toggle-pill {
  position: absolute; right: 16px; bottom: 18px; z-index: 5;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(34, 24, 18, 0.72); color: #fff8ec;
  backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; cursor: pointer;
}
.video-toggle-pill:hover { background: rgba(34, 24, 18, 0.90); }
.device-caption { margin: 13px 0 2px; font-size: 0.87rem; color: var(--ink-soft); font-weight: 600; min-height: 2.6em; }

/* Full Mobile Phone Mockup Tour Gallery */
.phone-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.phone-card {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 22px; padding: 18px 14px 16px;
  box-shadow: 0 8px 22px rgba(74, 51, 36, 0.06);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.phone-card:hover, .phone-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 16px 34px rgba(74, 51, 36, 0.14);
  outline: none;
}
.phone-mini-shell {
  position: relative;
  width: 176px;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(145deg, #3c3029 0%, var(--bezel) 50%, #19130f 100%);
  border: 1.5px solid var(--bezel-rim);
  box-shadow: 0 14px 28px rgba(42, 26, 15, 0.24);
  margin-bottom: 14px;
}
.phone-mini-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 12px; border-radius: 999px;
  background: #120d0a; z-index: 3;
}
.phone-mini-screen {
  border-radius: 23px; overflow: hidden; background: #e8d5b8;
  aspect-ratio: 9 / 19.5;
}
.phone-mini-screen img {
  width: 100%; height: 100%; object-fit: cover;
}
.phone-card-meta { width: 100%; }
.phone-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  color: var(--coral-dark); background: #fcebe4;
  padding: 2px 9px; border-radius: 999px; margin-bottom: 6px;
}
.phone-card h3 { margin: 0 0 6px; font-size: 0.98rem; line-height: 1.3; }
.phone-card p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: rgba(255, 253, 248, 0.68); border-top: 1px solid rgba(148,97,50,0.10); border-bottom: 1px solid rgba(148,97,50,0.10); }
.eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em;
  color: var(--coral-dark); text-transform: uppercase; margin-bottom: 8px;
}
.section h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.section-sub { color: var(--ink-soft); max-width: 720px; margin: 0 0 30px; font-size: 1rem; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px rgba(74, 51, 36, 0.05);
}
.card-tag { font-size: 0.75rem; font-weight: 800; color: var(--sage); letter-spacing: 0.08em; margin-bottom: 8px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Dog Story Cards */
.dog-card {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(74, 51, 36, 0.06);
  display: flex; flex-direction: column;
}
.dog-photo {
  background: #f7ebda; padding: 14px 14px 0; display: flex; justify-content: center;
}
.dog-photo img { width: 160px; height: 160px; object-fit: cover; border-radius: 14px; }
.dog-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.dog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.dog-name { font-weight: 800; font-size: 1.08rem; }
.dog-lv { font-size: 0.76rem; font-weight: 700; color: var(--coral-dark); background: #fcebe4; padding: 2px 8px; border-radius: 999px; }
.dog-breed { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 10px; }
.dog-quote { font-size: 0.88rem; color: var(--ink); margin: 0 0 10px; }
.dog-postcard {
  margin-top: auto; padding: 10px 12px; border-radius: 12px;
  background: var(--paper-warm); border: 1px dashed var(--wood-line);
  font-size: 0.82rem; color: var(--ink-soft);
}

/* Complete 78-Breed Interactive Gallery */
.breed-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 22px;
}
.breed-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.breed-filter-btn {
  border: 1.5px solid var(--wood-line); background: var(--paper); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 0.83rem; font-weight: 700; cursor: pointer;
}
.breed-filter-btn:hover { background: var(--paper-warm); color: var(--ink); }
.breed-filter-btn.active { background: var(--ink); color: #fff8ec; border-color: var(--ink); }

.breed-search-wrap { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 360px; min-width: 230px; }
.breed-search {
  width: 100%; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid var(--wood-line); background: var(--paper);
  font-size: 0.88rem; color: var(--ink); font-family: inherit;
}
.breed-search:focus { outline: none; border-color: var(--coral); }
.breed-count { font-size: 0.84rem; font-weight: 800; color: var(--coral-dark); white-space: nowrap; }

.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
}
.breed-tile {
  position: relative;
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 16px; padding: 12px 8px 10px;
  text-align: center; cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.breed-tile:hover, .breed-tile:focus-visible {
  transform: translateY(-2px); border-color: var(--coral);
  box-shadow: 0 10px 20px rgba(74, 51, 36, 0.10); outline: none;
}
.breed-star-pill {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  font-size: 0.65rem; font-weight: 800;
  background: #fcebe4; color: var(--coral-dark);
  padding: 1px 6px; border-radius: 999px;
  border: 1px solid rgba(217, 120, 86, 0.35);
}
.breed-avatar {
  width: 92px; height: 92px; margin: 4px auto 8px;
  border-radius: 14px; overflow: hidden; background: #f6e8d4;
}
.breed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.breed-name { font-weight: 800; font-size: 0.88rem; color: var(--ink); line-height: 1.25; }
.breed-sub { font-size: 0.74rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.25; }

/* Hope & Shelter Banner */
.stat-num { font-size: 2rem; font-weight: 900; color: var(--coral-dark); margin-bottom: 4px; }
.stat-label { font-weight: 800; font-size: 1rem; margin-bottom: 8px; }

.shelter-banner {
  margin-top: 28px; padding: 28px 30px; border-radius: 22px;
  background: linear-gradient(135deg, #edf4ea 0%, #f9f3e7 100%);
  border: 1.5px solid rgba(122, 154, 110, 0.45);
}
.shelter-banner h3 { margin: 8px 0 10px; font-size: 1.3rem; }
.shelter-banner p { margin: 0; color: var(--ink-soft); max-width: 820px; }

/* Gameplay Reel Feature Box */
.yt-box {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.yt-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 14px; }
.yt-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.reel-feature {
  display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: center;
}
.reel-phone-wrap { display: flex; justify-content: center; }
.mockup-reel { width: 230px; }
.reel-copy h3 { margin: 6px 0 10px; font-size: 1.45rem; }
.reel-copy p { margin: 0 0 16px; color: var(--ink-soft); }
.reel-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-weight: 600; font-size: 0.94rem; }

/* Lightbox Modal */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox-backdrop {
  position: absolute; inset: 0; background: rgba(34, 22, 14, 0.72); backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative; z-index: 2;
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 24px; padding: 24px 24px 20px;
  max-width: 460px; width: 100%; text-align: center;
  box-shadow: 0 28px 60px rgba(0,0,0,0.38);
}
.lightbox-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--wood-line); background: var(--bg-soft);
  color: var(--ink); font-weight: 800; cursor: pointer;
}
.lightbox-media-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.lightbox-media-wrap.is-phone-zoom img {
  max-height: 68vh; width: auto; border-radius: 28px;
  border: 8px solid var(--bezel);
  box-shadow: 0 18px 36px rgba(34, 22, 14, 0.30);
}
.lightbox-media-wrap.is-breed-zoom img {
  width: 220px; height: 220px; object-fit: cover; border-radius: 20px;
  background: #f6e8d4; border: 2px solid var(--wood-line);
}
.lightbox-dialog h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lightbox-dialog p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Prose pages (Press / Privacy / Support) */
.prose { padding: 48px 0 72px; }
.prose-card {
  background: var(--paper); border: 1.5px solid var(--wood-line);
  border-radius: 22px; padding: 34px 36px; box-shadow: var(--shadow);
}
.prose h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.prose h2 { margin: 28px 0 10px; font-size: 1.25rem; border-bottom: 1px solid var(--wood-line); padding-bottom: 6px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.96rem; }
.prose ul { padding-left: 20px; }
.fact-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.fact-table th, .fact-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid #efe2cd; font-size: 0.94rem;
}
.fact-table th { width: 220px; color: var(--ink); font-weight: 800; background: var(--paper-warm); }
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.press-item {
  border: 1px solid var(--wood-line); border-radius: 16px; padding: 14px; background: var(--bg-soft);
}
.press-item img { border-radius: 10px; max-height: 260px; margin: 0 auto 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 97, 50, 0.16);
  background: #efe0c8; padding: 32px 0; font-size: 0.88rem; color: var(--ink-soft);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); font-weight: 600; }

@media (max-width: 1024px) {
  .phone-gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .press-grid, .reel-feature { grid-template-columns: 1fr; }
  .prose-card { padding: 24px 20px; }
  .fact-table th { width: 130px; }
}
@media (max-width: 640px) {
  .phone-gallery, .grid-4 { grid-template-columns: 1fr; }
  .breed-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
  .breed-avatar { width: 78px; height: 78px; }
  .nav { gap: 10px; }
  .nav a.hide-sm { display: none; }
  .mockup-tablet { width: 100%; max-width: 310px; }
}
