/* =========================================================
   Arogya Yoga — site design system
   Warm cream base + vibrant "chakra" gradient accents
   ========================================================= */

:root {
    --bg: #fff8f1;
    --bg-2: #fff1e6;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --text: #1d1a2e;
    --muted: #625e74;
    --line: rgba(29, 26, 46, 0.08);

    --saffron: #ff8a3d;
    --coral: #ff5e7e;
    --magenta: #d34bd8;
    --violet: #7b5cff;
    --teal: #14b8a6;
    --sun: #ffc23d;
    --leaf: #34c38f;
    --kakao: #fee500;
    --naver: #03c75a;

    --grad-main: linear-gradient(120deg, #ff8a3d 0%, #ff5e7e 40%, #b44bff 75%, #7b5cff 100%);
    --grad-sunrise: linear-gradient(135deg, #ffc23d, #ff8a3d 50%, #ff5e7e);
    --grad-ocean: linear-gradient(135deg, #14b8a6, #3b82f6 60%, #7b5cff);
    --grad-lotus: linear-gradient(135deg, #ff5e7e, #d34bd8 60%, #7b5cff);
    --grad-leaf: linear-gradient(135deg, #34c38f, #14b8a6 60%, #3b82f6);

    --accent: var(--coral);
    --accent-dark: #d63d63;
    --glow: rgba(255, 94, 126, 0.18);

    --shadow-sm: 0 6px 18px rgba(29, 26, 46, 0.06);
    --shadow: 0 14px 40px rgba(29, 26, 46, 0.09);
    --shadow-lg: 0 28px 70px rgba(29, 26, 46, 0.14);
    --radius: 24px;
    --radius-xl: 32px;
    --nav-height: 46px;

    --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --font-display: "Playfair Display", "Gowun Batang", "Noto Serif KR", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 94, 126, 0.22);
}

h1, h2, h3, .display-font {
    letter-spacing: -0.025em;
}

.display-font {
    font-family: var(--font-display);
}

a {
    color: var(--violet);
}

.site-shell {
    overflow-x: clip;
}

/* ---------- Animated colour blobs behind everything ---------- */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: blobFloat 22s ease-in-out infinite alternate;
}

.bg-blobs span:nth-child(1) { width: 520px; height: 520px; background: #ffd2b0; top: -140px; left: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 460px; background: #ffc6d4; top: 20%; right: -160px; animation-delay: -6s; }
.bg-blobs span:nth-child(3) { width: 420px; height: 420px; background: #dcd2ff; bottom: -160px; left: 20%; animation-delay: -12s; }
.bg-blobs span:nth-child(4) { width: 300px; height: 300px; background: #c4f1e6; bottom: 10%; right: 10%; animation-delay: -3s; }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.12); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--grad-main);
    z-index: 2000;
}

/* ---------- Navigation ---------- */
.top-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 14px 14px 0;
    transition: padding 0.3s ease;
}

.top-nav {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    padding: 10px 18px;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

body.is-scrolled .top-nav-wrap {
    padding-top: 8px;
}

body.is-scrolled .top-nav {
    padding: 6px 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.navbar {
    padding: 0;
}

.navbar > .container-fluid {
    align-items: center;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
    flex-shrink: 0;
}

.brand-logo-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: var(--grad-main);
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease, transform 0.6s ease;
}

.navbar-brand:hover .brand-logo-wrap {
    transform: rotate(-8deg) scale(1.05);
}

body.is-scrolled .brand-logo-wrap {
    width: 46px;
    height: 46px;
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 5px;
    white-space: nowrap;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    padding: 8px 10px;
    border-radius: 14px;
    background: #fff;
}

.navbar-nav {
    align-items: center;
    gap: 2px;
}

.nav-link,
.nav-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: var(--nav-height);
    color: #3b3850 !important;
    font-weight: 650;
    font-size: 0.97rem;
    padding: 0 14px !important;
    border-radius: 999px;
    border: 0;
    background: transparent;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link::after,
.nav-button::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 7px;
    height: 3px;
    border-radius: 999px;
    background: var(--grad-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-button:hover {
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.8);
}

.nav-link:hover::after,
.nav-button:hover::after,
.nav-link.active-soft::after {
    transform: scaleX(1);
}

.nav-link.active-soft {
    color: var(--text) !important;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.nav-form,
.lang-form {
    margin: 0;
}

/* KR | EN language switch: globe icon + segmented control with a sliding gradient thumb */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(29, 26, 46, 0.06);
}

.lang-switch > .bi {
    font-size: 1rem;
    color: var(--violet);
}

.lang-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 3px;
    border-radius: 999px;
    background: rgba(29, 26, 46, 0.06);
    box-shadow: inset 0 1px 3px rgba(29, 26, 46, 0.08);
    isolation: isolate;
}

.lang-toggle::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: var(--grad-main);
    box-shadow: 0 4px 12px rgba(255, 94, 126, 0.35);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lang-toggle[data-lang="en"]::before {
    transform: translateX(100%);
}

.lang-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 44px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.25s ease;
}

.lang-toggle a:hover {
    color: var(--text);
}

.lang-toggle a.active {
    color: #fff;
}

.lang-toggle a:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 2px;
}

.nav-cta {
    margin-left: 8px;
}

/* ---------- Buttons ---------- */
.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
}

.btn-modern:active {
    transform: translateY(0) scale(0.98);
}

.btn-modern i {
    font-size: 1.1em;
}

.btn-gradient {
    color: #fff;
    background: var(--grad-main);
    background-size: 200% 200%;
    box-shadow: 0 12px 28px rgba(255, 94, 126, 0.35);
    animation: gradientShift 6s ease infinite;
}

.btn-gradient:hover {
    color: #fff;
    box-shadow: 0 18px 36px rgba(180, 75, 255, 0.35);
}

.btn-modern-dark {
    color: #fff;
    background: linear-gradient(135deg, #1d1a2e, #3a3358);
    box-shadow: 0 12px 24px rgba(29, 26, 46, 0.25);
}

.btn-modern-dark:hover {
    color: #fff;
}

.btn-modern-light {
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-modern-light:hover {
    color: var(--text);
    box-shadow: var(--shadow);
}

.btn-naver {
    color: #fff;
    background: var(--naver);
    box-shadow: 0 12px 24px rgba(3, 199, 90, 0.28);
}

.btn-naver:hover {
    color: #fff;
    filter: brightness(1.05);
}

.btn-kakao {
    color: #191919;
    background: var(--kakao);
    box-shadow: 0 12px 24px rgba(254, 229, 0, 0.4);
}

.btn-kakao:hover {
    color: #191919;
}

.btn-youtube {
    color: #fff;
    background: #ff0033;
    box-shadow: 0 12px 24px rgba(255, 0, 51, 0.25);
}

.btn-youtube:hover {
    color: #fff;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Layout helpers ---------- */
.main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 18px 0;
}

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 40px 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 10px;
}

.section-eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-main);
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 640px;
}

