/* BANIA — shared styles for sub-pages (index.html is self-contained) */

:root {
  --ink: #15202a;
  --ink-soft: #5a6b78;
  --ink-muted: #77848e;
  --accent: #0a5c96;
  --accent-dark: #08496f;
  --line: #e6ebef;
  --maxw: 1220px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

html, body { margin: 0; padding: 0; background: #ffffff; }

body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; }

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

.page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4f8fb 0%, #fbfdfe 55%, #ffffff 100%);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav__brand img { display: block; width: 30px; height: 30px; object-fit: contain; }
.nav__brand span { font-size: 19px; font-weight: 700; letter-spacing: 0.12em; }

.nav__menu {
  margin-left: auto;
  display: flex;
  gap: 34px;
  align-items: center;
  height: 66px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav__link:hover { color: var(--ink); }
.nav__link--active { font-weight: 700; color: var(--ink); }

.nav__dd {
  position: relative;
  height: 66px;
  display: flex;
  align-items: center;
}

.nav__dd-trigger {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.nav__dd-trigger:hover { color: var(--ink); }
.nav__dd-trigger svg { transition: transform 0.15s ease; }
.nav__dd:hover .nav__dd-trigger svg { transform: rotate(180deg); }
.nav__dd--active .nav__dd-trigger { font-weight: 700; color: var(--ink); }

.nav__dd-panel {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  min-width: 340px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(21, 32, 42, 0.12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.nav__dd:hover .nav__dd-panel,
.nav__dd:focus-within .nav__dd-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__dd-panel a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.nav__dd-panel a:hover { background: #eef2f5; }
.nav__dd-panel a.is-current { background: #dceeff; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav--slim .nav__inner { max-width: 820px; }

/* ---------- Sub-page hero ---------- */
.subhero {
  position: relative;
  overflow: hidden;
  padding: 104px 40px 92px;
}

.subhero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 380px at 84% 6%, rgba(126, 196, 232, 0.28), transparent 66%),
    radial-gradient(420px 320px at 96% 62%, rgba(96, 201, 190, 0.2), transparent 68%);
}

.subhero .wrap { position: relative; }

.badge {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #8bb2cf;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: #ffffff;
}

.subhero__title {
  margin: 28px 0 0;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.042em;
}

.subhero__lead {
  margin: 26px 0 0;
  max-width: 900px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Sections ---------- */
.sec { padding: 0 40px 80px; }
.sec--tight { padding-bottom: 40px; }
.sec--wide { padding-bottom: 100px; }

.sec__title {
  margin: 0 0 32px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.sec__title--lg { font-size: 34px; margin-bottom: 36px; }
.sec__title--sm { font-size: 26px; letter-spacing: -0.03em; }

.prose {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose + .prose { margin-top: 26px; }
.prose--ink { color: var(--ink); }

/* ---------- Cards / chips ---------- */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
}
.card--feature {
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 60%);
}
.card--pad {
  padding: 40px 38px;
}

.chip {
  display: inline-block;
  background: #eaf2f8;
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.media {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(21, 32, 42, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media--ph {
  background:
    linear-gradient(135deg, #e9eef2 0%, #dbe3ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa8b3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { background: var(--accent-dark); color: #ffffff; }
.btn.is-disabled { opacity: 0.5; pointer-events: none; cursor: default; }
.btn--pill { border-radius: 999px; padding: 15px 32px; font-size: 16px; }

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 70px 40px 80px; }
.footer .wrap {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: #7b8894;
}
.footer__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.footer__copy { margin-top: 8px; color: #a3aeb8; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  .split { grid-template-columns: 1fr !important; }
}

@media (max-width: 820px) {
  .nav { padding: 0 20px; }
  .nav__menu {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px;
    box-shadow: 0 12px 30px rgba(21, 32, 42, 0.08);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link, .nav__dd-trigger { padding: 12px 8px; }
  .nav__dd { height: auto; flex-direction: column; align-items: stretch; }
  .nav__dd-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 4px 12px;
  }
  .nav__toggle { display: flex; }

  .subhero { padding: 64px 20px 52px; }
  .subhero__title { font-size: 32px; }
  .sec { padding: 0 20px 56px; }
  .sec__title, .sec__title--lg { font-size: 26px; }
  .footer { padding: 56px 20px 64px; }
}

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(21, 32, 42, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s, background 0.15s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover { background: var(--accent-dark); }
.to-top svg { display: block; }
.to-top span { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }

@media (max-width: 820px) {
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
