:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #CA8A04;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.10);
  --font-heading: 'Nanum Myeongjo', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
  --shadow-soft: 0 2px 20px rgba(2, 6, 23, 0.06);
  --shadow-lift: 0 20px 60px -20px rgba(2, 6, 23, 0.25);
}

/* === Base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 780px; }

/* === Header === */
.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 transparent;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px -12px rgba(2, 6, 23, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 0 1.25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  padding: 0.6rem 0.25rem;
  font-weight: 500;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .header-inner { padding: 1rem 1.25rem; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    padding: 0;
    gap: 2rem;
    align-items: center;
  }
  .primary-nav a {
    padding: 0.25rem 0;
    border-bottom: 0;
    position: relative;
  }
  .primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(202, 138, 4, 0.10), transparent 60%),
              linear-gradient(180deg, var(--color-neutral-light), var(--color-neutral-light));
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.hero h1 {
  max-width: 22ch;
  margin: 0 auto 1.25rem;
}
.hero-sub {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--color-secondary);
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.hero-image {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero { padding: 6rem 0 4rem; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-neutral-light);
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--color-neutral-light); box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-light);
  box-shadow: 0 6px 20px -6px rgba(202, 138, 4, 0.55);
}
.btn-accent:hover { transform: translateY(-2px); color: var(--color-neutral-light); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* === Sections === */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-alt { background: #EEF2F7; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-secondary); font-size: 1.05rem; }
.center-lede { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; color: var(--color-secondary); }

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

.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--color-secondary); margin: 0; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(202, 138, 4, 0.12);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* === Testimonial === */
.testimonial blockquote {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}
.testimonial cite {
  font-style: normal;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: var(--color-neutral-light);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 20%, rgba(202, 138, 4, 0.20), transparent 45%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 56ch; margin: 0 auto 1.75rem; }

/* === FAQ === */
.faq details {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--color-neutral-light);
  transition: box-shadow 0.2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-primary);
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0.9rem 0 0; color: var(--color-secondary); }

/* === Contact form === */
.contact-form {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.form-row { margin-bottom: 1.15rem; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.18);
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin: 0.5rem 0 1.5rem;
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }
.form-consent a { color: var(--color-primary); text-decoration: underline; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, 0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(248, 250, 252, 0.75); }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.logo-footer img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tag { margin-top: 1rem; font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.95rem; }
.footer-contact address { font-style: normal; font-size: 0.9rem; line-height: 1.7; }
.footer-legal { margin-top: 1rem; font-size: 0.85rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 0.85rem;
  text-align: center;
}
.footer-bottom p { margin: 0; color: rgba(248, 250, 252, 0.55); }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 9999;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.55; color: rgba(248, 250, 252, 0.9); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: transparent;
  color: var(--color-neutral-light);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cookie-banner__actions button:hover { border-color: var(--color-accent); }
.cookie-banner__actions [data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-neutral-light);
}
.cookie-banner__actions [data-cookie-accept]:hover { filter: brightness(1.08); }
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 0;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

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