:root {
    --bg-color: #FFFFFF;
    --text-main: #111111;
    --text-sub: #555555;
    --primary: #2D5BFF;
    --card-bg: #F8F9FA;
    --ease-gravity: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    color: var(--text-main);
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s var(--ease-gravity), transform 1.8s var(--ease-gravity);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.topbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding 0.3s, top 0.15s ease-out;
}

.topbar--scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-sub);
    margin-bottom: 40px;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s var(--ease-gravity);
}

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

.btn--primary {
    background: var(--text-main);
    color: white;
}

.btn--secondary {
    background: transparent;
    color: var(--text-main);
}

.btn--large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.btn--full {
    width: 100%;
    margin-top: 20px;
    background: var(--primary);
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.bg-light {
    background: #FAFAFA;
}

.checklist {
    max-width: 600px;
    margin: 0 auto;
}

.check-item {
    font-size: 1.2rem;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.impact-text {
    font-size: 1.5rem;
    margin-top: 50px;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #eee;
    transition: transform 0.4s var(--ease-gravity);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.highlight-card {
    border: 2px solid var(--primary);
    background: #F0F5FF;
}

.badge {
    background: var(--primary);
    color: white;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.quiz-container {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.toggle-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.toggle__btn {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.toggle__btn[data-selected="true"] {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

.result-box {
    margin-top: 30px;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 20px;
    text-align: center;
    display: none;
}

.result-box.is-complete {
    display: block;
    animation: popUp 0.5s var(--ease-gravity);
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Typography Utilities ===== */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.85rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.15rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-muted {
    color: var(--text-sub);
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

/* ===== Navigation links ===== */
.logo {
    text-decoration: none;
    color: var(--text-main);
}

a.btn {
    text-decoration: none;
    display: inline-block;
}

.topbar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar>div {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s var(--ease-gravity);
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-hero__badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* ===== Level Tabs ===== */
.level-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.level-tab {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease-gravity);
}

.level-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.level-tab.active {
    background: var(--text-main);
    color: white;
    border-color: var(--text-main);
}

/* ===== Test Header ===== */
.test-header {
    text-align: center;
    margin-bottom: 40px;
}

.test-desc {
    color: var(--text-sub);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.count-badge {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.level-sub {
    font-size: 1.2rem;
    color: var(--text-sub);
    font-weight: 400;
}

.score-board {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F5FF;
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 10px;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.score-total {
    font-size: 1rem;
    color: var(--text-sub);
}

.btn-reset {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 8px;
}

.btn-reset:hover {
    background: #f5f5f5;
}

/* ===== Flip Cards ===== */
.card-list,
.grammar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.flip-card {
    perspective: 800px;
    cursor: pointer;
    height: 200px;
}

.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--ease-gravity);
    transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card__front {
    background: white;
    border: 1px solid #eee;
}

.flip-card__back {
    background: var(--text-main);
    color: white;
    transform: rotateY(180deg);
}

.q-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.q-ko {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    word-break: keep-all;
    /* Prevent awkward breaks */
    word-wrap: break-word;
    /* Handle long words */
}

.tap-hint {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: auto;
}

.q-en {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: keep-all;
    word-wrap: break-word;
}

/* ===== Before/After Grid ===== */
.ba-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.grammar-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.self-check {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.check-btn {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.check-btn.correct {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.check-btn.correct:hover {
    background: rgba(255, 255, 255, 0.35);
}

.check-btn.wrong {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.check-btn.wrong:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card--correct .flip-card__front {
    border-color: #22c55e;
    background: #f0fdf4;
}

.card--wrong .flip-card__front {
    border-color: #2D5BFF;
    background: #fef2f2;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #F0F5FF 0%, #FAFAFA 100%);
}

/* ===== Programs Page ===== */
.program-block {
    text-align: center;
    margin-bottom: 50px;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.program-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}

.program-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.program-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.benefit-card {
    background: white;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: transform 0.4s var(--ease-gravity);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.benefit-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 10px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

.program-cta {
    text-align: center;
    padding: 40px;
    background: #F8F9FA;
    border-radius: 24px;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-sub);
    margin: 0 0 24px;
}

/* ===== Divider ===== */
.divider {
    padding: 20px 0;
}

.divider .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider__text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ccc;
}

/* ===== Combo Visual ===== */
.combo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.combo-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.combo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    border: 1px solid #eee;
    min-width: 160px;
    text-align: center;
}

.combo-step small {
    color: var(--text-sub);
    font-size: 0.85rem;
}

.combo-icon {
    font-size: 2rem;
}

.combo-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.result-step {
    border: 2px solid var(--primary);
    background: #F0F5FF;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer__brand {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.brand__sub {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-left: 8px;
}

.muted {
    color: #999;
}

.small {
    font-size: 0.85rem;
}

.center-text {
    text-align: center;
}

/* ===== Image Placeholder ===== */
.img-placeholder {
    background: #F0F2F5;
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.img-placeholder:hover {
    background: #E8EBF0;
}

.img-placeholder--hero {
    padding: 80px 40px;
    border-radius: 24px;
}

.img-placeholder--dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.img-placeholder--dark:hover {
    background: rgba(255, 255, 255, 0.15);
}

.img-placeholder--dark .img-placeholder__label {
    color: rgba(255, 255, 255, 0.8);
}

.img-placeholder--dark .img-placeholder__sub {
    color: rgba(255, 255, 255, 0.5);
}

.img-placeholder__label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
}

.img-placeholder__sub {
    font-size: 0.85rem;
    color: #bbb;
}

/* ===== Input Quiz Cards ===== */
.input-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s var(--ease-gravity);
}

.input-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.input-card--correct {
    border-color: #22c55e;
    background: #f0fdf4;
}

.input-card--wrong {
    border-color: #2D5BFF;
    background: #fef2f2;
}

.input-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.input-card__input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.answer-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.answer-input:focus {
    border-color: var(--primary);
}

.answer-input:disabled {
    background: #f5f5f5;
    color: #888;
}

.submit-btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #1a4aef;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: default;
    transform: none;
}

.input-card__feedback {
    margin-top: 16px;
    animation: fadeIn 0.3s var(--ease-gravity);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-correct {
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}

.status-wrong {
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
}

.wrong-comparison {
    margin-top: 10px;
}

.wrong-comparison .label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.user-answer {
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: line-through;
    color: #dc2626;
}

.correct-answer-row {
    padding: 10px 14px;
    background: #f0fdf4;
    border-radius: 10px;
    color: #16a34a;
    font-weight: 600;
}

.correct-answer {
    color: #16a34a;
    font-weight: 600;
}

.answer-detail {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.explain-row {
    padding: 12px 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.6;
}

.hint-box {
    margin-top: 12px;
    padding: 14px 18px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    font-size: 0.92rem;
    color: #92400E;
    line-height: 1.6;
}

/* ===== Card Link ===== */
.card--link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card--link:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-link-text {
    display: block;
    margin-top: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* ===== Triple Toggle ===== */
.toggle-group--triple {
    flex-wrap: wrap;
}

.toggle-group--triple .toggle__btn {
    flex: 1 1 30%;
    min-width: 120px;
}

/* ===== Stat Grid ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* ===== Info Banner ===== */
.info-banner {
    background: #F0F5FF;
    border-radius: 16px;
    padding: 24px 30px;
    border-left: 4px solid var(--primary);
}

.info-banner p {
    margin: 0 0 6px;
    font-size: 1rem;
}

.info-banner p:last-child {
    margin-bottom: 0;
}

/* ===== Session Flow Timeline ===== */
.flow-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
}

.flow-step h3 {
    margin: 10px 0 8px;
    font-size: 1.1rem;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 0;
}

.flow-icon {
    font-size: 2rem;
}

.flow-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 6px;
}

.flow-connector {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 0 8px;
    font-weight: 700;
}

.flow-connector::after {
    content: "→";
}

/* ===== Schedule Grid ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
    position: relative;
}

.schedule-day {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.schedule-time {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.schedule-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== Feature List ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* ===== Two Column Layout ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-col__text,
.two-col__img {
    min-width: 0;
}

/* ===== Dark Section ===== */
.bg-dark {
    background: #111;
    color: white;
}

/* ===== Level System ===== */
.level-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.level-card {
    text-align: center;
    padding: 36px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
}

.level-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.level-card h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.level-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 0 0 16px;
}

.level-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.level-bar>div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    border-radius: 4px;
}

/* ===== Curriculum Grid ===== */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.curriculum-item {
    text-align: center;
}

.curriculum-item .img-placeholder {
    margin-bottom: 16px;
    padding: 50px 20px;
}

.curriculum-item p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ===== Price Tag ===== */
.price-tag {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 50px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.price-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ===== Primary Gradient ===== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
}

/* ===== Process Steps (Academy) ===== */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #eee;
}

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.process-step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.process-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.process-arrow {
    padding: 0 8px;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Tag Cloud ===== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.grammar-tag-lg {
    padding: 10px 20px;
    background: #F0F5FF;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(45, 91, 255, 0.15);
}

/* ===== Before/After ===== */
.before-after {
    display: flex;
    align-items: stretch;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.ba-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    padding: 36px;
    border-radius: 20px;
}

.ba-card h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.ba-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ba-card li {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ba-card li:last-child {
    border-bottom: none;
}

.ba-before {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.ba-after {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.ba-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Community Block ===== */
.community-block {
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Academy Level System ===== */
.academy-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.academy-level-card {
    background: white;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid #eee;
    transition: transform 0.4s var(--ease-gravity);
}

.academy-level-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.academy-level-badge {
    display: inline-block;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.academy-level-card h3 {
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.academy-level-who {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.academy-level-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.academy-level-list li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.5;
}

.academy-level-list li::before {
    content: "✦ ";
    color: var(--primary);
    font-size: 0.7rem;
    margin-right: 4px;
}

.academy-level-goal {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    padding: 12px;
    background: #F0F5FF;
    border-radius: 12px;
}

/* ===== Grammar Detail Cards ===== */
.grammar-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.grammar-detail-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #eee;
    transition: transform 0.4s var(--ease-gravity);
}

.grammar-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.grammar-detail-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #F0F5FF;
    color: var(--primary);
    margin-bottom: 12px;
}

.grammar-detail-card h3 {
    font-size: 1.2rem;
    margin: 0 0 16px;
}

.grammar-detail-body {
    font-size: 0.95rem;
}

.grammar-point {
    margin: 0 0 8px;
    font-size: 0.93rem;
    color: var(--text-main);
}

.grammar-example {
    background: #FAFAFA;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 6px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ex-ko {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.ex-en {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.grammar-tip {
    margin: 12px 0 0;
    padding: 12px 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 12px;
    font-size: 0.88rem;
    color: #92400E;
    line-height: 1.5;
}

/* ===== Route Guide Page ===== */
.route-principle {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.route-principle-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #eee;
}

.route-principle-card h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.route-principle-card p {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.7;
}

.route-level-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.route-level-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid #eee;
    transition: transform 0.3s var(--ease-gravity);
}

.route-level-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.route-level-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.route-level-badge {
    display: inline-block;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.route-level-desc h3 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.route-level-desc p {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin: 0;
}

.route-level-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.route-level-recommend {
    padding: 16px 20px;
    border-radius: 14px;
    min-width: 220px;
    text-align: center;
}

.route-tag {
    display: inline-block;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.route-level-recommend p {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.5;
}

/* ===== Route Flowchart ===== */
.route-flowchart {
    max-width: 800px;
    margin: 0 auto;
}

.flow-node {
    display: inline-block;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.flow-node--start {
    background: var(--text-main);
    color: white;
    padding: 20px 36px;
    border-radius: 50px;
}

.flow-node--condition {
    background: white;
    border: 2px solid;
    padding: 14px 20px;
}

.flow-node--condition small {
    color: var(--text-sub);
    font-weight: 400;
}

.flow-node--result {
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
}

.flow-node--sub {
    background: #F8F9FA;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 400;
    border-radius: 12px;
}

.flow-arrow-down {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    padding: 6px 0;
}

.flow-branch {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.flow-branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 160px;
}

/* ===== Compare Table ===== */
.compare-table-wrap {
    overflow-x: auto;
    max-width: 800px;
    margin: 0 auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare-table th {
    background: var(--text-main);
    color: white;
    padding: 16px 20px;
    font-weight: 700;
    text-align: center;
}

.compare-table th:first-child {
    border-radius: 12px 0 0 0;
    text-align: left;
}

.compare-table th:last-child {
    border-radius: 0 12px 0 0;
}

.compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.compare-label {
    font-weight: 700;
    text-align: left !important;
    background: #FAFAFA;
    white-space: nowrap;
}

.compare-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.compare-table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* ===== Level Test Result Banner ===== */
.result-banner {
    margin-bottom: 30px;
    animation: fadeIn 0.5s var(--ease-gravity);
}

.result-banner__inner {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.result-banner__title {
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.result-banner__score {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.result-banner__desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 0 0 20px;
    line-height: 1.7;
}

.result-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.result-banner__note {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin: 0;
}

/* ===== Card Description ===== */
.card-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin: 0 0 10px;
}

.card h3 {
    margin: 0 0 10px;
}

.card ul {
    padding-left: 16px;
    margin: 0;
}

.card li {
    margin: 6px 0;
    font-size: 0.92rem;
}

/* ===== Multiple Choice Options ===== */
.mc-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.mc-option {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s var(--ease-gravity);
}

.mc-option:hover:not(:disabled) {
    border-color: var(--primary);
    background: #F0F5FF;
}

.mc-option:disabled {
    cursor: default;
    opacity: 0.7;
}

.mc-option--correct {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
    font-weight: 700;
    opacity: 1 !important;
}

.mc-option--wrong {
    border-color: #2D5BFF !important;
    background: #fef2f2 !important;
    text-decoration: line-through;
    opacity: 1 !important;
}

/* ===== Price Section ===== */
.price-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: var(--text-main);
}

.price-row:last-of-type {
    border-bottom: none;
}

.highlight-row {
    color: var(--primary);
    font-weight: 700;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 15px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .toggle-group {
        flex-direction: column;
    }

    .card-list,
    .grammar-grid {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .combo-visual {
        flex-direction: column;
    }

    .combo-arrow {
        transform: rotate(90deg);
    }

    .level-tabs {
        gap: 6px;
    }

    .level-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .program-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flow-timeline {
        flex-direction: column;
        align-items: center;
    }

    .flow-connector {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .before-after {
        flex-direction: column;
    }

    .ba-arrow {
        transform: rotate(90deg);
        justify-content: center;
        margin: 10px 0;
    }

    .ba-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .input-card__input-wrap {
        flex-direction: column;
    }

    .img-placeholder {
        padding: 40px 20px;
    }

    .img-placeholder--hero {
        padding: 50px 20px;
    }

    .price-tag {
        padding: 24px 30px;
    }

    .price-amount {
        font-size: 2rem;
    }

    .topbar__actions {
        gap: 4px;
    }

    .topbar__actions .btn--secondary {
        display: none;
    }

    .topbar__actions .mobile-menu-btn {
        display: flex;
    }

    .academy-level-grid {
        grid-template-columns: 1fr;
    }

    .grammar-detail-grid {
        grid-template-columns: 1fr;
    }

    .route-level-row {
        flex-direction: column;
        text-align: center;
    }

    .route-level-info {
        flex-direction: column;
    }

    .route-level-arrow {
        transform: rotate(90deg);
    }

    .route-level-recommend {
        min-width: auto;
        width: 100%;
    }

    .flow-branch {
        flex-direction: column;
        align-items: center;
    }

    .flow-branch-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }

    /* Roadmap phases responsive */
    .roadmap-phase {
        grid-template-columns: 1fr !important;
    }

    .roadmap-phase>div:first-child {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left !important;
    }

    .roadmap-phase>div:first-child>div:first-child {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        flex-shrink: 0;
        margin: 0 !important;
    }

    .compare-table {
        font-size: 0.85rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-nav-panel.is-open {
    right: 0;
}

.mobile-nav-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-panel__header .logo {
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.mobile-nav-close:hover {
    background: #f5f5f5;
}

.mobile-nav-panel__links {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-panel__links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s;
}

.mobile-nav-panel__links a:hover {
    background: #f8f9fa;
}

.mobile-nav-panel__links a.active {
    background: #F0F5FF;
    color: var(--primary);
}

.mobile-nav-panel__cta {
    padding: 16px 24px 30px;
    border-top: 1px solid #eee;
}

.mobile-nav-panel__cta a {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ===== Enhanced Footer ===== */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.footer__inner {
    text-align: center;
}

.footer__nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0 20px;
}

.footer__nav a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: var(--primary);
}

.footer__social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 16px 0 20px;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eee;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.footer__social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer__info {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.7;
    margin-top: 16px;
}

/* ===== Dark Section (명도 대비) ===== */
.section-dark {
    background: #1a1a2e;
    color: #fff;
    padding: 80px 0;
}

.section-dark h2 {
    color: #fff;
}

.section-dark .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

/* Override white text inside banners/cards that have light backgrounds */
.section-dark .info-banner p,
.section-dark .benefit-card p,
.section-dark .info-banner strong,
.section-dark .benefit-card h3 {
    color: #333;
}

.section-dark .benefit-card {
    background: #fff;
}

/* ===== Live Alert Banner ===== */
.live-alert-banner {
    background: linear-gradient(135deg, #2D5BFF 0%, #1e40af 100%);
    color: #fff;
    text-align: center;
    padding: 0;
    position: relative;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(45, 91, 255, 0.3);
    animation: slideDown 0.5s ease-out;
}

/* When banner is present, offset the fixed topbar */
.live-alert-banner~.topbar {
    top: var(--banner-height, 0px);
}

.has-banner .hero,
.has-banner .page-hero {
    padding-top: calc(80px + var(--banner-height, 0px));
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ===== Highlight Animation (형광펜 효과) ===== */
.highlight-animated {
    position: relative;
    display: inline-block;
}

.highlight-animated::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 40%;
    background: #fbbf24;
    z-index: -1;
    animation: highlightSweep 1s ease-out 0.5s forwards;
}

@keyframes highlightSweep {
    to {
        width: 100%;
    }
}

/* ===== Timeline Roadmap ===== */
.timeline-roadmap {
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-step {
    background: #fff;
    border-left: 6px solid var(--step-color, #3b82f6);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-step:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.roadmap-number {
    display: inline-block;
    background: var(--step-color, #3b82f6);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.roadmap-content h3 {
    font-size: 1.4rem;
    margin: 0 0 8px 0;
    color: #111;
}

.roadmap-level {
    color: var(--step-color, #3b82f6);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 12px 0;
}

.roadmap-desc {
    color: #555;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.roadmap-result {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

.roadmap-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 20px 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ===== Modal Overlay & Container ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: #fff;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.modal-body {
    padding: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.contact-form input[type="text"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    margin-top: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

/* ===== Count Up Animation ===== */
.count-up {
    font-weight: 800;
    font-size: inherit;
    color: inherit;
}

/* ===== Floating CTA (High-converting landing pattern: prominent, repeated CTA) ===== */
.sticky-cta {
    position: fixed;
    right: 18px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.sticky-cta a.btn-primary,
.sticky-cta a.cta-book {
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sticky-cta a.btn-outline,
.sticky-cta a.cta-test {
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sticky-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 520px) {
    .sticky-cta {
        left: 14px;
        right: 14px;
        bottom: 14px;
        flex-direction: row;
    }

    .sticky-cta a {
        flex: 1;
        justify-content: center;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* Make primary CTA more “button-like” */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 108, 246, .25);
}

/* Pricing “Recommended” badge */
.badge-reco {
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    background: rgba(43, 108, 246, .12);
    color: var(--primary);
    vertical-align: middle;
}

/* ===== Enhanced Scroll Animations ===== */

/* 좌측에서 우측으로 슬라이드인 */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-gravity), transform 0.8s var(--ease-gravity);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 우측에서 좌측으로 슬라이드인 */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-gravity), transform 0.8s var(--ease-gravity);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 아래에서 위로 (기존 .reveal과 동일, 명시적 별칭) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-gravity), transform 0.8s var(--ease-gravity);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 스케일업 등장 */
.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.8s var(--ease-gravity), transform 0.8s var(--ease-gravity);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* 프로그레스/바 차오르는 애니메이션 추가 */
.fill-wrap {
    width: 0 !important;
    transition: width 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.reveal.is-visible .fill-wrap,
.is-visible .fill-wrap {
    width: 100% !important;
}

.grow-bar {
    height: 0 !important;
    transition: height 2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.reveal.is-visible .grow-bar,
.is-visible .grow-bar {
    height: var(--target-height) !important;
}

/* 선 그래프 그려지는 애니메이션 */
.draw-line-anim {
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.reveal.is-visible .draw-line-anim,
.is-visible .draw-line-anim {
    stroke-dashoffset: 0;
}

/* 순차(Stagger) 등장 — 부모에 .stagger-container, 자식에 .stagger-item */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-gravity), transform 0.7s var(--ease-gravity);
    transition-delay: calc(var(--i, 0) * 0.12s);
}

.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 좌측 stagger (좌→우 슬라이드 + 순차) */
.stagger-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s var(--ease-gravity), transform 0.7s var(--ease-gravity);
    transition-delay: calc(var(--i, 0) * 0.15s);
}

.stagger-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* reducemotion 접근성 대응 */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-up,
    .reveal-scale,
    .stagger-item,
    .stagger-left {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Marquee Animation ===== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* Optional fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

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

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    height: 300px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s var(--ease-gravity);
}

.marquee-item:hover {
    transform: scale(1.03);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Assuming track needs to be translated by half its width since we duplicate items */
        transform: translateX(calc(-50% - 10px));
    }
}