:root {
    --primary-color: #0a488a;
    --primary-dark: #083a70;
    --secondary-color: #092a44;
    --accent-color: #0891b2;
    --accent-light: #06b6d4;
    --text-color: #092a44;
    --light-bg: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
    --dark-bg: #092a44;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links a:hover:after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 36px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(10, 72, 138, 0.2);
    height: auto;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(10, 72, 138, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 72, 138, 0.1) 0%, transparent 70%);
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 8px;
    background-color: var(--accent-light);
    z-index: -1;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease 0.3s;
}

.hero h1 span {
    animation: reveal-underline 0.1s forwards;
}

@keyframes reveal-underline {
    to {
        background-position: 0 0;
    }
}

.hero h1 span::after {
    transform: scaleX(1);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.btn {
    padding: 16px 36px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(10, 72, 138, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 72, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(10, 72, 138, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-section {
    background: var(--white);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 1px solid var(--light-gray);
}

.download-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(10, 72, 138, 0.1);
    background: var(--white);
}

.download-button {
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(8, 145, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.download-button .spinner {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: var(--white);
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.download-button.loading .spinner {
    display: block;
}

.download-button.loading .btn-text {
    display: none;
}


.download-button:hover {
    background: #0e7490;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(8, 145, 178, 0.4);
}

/* Features Section */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 15px rgba(10, 72, 138, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Advanced Features */
.advanced-features {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-right: 20px;
    margin-top: 5px;
    min-width: 30px;
}

.feature-item-content h4 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-item-content p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* How It Works */
.how-it-works {
    background: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 0 0 30%;
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 8px 15px rgba(10, 72, 138, 0.2);
}

.step h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

/* Installation */
.installation {
    background: var(--dark-bg);
    color: var(--white);
}

.installation .section-title,
.installation .section-subtitle {
    color: var(--white);
}

.installation .section-subtitle {
    opacity: 0.8;
}

.installation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.installation-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.installation-step:last-child {
    margin-bottom: 0;
}

.installation-step-number {
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 5px;
}

.installation-step-content h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.installation-step-content p {
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.7;
}

.code-block-wrapper {
    position: relative;
    margin-top: 15px;
}

.copy-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: var(--border-radius);
    font-family: monospace;
    font-size: 1.1rem;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: 45px;
}

.code-block pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--white);
}

/* Technical Specifications */
.specifications {
    background: var(--white);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.spec-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

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

.spec-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.spec-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.spec-card p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-text:before {
    content: """;
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -15px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(10, 72, 138, 0.2);
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info p {
    color: var(--gray);
    font-size: 1rem;
}

/* FAQ */
.faq {
    background: var(--white);
}

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 25px;
    background: var(--light-bg);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: #e0f2fe;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--white);
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.faq-answer.open {
    padding: 25px;
    max-height: 500px;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 70px 0 40px;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.footer-column h4 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-size: 1.3rem;
    color: var(--white);
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.footer-column p {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 1rem;
}

/* Success Message */
.success-message {
    display: none;
    background: var(--success);
    color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.success-message.error {
    background: var(--error);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delay for grid items */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.features-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.features-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }


/* Responsive */
@media (max-width: 992px) {
    .step {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    header {
        height: 70px;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    
    nav {
        position: static;
    }
    
    .logo img {
        height: 40px;
    }

    nav .cta-button {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
    }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero {
        padding: 160px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .download-section {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }
    
    .step:last-child {
        margin-bottom: 0;
    }
    
    .installation-step {
        flex-direction: column;
    }
    
    .installation-step-number {
        margin-bottom: 15px;
    }
    
    .nav-links li {
        margin-left: 0;
    }
    
    .code-block {
        font-size: 0.9rem;
        padding: 15px;
        padding-top: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .download-section {
        padding: 25px 15px;
    }
    
    .download-section h3 {
        font-size: 1.5rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 12px;
        padding-top: 45px;
    }
}