/* Reset & Common Styles */
:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-900: #312e81;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    --white: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--slate-50);
    color: var(--slate-900);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary-500);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

main {
    flex-grow: 1;
}

/* =========================================
   Hero Section (Video Background)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--slate-900);
}

.hero-bg-video-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #1a1a2e, #2d1b4e);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg-video {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .hero-bg-video {
        max-width: 100%;
        border-radius: 0;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Login Button Container */
.login-container {
    position: absolute;
    top: 1.5rem; /* 6 * 0.25rem */
    right: 1.5rem;
    z-index: 50;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--white);
    padding: 0.625rem 1.5rem; /* py-2.5 px-6 */
    border-radius: 9999px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content (Center) */
.hero-content-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6rem; /* pb-24 */
    z-index: 20;
    padding-left: 1rem;
    padding-right: 1rem;
    
    /* Key fix for clicking issues: Allow clicks to pass through empty space */
    pointer-events: none; 
}

.hero-text-group {
    margin-bottom: 3rem; /* mb-12 */
    text-align: center;
    /* Re-enable pointer events for text if selection is needed */
    pointer-events: auto; 
}

.hero-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    text-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem; /* text-6xl */
    }
}

.hero-subtitle {
    font-size: 1.125rem; /* text-lg */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem; /* text-xl */
    }
}

/* CTA Button */
.btn-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem; /* px-10 py-5 */
    background-color: var(--primary-600);
    color: var(--white);
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.5);
    
    /* Re-enable pointer events for the button */
    pointer-events: auto; 
}

.btn-cta:hover {
    background-color: var(--primary-500);
    box-shadow: 0 0 60px -15px rgba(99, 102, 241, 0.7);
    transform: translateY(-4px);
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(4px);
}

/* =========================================
   Pricing Section
   ========================================= */
.pricing-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: var(--white);
}

@media (min-width: 768px) {
    .pricing-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.container {
    max-width: 72rem; /* 6xl */
    margin: 0 auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .pricing-header {
        margin-bottom: 3rem;
    }
}

.pricing-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .pricing-header h2 {
        font-size: 1.875rem;
    }
}

.pricing-header p {
    font-size: 0.875rem;
    color: var(--slate-500);
}

@media (min-width: 768px) {
    .pricing-header p {
        font-size: 1rem;
    }
}

/* Grid Layout */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        gap: 3rem;
    }
}

/* Pricing Card Base */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    border-radius: 1rem;
    transition: border-color 0.3s;
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 2rem;
        border-radius: 1.5rem;
    }
}

/* Free Card */
.card-free {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.card-free:hover {
    border-color: var(--slate-300);
}

/* Paid Card */
.card-paid {
    position: relative;
    background-color: var(--slate-900);
    color: var(--white);
    border: 1px solid var(--slate-800);
    box-shadow: 0 20px 25px -5px rgba(49, 46, 129, 0.2), 0 8px 10px -6px rgba(49, 46, 129, 0.2);
}

.badge-best {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-500);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-bottom-left-radius: 0.75rem;
    border-top-right-radius: 1rem;
}

@media (min-width: 768px) {
    .badge-best {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        border-top-right-radius: 1.5rem;
    }
}

/* Card Content */
.card-title-group {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .card-title-group {
        margin-bottom: 1.5rem;
    }
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
}

.card-desc {
    font-size: 0.75rem;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .card-desc {
        font-size: 0.875rem;
    }
}

.card-free .card-title { color: var(--slate-900); }
.card-free .card-desc { color: var(--slate-500); }
.card-paid .card-title { color: var(--white); }
.card-paid .card-desc { color: var(--slate-400); }

/* Price */
.price-group {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .price-group {
        margin-bottom: 2rem;
        display: flex;
        align-items: baseline;
        gap: 0.25rem;
    }
}

.price-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-unit {
    font-size: 1.125rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .price-val { font-size: 2.25rem; }
    .price-unit { font-size: 1.25rem; }
}

.card-free .price-val, .card-free .price-unit { color: var(--slate-900); }
.card-paid .price-val, .card-paid .price-unit { color: var(--white); }

.price-period {
    font-size: 0.75rem;
    color: var(--slate-400);
}

@media (min-width: 768px) {
    .price-period { font-size: 0.875rem; }
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .feature-list {
        margin-bottom: 2rem;
        gap: 1rem;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .feature-item {
        gap: 0.75rem;
    }
}

.feature-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

@media (min-width: 768px) {
    .feature-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.feature-text {
    font-size: 0.75rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .feature-text {
        font-size: 1rem;
    }
}

/* Specific Feature Colors */
.card-free .text-active { color: var(--slate-700); }
.card-free .text-inactive { color: var(--slate-400); }
.card-free .icon-check { color: #22c55e; } /* green-500 */
.card-free .icon-x { color: var(--slate-400); }

.card-paid .text-active { color: var(--slate-200); }
.card-paid .icon-check { color: var(--primary-400); }

/* Buttons in Card */
.btn-card {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-top: auto;
}

@media (min-width: 768px) {
    .btn-card {
        padding: 1rem;
        font-size: 1rem;
    }
}

.card-free .btn-card {
    background-color: var(--white);
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
}

.card-free .btn-card:hover {
    background-color: var(--slate-100);
}

.card-paid .btn-card {
    background-color: var(--primary-600);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.card-paid .btn-card:hover {
    background-color: var(--primary-500);
}


/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--slate-950);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid var(--slate-900);
    color: var(--slate-400);
    font-size: 0.6875rem; /* 11px */
}

@media (min-width: 768px) {
    .footer {
        font-size: 0.75rem; /* text-xs */
    }
}

.footer-container {
    max-width: 80rem; /* 7xl */
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 56rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.brand-logo span {
    font-weight: 700;
    font-size: 0.875rem;
}

.brand-info {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    line-height: 1.25;
}

.separator {
    color: var(--slate-800);
}

.copyright {
    color: var(--slate-600);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--slate-400);
}

.footer-links a:hover {
    color: var(--white);
    transition: color 0.2s;
}

.link-separator {
    width: 1px;
    height: 0.75rem;
    background-color: var(--slate-800);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}
