/* ===== CSS Variables ===== */
:root {
    /* Colors - Bright Theme */
    --primary-blue: #4A90D9;
    --primary-blue-light: #7EB6FF;
    --primary-mint: #7DD3C0;
    --primary-green: #22C55E;
    --accent-yellow: #FFD93D;
    --accent-orange: #F59E0B;
    --accent-pink: #FF6B9D;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gradient-start: #E8F4FD;
    --bg-gradient-end: #D4F5EC;
    --card-bg: #FFFFFF;
    --card-border: rgba(0, 0, 0, 0.08);
    --kakao-yellow: #FEE500;
    --kakao-brown: #3C1E1E;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #E8F4FD 0%, #D4F5EC 50%, #FEF9E7 100%);
    --gradient-primary: linear-gradient(135deg, #4A90D9 0%, #7DD3C0 100%);
    --gradient-accent: linear-gradient(135deg, #FFD93D 0%, #F59E0B 100%);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;
    --card-radius: 20px;
    --btn-radius: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-color: 0 8px 30px rgba(74, 144, 217, 0.25);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--primary-blue);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--gradient-primary);
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo span {
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--btn-radius);
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 20px 10px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    display: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: var(--container-max);
    width: 100%;
    position: relative;
}

.hero-dragon {
    position: absolute;
    left: -80px;
    top: -15%;
    transform: translateY(-50%);
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.hero-dragon img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    flex: 1;
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--card-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--btn-radius);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(254, 229, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    }
}

.btn-primary {
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: pulse-yellow 2s infinite;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(254, 229, 0, 0.4);
}

.btn-secondary {
    background: var(--accent-orange);
    color: white;
    box-shadow: var(--shadow-md);
    padding: 14px 24px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.hero-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 0 0 20px 0;
    animation: float 4s ease-in-out infinite;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    white-space: nowrap;
}

.hero-feature span:first-child {
    font-size: 1.2rem;
}

.hero-feature svg {
    color: var(--accent-orange);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #E8F4FD 100%);
    position: relative;
}

.stats-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 217, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(74, 144, 217, 0.1);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
}

/* ===== Section Common ===== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--bg-gradient-start);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ===== Services Section ===== */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== How to Use Section ===== */
.how-to-use {
    background: var(--gradient-hero);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    text-align: center;
    width: 200px;
    position: relative;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
}

.step-icon {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.step-arrow {
    color: var(--primary-blue);
    opacity: 0.5;
}

/* ===== Reviews Section ===== */
.reviews {
    background: var(--bg-light);
    overflow: hidden;
    padding: 80px 0;
}

.reviews-slider {
    overflow: hidden;
    margin: 0 -20px;
    padding: 20px;
}

.reviews-track {
    display: flex;
    gap: 24px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.reviews-slider:hover .reviews-track {
    animation-play-state: paused;
}

.review-card {
    flex-shrink: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.author-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* ===== FAQ Section ===== */
.faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--card-border);
    border-radius: var(--btn-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-color);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    background: white;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    color: var(--primary-blue);
    transition: var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--gradient-hero);
    padding: 120px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.contact-feature svg {
    color: var(--primary-blue);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    border-radius: var(--card-radius);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.phone-btn {
    background: var(--gradient-primary);
    color: white;
}

.phone-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-color);
}

.kakao-btn {
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
}

.kakao-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(254, 229, 0, 0.4);
}

.btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kakao-btn .btn-icon {
    background: rgba(0, 0, 0, 0.1);
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-white);
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* 오른쪽 정렬 추가 */
    gap: 12px;
    z-index: 999;
}

/* Kakao Tooltip */
.kakao-tooltip {
    background: white;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.kakao-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.floating-btn.phone {
    background: var(--gradient-primary);
    color: white;
}

.floating-btn.kakao {
    background: var(--kakao-yellow);
    color: var(--kakao-brown);
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-dragon {
        order: 1;
        flex: 0 0 auto;
    }

    .hero-dragon img {
        max-width: 280px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-features {
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-normal);
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-dragon img {
        max-width: 220px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 150px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .desktop-only {
        display: none;
    }

    .hero-dragon {
        top: 0%;
        left: -30px;
    }

    .hero-dragon img {
        max-width: 100px;
    }

    .hero-buttons .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: auto;
        min-width: 120px;
        justify-content: center;
    }

    .hero-features {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 10px;
    }

    .hero-feature {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }
}