/* ================================
   Design Tokens & Base Styles
================================= */
:root {
    --primary: #0B66FF;
    --primary-dark: #0849CC;
    --accent: #00B4D8;
    --neutral: #F5F7FA;
    --muted: #6b7280;
    --bg: #ffffff;
    --max-width: 1100px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #0b1726;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Navigation
================================= */
.site-nav {
    background: linear-gradient(90deg, rgba(11,102,255,0.06), rgba(0,180,216,0.03));
    border-bottom: 1px solid rgba(11,102,255,0.06);
    backdrop-filter: blur(4px);
}

.brand {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.2px;
}

/* ================================
   Hero Section
================================= */
#hero {
    height: 75vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
@media (max-width: 768px) {
    #hero {
        height: 60vh;
    }
}

@media (max-width: 510px) {
    #hero {
        height: 45vh;
    }
}

/* Background image layers */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* use 'contain' if you want zoomed out */
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

    .hero-bg.active {
        opacity: 1;
    }

    .hero-bg.inactive {
        opacity: 0;
    }

/* Darkening overlay (always present) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), linear-gradient(180deg, rgba(8,73,204,0.6), rgba(11,102,255,0.6));
    z-index: 2; /* sits above images, below text */
}

.hero-inner {
    position: relative;
    z-index: 3; /* keep text above overlay */
    max-width: var(--max-width);
    padding: 2rem;
}


.hero-title {
    font-size: clamp(1.6rem,4.5vw,2.8rem);
    font-weight: 700;
    margin: 0.6rem 0;
    text-shadow: 0 6px 18px rgba(3,10,30,0.35);
}

/* Extra tweak for very small screens */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem; /* override clamp for phones */
    }
}


.hero-sub {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 12px rgba(3,10,30,0.25);
}

.hero-cta {
    margin-top: 4rem; /* default for larger screens */
}

/* Override for mobile */
@media (max-width: 576px) {
    .hero-cta {
        margin-top: 2rem; /* smaller gap on phones */
    }
}

.hero-cta .btn-primary {
    background: linear-gradient(90deg,var(--primary),var(--primary-dark));
    border: none;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(11,102,255,0.18);
}

