:root {
    --color-blue: #A7C7E7;
    --color-mint: #B9FBC0;
    --color-mint-dark: #8DEBA0;
    --color-lavender: #C3B1E1;
    --color-cream: #FDFD96;
    --color-cream-dark: #F0F080;
    --color-text: #222222;
    --color-text-light: #555555;
    --color-white: #ffffff;
    --color-bg: #FAFAFA;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
.btn {
    font-family: 'Outfit', sans-serif;
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: #6C5CE7;
    background: linear-gradient(120deg, transparent 60%, var(--color-mint) 60%);
}

.highlight-cream {
    background: linear-gradient(120deg, transparent 60%, var(--color-cream) 60%);
}

.text-mint {
    color: #2ecc71;
}

.text-blue {
    color: #3498db;
}

.text-lavender {
    color: #9b59b6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-white);
    border: 2px solid var(--color-text);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
    /* margin-left: 10px; Removed in favor of gap */
}

.btn-secondary:hover {
    background-color: var(--color-cream);
}

.cta-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #F0F8FF 0%, #FAFAFA 100%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.svg');
    background-size: cover;
    opacity: 0.5;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.mascot-anim {
    width: 320px;
    animation: float 3s ease-in-out infinite;
}

.badge-new {
    display: inline-block;
    background-color: var(--color-lavender);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.subheadline {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.stats-row {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-anim {
    animation: pulse 2s infinite;
}

.floating {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    top: 50%;
    right: 10%;
    animation: float 4s ease-in-out infinite reverse;
}

.progress-mini {
    width: 80px;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-mini .bar {
    height: 100%;
    background: var(--color-mint);
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 10px;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
}

.card-problem .icon-lg {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Solution Section */
.row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-6 {
    flex: 1;
}

.game-ui-mockup {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 8px solid var(--color-text);
}

.ui-header {
    background: var(--color-text);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.red {
    background: #FF6B6B;
}

.yellow {
    background: #FFD93D;
}

.green {
    background: #6BCB77;
}

.ui-body {
    padding: 30px;
    text-align: center;
    background: #F8F9FA;
}

.lesson-step {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-step.active {
    border-left: 5px solid var(--color-mint);
}

.step-num {
    background: var(--color-text);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.check-icon {
    font-size: 1.5rem;
}

/* Gamification */
.gamification-section {
    background-color: var(--color-bg);
}

.level-map {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    flex-wrap: wrap;
}

.level-node {
    text-align: center;
    position: relative;
    width: 80px;
}

.node-circle {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
}

.level-node.completed .node-circle {
    background: var(--color-mint);
    border-color: var(--color-mint);
    color: white;
}

.level-node.active .node-circle {
    background: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
    transform: scale(1.2);
}

.level-line {
    height: 4px;
    width: 60px;
    background: #ddd;
    align-self: flex-start;
    margin-top: 25px;
}

.level-line.filled {
    background: var(--color-mint);
}

.current-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
}

.preview-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.hangul-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.btn-hangul {
    background: white;
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hangul:hover {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-blue);
}

/* Audio Items from Materi */
.korean-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F3F4F6;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.korean-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
}

.meaning {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
    text-align: left;
}

.speaker-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6C5CE7;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.2s;
}

.speaker-btn:active {
    transform: scale(0.9);
}

/* Tech Section */
.tech-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.tech-item .emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

/* Audience */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.check-item {
    background: white;
    padding: 20px 25px;
    border-radius: 20px;
    /* Softer radius, not full pill */
    box-shadow: var(--shadow);
    font-weight: 600;
    display: flex;
    align-items: center;
    /* Vertically align icon and text */
    gap: 15px;
    line-height: 1.4;
    transition: transform 0.2s;
}

.check-item:hover {
    transform: translateY(-3px);
}

.check-item .check {
    color: var(--color-mint);
    font-size: 1.4rem;
    flex-shrink: 0;
    /* Prevent icon from shrinking */
    background: #f0fff4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* CTA */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-lavender) 100%);
    padding: 60px 20px;
    border-radius: 30px;
    color: white;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.cta-mascot {
    position: absolute;
    width: 150px;
    top: -75px;
    right: 50px;
    display: none;
    /* Hidden on mobile */
}

.cta-box h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

.pricing {
    margin: 30px 0;
}

.price-strike {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
    display: block;
}

.price-main {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.bonus-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.bonus-list li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-text);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* FAQ */
.faq-grid {
    max-width: 700px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.faq-item summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--color-text-light);
}

/* Footer */
footer {
    background: white;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.links a {
    margin-left: 20px;
    color: var(--color-text-light);
    text-decoration: none;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .cta-mascot {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .hero-image {
        width: 100%;
    }

    .mascot-anim {
        width: 250px;
    }

    .stats-row {
        justify-content: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
        display: block;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    /* Mobile Level Map */
    .level-map {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        /* Align items to left */
        padding-left: 20px;
        /* Indent slightly */
    }

    .level-line {
        width: 4px;
        height: 40px;
        margin: 0 0 0 23px;
        /* 23px margin to center with 50px circle */
        align-self: flex-start;
    }

    .level-node {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        /* Align content to left */
        gap: 15px;
        text-align: left;
    }

    .node-circle {
        margin: 0;
    }

    .level-node p {
        margin: 0;
        font-weight: 700;
    }

    .current-badge {
        position: static;
        transform: none;
        margin-left: 10px;
    }
}