:root {
  --brand: #1670e8;
  --brand-600: #0f5bc4;
  --brand-900: #0b2f66;
  --brand-50: #eef5ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --radius: 20px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 8px 24px rgba(11, 47, 102, .25); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(226,232,240,.7); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--brand); }
.brand img { border-radius: 10px; }
.menu { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; color: #334155; }
.menu a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, #4fa3ff 0%, transparent 60%), linear-gradient(165deg, #1670e8 0%, #0f5bc4 45%, #0b2f66 100%); }
.hero-inner { position: relative; z-index: 2; padding: 88px 20px 140px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.15); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 8vw, 76px); font-weight: 900; letter-spacing: -0.04em; }
.lead { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); opacity: .92; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 40px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; }
.stats small { font-size: 22px; }
.stats span { font-size: 14px; opacity: .8; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 3; }
.wave-emoji { display: inline-block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-6deg); } }

.bubbles i { position: absolute; bottom: -40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); animation: rise linear infinite; }
.bubbles i:nth-child(1) { left: 62%; width: 18px; height: 18px; animation-duration: 9s; }
.bubbles i:nth-child(2) { left: 72%; width: 10px; height: 10px; animation-duration: 7s; animation-delay: 2s; }
.bubbles i:nth-child(3) { left: 80%; width: 26px; height: 26px; animation-duration: 12s; animation-delay: 1s; }
.bubbles i:nth-child(4) { left: 88%; width: 14px; height: 14px; animation-duration: 8s; animation-delay: 4s; }
.bubbles i:nth-child(5) { left: 55%; width: 8px; height: 8px; animation-duration: 6s; animation-delay: 3s; }
.bubbles i:nth-child(6) { left: 93%; width: 20px; height: 20px; animation-duration: 10s; animation-delay: 5s; }
@keyframes rise { to { transform: translateY(-720px) translateX(-20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubbles, .wave-emoji { animation: none; display: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: #f6f9fe; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--brand); margin-bottom: 10px; }
.kicker.light { color: #9cc7ff; }
.section h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 850; margin-bottom: 36px; }
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

.grid { display: grid; gap: 18px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, .07); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: #475569; font-size: 15px; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; background: var(--brand-50); margin-bottom: 18px; }

/* Pools */
.pool { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.pool-head { position: relative; padding: 34px 26px 26px; color: #fff; }
.theme-sky { background: linear-gradient(135deg, #38bdf8, #1670e8); }
.theme-indigo { background: linear-gradient(135deg, #6366f1, #0b2f66); }
.theme-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.theme-violet { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.theme-emerald { background: linear-gradient(135deg, #34d399, #047857); }
.theme-navy { background: linear-gradient(135deg, #1e3a8a, #0b1f44); }
.pool-head h3 { font-size: 24px; }
.pool-head p { opacity: .85; font-size: 14px; margin-top: 4px; }
.depth { position: absolute; top: 22px; right: 22px; font-size: 32px; font-weight: 900; opacity: .9; letter-spacing: -0.03em; }
.pool-body { list-style: none; margin: 0; padding: 20px 26px 24px; display: grid; gap: 8px; font-size: 15px; color: #334155; }
.pool-body b { display: inline-block; min-width: 92px; color: var(--brand-600); }

/* Instructors */
.person { display: flex; gap: 20px; align-items: flex-start; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff; background: linear-gradient(135deg, #4fa3ff, #1670e8); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.tags span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); }

/* Tours */
.tour .badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #fff4e5; color: #c2410c; margin-bottom: 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--brand-50); }
.steps .num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: #475569; }

/* Safety */
.safety { background: var(--brand-900); color: #fff; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 22px 22px 22px 68px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 16px; }
.rules li::before { content: counter(r); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #4fa3ff; font-weight: 800; font-size: 14px; }
.rules em { font-style: normal; color: #9cc7ff; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 20px; color: #475569; }

/* Join */
.join { background: linear-gradient(135deg, #1670e8, #0b2f66); color: #fff; }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.join h2 { margin-bottom: 12px; }
.join p { opacity: .9; font-size: 17px; }
.qr { margin: 0; background: #fff; padding: 16px; border-radius: 20px; text-align: center; color: var(--muted); font-size: 13px; flex: none; }
.qr img { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; }
.qr figcaption { margin-top: 8px; }

/* Footer */
.footer { padding: 40px 0 48px; background: #fff; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer img { width: 72px; height: 72px; border-radius: 14px; }
.footer .copy { margin-left: auto; }

/* Notice bar */
.notice { background: #0b2f66; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 20px; }
.notice a:hover { text-decoration: underline; }

/* Instructor photo */
img.avatar { object-fit: cover; background: var(--brand-50); }

/* Tour extras */
.tour .date { font-size: 14px; font-weight: 600; color: var(--brand-600); margin-bottom: 6px; }
.tour .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--brand); }

/* Gallery */
.gallery { columns: 3 240px; column-gap: 14px; }
.gallery figure { break-inside: avoid; margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #f1f5f9; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: #475569; background: #fff; }

.footer .copy a { text-decoration: underline; text-underline-offset: 2px; }

/* Responsive */
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hide-sm { display: none; }
  .hero-inner { padding: 64px 20px 120px; }
  .stats { gap: 28px; margin-top: 44px; }
  .stats strong { font-size: 28px; }
  .section { padding: 64px 0; }
  .cards-2, .rules { grid-template-columns: 1fr; }
  .join-inner { flex-direction: column; align-items: flex-start; }
  .footer .copy { margin-left: 0; width: 100%; }
}
@media (max-width: 460px) {
  .cards-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
