:root {
  color-scheme: light;
  --ink: #0c1b32;
  --ink-soft: #5c687b;
  --paper: #f4f6fa;
  --surface: #ffffff;
  --line: #dce2eb;
  --green: #173d72;
  --green-dark: #0b2348;
  --green-soft: #e8eef7;
  --gold: #f0b552;
  --navy: #06152d;
  --navy-soft: #0d2850;
  --danger: #a33a37;
  --danger-dark: #7f2826;
  --warning: #fff2cc;
  --shadow: 0 22px 60px rgb(4 20 44 / 11%);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 5%, rgb(50 91 145 / 10%), transparent 30rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(220 226 235 / 78%);
  background: rgb(248 250 253 / 88%);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgb(4 18 40 / 22%);
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e7edf6;
  color: var(--green-dark);
}

.site-main {
  min-height: 62vh;
}

.hero,
.section,
.content-page,
.site-footer > div {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  min-height: 520px;
  margin-top: 2rem;
  padding: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 5%, rgb(38 82 137 / 44%), transparent 32rem),
    linear-gradient(145deg, #0b2448 0%, var(--navy) 58%, #020b19 100%);
  box-shadow: 0 30px 90px rgb(3 16 37 / 24%);
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(4rem, 9vw, 7.2rem);
  font-weight: 350;
  letter-spacing: 0.11em;
  line-height: 0.96;
  text-transform: none;
}

.eyebrow,
.step-label {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__lead {
  margin: 2rem 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero__actions,
.button-row {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--green-dark);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--green);
  color: white;
}

.button:disabled {
  border-color: #aab2ad;
  background: #aab2ad;
  cursor: not-allowed;
  opacity: 0.8;
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.hero .button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.hero .button:hover {
  border-color: #f6c977;
  background: #f6c977;
  color: var(--navy);
}

.hero .button--secondary {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 7%);
  color: white;
}

.hero .button--secondary:hover {
  border-color: rgb(255 255 255 / 52%);
  background: rgb(255 255 255 / 13%);
}

.button--danger {
  border-color: var(--danger-dark);
  background: var(--danger);
}

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

.button--full {
  width: 100%;
  margin-top: 1rem;
}

.section {
  padding: 4rem 0 7rem;
}

.section__heading {
  max-width: none;
  margin-bottom: 2rem;
}

.section h2,
.content-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.section__heading h2 {
  font-size: clamp(1.35rem, 3.5vw, 2.35rem);
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.info-card {
  min-height: 220px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 88%);
  color: var(--ink);
  text-decoration: none;
  grid-column: span 2;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.info-card:nth-child(4),
.info-card:nth-child(5) {
  grid-column: span 3;
}

.info-card:hover {
  border-color: #9bb0ca;
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(-4px);
}

.info-card__number {
  display: inline-flex;
  min-width: 2.2rem;
  min-height: 2.2rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.info-card h3 {
  margin: 2.2rem 0 0.5rem;
  font-size: 1.2rem;
}

.info-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.content-page {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.content-page--narrow,
.legal-document {
  max-width: 820px;
}

.page-lead {
  max-width: 850px;
  margin: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.content-page h2,
.legal-document h2 {
  margin: 3.4rem 0 1rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.content-page h3,
.legal-document h3 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.18rem;
}

.legal-document > h1 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.legal-document p,
.legal-document li {
  color: #37463f;
}

.legal-document code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.9em;
}

.legal-document hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-document pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: white;
}

.legal-document pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  min-width: 130px;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green-soft);
  color: var(--green-dark);
}

tr:last-child td {
  border-bottom: 0;
}

.notice {
  margin: 2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #a9c4b4;
  border-radius: 12px;
  background: var(--green-soft);
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notice--warning {
  border-color: #e2c675;
  background: var(--warning);
  color: #5a4517;
}

.deletion-layout {
  display: grid;
  margin-top: 3rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.deletion-details h2:first-child {
  margin-top: 0;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.7rem;
}

.check-list li::before {
  position: absolute;
  top: 0.52rem;
  left: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05rem;
  text-align: center;
}

.deletion-panel,
.form-card,
.contact-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.deletion-panel {
  position: sticky;
  top: 100px;
}

.deletion-panel h2,
.form-card h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 750;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #aeb8b2;
  border-radius: 9px;
  background: white;
  color: var(--ink);
}

input:focus {
  border-color: var(--green);
}

.checkbox-label {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 550;
}

.checkbox-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  accent-color: var(--green-dark);
}

.form-help,
.muted {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.form-help {
  margin: 1rem 0 0;
  text-align: center;
}

.form-status {
  min-height: 1.7rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 650;
}

.form-status[data-kind="error"] {
  color: var(--danger-dark);
}

.form-status[data-kind="success"] {
  color: var(--green-dark);
}

.complete-panel {
  padding: 1rem 0;
}

.support-strip {
  display: flex;
  margin-top: 5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgb(255 254 249 / 72%);
}

.support-strip h2 {
  margin: 0;
  font-size: 1.2rem;
}

.support-strip p {
  margin: 0.25rem 0 0;
}

.todo-value {
  color: var(--danger-dark);
  font-weight: 750;
}

.link-list {
  padding: 0;
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: block;
  padding: 0.8rem 0;
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  min-height: 60vh;
  text-align: center;
}

.empty-state .button {
  margin-top: 1.5rem;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #e9edf4;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer__copy {
  margin-bottom: 0;
}

@media (max-width: 940px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.3rem;
  }

  .hero {
    min-height: auto;
    padding: clamp(2.5rem, 8vw, 4rem);
    grid-template-columns: 1fr;
  }

  .deletion-layout {
    grid-template-columns: 1fr;
  }

  .deletion-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .hero,
  .section,
  .content-page,
  .site-footer > div {
    width: min(100% - 1.25rem, 1120px);
  }

  .hero {
    margin-top: 0.75rem;
    padding: 2.5rem 1.25rem;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 5.3rem);
  }

  .hero__actions .button {
    width: 100%;
  }

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

  .info-card,
  .info-card:nth-child(4),
  .info-card:nth-child(5) {
    min-height: 190px;
    grid-column: auto;
  }

  .info-card h3 {
    margin-top: 1.8rem;
  }

  .support-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .button-row .button {
    width: 100%;
  }

  th,
  td {
    min-width: 150px;
  }
}

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