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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f6f7fb;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 48px;
}

.container-nav {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #0f172a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #0f172a;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-sign-in {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 25px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-sign-in:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-download-nav {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 99px;
    background: #1e293b;
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-download-nav:hover {
    background: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    margin-top: 79px;
    background: linear-gradient(138.331deg, #050a1f 0%, #0f235a 100%);
    padding: 80px 120px 160px;
    border-bottom-left-radius: 410px;
    border-bottom-right-radius: 410px;
    overflow: hidden;
}

.container-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, white, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 18px;
    font-weight: 400;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 32px;
    border-radius: 8px;
    background: linear-gradient(to right, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-icon-download {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 33px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

/* ========================================
   STEPS INTRO
   ======================================== */
.steps-intro {
    padding: 80px 20px;
    text-align: center;
}

.steps-heading {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   DARK FEATURES SECTION
   ======================================== */
.dark-features {
    background: #020617;
    padding: 100px 120px;
    position: relative;
    border-top-left-radius: 390px;
    border-top-right-radius: 390px;
    border-bottom-left-radius: 390px;
    border-bottom-right-radius: 390px;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(29, 78, 216, 0.15), transparent 50%);
    pointer-events: none;
}

.container-features {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.feature-image-col {
    flex: 1;
    min-width: 0;
}

.installer-interface {
    aspect-ratio: 560 / 320;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
}

.interface-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-steps-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-badge {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: white;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step-text {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    line-height: 1.5;
}

/* ========================================
   CARDS SECTION
   ======================================== */
.cards-section {
    background: #f8fafc;
    padding: 80px 120px 120px;
}

.container-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-badge {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #1e3a8a;
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.5;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 100px 120px;
    background: white;
}

.container-faq {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f1f5f9;
}

.faq-item summary {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 16px;
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #0f172a;
    padding: 40px 120px;
    color: #94a3b8;
}

.container-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.github-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .navbar {
        padding: 20px 32px;
    }

    .hero-section {
        padding: 60px 60px 120px;
    }

    .dark-features {
        padding: 80px 60px;
    }

    .cards-section {
        padding: 60px 60px 80px;
    }

    .faq-section {
        padding: 80px 60px;
    }

    .site-footer {
        padding: 40px 60px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .container-hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-heading {
        font-size: 42px;
    }

    .hero-text {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 400px;
    }

    .container-features {
        flex-direction: column;
        gap: 60px;
    }

    .hero-section {
        border-bottom-left-radius: 200px;
        border-bottom-right-radius: 200px;
    }

    .dark-features {
        border-radius: 200px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 16px 24px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-actions {
        gap: 12px;
    }

    .btn-sign-in,
    .btn-download-nav {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-section {
        padding: 40px 24px 80px;
        border-bottom-left-radius: 100px;
        border-bottom-right-radius: 100px;
    }

    .hero-heading {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-image {
        max-width: 300px;
    }

    .steps-intro {
        padding: 60px 24px;
    }

    .steps-heading {
        font-size: 28px;
    }

    .dark-features {
        padding: 60px 24px;
        border-radius: 100px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-text {
        font-size: 14px;
    }

    .cards-section {
        padding: 60px 24px;
    }

    .container-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-section {
        padding: 60px 24px;
    }

    .section-title {
        font-size: 28px;
    }

    .site-footer {
        padding: 32px 24px;
    }

    .container-footer {
        flex-direction: column;
        text-align: center;
    }
}