
/* =========================================================
   AILABS — GLOBAL STYLES
   Practical AI Software for Real-World Problems
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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


/* =========================================================
   BASE
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #f4f7fb;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

p {
    line-height: 1.6;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

header {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    border-bottom: 1px solid #17253a;
    background: #07111f;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span {
    color: #5eead4;
}

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

nav a,
.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover,
.nav-links a:hover {
    color: #5eead4;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 90px 8%;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.badge,
.eyebrow {
    display: inline-block;
    color: #5eead4;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.badge {
    margin-bottom: 25px;
    padding: 8px 14px;
    border: 1px solid #29405e;
    border-radius: 50px;
}

.hero h1 {
    max-width: 950px;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 1.03;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero p,
.hero-text {
    max-width: 750px;
    font-size: 20px;
    color: #aebed2;
    margin-bottom: 35px;
}


/* =========================================================
   HERO / BUTTON ACTIONS
   ========================================================= */

.hero-actions,
.hero-buttons,
.button-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.button-container {
    margin-top: 25px;
}

.button {
    display: inline-block;
    padding: 13px 21px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #33465e;
    color: #ffffff;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary,
.primary {
    background: #5eead4;
    border-color: #5eead4;
    color: #061018;
}

.button.primary:hover,
.primary:hover {
    background: #7af1df;
    color: #061018;
}

.button.secondary,
.secondary {
    border: 1px solid #33465e;
    color: #ffffff;
    background: transparent;
}

.button.secondary:hover,
.secondary:hover {
    border-color: #5eead4;
    color: #5eead4;
}


/* =========================================================
   EXPLORE PRODUCTS BUTTON
   ========================================================= */

.explore-products-button {
    margin-top: 50px;
    justify-content: center;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section,
.products-preview,
.assistant-section {
    padding: 100px 8%;
}

.section-alt {
    background: #091625;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-heading span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #5eead4;
}

.section-heading h2,
.section-content h2 {
    margin: 12px 0 20px;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading p,
.section-content > p {
    color: #94a8bf;
}

.section-content > p {
    max-width: 850px;
    margin-bottom: 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    padding: 30px;
    background: #0c1828;
    border: 1px solid #1b2b42;
    border-radius: 16px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #2e4969;
    background: #0e1c2e;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.card p {
    color: #91a2b8;
    margin-bottom: 20px;
}

.card .button {
    margin-top: 5px;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #0c1828;
    border: 1px solid #1b2b42;
    border-radius: 16px;
    min-height: 100%;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #2e4969;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.product-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 12px;
    line-height: 1.3;
    font-size: 21px;
}

.product-card p {
    color: #91a2b8;
    margin-bottom: 16px;
}

.product-card p strong {
    color: #cbd5e1;
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
}

.product-actions a {
    color: #5eead4;
    text-decoration: none;
    font-weight: 600;
}

.product-actions a:hover {
    color: #ffffff;
}

.product-actions .demo-link {
    color: #ffffff;
    background: #6c63ff;
    padding: 10px 16px;
    border-radius: 8px;
}

.product-actions .demo-link:hover {
    color: #ffffff;
    background: #817aff;
    transform: translateY(-2px);
}


/* =========================================================
   AI ASSISTANT
   ========================================================= */

.assistant-section {
    background: #07111f;
}

.assistant-box {
    max-width: 850px;
    margin: 0 auto;
    background: #0c1828;
    border: 1px solid #1b2b42;
    border-radius: 18px;
    padding: 25px;
}

.assistant-message {
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.7;
}

.assistant-input {
    display: flex;
    gap: 10px;
}

.assistant-input input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #2a3b53;
    background: #081321;
    color: #ffffff;
    outline: none;
}

.assistant-input input::placeholder {
    color: #71839a;
}

.assistant-input input:focus {
    border-color: #5eead4;
}

.assistant-input button {
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    background: #5eead4;
    color: #061018;
    font-weight: 600;
    cursor: pointer;
}

.assistant-input button:hover {
    background: #7af1df;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 40px 8%;
    border-top: 1px solid #17253a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #8193aa;
    background: #07111f;
}

footer p {
    margin: 0;
}

footer a {
    color: #5eead4;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 20px 6%;
    }

    .hero {
        padding: 80px 6%;
        min-height: 560px;
    }

    .section,
    .products-preview,
    .assistant-section {
        padding: 80px 6%;
    }

    .hero h1 {
        font-size: clamp(44px, 8vw, 68px);
    }

    .cards {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        gap: 18px;
        padding: 20px 5%;
    }

    nav,
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a,
    .nav-links a {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 75px 5%;
    }

    .hero h1 {
        font-size: 46px;
        letter-spacing: -1.5px;
    }

    .hero p,
    .hero-text {
        font-size: 17px;
    }

    .section,
    .products-preview,
    .assistant-section {
        padding: 70px 5%;
    }

    .section-heading h2,
    .section-content h2 {
        font-size: 34px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 25px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }

    .hero-actions,
    .hero-buttons,
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-buttons .button,
    .button-container .button {
        text-align: center;
        width: 100%;
    }

    .assistant-input {
        flex-direction: column;
    }

    .assistant-input button {
        width: 100%;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 5%;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .logo {
        font-size: 22px;
    }

    nav,
    .nav-links {
        gap: 12px;
    }

    nav a,
    .nav-links a {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 39px;
    }

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

    .section-heading h2,
    .section-content h2 {
        font-size: 30px;
    }

    .product-card {
        padding: 22px;
    }

}
