/* === Tokens === */
:root {
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-accent: #22C55E;
  --color-neutral-dark: #164E63;
  --color-neutral-light: #ECFEFF;
  --color-text: #0F2A32;
  --color-muted: #5B7480;
  --color-border: rgba(22, 78, 99, 0.12);
  --font-heading: 'Gowun Batang', serif;
  --font-body: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 20px rgba(15, 42, 50, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(15, 42, 50, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(15, 42, 50, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow, .narrow { max-width: 760px; margin-inline: auto; padding-inline: 1.25rem; }
.center { text-align: center; }
.muted { color: var(--color-muted); }
.section { padding-block: 4rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .78rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }

/* === Header / Nav === */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(236, 254, 255, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.scrolled { background: rgba(255, 255, 255, 0.9); border-bottom-color: var(--color-border); box-shadow: 0 4px 20px rgba(15, 42, 50, 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; transition: transform .2s var(--ease), opacity .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; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.primary-nav.is-open { display: block; }
.primary-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.primary-nav a { display: block; padding: .75rem .5rem; color: var(--color-neutral-dark); text-decoration: none; font-weight: 500; border-radius: 8px; }
.primary-nav a:hover { background: var(--color-neutral-light); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta { background: var(--color-primary); color: #fff !important; text-align: center; }
.nav-cta:hover { background: var(--color-neutral-dark); }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: .25rem; }
  .primary-nav a { padding: .5rem .9rem; position: relative; }
  .primary-nav a::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .35rem; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .primary-nav a:hover { background: transparent; text-decoration: none; }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .nav-cta { padding: .55rem 1.1rem !important; border-radius: 999px; }
  .nav-cta::after { display: none; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); font-size: 1rem; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark)); color: #fff; box-shadow: 0 10px 25px -10px rgba(8, 145, 178, 0.6); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(8, 145, 178, 0.7); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 10px 25px -10px rgba(34, 197, 94, 0.55); }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 6px; }

/* === Hero (centered) === */
.hero { position: relative; padding-block: 4rem 3rem; overflow: hidden; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.hero-glow { position: absolute; inset: -20% 10% auto 10%; height: 60%; background: radial-gradient(closest-side, rgba(34, 197, 94, 0.18), transparent 70%); pointer-events: none; z-index: 0; filter: blur(20px); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 22ch; margin-inline: auto; margin-bottom: 1.25rem; }
.hero-sub { max-width: 52ch; margin-inline: auto; font-size: 1.15rem; color: var(--color-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.hero-media { margin: 3rem auto 0; max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Cards / Highlights === */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.grid-4 { grid-template-columns: repeat(4, 1fr); } .cards.grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); display: flex; flex-direction: column; gap: .5rem; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(8, 145, 178, 0.35); }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: .95rem; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-neutral-light); color: var(--color-primary); margin-bottom: .5rem; }
a.card-link { color: inherit; text-decoration: none; }
a.card-link:hover { text-decoration: none; }

/* === Intro === */
.intro h2 { text-align: center; }
.intro p { color: var(--color-text); font-size: 1.05rem; }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); border-radius: var(--radius-lg); margin-block: 2rem; }
.testimonial { margin: 0; padding: 2rem 0; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--color-neutral-dark); line-height: 1.5; max-width: 40rem; margin: 0 auto 1rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === Stats === */
.stats-section { background: linear-gradient(135deg, rgba(8, 145, 178, 0.05), rgba(34, 211, 238, 0.08)); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: #fff; padding: 2rem 1.5rem; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.stat-num { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 3.25rem); color: var(--color-accent); font-weight: 700; line-height: 1; margin-bottom: .5rem; }
.stat h3 { color: var(--color-neutral-dark); margin-bottom: .5rem; }
.stat p { color: var(--color-muted); font-size: .92rem; margin: 0; }

/* === 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: -30% -10% auto auto; width: 60%; height: 100%; background: radial-gradient(closest-side, rgba(34, 197, 94, 0.35), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

/* === FAQ === */
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: .75rem; background: #fff; transition: box-shadow .2s var(--ease); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(8, 145, 178, 0.35); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--color-neutral-dark); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s var(--ease); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; color: var(--color-muted); margin-bottom: 0; }

/* === Contact === */
.contact-list { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.contact-list li { padding: .5rem 0; border-bottom: 1px solid var(--color-border); }
.contact-list strong { display: inline-block; min-width: 5.5rem; color: var(--color-neutral-dark); }

/* === Form === */
.contact-form { display: grid; gap: 1.25rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; color: var(--color-text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15); }
.field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-muted); }
.form-consent input { margin-top: .2rem; flex-shrink: 0; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(236, 254, 255, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1rem; }
.site-footer a { color: rgba(236, 254, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.site-footer .logo img { height: 60px; filter: brightness(0) invert(1); opacity: .95; }
.footer-tagline { margin-top: .75rem; color: rgba(236, 254, 255, 0.7); font-size: .95rem; }
.site-footer nav ul { display: grid; gap: .4rem; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: .95rem; margin-bottom: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .88rem; padding-top: .75rem; border-top: 1px solid rgba(255,255,255,0.12); }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; color: rgba(236, 254, 255, 0.6); text-align: center; }

/* === Reveal (scroll-in) === */
.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; } }

/* === 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-md); box-shadow: var(--shadow-lg); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button { padding: .6rem 1.1rem; border-radius: 999px; border: 0; font-weight: 600; font-size: .9rem; }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: rgba(255,255,255,0.15); color: #fff; }
.cookie-banner [data-cookie-settings] { background: transparent; color: var(--color-neutral-light); text-decoration: underline; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; background: var(--color-accent); color: #fff; margin-top: .25rem; }
