/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4361ee;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray-dark: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== TYPOGRAPHY ==================== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1, h2, h3, .nav-brand {
    font-family: 'Poppins', sans-serif;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-brand i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.nav-brand .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Illustration */
.hero-image {
    position: relative;
    min-height: 400px;
}

.hero-illustration {
    font-size: 20rem;
    color: rgba(67, 97, 238, 0.1);
    text-align: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: 35%;
    background: var(--primary);
    color: white;
    animation-delay: 0.5s;
}

.card-3 {
    top: 20%;
    right: 0;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 80px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--gray);
    font-size: 0.875rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gray-light);
}

/* ==================== UPLOAD SECTION ==================== */
.upload-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
}

.upload-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.upload-header {
    background: var(--gradient);
    color: white;
    padding: 2rem;
    text-align: center;
}

.upload-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-header h2 {
    margin-bottom: 0.5rem;
}

.upload-header p {
    opacity: 0.9;
}

.upload-header-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.85;
}

.upload-header-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-area {
    margin: 2rem;
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.upload-placeholder p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.file-hint {
    font-size: 0.75rem;
    color: var(--gray-light);
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.upload-preview i {
    font-size: 2rem;
    color: var(--danger);
}

.change-btn {
    background: var(--gray-light);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}

.change-btn:hover {
    background: var(--gray);
    color: white;
}

/* ==================== RESOLUTION OPTIONS ==================== */
.form-group {
    margin: 0 2rem 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group label i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.resolution-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.resolution-option {
    position: relative;
    cursor: pointer;
}

.resolution-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.resolution-card {
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.resolution-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.resolution-card strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.resolution-card small {
    font-size: 0.7rem;
    color: var(--gray);
}

.resolution-option input:checked + .resolution-card {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.resolution-option:hover .resolution-card {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.resolution-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--gray);
    text-align: center;
}

/* ==================== PASSWORD WRAPPER ==================== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    flex: 1;
    padding-right: 2.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.btn-submit {
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-footer {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--light);
    font-size: 0.875rem;
    color: var(--gray);
}

.upload-footer .footer-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.upload-footer .footer-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.upload-footer i {
    color: var(--success);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 80px 0;
    background: var(--light);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial-card i.fa-quote-left {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(67, 97, 238, 0.05);
}

.faq-question i:first-child {
    color: var(--primary);
    font-size: 1.25rem;
}

.faq-question h3 {
    flex: 1;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.faq-toggle {
    color: var(--gray);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand span span {
    color: var(--primary);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--gray-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact i {
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gray-light);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .steps-grid {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .resolution-options {
        grid-template-columns: 1fr;
    }
    
    .upload-header-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .faq-question {
        flex-wrap: wrap;
    }
    
    .faq-question h3 {
        width: calc(100% - 40px);
    }
    
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .upload-area {
        margin: 1rem;
    }
    
    .form-group {
        margin: 0 1rem 1.5rem;
    }
    
    .btn-submit {
        width: calc(100% - 2rem);
        margin: 0 1rem 1.5rem;
    }
}
