/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Colors - Premium Dark Theme */
    --bg-main: #030014;
    /* Deepest Void */
    --bg-secondary: #0F172A;
    /* Section Contrast */
    --card-bg: rgba(255, 255, 255, 0.03);
    /* Glassmorphism */

    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #d946ef;
    /* Pink */
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --accent-glow: 0 0 20px rgba(139, 92, 246, 0.5);

    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-light: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Noto Sans KR', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 120px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   2. UTILITIES & LAYOUT
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ==========================================================================
   3. COMPONENT: BUTTONS
   ========================================================================== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   4. HEADER & NAV
   ========================================================================== */
header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: #e5e5e5;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

/* CTA in Nav using Button Mixin */
.cta a {
    background: var(--accent-gradient);
    padding: 10px 24px;
    border-radius: 6px;
    color: white;
    opacity: 1;
    font-weight: 700;
}

/* ==========================================================================
   5. MARQUEE BANNER
   ========================================================================== */
.marquee-container {
    background: linear-gradient(90deg, #0F172A 0%, #1e1b4b 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
}

.marquee-text {
    display: inline-block;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 60px;
    opacity: 0.9;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 0;
    /* Align perfectly */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.spline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mouse-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-tagline {
    position: absolute;
    top: 35%;
    /* Position above center (which is 50%) */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    z-index: 3;

    /* Gradient Text Style */
    background: linear-gradient(to right, #fb923c, #ec4899, #8b5cf6);
    /* Orange -> Pink -> Violet */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animation */
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    pointer-events: none;
    /* Let clicks pass specific areas */
    text-align: center;
    padding-top: 80px;
    /* Offset for header */
}

.hero-content>* {
    pointer-events: auto;
}

.main-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero .subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plus-sign {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ==========================================================================
   7. CARDS & GRIDS (Why Us, Services)
   ========================================================================== */
.target-grid,
.service-list,
.advantage-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.target-card,
.service-item,
.adv-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.target-card:hover,
.service-item:hover,
.adv-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
}

.icon,
.service-icon i,
.adv-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Pain Points */
.pain-points {
    background: #0F172A;
    border-radius: 24px;
    padding: 4rem;
    margin-top: 4rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.pain-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2rem 0;
}

.pain-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    color: #e5e5e5;
}

.solution-text strong {
    color: var(--accent-secondary);
}

/* ==========================================================================
   8. PRICING
   ========================================================================== */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    z-index: 2;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    margin-top: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-primary);
    margin-right: 12px;
}

/* ==========================================================================
   9. PROCESS
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    position: relative;
    padding: 20px;
}

.step-num {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   10. INQUIRY FORM
   ========================================================================== */
.inquiry-form {
    max-width: 700px;
    margin: 0 auto;
    background: #0F172A;
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e5e5e5;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.privacy-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
}

.privacy-agreement label {
    font-size: 0.95rem;
    cursor: pointer;
}

/* Disclaimer */
.policy-disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.policy-disclaimer h4 {
    margin-bottom: 1rem;
    color: #e5e5e5;
}

.platform-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2rem;
}

/* ==========================================================================
   11. FOOTER & FLOATING
   ========================================================================== */
footer {
    background: #000;
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
    color: #888;
    font-size: 0.9rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links a {
    margin-left: 20px;
    color: #ccc;
}

.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
}

.kakao-btn {
    background: #FEE500;
    color: #3C1E1E;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    align-self: flex-end;
}

/* ==========================================================================
   12. NEW SECTIONS (FAQ, BLOG, MODAL)
   ========================================================================== */

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.faq-question::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: #0F172A;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    padding: 40px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.modal-body {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    white-space: pre-line;
    /* Handle line breaks */
}

/* ==========================================================================
   12. MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    header {
        padding: 0 10px;
    }

    header nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        margin-left: 10px;
        padding-bottom: 5px;
        /* Hide scrollbar spacing if needed */
    }

    header nav ul {
        display: flex;
        gap: 20px;
        padding-right: 20px;
        white-space: nowrap;
    }

    header nav::-webkit-scrollbar {
        height: 4px;
    }

    header nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }

    .hero-tagline {
        font-size: 1.5rem;
        width: 90%;
    }

    .pricing-card.popular {
        transform: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .inquiry-form {
        padding: 2rem;
    }
}