@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Pretendard:wght@400;500;600;700&display=swap");

:root {
  --bg: #f2f5fa;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #0d1b2a;
  --muted: #4f6074;
  --border: #d7e1ec;
  --primary: #0f4fa8;
  --primary-strong: #0b3f87;
  --primary-contrast: #ffffff;
  --secondary: #ecf2f9;
  --secondary-text: #133056;
  --danger: #d14343;
  --pending: #c06b00;
  --answered: #157347;
  --card-shadow: 0 10px 30px rgba(16, 40, 67, 0.08);
  --card-shadow-strong: 0 16px 40px rgba(16, 40, 67, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, #dcecff 0%, rgba(220, 236, 255, 0) 35%),
    radial-gradient(circle at 90% -20%, #dff5ff 0%, rgba(223, 245, 255, 0) 34%),
    var(--bg);
  line-height: 1.55;
}

html:lang(ko) body {
  word-break: keep-all;
  line-break: strict;
  letter-spacing: -0.004em;
}

h1,
h2,
h3,
.section-title,
.info-title,
.question-title {
  font-family: "Manrope", "Pretendard", "Segoe UI", sans-serif;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(15, 79, 168, 0.55);
  outline-offset: 2px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.home-main {
  padding-top: 0;
}

.nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(215, 225, 236, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 78px;
  padding: 8px 24px 10px;
  display: flex;
  align-items: center;
}

.nav-top {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
  width: auto;
  overflow-x: auto;
  padding-bottom: 0;
}

.nav-links a {
  font-size: 16px;
  font-weight: 600;
  color: #20354f;
  padding: 9px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-links a:hover {
  background: var(--secondary);
  color: #102846;
}

.nav-links a[aria-current="page"] {
  background: #dfeafb;
  color: #0f3f81;
  box-shadow: inset 0 0 0 1px rgba(15, 79, 168, 0.25);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 36px;
  width: 74px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
}

.nav-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #153257;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-auth:hover {
  background: var(--secondary);
}

.nav-auth#signInLink {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.nav-auth#signInLink:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.nav-auth#signInLink:focus-visible {
  outline: 2px solid rgba(15, 79, 168, 0.4);
  outline-offset: 2px;
}

.nav-auth#signedInButton {
  background: var(--surface);
  border-color: var(--border);
  color: #153257;
}

.auth-toggle {
  cursor: pointer;
}

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--card-shadow);
}

.auth-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.auth-menu-item:hover {
  background: var(--secondary);
}

.notice-banner {
  background: #fff4df;
  border-bottom: 1px solid #f0cf91;
  color: #7f4f00;
  padding: 10px 20px;
  display: grid;
  gap: 4px;
}

.notice-title {
  font-size: 13px;
  font-weight: 700;
}

.notice-body {
  font-size: 12px;
}

.auth-error {
  background: #ffe7e7;
  border-bottom: 1px solid #ffc7c7;
  color: #9b2020;
}

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 600px;
  color: #f8fbff;
  background: #12263d;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 18, 32, 0.86), rgba(12, 34, 60, 0.52) 48%, rgba(12, 34, 60, 0.38));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.1s ease, transform 7s ease;
  will-change: opacity, transform;
}

.hero-image.is-active {
  opacity: 1;
  transform: scale(1.06);
}

.hero-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #dce8f8;
  font-size: 14px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 104px 24px 108px;
}

.hero-headline {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtext {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(243, 248, 255, 0.86);
  font-size: 18px;
}

html:lang(ko) .hero-headline {
  max-width: 700px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

html:lang(ko) .hero-subtext {
  max-width: 680px;
  line-height: 1.62;
  font-size: 17px;
}

.hero-ctas {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(230, 238, 249, 0.88);
}

.hero-trust > div {
  position: relative;
  padding-left: 14px;
}

.hero-trust > div::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8ec5ff;
  position: absolute;
  left: 0;
  top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: none;
    transform: none;
  }
}

.section {
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}

.page-hero {
  gap: 8px;
}

.metrics-section {
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(205, 219, 235, 0.95);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--card-shadow);
}

.metric-value {
  font-family: "Manrope", "Pretendard", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d3f7d;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  font-size: 26px;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.process-section {
  margin-top: 34px;
}

.steps-grid,
.info-grid,
.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  display: grid;
  gap: 6px;
}

.kpi-value {
  font-family: "Manrope", "Pretendard", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #0d3f7d;
  letter-spacing: -0.03em;
}

.kpi-label {
  font-size: 13px;
  color: var(--muted);
}

.step-card,
.info-card,
.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.step-index {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #335d91;
  margin-bottom: 8px;
}

.info-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.info-card p,
.step-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sample-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sample-question {
  font-size: 16px;
  font-weight: 700;
  color: #102846;
  letter-spacing: -0.01em;
}

.stack {
  display: grid;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-compact {
  padding: 8px 12px;
  font-size: 13px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(15, 79, 168, 0.24);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-text);
  border-color: #d2e0ee;
}

.btn-secondary:hover {
  background: #e3ecf7;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.toggle input {
  width: 16px;
  height: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #cfdbe8;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.filters {
  gap: 14px;
}