.text-gradient {
    background: var(--grad-main);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow-sm);
}

.glass {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.lift {
    transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease;
}

.lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.page-header {
    position: relative;
    text-align: center;
    padding: 56px 20px 40px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 850;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 40px 0 60px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.6rem);
    font-weight: 850;
    line-height: 1.08;
    margin-bottom: 22px;
}

.hero-title .display-font {
    font-style: italic;
    font-weight: 700;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-badge .dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--grad-sunrise);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-proof strong {
    color: var(--text);
    font-size: 1.25rem;
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    margin-left: -12px;
    box-shadow: var(--shadow-sm);
}

.avatar-stack .review-avatar {
    width: 40px;
    height: 40px;
    margin-left: -10px;
    border: 3px solid #fff;
}

.avatar-stack .review-avatar:first-child {
    margin-left: 0;
}

.avatar-stack .review-avatar:nth-child(2) { background: var(--grad-ocean); }
.avatar-stack .review-avatar:nth-child(3) { background: var(--grad-sunrise); }
.avatar-stack .review-avatar:nth-child(4) { background: var(--grad-leaf); }

.avatar-stack img:first-child {
    margin-left: 0;
}

.hero-visual {
    position: relative;
    min-height: 540px;
}

.hero-ring {
    position: absolute;
    inset: 6% 4%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff8a3d, #ffc23d, #34c38f, #14b8a6, #3b82f6, #7b5cff, #d34bd8, #ff5e7e, #ff8a3d);
    filter: blur(2px);
    opacity: 0.85;
    animation: spin 26s linear infinite;
}

