:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --shadow-soft: 0 2px 20px rgba(30, 27, 75, 0.06);
  --shadow-lift: 0 20px 60px -20px rgba(30, 27, 75, 0.25);
}

/* === Base === */
* { 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.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: rgba(250, 245, 255, 0.92);
  box-shadow: 0 2px 20px rgba(30, 27, 75, 0.08);
}
.nav-inner {
  max-width: 1200px; margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.nav-toggle {
  background: transparent; border: 0; color: var(--color-neutral-dark);
  padding: 0.5rem; cursor: pointer; display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav a {
  position: relative;
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  font-size: 0.95rem;
}
.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.is-open {
  display: flex; flex-direction: column; gap: 0.25rem;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; gap: 1.75rem; position: static; padding: 0; background: transparent; box-shadow: none; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #5B21B6);
  box-shadow: 0 10px 30px -12px rgba(124, 58, 237, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 36px -12px rgba(124, 58, 237, 0.7); }
.btn-ghost {
  color: var(--color-neutral-dark);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 27, 75, 0.14);
}
.btn-ghost:hover { transform: translateY(-2px); color: var(--color-neutral-dark); background: #fff; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === Hero (card) === */
.hero {
  padding: 3rem 1.25rem 4rem;
  background:
    radial-gradient(1200px 400px at 15% -10%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 250, 0.22), transparent 60%),
    var(--color-neutral-light);
}
.hero-card__inner {
  max-width: 880px; margin-inline: auto;
  padding: 2.5rem 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(30, 27, 75, 0.05);
  text-align: left;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 1.25rem 6rem; }
  .hero-card__inner { padding: 4rem; }
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin: 0 0 0.75rem;
}
.lede {
  font-size: 1.15rem; color: #4c4770;
  max-width: 56ch; margin-bottom: 1.75rem;
}
.hero-card__figure {
  margin: 2rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  background: #eee;
}
.hero-card__figure img { width: 100%; height: 100%; object-fit: cover; }

/* === Sections === */
.section { padding: 3.5rem 0; }
.section-alt {
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(6, 182, 212, 0.06), transparent 60%),
    #F3EEFB;
}
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-head { text-align: center; margin-bottom: 2.5rem; max-width: 640px; margin-inline: auto; }
.section-sub { color: #4c4770; font-size: 1.05rem; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .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-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 27, 75, 0.05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -20px rgba(30, 27, 75, 0.18); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.14));
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2rem;
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  margin: 0 0 1rem;
}
.testimonial cite { font-style: normal; color: #6b6591; font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  padding: 3.5rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin-inline: auto; }
.cta-band .btn-ghost { background: #fff; color: var(--color-neutral-dark); border-color: transparent; }

/* === FAQ === */
.faq details {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 27, 75, 0.05);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 0.25rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--color-primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.75rem 0 0.25rem; color: #4c4770; }

/* === Contact form === */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; } }
.contact-form {
  background: #fff; padding: 2rem; border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(30, 27, 75, 0.05);
}
.contact-form label {
  display: block; margin-bottom: 1rem;
  font-weight: 500; font-size: 0.92rem;
}
.contact-form input,
.contact-form textarea {
  display: block; width: 100%; margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(30, 27, 75, 0.15);
  border-radius: 10px;
  font: inherit; color: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.85rem; color: #4c4770;
  margin-bottom: 1.25rem;
}
.form-consent input { width: auto; margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #d5d1ec;
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.site-footer a { color: #d5d1ec; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer-logo img { height: 64px; filter: brightness(0) invert(1); }
.tagline { color: #a9a3c8; font-size: 0.95rem; max-width: 24ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact address { font-style: normal; font-size: 0.92rem; line-height: 1.7; }
.legal-links { font-size: 0.82rem; margin-top: 0.75rem; color: #a9a3c8; }
.copyright {
  text-align: center; margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f8ab0; font-size: 0.82rem;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  max-width: 480px;
  padding: 1.25rem 1.35rem;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
.cookie-banner .btn-primary { background: linear-gradient(135deg, var(--color-accent), var(--color-primary)); box-shadow: none; }
.cookie-banner .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }

/* === Reveal === */
.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; } }