.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-columns > :nth-last-child(-n+2) {
  grid-column: 1 / -1;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.badge-pending {
  background: var(--pending);
}

.badge-answered {
  background: var(--answered);
}

.badge-private {
  background: #4a5f78;
}

.badge-locked {
  background: #6c7f95;
}

.board-list {
  display: grid;
  gap: 10px;
}

.board-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.3fr) minmax(130px, 1fr) minmax(110px, 0.9fr) minmax(130px, 0.9fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.board-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow-strong);
}

.board-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-title {
  display: grid;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.board-link {
  color: #112845;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-category,
.board-date,
.board-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.board-actions {
  justify-content: flex-end;
}

.question-link {
  font-size: 16px;
  font-weight: 700;
  color: #112845;
}

.question-link:hover {
  text-decoration: underline;
}

.question-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.char-count,
.muted,
.error-text {
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

html:lang(ko) .section-lead,
html:lang(ko) .muted,
html:lang(ko) p,
html:lang(ko) li,
html:lang(ko) .info-card p,
html:lang(ko) .step-card p,
html:lang(ko) .sample-question {
  line-height: 1.66;
}

.error-text {
  color: #b42323;
}

.preserve-lines {
  white-space: pre-wrap;
}

.title-badges {
  gap: 6px;
}

.empty-state {
  text-align: center;
  align-items: center;
}

.empty-state .btn {
  width: auto;
}

.footer {
  margin-top: 36px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-links a {
  padding: 4px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.footer-links a:hover {
  background: var(--secondary);
}

.faq-list {
  gap: 10px;
}

.faq-callout {
  gap: 6px;
}

.faq-group-title {
  margin: 6px 0 0;
  font-size: 18px;
  color: #173962;
}

.faq-item {
  gap: 8px;
}

.faq-question {
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  color: #102846;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  color: var(--muted);
  font-size: 14px;
}

details > summary {
  cursor: pointer;
  user-select: none;
}

details > summary::marker {
  color: #406695;
}

details > ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legal-card h2 {
  margin: 0;
  font-size: 20px;
}

@media (max-width: 960px) {
  .container {
    padding: 18px;
  }

  .nav-inner {
    padding: 8px 18px;
  }

  .board-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .board-actions {
    justify-content: flex-start;
  }

  .metrics-grid,
  .kpi-grid,
  .steps-grid,
  .sample-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    line-height: 1.6;
    padding-bottom: 24px;
    background:
      radial-gradient(circle at 20% -10%, #d8e9ff 0%, rgba(216, 233, 255, 0) 38%),
      radial-gradient(circle at 90% -25%, #dff7ff 0%, rgba(223, 247, 255, 0) 36%),
      #f3f7fc;
  }

  .container {
    padding: 14px;
    gap: 12px;
  }

  .nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
  }

  .nav-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 6px;
    padding: 8px 14px;
  }

  .nav-top {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .nav-left {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-right {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 4px;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    position: static;
    z-index: auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(194, 208, 224, 0.75);
    box-shadow: 0 8px 18px rgba(15, 34, 58, 0.08);
    border-radius: 12px;
    width: 100%;
    overflow-x: auto;
    gap: 3px;
    padding: 7px 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 14px;
    font-weight: 700;
    padding: 9px 10px;
    min-height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .nav-links a[aria-current="page"] {
    background: #e7f0ff;
    box-shadow: inset 0 0 0 1px rgba(15, 79, 168, 0.2);
  }

  .nav-right {
    justify-content: flex-end;
    gap: 4px;
  }

  .lang-select {
    height: 34px;
    width: 68px;
    max-width: 68px;
    padding: 0 6px;
    font-size: 11px;
  }

  .nav-auth {
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-logo {
    height: 40px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-inner {
    padding: 80px 16px 82px;
  }

  .hero-headline {
    font-size: 31px;
    line-height: 1.12;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .hero-ctas {
    display: grid;
    gap: 8px;
  }

  .metrics-section {
    margin-top: -34px;
  }

  .metrics-grid,
  .kpi-grid,
  .steps-grid,
  .sample-grid,
  .info-grid,
  .form-columns,
  .legal-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  .section {
    margin-top: 20px;
    gap: 10px;
  }

  .btn,
  input,
  select,
  textarea,
  .muted,
  .label {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    padding: 12px 14px;
    min-height: 46px;
  }

  .card-actions {
    display: grid;
  }

  .card {
    border-radius: 14px;
    padding: 14px;
  }

  input,
  select,
  textarea {
    min-height: 44px;
    border-radius: 10px;
  }

  .board-row {
    padding: 12px;
    border-radius: 14px;
    gap: 6px;
  }

  .board-title {
    font-size: 15px;
  }

  .board-link {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .faq-question {
    font-size: 18px;
    line-height: 1.4;
  }

  .legal-card h2 {
    font-size: 18px;
  }

  .question-title {
    font-size: 24px;
  }

  .footer {
    margin-top: 24px;
    padding: 16px;
  }
}

@media (min-width: 1080px) {
  .hero-inner {
    padding-top: 118px;
  }
}
