/* ============================================================
   부비39.net — Santorini-inspired Design System
   Aegean Deep Blue × Whitewashed Walls
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Serif+KR:wght@400;500;600;700&display=swap');

:root {
  --white: #FFFFFF;
  --whitewash: #F7FAFD;
  --whitewash-2: #EEF4FB;
  --sky-tint: #E1ECF8;

  --aegean-900: #04183C;
  --aegean-800: #06245A;
  --aegean-700: #0B3478;
  --aegean-600: #0F44A1;
  --aegean-500: #1E5DC4;
  --aegean-400: #4583DF;
  --aegean-300: #88B0EE;
  --aegean-200: #BBD2F4;

  --text: var(--aegean-900);
  --text-muted: #4A5A75;
  --text-faint: #8094B0;
  --border: #D6E1F2;
  --border-strong: #B7CAE8;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif-kr: 'Noto Serif KR', serif;
  --font-display: 'Cormorant Garamond', 'Noto Serif KR', serif;

  --max: 1200px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--aegean-600); text-decoration: none; }
a:hover { color: var(--aegean-800); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif-kr);
  color: var(--aegean-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 600;
}
.display {
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  color: var(--aegean-600); letter-spacing: 0;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem; font-style: italic;
  color: var(--aegean-600);
  letter-spacing: 0.04em;
  display: inline-block; position: relative;
  padding-left: 32px; margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 20px; height: 1px; background: var(--aegean-600);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* TOP BAR */
.topbar {
  background: var(--aegean-900);
  color: var(--whitewash);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: var(--aegean-200); }
.topbar a:hover { color: var(--white); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.6rem; font-style: italic;
  color: var(--aegean-900);
}
.brand .b-num {
  font-family: var(--font-sans);
  font-weight: 700; font-style: normal;
  background: var(--aegean-600); color: var(--white);
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 0.95rem; letter-spacing: 0.04em; margin-left: 4px;
}
.nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav ul a {
  font-family: var(--font-sans);
  font-size: 0.92rem; font-weight: 500;
  color: var(--aegean-900);
  position: relative;
}
.nav ul a:hover { color: var(--aegean-600); text-decoration: none; }
.nav ul a.active { color: var(--aegean-600); }
.nav ul a.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--aegean-600);
}
.nav .cta {
  background: var(--aegean-600); color: var(--white);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem;
}
.nav .cta:hover { background: var(--aegean-800); color: var(--white); text-decoration: none; }
@media (max-width: 900px) {
  .nav ul { display: none; }
  .nav .cta { padding: 8px 16px; font-size: 0.82rem; }
}

/* HERO */
.hero {
  position: relative;
  padding: 80px 0 120px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--sky-tint) 0%, transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--whitewash) 100%);
  overflow: hidden;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px; align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 80px; }
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.1; margin-bottom: 28px;
}
.hero h1 .accent {
  display: block;
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  color: var(--aegean-600);
  font-size: 0.55em; margin-top: 12px;
}
.hero .lead {
  font-size: 1.12rem; color: var(--text-muted);
  max-width: 540px; margin-bottom: 36px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--aegean-600); color: var(--white); }
.btn-primary:hover { background: var(--aegean-800); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--aegean-900); border: 1.5px solid var(--aegean-900); }
.btn-ghost:hover { background: var(--aegean-900); color: var(--white); text-decoration: none; }

.hero-art {
  position: relative; height: 460px;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-art svg { width: 100%; height: 100%; }

/* STATS */
.stats { background: var(--aegean-900); color: var(--whitewash); padding: 36px 0; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats .item { text-align: center; }
.stats .num {
  font-family: var(--font-display);
  font-size: 2.6rem; font-style: italic; font-weight: 500;
  color: var(--white); line-height: 1;
}
.stats .label {
  font-size: 0.85rem; color: var(--aegean-200);
  margin-top: 6px; letter-spacing: 0.04em;
}
@media (max-width: 700px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* SECTION HEADERS */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 16px;
}
.section-head .lead { font-size: 1.05rem; color: var(--text-muted); }

/* BODY-PART CARDS */
.body-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.body-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  display: block; color: inherit;
}
.body-card:hover { text-decoration: none; }
.body-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%; background: var(--sky-tint);
  z-index: 0;
}
.body-card > * { position: relative; z-index: 1; }
.body-card:hover {
  border-color: var(--aegean-400);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 68, 161, 0.18);
}
.body-card .num {
  font-family: var(--font-display); font-style: italic;
  color: var(--aegean-600); font-size: 1.1rem; margin-bottom: 12px;
}
.body-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.body-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.body-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.body-card .tag {
  font-size: 0.78rem; color: var(--aegean-700);
  background: var(--whitewash-2);
  padding: 4px 10px; border-radius: 999px;
}
.body-card .arrow {
  color: var(--aegean-600); font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease;
}
.body-card:hover .arrow { gap: 10px; }
@media (max-width: 900px) { .body-grid { grid-template-columns: 1fr; } }

