:root {
    --primary-color: #0f172a;
    --secondary-color: #fbbf24;
    --accent-color: #3b82f6;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --glass-bg: rgba(255, 255, 255, .9);
    --glass-border: rgba(255, 255, 255, .2);
    --transition-speed: .3s
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Noto Sans KR, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f1f5f9;
    overflow-x: hidden
}

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

.hidden {
    display: none !important
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px #3b82f666
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #3b82f699
}

.large-cta {
    font-size: 1.6rem;
    padding: 22px 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 30px #2563eb80;
    animation: pulse-blue 2s infinite;
    letter-spacing: .5px
}

@keyframes pulse-blue {
    0% {
        transform: scale(.95);
        box-shadow: 0 0 #2563ebb3
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px #2563eb00
    }

    to {
        transform: scale(.95);
        box-shadow: 0 0 #2563eb00
    }
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed)
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fffffff2;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px #0000000d;
    padding: 15px 0
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -.5px;
    z-index: 1001
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all .3s
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-weight: 500;
    transition: color var(--transition-speed)
}

.nav a:hover {
    color: var(--accent-color)
}

a {
    text-decoration: none !important
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url(../images/hero.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#0f172ab3, #0f172a66)
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3)
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: .9
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .8s forwards
}

.delay-1 {
    animation-delay: .2s
}

.delay-2 {
    animation-delay: .4s
}

.delay-3 {
    animation-delay: .6s
}

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

.features {
    padding: 100px 0;
    background: #fff
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-color)
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch
}

.why-item {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 4px 6px #0000000d;
    transition: transform .3s;
    height: 100%
}

.why-us {
    padding: 100px 0;
    background: #f8fafc
}

.why-icon {
    font-size: 2.5rem;
    background: #eff6ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--accent-color)
}

.why-text h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700
}

.why-text p {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.5
}

.faq {
    padding: 100px 0;
    background: #fff
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 5px #00000008;
    overflow: hidden;
    transition: all .3s ease
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #0000000f;
    border-color: var(--accent-color)
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: color .3s
}

.faq-question:hover {
    color: var(--accent-color)
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform .3s;
    color: var(--accent-color);
    background: #eff6ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    background: var(--accent-color);
    color: #fff
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
    background: #f8fafc
}

.faq-answer p {
    padding: 20px 25px 25px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid #f1f5f9
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch
}

.feature-card {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: #f8fafc;
    transition: transform var(--transition-speed)
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px #0000000d
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color)
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem
}

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px #fbbf2480;
    z-index: 900;
    transition: transform var(--transition-speed);
    animation: bounce 2s infinite
}

.floating-btn:hover {
    transform: scale(1.05)
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    to {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-10px)
    }

    60% {
        transform: translateY(-5px)
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px)
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px #0003;
    z-index: 2001;
    animation: modalSlideIn .3s ease-out
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8
}

.modal-header h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 30px
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width .3s ease
}

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto
}

.option-wrapper {
    width: 100%;
}

.question-subtext {
    font-size: .95rem;
    color: #64748b;
    margin-bottom: 25px;
    text-align: center;
    margin-top: -15px
}

.option-btn {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 60px;
    color: #334155;
    font-weight: 500
}

.option-btn:hover {
    border-color: var(--accent-color);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px #0000000d
}

.option-btn.selected {
    border-color: var(--accent-color);
    background: #eff6ff;
    color: var(--accent-color);
    font-weight: 600
}

.checkbox-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s
}

.option-btn.selected .checkbox-icon {
    background: var(--accent-color);
    border-color: var(--accent-color)
}

.option-btn.selected .checkbox-icon:after {
    content: "✓";
    color: #fff;
    font-size: 16px
}

.direct-input-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 60px;
    align-items: center;
    gap: 10px
}

.direct-input-wrapper.active {
    display: flex;
    animation: fadeIn .2s
}

.direct-input {
    flex: 1;
    padding: 0 15px;
    height: 46px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all .2s
}

.direct-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px #3b82f61a
}

.direct-input-wrapper .next-btn {
    margin-top: 0;
    width: auto;
    height: 46px;
    padding: 0 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px)
    }

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

.input-group {
    margin-bottom: 20px;
    text-align: left
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark)
}

.input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color .3s;
    font-family: inherit
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color)
}

.next-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s
}

.next-btn:hover {
    background: var(--accent-color)
}

.next-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed
}

.extra-input {
    display: none;
    width: 100%;
    max-width: 300px;
    height: 46px;
    margin-top: 8px;
    padding: 0 15px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all .2s;
    font-family: inherit;
    box-sizing: border-box;
}

.extra-input.show {
    display: block;
    animation: fadeIn .2s;
}

.extra-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.result-container {
    text-align: center
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block
}

.result-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px
}

.result-desc {
    color: #64748b;
    margin-bottom: 30px
}

.contact-form-container {
    text-align: left;
    padding: 10px
}

.contact-form-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--primary-color)
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: .9rem;
    color: #64748b
}

.privacy-check input {
    width: 18px;
    height: 18px
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9
}

textarea.input-field {
    resize: vertical;
    min-height: 100px
}

#close-modal-btn {
    margin-left: auto;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b
}

#close-modal-btn:hover {
    background: #e2e8f0;
    color: #475569
}

#prev-btn {
    margin-right: auto
}

/* =========================================
   Responsive & Fixes
   ========================================= */

/* 1. Logo Fix: Responsive Font Size */
.logo {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    white-space: nowrap;
}

/* 2. Menu Fix: Trigger Mobile Menu Earlier (Tablet Support) */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translate(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        transform: translate(0);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav a {
        margin-left: 0;
        font-size: 1.5rem;
    }
}
