:root {
  --color-primary: #1E293B;
  --color-secondary: #334155;
  --color-accent: #DC2626;
  --color-neutral-dark: #0F172A;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(15, 23, 42, 0.10);
  --color-muted: #64748B;
  --font-heading: 'Nanum Myeongjo', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 780px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(30, 41, 59, 0.55);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(30, 41, 59, 0.7); }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(220, 38, 38, 0.6);
}
.btn-accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(220, 38, 38, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: rgba(15, 23, 42, 0.04); color: var(--color-primary); transform: translateY(-1px); }

/* === Header (glass) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .2s, box-shadow .2s;
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav { display: none; align-items: center; gap: 1.75rem; }
.primary-nav a {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-secondary);
  padding: 0.4rem 0;
  font-weight: 500;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--color-neutral-dark); }
.primary-nav .nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.primary-nav .nav-cta::after { display: none; }
.primary-nav .nav-cta:hover { background: var(--color-neutral-dark); color: #fff; }

.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; }
  .logo img { height: 96px; }
}

.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem 1.25rem;
}
.primary-nav.is-open a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav.is-open a::after { display: none; }
.primary-nav.is-open .nav-cta { margin-top: 0.75rem; text-align: center; }

/* === Hero (split) === */
.hero {
  position: relative;
  padding-block: 3.5rem 3rem;
  background:
    radial-gradient(80% 60% at 90% 10%, rgba(220, 38, 38, 0.08), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(30, 41, 59, 0.06), transparent 60%),
    var(--color-neutral-light);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--color-secondary);
  max-width: 46ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.hero-thanks { padding-block: 5rem 3rem; text-align: center; }
.success-check { width: 72px; height: 72px; color: var(--color-accent); margin: 0 auto 1.5rem; }

@media (min-width: 860px) {
  .hero { padding-block: 6rem 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head .sub { color: var(--color-secondary); }
.section.intro .body { font-size: 1.05rem; color: var(--color-secondary); }
.section.intro .body { line-height: 1.85; }

@media (min-width: 768px) { .section { padding-block: 5.5rem; } }

/* === Grid & cards === */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; color: var(--color-neutral-dark); }
.card p { color: var(--color-secondary); font-size: 0.98rem; margin: 0; }
.card .icon {
  width: 40px; height: 40px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 8px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 12px;
  box-sizing: content-box;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { color: var(--color-accent); }

/* === Testimonial === */
.section.testimonial blockquote {
  margin: 0;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.section.testimonial blockquote::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
}
.section.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  margin: 0 0 1rem;
}
.section.testimonial cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  padding-block: 4rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 80% 20%, rgba(220, 38, 38, 0.35), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 52ch; margin-inline: auto; }
.cta-band .contact-line { font-size: 0.95rem; }
.cta-band .contact-line a { color: #fff; text-decoration: underline; }
.cta-band > .wrap { position: relative; }

/* === FAQ === */
.section.faq details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.section.faq details[open] { box-shadow: var(--shadow-md); }
.section.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.section.faq summary::-webkit-details-marker { display: none; }
.section.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform .2s;
}
.section.faq details[open] summary::after { transform: rotate(45deg); }
.section.faq p { color: var(--color-secondary); margin-top: 0.5rem; }

/* === Contact === */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info p { color: var(--color-secondary); font-size: 0.98rem; }
.contact-info strong { color: var(--color-neutral-dark); display: block; margin-bottom: 0.15rem; font-family: var(--font-heading); }

.contact-form-wrap form { display: grid; gap: 1rem; }
.contact-form-wrap label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
  font-weight: 500;
}
.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-neutral-dark);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.form-consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 400;
}
.form-consent input { width: auto; margin-top: 0.2rem; }
.form-consent a { text-decoration: underline; }
.contact-form-wrap button[type="submit"] { justify-self: start; margin-top: 0.5rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, 0.75);
  padding-block: 3.5rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(248, 250, 252, 0.75); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.footer-logo img { height: 60px; margin-bottom: 0.75rem; filter: brightness(0) invert(1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }
.legal-links { font-size: 0.85rem; }
.legal-links li { margin-bottom: 0.3rem; }
.footer-base {
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: rgba(248, 250, 252, 0.55);
  font-size: 0.82rem;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 640px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.92rem; margin: 0 0 1rem; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.cookie-banner button:hover { background: rgba(248, 250, 252, 0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner [data-cookie-accept]:hover { background: #b91c1c; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.5rem; }

@media (min-width: 640px) {
  .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; }
}

/* === Reveal motion === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* === Focus visible === */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}