/* FEATURE ROW */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.feature-row + .feature-row { margin-top: 96px; }
.feature-row .text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.feature-row .text p { color: var(--text-muted); margin-bottom: 16px; }
.feature-row .visual {
  aspect-ratio: 4/3; background: var(--whitewash-2);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature-row.reverse .text { order: 2; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .text { order: 0; }
}

/* COMPARE TABLE */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(6, 36, 90, 0.12);
  font-size: 0.92rem;
}
.compare thead th {
  background: var(--aegean-800); color: var(--white);
  padding: 18px 16px; font-weight: 600;
  text-align: left; font-size: 0.92rem;
  font-family: var(--font-sans);
}
.compare thead th:first-child { background: var(--aegean-700); }
.compare thead th.feat { background: var(--aegean-600); }
.compare tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top; color: var(--text);
  font-size: 0.92rem; line-height: 1.6;
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody td:first-child {
  font-weight: 600; color: var(--aegean-900);
  background: var(--whitewash);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.compare tbody td.feat {
  background: var(--whitewash-2);
  border-left: 2px solid var(--aegean-600);
  border-right: 2px solid var(--aegean-600);
  font-weight: 500;
}
.compare-wrap { overflow-x: auto; }

/* REGION GRID */
.region-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.region-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
  display: block; color: inherit;
}
.region-card:hover {
  background: var(--aegean-900);
  border-color: var(--aegean-900);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(6, 36, 90, 0.3);
}
.region-card:hover .region-name { color: var(--white); }
.region-card:hover .region-count { color: var(--aegean-200); }
.region-card:hover .region-eng { color: var(--aegean-300); }
.region-eng {
  font-family: var(--font-display); font-style: italic;
  color: var(--aegean-600); font-size: 0.95rem; margin-bottom: 6px;
}
.region-name {
  font-family: var(--font-serif-kr);
  font-size: 1.3rem; font-weight: 600;
  color: var(--aegean-900); margin-bottom: 8px;
}
.region-count { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 900px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

/* RELATED */
.related {
  background: var(--whitewash);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.related h3 {
  font-size: 1.4rem; margin-bottom: 28px; text-align: center;
}
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.2s ease;
  display: block; color: inherit;
}
.related-card:hover {
  border-color: var(--aegean-600);
  text-decoration: none; transform: translateY(-2px);
}
.related-card .label {
  font-family: var(--font-display); font-style: italic;
  color: var(--aegean-600); font-size: 0.85rem; margin-bottom: 8px;
}
.related-card .title {
  font-family: var(--font-serif-kr);
  color: var(--aegean-900); font-weight: 600;
  font-size: 1.02rem; line-height: 1.4;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* BREADCRUMB */
.breadcrumb {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--aegean-600); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; color: var(--text-faint); }
.breadcrumb .current { color: var(--aegean-900); font-weight: 500; }

/* PAGE HEADER */
.page-head {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, var(--sky-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--whitewash) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
}
.page-head .eyebrow { margin-left: auto; margin-right: auto; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.page-head .lead {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 640px; margin: 0 auto;
}

/* PROSE */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: 1.7rem;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--aegean-200);
}
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--aegean-700); }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--aegean-600);
  background: var(--whitewash);
  padding: 20px 24px; margin: 28px 0;
  font-family: var(--font-serif-kr);
  color: var(--aegean-800);
  font-size: 1.05rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .inline-link {
  border-bottom: 1px dotted var(--aegean-600);
  color: var(--aegean-700); font-weight: 500;
}
.prose .inline-link:hover {
  background: var(--whitewash-2);
  text-decoration: none; border-bottom-style: solid;
}

/* CALLOUT */
.callout {
  background: linear-gradient(135deg, var(--aegean-900) 0%, var(--aegean-700) 100%);
  color: var(--white); padding: 48px 40px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  position: relative; overflow: hidden;
}
.callout::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%; background: var(--aegean-600);
  opacity: 0.3;
}
.callout > * { position: relative; z-index: 1; }
.callout h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  color: var(--white); font-size: 1.8rem; margin-bottom: 12px;
}
.callout p { color: var(--aegean-200); margin-bottom: 20px; }
.callout .btn-light {
  background: var(--white); color: var(--aegean-900);
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  display: inline-block;
}
.callout .btn-light:hover { background: var(--whitewash-2); color: var(--aegean-900); text-decoration: none; }

/* FOOTER */
footer {
  background: var(--aegean-900);
  color: var(--whitewash);
  padding: 72px 0 32px;
  margin-top: 80px;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 56px;
}
footer .brand-block .brand { color: var(--white); }
footer .brand-block .brand .b-num { background: var(--white); color: var(--aegean-900); }
footer .brand-block p { color: var(--aegean-200); font-size: 0.9rem; margin-top: 16px; line-height: 1.7; }
footer h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem; color: var(--white);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--aegean-200); font-size: 0.88rem; }
footer ul a:hover { color: var(--white); text-decoration: none; }
footer .legal {
  border-top: 1px solid var(--aegean-700);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.78rem; color: var(--aegean-300);
}
footer .legal a { color: var(--aegean-200); margin-left: 16px; }
@media (max-width: 900px) {
  footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  footer .brand-block { grid-column: span 2; }
}

/* MISC */
.divider {
  text-align: center; margin: 48px 0;
  color: var(--aegean-400);
  font-family: var(--font-display);
  font-style: italic; font-size: 1.2rem;
  letter-spacing: 0.4em;
}
.divider::before, .divider::after {
  content: '—'; margin: 0 16px;
  color: var(--aegean-300); letter-spacing: 0;
}

.tag-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-top: 16px;
}
.kw {
  font-size: 0.78rem; color: var(--aegean-700);
  background: var(--sky-tint);
  padding: 5px 12px; border-radius: 999px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { position: static; padding: 12px; background: var(--aegean-900); color: var(--white); }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--aegean-400); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--aegean-900);
  list-style: none;
  position: relative;
  padding-right: 32px;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  color: var(--aegean-600); font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq .answer {
  margin-top: 14px; color: var(--text-muted);
  line-height: 1.7; font-size: 0.95rem;
}

/* PROCESS STEPS */
.steps {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  color: var(--aegean-300);
  font-size: 2.2rem; line-height: 1;
  position: absolute; top: 24px; right: 24px;
}
.step h4 {
  font-size: 1.1rem; margin: 0 0 10px;
  color: var(--aegean-900);
}
.step p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
