/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F9FAFB;
    --bg-light-blue: #EFF6FF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-width: 220px;
    --header-height: 64px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-upgrade {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upgrade:hover {
    background: var(--primary-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-gray);
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 20px 12px;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.2s;
}

.sidebar-item:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.sidebar-item.active {
    background: var(--bg-light-blue);
    color: var(--primary-color);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 40px 60px;
    min-height: calc(100vh - var(--header-height));
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 680px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 48px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* ===== Section Styles ===== */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* ===== What is Section ===== */
.what-is-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.what-is-image {
    display: flex;
    justify-content: center;
}

.what-is-image img {
    max-width: 320px;
    border-radius: var(--radius-lg);
}

.what-is-text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.4;
}

.what-is-text p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===== Benefits Section ===== */
.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.benefits-intro {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-dark);
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.benefits-image {
    display: flex;
    justify-content: center;
}

.benefits-image img {
    max-width: 360px;
}

/* ===== Steps Section ===== */
.steps {
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.step-card {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-icon-1 {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--primary-color);
}

.step-icon-2 {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--success-color);
}

.step-icon-3 {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: var(--warning-color);
}

.step-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== FAQ Section ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
    color: var(--text-gray);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-gray);
}

.modal-switch a {
    color: var(--primary-color);
    font-weight: 500;
}

.modal-switch a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 150;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 13px;
    color: var(--text-gray);
    max-width: 600px;
}

.cookie-banner a {
    color: var(--primary-color);
}

.btn-accept {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-accept:hover {
    background: var(--primary-hover);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 30px 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .what-is-content,
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .what-is-image {
        order: -1;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .benefits-content {
        padding: 24px;
    }
    
    .modal {
        margin: 16px;
        padding: 24px;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
}

/* ===== Placeholder Images ===== */
.what-is-image img,
.benefits-image img {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 16px 24px;
    background: var(--text-dark);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    transform: translateX(120%);
    transition: transform 0.3s;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: #EF4444;
}