.hero-cta .btn-outline-light {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta .btn-outline-light:hover {
    border-radius: 999px;
    background-color: rgba(255,255,255,0.85); /* light background */
    color: #0b1726; /* dark text for contrast */
    border-color: rgba(255,255,255,0.35);
}

/* Decorative mock image */
.hero-mock {
    position: absolute;
    right: 4%;
    bottom: -6%;
    width: 48%;
    max-width: 720px;
    opacity: 0.12;
    filter: blur(2px);
    transform: rotate(-3deg);
    pointer-events: none;
}

/* ================================
   Sections
================================= */
section {
    padding: 40px 0;
}

.container-narrow {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* How it works */
/* Step cards (How it Works) */
.steps .step {
    background: linear-gradient( 180deg, rgba(11,102,255,0.10), /* darker blue tint */
    rgba(0,180,216,0.04) /* darker teal tint */
    );
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(6,18,60,0.06);
    border: 1px solid rgba(11,102,255,0.12);
    height: 100%;
}

.step .num {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg,var(--primary),var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* Features */

.feature-card {
    border-radius: 12px;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(11,102,255,0.10), rgba(0,180,216,0.04));
    border: 1px solid rgba(11,102,255,0.12);
    height: 100%;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--neutral);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

/* About */
.founder {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(6,18,60,0.04);
}

    .founder img {
        width: 84px;
        height: 84px;
        border-radius: 10px;
        object-fit: cover;
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* smooth animation */
        position: relative; /* allows z-index to apply */
        z-index: 1;
    }

        .founder img:hover {
            transform: scale(2); /* double size on hover */
            z-index: 10; /* sit above nearby content */
            box-shadow: 0 12px 32px rgba(0,0,0,0.25); /* accent shadow when enlarged */
        }



/* Testimonials */
.testimonial {
    background: linear-gradient( 180deg, rgba(11,102,255,0.10), rgba(0,180,216,0.04) );
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(11,102,255,0.12);
    box-shadow: 0 6px 18px rgba(6,18,60,0.06);
}

/* Contact form */
/*.form-card {
    background: linear-gradient( 180deg, rgba(11,102,255,0.10), rgba(0,180,216,0.04) );
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(11,102,255,0.12);
    box-shadow: 0 8px 30px rgba(3,10,30,0.12);
}*/

/* ================================
   Validation & Alerts
================================= */
.text-danger {
    font-size: 0.9rem;
    font-weight: 500;
    color: #dc3545;
    margin-top: 4px;
    display: block;
    animation: fadeIn 0.4s ease-in;
}

.alert-success {
    background-color: #3C6E91;
    color: #fff;
    border: none;
}

.alert-danger {
    background-color: #C0392B;
    color: #fff;
    border: none;
}

#alert-container .alert {
    animation: slideDown 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================================
   Responsive tweaks
================================= */
@media (max-width:991px) {
    .hero-mock {
        display: none;
    }

    .diagram {
        flex-direction: column;
    }
}

/* ================================
   Deployment partial
================================= */
.diagram {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

    .diagram .box {
        min-width: 220px;
        padding: 1rem;
        border-radius: 10px;
        background: linear-gradient( 180deg, rgba(11,102,255,0.10), rgba(0,180,216,0.04) );
        border: 1px solid rgba(11,102,255,0.12);
        box-shadow: 0 8px 24px rgba(6,18,60,0.06);
        text-align: center;
    }

    .diagram .arrow {
        font-size: 1.6rem;
        color: var(--muted);
    }

    /* Deployment diagram arrows */
    .diagram .arrow {
        font-size: 1.6rem;
        color: var(--muted);
        transition: color 0.25s ease, transform 0.25s ease;
    }

    .diagram .arrow:hover {
        color: var(--primary); /* shift to brand blue */
        transform: scale(1.2); /* subtle grow effect */
    }

/* Shared hover effect for all card types */

.feature-card,
.steps .step,
.testimonial,
.form-card,
.diagram .box {
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover,
.steps .step:hover,
.testimonial:hover,
.form-card:hover,
.diagram .box:hover {
    transform: translateY(-4px); /* subtle lift */
    box-shadow: 0 8px 24px rgba(6,18,60,0.12); /* stronger shadow */
    background: linear-gradient( 180deg, rgba(11,102,255,0.14), /* slightly darker blue tint */
    rgba(0,180,216,0.06) /* slightly darker teal tint */
    );
}

/* Pricing cards hover */
.pricing-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .pricing-card:hover {
        transform: translateY(-4px) scale(1.02); /* lift + subtle scale */
        box-shadow: 0 8px 24px rgba(6,18,60,0.12); /* stronger shadow */
        border-color: var(--primary); /* highlight border */
    }

/* footer */
.footer-dark {
    background: #0b1726; /* black band */
    color: #fff;
    padding: 60px 0;
}

    .footer-dark h3 {
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .footer-dark a {
        color: #fff;
        text-decoration: underline;
    }

/*.form-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(3,10,30,0.18);
    border: 1px solid rgba(11,102,255,0.08);
}*/

.form-card {
    background: linear-gradient(180deg, rgba(11,102,255,0.10), rgba(0,180,216,0.04));
    padding: 1rem 1.5rem; /* top/bottom smaller, left/right same */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(3,10,30,0.18);
    border: 1px solid rgba(11,102,255,0.08);
}

    /* Remove excess space at the top of the form card */
    .form-card .mb-3:first-child {
        margin-top: 0; /* no gap above the first field */
    }

    /* Remove excess space at the bottom of the form card */
    .form-card .mb-3:last-child,
    .form-card button[type="submit"] {
        margin-bottom: 0; /* no gap below the last field or button */
    }


    .form-card input,
    .form-card select,
    .form-card textarea {
        border-radius: 8px;
        border: 1px solid rgba(11,102,255,0.12);
        font-size: 0.95rem;
    }

    .form-card button.btn-primary {
        background: linear-gradient(90deg,var(--primary),var(--primary-dark));
        border: none;
        border-radius: 999px;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(11,102,255,0.18);
    }

.flow-diagram {
    margin-bottom: 2rem; /* ensures space below the diagram */
}

.flow-diagram .badge {
    min-width: 140px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.flow-diagram .border {
    border: 2px solid #007bff; /* subtle brand accent around the engine box */
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

#contact {
    padding-top: 0; /* remove top gap */
    padding-bottom: 0px; /* keep bottom spacing if you want */
}