.hero-ring::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--bg);
}

.hero-photo {
    position: absolute;
    border-radius: 28px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: var(--shadow-lg);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rotating hero photos: images are stacked and cross-fade with a gentle zoom. */
.hero-photo[data-rotate] img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 4s ease;
}

.hero-photo[data-rotate] img.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-photo.main {
    width: 72%;
    height: 66%;
    top: 12%;
    left: 14%;
    border-radius: 40% 40% 28px 28px;
    animation: floatY 7s ease-in-out infinite;
}

.hero-photo.side-a {
    width: 36%;
    height: 34%;
    bottom: 2%;
    left: 0;
    animation: floatY 8s ease-in-out infinite -2s;
}

.hero-photo.side-b {
    width: 32%;
    height: 30%;
    bottom: 8%;
    right: 0;
    animation: floatY 6.5s ease-in-out infinite -4s;
}

.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 750;
    font-size: 0.9rem;
    z-index: 2;
    animation: floatY 5s ease-in-out infinite;
}

.hero-chip i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
}

.hero-chip small {
    display: block;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
}

.hero-chip.chip-a { top: 6%; right: 2%; }
.hero-chip.chip-b { top: 46%; left: -4%; animation-delay: -2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    background: var(--grad-main);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    transform: rotate(-1.5deg);
    margin: 10px -30px;
    box-shadow: var(--shadow);
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    white-space: nowrap;
}

.marquee-item::after {
    content: "✦";
    opacity: 0.75;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */
.stat-card {
    position: relative;
    padding: 28px 24px;
    overflow: hidden;
    text-align: center;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--stat-grad, var(--grad-main));
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 850;
    line-height: 1;
    background: var(--stat-grad, var(--grad-main));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: var(--muted);
    font-weight: 650;
    margin-top: 8px;
}

/* ---------- Feature cards ---------- */
.feature-card {
    padding: 30px 26px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(-8deg) scale(1.08);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.feature-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -60px;
    bottom: -60px;
    border-radius: 50%;
    background: var(--feature-grad, var(--grad-main));
    opacity: 0.08;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-card:hover::after {
    transform: scale(1.6);
    opacity: 0.14;
}

.g-sunrise { background: var(--grad-sunrise); --feature-grad: var(--grad-sunrise); --stat-grad: var(--grad-sunrise); }
.g-ocean { background: var(--grad-ocean); --feature-grad: var(--grad-ocean); --stat-grad: var(--grad-ocean); }
.g-lotus { background: var(--grad-lotus); --feature-grad: var(--grad-lotus); --stat-grad: var(--grad-lotus); }
.g-leaf { background: var(--grad-leaf); --feature-grad: var(--grad-leaf); --stat-grad: var(--grad-leaf); }
.g-main { background: var(--grad-main); --feature-grad: var(--grad-main); --stat-grad: var(--grad-main); }

.theme-sunrise { --feature-grad: var(--grad-sunrise); --stat-grad: var(--grad-sunrise); }
.theme-ocean { --feature-grad: var(--grad-ocean); --stat-grad: var(--grad-ocean); }
.theme-lotus { --feature-grad: var(--grad-lotus); --stat-grad: var(--grad-lotus); }
.theme-leaf { --feature-grad: var(--grad-leaf); --stat-grad: var(--grad-leaf); }

/* ---------- Program pills ---------- */
.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.pill:hover {
    transform: translateY(-3px) rotate(-1deg);
    color: #fff;
    background: var(--pill-color, var(--coral));
}

.pill:nth-child(6n+1) { --pill-color: var(--saffron); }
.pill:nth-child(6n+2) { --pill-color: var(--coral); }
.pill:nth-child(6n+3) { --pill-color: var(--magenta); }
.pill:nth-child(6n+4) { --pill-color: var(--violet); }
.pill:nth-child(6n+5) { --pill-color: var(--teal); }
.pill:nth-child(6n+6) { --pill-color: var(--leaf); }

.pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pill-color, var(--coral));
    transition: background 0.25s ease;
}

