/* LANDVISION 레이아웃 기반 · 밝은 건축 전문가 톤 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f4f6f9;
  --bg-elevated: #ffffff;
  --ink: #0c1222;
  --slate: #3d4f5f;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #1e4976;
  --accent-hover: #163a5e;
  --teal: #0f766e;
  --teal-soft: rgba(15, 118, 110, 0.12);
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.05);
  --shadow-md: 0 4px 20px rgba(12, 18, 34, 0.06);
  --shadow-lg: 0 12px 40px rgba(12, 18, 34, 0.08);
  --radius: 12px;
  --radius-pill: 999px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

/* —— 상단 준비중 안내 —— */
.prep-banner {
  margin: 0;
  padding: 0.65rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav__brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), #2d6a9e);
  display: grid;
  place-items: center;
  color: #fff;
}

.nav__brand-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.95;
}

.nav__links {
  display: none;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__login {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
}

.nav__login:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.08s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.9375rem;
  border-radius: 12px;
}

.btn--ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 73, 118, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 73, 118, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 640px);
  height: 360px;
  background: radial-gradient(ellipse, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__lead {
  margin: 1.15rem auto 0;
  max-width: 34rem;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Search bar */
.search-wrap {
  margin-top: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-form:focus-within {
  border-color: rgba(30, 73, 118, 0.35);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(30, 73, 118, 0.08);
}

.search-form__icon {
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: var(--muted);
}

.search-form__input {
  flex: 1;
  min-width: 0;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--ink);
}

.search-form__input:focus {
  outline: none;
}

.search-form__input::placeholder {
  color: #94a3b8;
}

.search-form__submit {
  margin: 6px;
  padding: 0 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.search-form__submit:hover {
  background: var(--accent-hover);
}

.form-error {
  text-align: left;
  font-size: 0.8125rem;
  color: #b45309;
  margin-top: 0.6rem;
  min-height: 1.2em;
  padding: 0 0.25rem;
}

.popular {
  margin-top: 1.25rem;
  text-align: left;
}

.popular__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.popular__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--slate);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Stats —— */
.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__cell {
  background: var(--bg-elevated);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stats__num {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stats__label {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* —— Section —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__desc {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.card__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Metric cards row */
.cards--metrics .card {
  text-align: center;
}

.card__metric {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.card__metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* —— Results (demo) —— */
.results {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.results.is-visible {
  display: block;
  animation: fadeUp 0.35s ease;
}

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

.results__box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.results__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.results__hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.result-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.stat__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.list-block {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: #f0fdf9;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #115e59;
}

.list-block strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #0f766e;
}

.list-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.links-row {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.links-row a {
  color: var(--accent);
  font-weight: 600;
}

.disclaimer {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed var(--border);
  line-height: 1.5;
}

/* —— CTA band —— */
.cta {
  margin: 2rem 1.5rem 3rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #eef2f7 0%, #e8edf4 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.cta__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta__lead {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Footer —— */
.footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.875rem;
}

.footer a:hover {
  color: #e2e8f0;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
}

.footer__brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__about {
  line-height: 1.55;
  max-width: 260px;
}

.footer__col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.5rem;
}

.footer__bottom {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* —— 404 등 단순 페이지 —— */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: var(--bg);
}

.home__title {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.home__title--compact {
  font-size: clamp(2rem, 8vw, 3rem);
}

.home__lead {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.home__domain {
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  word-break: break-all;
}

.home__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.home__link:hover {
  text-decoration: underline;
}
