:root {
  color-scheme: light;
  --ink: #17172b;
  --muted: #65657c;
  --line: #e5e5f2;
  --surface: #ffffff;
  --surface-soft: #f5f5ff;
  --brand: #5b5cf0;
  --brand-dark: #4142cb;
  --accent: #b9f5d8;
  --shadow: 0 20px 60px rgba(44, 44, 96, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(91, 92, 240, 0.12), transparent 32rem),
    #fbfbff;
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(91, 92, 240, 0.26);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-dark);
}

main {
  min-height: calc(100vh - 220px);
}

.hero {
  padding: 92px 0 58px;
}

.hero--compact {
  padding: 64px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
}

.hero--compact h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.hero__lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip,
.privacy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  padding-bottom: 88px;
}

.tool-card {
  position: relative;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px rgba(44, 44, 96, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  border-color: rgba(91, 92, 240, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.tool-card h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
}

.tool-card__link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tool-card__arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 800;
}

.tool-panel {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.tool-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

textarea {
  width: 100%;
  min-height: 280px;
  padding: 20px;
  resize: vertical;
  border: 1px solid #d9d9eb;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fbfbfe;
  line-height: 1.7;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 92, 240, 0.12);
}

.tool-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
  margin-top: 16px;
}

.button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
}

.button--primary {
  color: #fff;
  background: var(--brand);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--quiet {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(91, 92, 240, 0.34);
  outline-offset: 3px;
}

.action-status {
  margin-left: auto;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.metric {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.metric--featured {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.metric__label {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.metric--featured .metric__label,
.metric--featured .metric__unit {
  color: rgba(255, 255, 255, 0.78);
}

.metric strong {
  overflow: hidden;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-overflow: ellipsis;
}

.metric__unit {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.content-section {
  max-width: 800px;
  padding: 72px 0;
}

.content-section h2 {
  margin-top: 54px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.content-section p,
.content-section li {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
}

.faq-list details p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .site-nav a:not(:first-child) {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .tool-panel__heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-status {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