.pill:hover::before {
    background: #fff;
}

/* ---------- Keyword bars (Naver "what students liked") ---------- */
.keyword-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.keyword-row img {
    width: 30px;
    height: 30px;
}

.keyword-name {
    font-weight: 700;
    margin-bottom: 6px;
}

.keyword-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(29, 26, 46, 0.06);
    overflow: hidden;
}

.keyword-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad-main);
    transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}

.keyword-row:nth-child(4n+2) .keyword-bar span { background: var(--grad-ocean); }
.keyword-row:nth-child(4n+3) .keyword-bar span { background: var(--grad-leaf); }
.keyword-row:nth-child(4n+4) .keyword-bar span { background: var(--grad-sunrise); }

.keyword-count {
    font-weight: 800;
    color: var(--muted);
    min-width: 28px;
    text-align: right;
}

/* ---------- Reviews ---------- */
.review-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 380px);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 26px;
    scrollbar-width: none;
}

.review-scroller::-webkit-scrollbar {
    display: none;
}

.review-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.review-photo {
    height: 210px;
    overflow: hidden;
    background: var(--bg-2);
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.review-card:hover .review-photo img {
    transform: scale(1.06);
}

.review-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-quote {
    font-size: 0.98rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.review-quote.full {
    -webkit-line-clamp: unset;
    display: block;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--muted);
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    background: var(--grad-lotus);
    flex-shrink: 0;
}

.review-card:nth-child(4n+2) .review-avatar { background: var(--grad-ocean); }
.review-card:nth-child(4n+3) .review-avatar { background: var(--grad-sunrise); }
.review-card:nth-child(4n+4) .review-avatar { background: var(--grad-leaf); }

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: var(--naver);
}

.source-badge.web {
    background: var(--violet);
}

.kw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.kw-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--violet);
    background: rgba(123, 92, 255, 0.1);
}

.stars {
    color: var(--sun);
    letter-spacing: 2px;
}

.scroller-nav {
    display: flex;
    gap: 10px;
}

.scroller-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.scroller-nav button:hover {
    color: #fff;
    background: var(--coral);
    transform: scale(1.06);
}

/* ---------- Pricing ---------- */
.price-card {
    position: relative;
    padding: 34px 28px;
    height: 100%;
    text-align: center;
    overflow: hidden;
}

.price-card .price {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 850;
    margin: 14px 0 6px;
}

.price-card.featured {
    color: #fff;
    background: var(--grad-main);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    border: 0;
    transform: scale(1.03);
    box-shadow: 0 24px 60px rgba(255, 94, 126, 0.35);
}

.price-card.featured .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.price-ribbon {
    position: absolute;
    top: 18px;
    right: -38px;
    padding: 6px 44px;
    transform: rotate(45deg);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--sun);
}

/* ---------- Steps ---------- */
.step-card {
    position: relative;
    padding: 30px 26px;
    height: 100%;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    background: var(--feature-grad, var(--grad-main));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

/* ---------- Post / blog cards ---------- */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-card:hover {
    color: inherit;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--grad-sunrise);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.07);
}

.post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--naver);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.post-badge.badge-studio {
    background: var(--violet);
}

.post-badge.badge-youtube {
    background: #ff0033;
}

.post-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-date {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.post-summary {
    color: var(--muted);
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.post-tag {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--coral);
    background: rgba(255, 94, 126, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
}

.post-more {
    margin-top: 14px;
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Video ---------- */
.video-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--shadow);
}

.video-card img,
.video-card iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.video-card img {
    opacity: 0.88;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.video-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background: rgba(255, 0, 51, 0.92);
    box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.6);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0.5); }
    70% { box-shadow: 0 0 0 22px rgba(255, 0, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); }
}

/* ---------- Gallery ---------- */
.masonry {
    columns: 3 280px;
    column-gap: 18px;
}

.masonry-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.06);
}

