@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-light: #555555;
  --c-ink-lighter: #888888;
  --c-accent: #c0392b;
  --c-accent2: #e74c3c;
  --c-border: #e0e0e0;
  --c-card-shadow: 0 4px 16px rgba(0,0,0,0.07);
  --c-card-shadow-hover: 0 8px 32px rgba(0,0,0,0.13);
  --radius-card: 10px;
  --radius-pill: 999px;
  --nav-h: 60px;
  --anchor-h: 44px;
  --font: 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-surface);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

article[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 8px);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(31,31,31,0.97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-corner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--c-accent);
  overflow: hidden;
  transition: opacity var(--transition);
}
.logo-corner:hover { opacity: 0.85; }

.logo-text-mark {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.main-nav {
  flex: 1;
  overflow: hidden;
}

.main-nav .nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav .nav-pills::-webkit-scrollbar { display: none; }

.main-nav .nav-pills a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  min-width: 40px;
  justify-content: center;
}
.main-nav .nav-pills a:hover,
.main-nav .nav-pills a:focus-visible {
  background: var(--c-accent);
  color: #fff;
}

/* ── STICKY ANCHOR BAR ── */
.sticky-anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(245,245,245,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  height: var(--anchor-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.anchor-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.anchor-pills::-webkit-scrollbar { display: none; }

.anchor-pills a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--c-ink-light);
  font-size: 12.5px;
  font-weight: 400;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  min-width: 40px;
  justify-content: center;
}
.anchor-pills a:hover,
.anchor-pills a:focus-visible {
  background: var(--c-ink);
  color: #fff;
}

/* ── MAIN ── */
main {
  margin-top: calc(var(--nav-h) + var(--anchor-h));
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO ── */
.hero-section {
  padding: 40px 0 32px;
}

.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--c-ink);
  border-radius: 16px;
  padding: 48px 48px 48px 52px;
  min-height: 45vh;
  position: relative;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}
.hero-cta:hover {
  background: var(--c-accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.45);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
}

/* dot-grid decoration */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  border-radius: 12px;
}

.hero-badge {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.badge-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-accent2);
  letter-spacing: 2px;
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-weight: 400;
}

/* ── BENTO CONTENT SECTION ── */
.content-bento {
  padding: 8px 0 48px;
}

.bento-content-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

/* ── ASIDE ── */
.bento-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + var(--anchor-h) + 16px);
}

.aside-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--c-card-shadow);
  border-bottom: 3px solid var(--c-accent);
  transition: box-shadow var(--transition);
}
.aside-card:hover {
  box-shadow: var(--c-card-shadow-hover);
}

.aside-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-lighter);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.aside-title span {
  display: inline;
}

.aside-nav-list li {
  border-bottom: 1px solid var(--c-surface);
}
.aside-nav-list li:last-child {
  border-bottom: none;
}
.aside-nav-list a {
  display: flex;
  align-items: center;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--c-ink-light);
  font-weight: 400;
  transition: color var(--transition), padding-left var(--transition);
  min-height: 40px;
}
.aside-nav-list a::before {
  content: '→';
  margin-right: 8px;
  font-size: 11px;
  color: var(--c-accent);
  transition: transform var(--transition);
}
.aside-nav-list a:hover {
  color: var(--c-ink);
  padding-left: 4px;
}
.aside-nav-list a:hover::before {
  transform: translateX(2px);
}

.tips-list li {
  font-size: 13px;
  color: var(--c-ink-light);
  padding: 7px 0;
  border-bottom: 1px solid var(--c-surface);
  line-height: 1.5;
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before {
  content: '·';
  margin-right: 6px;
  color: var(--c-accent);
  font-weight: 700;
}

/* ── MAIN CONTENT COLUMN ── */
.main-content-col {
  min-width: 0;
}

/* Content from page.content — bento grid sections */
.main-content-col article {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: var(--c-card-shadow);
  border-bottom: 3px solid var(--c-border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.main-content-col article:hover {
  box-shadow: var(--c-card-shadow-hover);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.main-content-col h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.main-content-col h2 span {
  display: inline;
}

.main-content-col h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
  margin-top: 20px;
}
.main-content-col h3 span {
  display: inline;
}

.main-content-col p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}

.main-content-col ul,
.main-content-col ol {
  padding-left: 0;
  margin-bottom: 14px;
}
.main-content-col li {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  padding: 5px 0 5px 20px;
  position: relative;
  list-style: none;
}
.main-content-col ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.main-content-col ol {
  counter-reset: ol-cnt;
}
.main-content-col ol li {
  counter-increment: ol-cnt;
}
.main-content-col ol li::before {
  content: counter(ol-cnt);
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
  background: rgba(192,57,43,0.08);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.main-content-col a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.main-content-col a:hover {
  color: var(--c-accent2);
}

.main-content-col strong {
  font-weight: 700;
  color: var(--c-ink);
}

.main-content-col table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.main-content-col th,
.main-content-col td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.main-content-col th {
  background: var(--c-surface);
  font-weight: 600;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 0;
}

.footer-brand-block {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-big-brand {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 36px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-dl dt {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-dl dd {
  margin: 0 0 10px 0;
}

.footer-dl dd a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
}
.footer-dl dd a:hover {
  color: #fff;
}

.footer-about-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0 24px;
}
.footer-bottom p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
}

/* ── STAGGER ANIMATION ── */
@media (prefers-reduced-motion: no-preference) {
  .main-content-col article {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.45s var(--transition) forwards;
  }
  .main-content-col article:nth-child(1) { animation-delay: 0.05s; }
  .main-content-col article:nth-child(2) { animation-delay: 0.10s; }
  .main-content-col article:nth-child(3) { animation-delay: 0.15s; }
  .main-content-col article:nth-child(4) { animation-delay: 0.20s; }
  .main-content-col article:nth-child(5) { animation-delay: 0.25s; }
  .main-content-col article:nth-child(6) { animation-delay: 0.30s; }
  .main-content-col article:nth-child(7) { animation-delay: 0.35s; }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-article {
    animation: fadeIn 0.5s ease forwards;
  }
  @keyframes fadeIn {
    from { opacity: 0.6; transform: scale(0.99); }
    to   { opacity: 1;   transform: scale(1); }
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .bento-content-wrap {
    grid-template-columns: 1fr;
  }
  .bento-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 680px) {
  :root {
    --nav-h: 56px;
    --anchor-h: 44px;
  }

  .hero-article {
    grid-template-columns: 1fr;
    padding: 32px 24px 28px;
    min-height: auto;
  }

  .hero-visual {
    min-height: 120px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-cta {
    height: 44px;
    font-size: 14px;
  }

  .main-content-col article {
    padding: 24px 20px;
  }

  .main-nav .nav-pills a {
    font-size: 12px;
    padding: 0 10px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-aside {
    grid-template-columns: 1fr;
  }

  .footer-big-brand {
    font-size: 2rem;
  }

  .site-header {
    padding: 0 12px;
    gap: 10px;
  }

  .sticky-anchor-bar {
    padding: 0 12px;
  }

  .anchor-pills a {
    font-size: 11.5px;
    padding: 0 9px;
    min-height: 40px;
  }
}

@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.3rem;
  }
  .wrap {
    padding: 0 14px;
  }
}
