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

:root {
  --ink: #1A1D2B;
  --muted: #6B7280;
  --line: #e6ddf0;
  --plum: #24123B;
  --violet: #CFA6FF;
  --paper: #f7f3fb;
  --white: #fff;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#root {
  min-height: 100vh;
  transition: transform 240ms cubic-bezier(.4, 0, .2, 1);
}

body.slide-out #root {
  transform: translateX(-28px);
}

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

nav {
  height: 88px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: clamp(4.6rem, 7.4vw, 6.2rem);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, 1.15rem);
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 800;
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-links a:hover { color: var(--plum); }

.nav-cta {
  border: 1px solid var(--plum);
  border-radius: 999px;
  color: var(--plum) !important;
  padding: 0.52rem 1rem;
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, var(--paper) 100%);
}

.hero-copy {
  max-width: 980px;
}

.eyebrow,
.summary span {
  display: block;
  color: var(--violet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--plum);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 1.02;
  max-width: 980px;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 620px;
  margin: 1.4rem 0 2rem;
}

.button-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--plum);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

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

.btn.primary {
  background: var(--plum);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--plum);
}

.floating-contact {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 30;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 18px 40px rgba(36, 18, 59, 0.22);
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(36, 18, 59, 0.26);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(26, 29, 43, 0.16);
}

.contact-modal {
  width: min(100%, 640px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 28px 80px rgba(36, 18, 59, 0.22);
  padding: 1.2rem;
  animation: modal-up 180ms ease both;
}

.modal-close {
  justify-self: end;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--plum);
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
}

.contact-modal span {
  display: block;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.contact-modal h2 {
  color: var(--plum);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.contact-modal p {
  color: var(--muted);
}

.modal-form {
  display: grid;
  gap: 0.75rem;
}

.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--plum);
  font-size: 0.86rem;
  font-weight: 900;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 0.85rem;
}

.modal-form textarea {
  min-height: 130px;
  resize: vertical;
}

.modal-form button[type="submit"] {
  border: 0;
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  min-height: 50px;
  font-weight: 900;
}

.modal-form button[type="submit"]:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.modal-status {
  min-height: 1.4em;
  font-size: 0.86rem;
}

.summary {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.summary h2 {
  color: var(--plum);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.summary ul {
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line);
}

.summary li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

footer {
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

footer a {
  color: var(--plum);
  text-decoration: none;
}

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

@media (max-width: 640px) {
  nav { height: 76px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; }
  .button-row { align-items: stretch; }
  .btn { width: 100%; }
  .floating-contact {
    right: 1rem;
    bottom: 1rem;
  }
  .modal-layer {
    place-items: center;
    padding: 0.75rem;
  }
  .modal-row {
    grid-template-columns: 1fr;
  }
  footer { flex-direction: column; }
}

@keyframes modal-up {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #root {
    transition: none;
  }
  .btn,
  .floating-contact,
  .contact-modal {
    transition: none;
    animation: none;
  }
}