.masonry-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 30px 16px 14px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(to top, rgba(29, 26, 46, 0.7), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.masonry-item:hover figcaption {
    opacity: 1;
    transform: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 14, 30, 0.92);
    backdrop-filter: blur(6px);
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox button {
    position: absolute;
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease;
}

.lightbox button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Map / location ---------- */
.map-frame {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-line {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.info-line:last-child {
    border-bottom: 0;
}

.info-line i {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.1rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 64px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: #fff;
    background: var(--grad-main);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    box-shadow: 0 30px 70px rgba(180, 75, 255, 0.3);
}

.cta-band h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 850;
}

.cta-band p {
    opacity: 0.92;
    font-size: 1.1rem;
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.cta-band::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -90px; right: -40px; }

.cta-band > * {
    position: relative;
    z-index: 1;
}

/* ---------- Floating action buttons ---------- */
.fab-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    text-decoration: none;
    border: 0;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.fab:hover {
    transform: scale(1.1);
}

.fab .fab-label {
    position: absolute;
    right: 68px;
    padding: 6px 12px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: var(--text);
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fab:hover .fab-label {
    opacity: 1;
    transform: none;
}

.fab-kakao { background: var(--kakao); color: #3a1d1d; }
.fab-kakao:hover { color: #3a1d1d; }
.fab-phone { background: var(--grad-ocean); color: #fff; }
.fab-phone:hover { color: #fff; }
.fab-book { background: var(--grad-main); color: #fff; }
.fab-book:hover { color: #fff; }
.fab-top {
    background: #fff;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.is-scrolled .fab-top {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* ---------- Footer ---------- */
footer.site-footer {
    margin-top: 80px;
    padding: 0 14px 24px;
}

.footer-card {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 36px 26px;
    border-radius: var(--radius-xl);
    color: rgba(255, 255, 255, 0.78);
    background: #1d1a2e;
    overflow: hidden;
}

.footer-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--grad-main);
}

.footer-card h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-card a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-card a:hover {
    color: #fff;
}

.footer-links li {
    margin-bottom: 8px;
}

.social-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, background 0.25s ease;
}

.social-btn:hover { transform: translateY(-4px); }
.social-btn.naver:hover { background: var(--naver); }
.social-btn.kakao:hover { background: var(--kakao); color: #3a1d1d !important; }
.social-btn.youtube:hover { background: #ff0033; }
.social-btn.blog:hover { background: var(--grad-leaf); }

.footer-bottom {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-radius: 14px;
    border-color: var(--line);
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(255, 94, 126, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(255, 94, 126, 0.12);
}

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-input input {
    display: none;
}

.star-input label {
    font-size: 2rem;
    color: #d9d6e3;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: var(--sun);
}

.star-input label:hover {
    transform: scale(1.15);
}

/* ---------- Scroll reveal ---------- */
.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal-ready [data-reveal="left"] { transform: translateX(-40px); }
.reveal-ready [data-reveal="right"] { transform: translateX(40px); }
.reveal-ready [data-reveal="zoom"] { transform: scale(0.92); }

.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .top-nav {
        border-radius: 22px;
    }

    .navbar-collapse {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 6px;
        padding-bottom: 8px;
    }

    .nav-link,
    .nav-button {
        width: 100%;
        background: rgba(255, 255, 255, 0.55);
    }

    .nav-link::after,
    .nav-button::after {
        right: auto;
        width: 30px;
    }

    .lang-toggle {
        margin-top: 4px;
    }

    .nav-cta {
        margin: 8px 0 0;
    }

    .nav-cta .btn-modern {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .reveal-ready [data-reveal="left"],
    .reveal-ready [data-reveal="right"] {
        transform: translateY(36px);
    }

    .hero-visual {
        min-height: 420px;
        margin-top: 20px;
    }

    .section {
        padding: 52px 0;
    }
}

@media (max-width: 575.98px) {
    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .hero-visual {
        min-height: 340px;
    }

    .hero-chip {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .hero-chip.chip-b {
        left: 0;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .footer-card {
        padding: 40px 22px 22px;
    }

    .cta-band {
        padding: 48px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
