﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1f36;
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
}

.logo {
    margin-right: auto; /* Pushes links to the right */
}

.nav-links {
    display: flex;
    gap: 3rem;
}

    .nav-links a {
        text-decoration: none;
        color: #1a1f36;
        font-weight: 700;
        transition: color 0.2s ease;
    }

        .nav-links a:hover {
            color: #635bff;
        }

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-warning {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #5E5DA3;
    color: white;
    border: none;
}

    .btn-primary:hover {
        background-color: #4b45c6;
    }

.email-row {
    display: flex;
    gap: 10px; /* space between input and button */
    margin-bottom: 1rem;
}

    .email-row input[type="email"],
    .email-row button {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .email-row input[type="email"] {
        flex: 1; /* input takes up remaining space */
    }

    .email-row button {
        white-space: nowrap;
        background-color: #E9363B; /* or your existing .btn-warning styles */
        border: none;
        cursor: pointer;
    }

.btn-warning {
    background-color: #E9363B;
    color: white;
    border: none;
}

    .btn-warning:hover {
        background-color: #D32026;
    }

.btn-secondary {
    background-color: transparent;
    color: #1a1f36;
    border: 1px solid #e6ebf1;
}

    .btn-secondary:hover {
        background-color: #f7fafc;
    }

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: #333;
    width:101vw;
}

    .hero img {
        width: 100%;
        height: auto;
    }

.hero-text {
    position: absolute;
    top: 48%;
    left: 16%;
    transform: translate(-50%, -50%);
    font-size: 5vw;
    font-weight: bold;
    color: #333;
    text-align: left;
    line-height: 1.2;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: #ffffff;
    width:100vw;
}

.features-container {
    max-width: 100vw;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #0a2540;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    width: 320px;
    height: 490px;
    padding: 2rem;
    background-color: #f7fafc;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

    .feature-card img {
        width: 90%;
        height: 70%;
        margin-bottom: 10px;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-card i {
        font-size: 2.5rem;
        color: #635bff;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #0a2540;
    }

    .feature-card p {
        color: #425466;
    }

/* Integration Section */
.integration {
    padding: 6rem 2rem;
    background-color: #f7fafc;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    height: 35vh; /* or any height you want */
}

.integration-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative; /* ✅ required for absolute positioning */
}

    .integration-container img {
        max-height: inherit;
        height: 15vw;
        width: auto;
        display: block;
        border-radius: 8px;
    }

    .integration-container a {
        position: absolute;
        top: 50%; /* center vertically */
        left: 50%; /* center horizontally */
        transform: translate(-50%, -50%); /* center correction */
        font-size: 20px;
        font-weight: bold;
        text-decoration: underline;
        color: white;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 10px 15px;
        border-radius: 6px;
        z-index: 2; /* ✅ make sure it's above the image */
    }

.integration h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0a2540;
}

.code-preview {
    background-color: #1a1f36;
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    overflow-x: auto;
}

    .code-preview pre {
        color: #ffffff;
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 0.9rem;
        line-height: 1.5;
    }

/* Footer */
.footer {
    background-color: #231F20;
    color: #ffffff;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: #a3b1cc;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

    .footer-column a:hover {
        color: #ffffff;
    }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #a3b1cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features, .integration {
        padding: 4rem 1rem;
    }
}
