:root {
    --bg: #05070b;
    --bg-soft: #080c13;
    --card-bg: linear-gradient(145deg, #0d111b, #080b12);

    --accent: #8ea7ff;
    --accent-soft: #6478c8;
    --accent-glow: rgba(110, 135, 255, 0.18);

    --text-main: #f1f4f8;
    --text-soft: #c5ccd6;
    --text-muted: #7d8795;

    --border: rgba(145, 165, 255, 0.16);
    --border-soft: rgba(255, 255, 255, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(78, 101, 190, 0.12),
            transparent 45%
        ),
        var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}


/* =========================================================
   SUBTLE NEURAL GRAIN
========================================================= */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.025;

    z-index: 999;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}


/* =========================================================
   HEADER
========================================================= */

.main-header {
    position: relative;

    width: 100%;
    min-height: 300px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 42px clamp(30px, 6vw, 90px);

    background-image:
        linear-gradient(
            90deg,
            rgba(3, 5, 10, .96),
            rgba(7, 11, 20, .72),
            rgba(3, 5, 10, .92)
        ),
        url(
            "https://adel-euai.github.io/asset-hub/banner/neural-ai-foundation-banner.png"
        );

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;

    border-bottom: 1px solid var(--border-soft);
}


/* Neural atmospheric glow */

.main-header::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(105, 126, 255, .13),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .08),
            rgba(0, 0, 0, .55)
        );

    pointer-events: none;
}


/* Bottom fade */

.main-header::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 70px;

    background:
        linear-gradient(
            transparent,
            var(--bg)
        );

    pointer-events: none;
}


/* =========================================================
   HEADER CONTENT
========================================================= */

.header-content {
    position: relative;

    z-index: 2;

    flex: 1;

    max-width: 900px;
}


/* =========================================================
   HEADER TITLE
========================================================= */
/*
.gradient-text {
    margin: 0;

    display: block;

    white-space: nowrap;

    font-size: clamp(2rem, 3.4vw, 3rem);

    font-weight: 800;

    letter-spacing: -0.045em;

    line-height: 1;

    text-transform: uppercase;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #d9e0ec 50%,
            #879cff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}*/

.gradient-text {
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    white-space: nowrap;
}


/* Accent first letter */

.gradient-text::first-letter {
    color: var(--accent);
}


/* =========================================================
   TITLE UNDERLINE
========================================================= */

.title-underline {
    width: 430px;

    height: 2px;

    margin: 16px 0 22px;

    background:
        linear-gradient(
            90deg,
            #8ea7ff,
            rgba(142, 167, 255, .35),
            transparent
        );

    border-radius: 2px;

    box-shadow:
        0 0 12px rgba(110, 135, 255, .18);
}

/* =========================================================
   SUBTITLE
========================================================= */

.subtitle {
    width: 100%;
    max-width: 850px;

    margin: 0 !important;

    color: var(--text-soft) !important;

    font-size:
        clamp(
            .9rem,
            1.25vw,
            1.08rem
        );

    font-weight: 400;

    letter-spacing: .025em;

    line-height: 1.8;

    text-align: left;

    opacity: 1 !important;

    text-shadow:
        0 3px 20px rgba(0, 0, 0, .65);
}


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

.nav-links {
    position: relative;

    z-index: 2;

    display: flex;

    flex-wrap: wrap;

    gap: 8px 24px;

    margin: 28px 0 0;

}


.nav-links a {
    position: relative;

    color: var(--text-muted) !important;

    text-decoration: none;

    font-size: .7rem;

    font-weight: 600;

    letter-spacing: .12em;

    text-transform: uppercase;

    opacity: 1 !important;

    transition:
        color .25s ease;
}


.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition:
        width .3s ease;
}


.nav-links a:hover {
    color: #ffffff !important;
}


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

/* =========================================================
   LOGOS
========================================================= */

.main-header > .app-logo {
    position: absolute;

    top: 50%;

    width: 78px;
    height: 78px;

    object-fit: contain;

    margin: 0;

    z-index: 3;

    border-radius: 6px;

    opacity: 1 !important;

    filter:
        drop-shadow(
            0 0 14px
            rgba(130, 150, 255, .38)
        );

    transform: translateY(-50%);

    transition:
        transform .3s ease,
        filter .3s ease;
}


/* Neural AI logo */

.main-header > .app-logo:first-of-type {
    right: 42px;
}


/* Adel logo */

.main-header > .app-logo:last-of-type {
    right: 130px;
}


.main-header > .app-logo:hover {
    transform:
        translateY(-50%)
        scale(1.08);

    filter:
        drop-shadow(
            0 0 22px
            rgba(130, 150, 255, .6)
        );
}


/* =========================================================
   PANEL GRID
========================================================= */

.panel-grid-content {
    display: flex;

    gap: 24px;

    width: 100%;

    margin: 0 auto;

    padding:
        45px
        clamp(20px, 5vw, 70px);
}


.panel-grid-content .panel-box:first-child {
    flex: 2.5;
}


.panel-grid-content .panel-box:last-child {
    flex: 1;

    min-width: 300px;
}


/* =========================================================
   PANELS
========================================================= */

.panel-box {
    flex: 1;

    background:
        linear-gradient(
            145deg,
            rgba(16, 21, 32, .96),
            rgba(8, 11, 17, .98)
        );

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    padding:
        24px
        28px
        28px;

    display: flex;

    flex-direction: column;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .22);
}


.panel-box::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(142, 167, 255, .5),
            transparent
        );

    opacity: .7;
}


.panel-box.flex-column {
    justify-content: space-between;
}


.panel-box .cta-wrapper {
    margin: 20px 0 0;
}


/* =========================================================
   PANEL TITLE
========================================================= */

.panel-title {
    margin:
        0
        0
        22px;

    font-size: .85rem;

    letter-spacing: .22em;

    font-weight: 700;

    text-align: left;

    text-transform: uppercase;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #899bce
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   CAROUSEL
========================================================= */

.carousel {
    width: 100%;

    aspect-ratio: 2.3 / 1;

    border-radius: 8px;

    background: #080b11;

    margin: 0 auto;

    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255,255,255,.07);
}


.carousel img {
    width: 100%;
    height: 100%;

    flex-shrink: 0;

    object-fit: cover;
}


.carousel-track {
    display: flex;

    height: 100%;

    transition:
        transform .45s ease;
}


.carousel-track img {
    width: 100%;

    flex-shrink: 0;
}


/* =========================================================
   CAROUSEL BUTTONS
========================================================= */

.nav-btn {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    width: 38px;
    height: 64px;

    background:
        rgba(5, 8, 14, .72);

    color: #ffffff;

    border:
        1px solid
        rgba(255,255,255,.1);

    cursor: pointer;

    font-size: 1.1rem;

    backdrop-filter:
        blur(8px);

    transition:
        background .25s ease,
        border-color .25s ease;
}


.nav-btn:hover {
    background:
        rgba(100, 120, 200, .25);

    border-color:
        rgba(142, 167, 255, .4);
}


.next {
    right: 0;
}

.prev {
    left: 0;
}


/* =========================================================
   FEATURES
========================================================= */

.features-wrapper {
    height: 550px;

    overflow: hidden;

    position: relative;
}


.features-grid {
    height: auto;

    display: flex;

    flex-direction: column;

    gap: 12px;

    animation:
        scrollCards 30s linear infinite;
}


@keyframes scrollCards {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}


.feature-card {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 27, 42, .95),
            rgba(10, 14, 22, .98)
        );

    padding:
        18px
        20px;

    border-radius: 8px;

    border:
        1px solid
        rgba(142, 167, 255, .1);

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}


.feature-card:hover {
    transform:
        translateX(4px);

    border-color:
        rgba(142, 167, 255, .32);

    background:
        linear-gradient(
            145deg,
            rgba(25, 34, 54, .98),
            rgba(10, 14, 22, .98)
        );
}


.feature-icon {
    font-size: 1.4rem;

    margin: 0;

    opacity: .9;
}


.feature-card h3 {
    font-size: .9rem;

    margin: 0;

    color: #dfe5f0;

    font-weight: 700;

    letter-spacing: .02em;
}


.feature-card p {
    font-size: .78rem;

    margin: 0;

    color: #8993a1;

    font-weight: 400;

    line-height: 1.6;
}


/* =========================================================
   CTA
========================================================= */

.cta-wrapper {
    text-align: center;

    margin: 50px 0;
}


.primary-btn {
    position: relative;

    text-decoration: none;

    padding:
        15px
        34px;

    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #aebbe4
        );

    color: #05070b;

    font-weight: 800;

    border:
        1px solid
        rgba(255,255,255,.5);

    border-radius: 6px;

    font-size: .78rem;

    letter-spacing: .12em;

    text-transform: uppercase;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    display: inline-block;

    width: 260px;

    margin:
        35px 0;
}


.primary-btn:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 15px 45px
        rgba(110, 135, 255, .22);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    position: relative;

    padding: 55px 20px;

    background:
        linear-gradient(
            145deg,
            #080c13,
            #0c111a
        );

    width: 100%;

    margin: 30px auto;

    border:
        1px solid
        rgba(255,255,255,.05);
}


.contact-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--accent),
            transparent
        );

    opacity: .45;
}


.contact-container {
    max-width: 1100px;

    margin: 0 auto 20px;

    text-align: center;
}


.contact-header {
    margin-bottom: 35px;
}


.contact-title {
    font-size: 1.8rem;

    margin-bottom: 12px;

    font-weight: 700;

    display: inline-block;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #8e9ed0
        );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}


.contact-text {
    font-size: .9rem;

    color: #929cab;

    max-width: 850px;

    margin: 0 auto;

    line-height: 1.8;
}


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

.contact-methods {
    display: flex;

    justify-content: center;

    gap: 24px;

    flex-wrap: wrap;
}


.contact-card {
    display: flex;

    flex-direction: column;

    padding:
        18px
        28px;

    min-width: 260px;

    border-radius: 8px;

    background:
        rgba(255,255,255,.025);

    border:
        1px solid
        rgba(255,255,255,.07);

    text-decoration: none;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}


.contact-card:hover {
    transform:
        translateY(-5px);

    background:
        rgba(120,140,220,.07);

    border-color:
        rgba(142,167,255,.3);
}


.contact-value {
    font-size: .9rem;

    color: #b8c7f5;

    font-weight: 600;
}


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

.footer {
    background: #05070b;

    padding:
        35px
        20px
        25px;

    font-size: 12px;

    color: #737d8a;

    border-top:
        1px solid
        rgba(255,255,255,.05);
}


.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;
}


.footer-left {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}


.footer-built {
    color: #aeb6c2;

    line-height: 1;

    display: flex;

    align-items: center;

    font-weight: 500;
}


.footer-logo {
    height: 36px;
    width: 36px;

    filter:
        drop-shadow(
            0 0 10px
            rgba(130,150,255,.3)
        );

    border-radius: 4px;

    transition:
        transform .3s ease;

    object-fit: cover;
}


.footer-logo:hover {
    transform:
        scale(1.06);
}


.footer-legal {
    margin-bottom: 20px;

    text-align: center;

    font-weight: 600;
}


.footer-legal a {
    color: #8995a8;

    text-decoration: none;

    margin: 0 10px;

    transition:
        color .25s ease;
}


.footer-legal a:hover {
    color: #ffffff;
}


.footer-right {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 10px;
}


.footer-right:hover .footer-logo {
    transform:
        scale(1.06);
}


.footer-separator {
    color: #3e4652;
}


/* =========================================================
   TRADEMARK
========================================================= */

.tm-mark {
    position: relative;

    top: -8px;

    right: 5px;

    font-size: 15px;

    font-weight: normal;

    color: #aab2bd;

    opacity: .8;
}


/* =========================================================
   LEGACY SITE TITLE SUPPORT
========================================================= */

.site-title {
    margin-bottom: 5px;

    font-size: 2.5rem;

    color: #ffffff;
}


.site-title + .title-underline {
    width: 600px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #393939
        );
}


/* =========================================================
   MOBILE — TABLET
========================================================= */

@media (max-width: 1024px) {

    .panel-grid-content {
        flex-direction: column;

        padding: 30px 20px;
    }

    .panel-grid-content .panel-box:first-child,
    .panel-grid-content .panel-box:last-child {
        flex: 1;

        min-width: 100%;
    }

    .features-wrapper {
        height: auto;
    }

    .features-grid {
        animation: none;
    }

    .features-grid .feature-card:nth-child(n+6) {
        display: none;
    }

    .contact-methods {
        gap: 20px;
    }

    .main-header {
        min-height: 280px;

        flex-direction: row;

        align-items: center;

        justify-content: space-between;

        flex-wrap: wrap;

        padding:
            35px
            25px;
    }

    .header-content {
        width: 100%;

        order: 1;
    }

    .subtitle {
        margin: 0 !important;

        text-align: left;

        font-size: 15px;
    }

    .nav-links {
        width: 100%;

        order: 3;

        justify-content: flex-start;

        margin-top: 22px;
    }

    .title-underline {
        width: 70%;
    }

    .app-logo {
        order: 2;

        width: 58px;
        height: 58px;

        margin:
            18px
            8px
            0
            0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .main-header {
        min-height: auto;

        padding:
            30px
            20px
            35px;
    }

    .gradient-text {
        font-size: 2rem;

        letter-spacing: -.035em;
    }

    .subtitle {
        font-size: 14px;

        line-height: 1.7;
    }

    .nav-links {
        gap:
            10px
            18px;
    }

    .app-logo {
        width: 50px;
        height: 50px;
    }

    .panel-box {
        padding: 20px;
    }

    .feature-card {
        padding: 15px;
    }

    .contact-card {
        min-width: 90%;
    }

    .contact-text {
        max-width: 90%;
    }

    .footer-container {
        flex-direction: column;

        gap: 20px;

        text-align: center;
    }

    .primary-btn {
        width: 100%;

        max-width: 280px;

        font-size: .75rem;

        padding:
            14px
            20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .main-header {
        padding:
            25px
            15px
            30px;
    }

    .gradient-text {
        font-size: 1.55rem;

        padding: 0;
    }

    .title-underline {
        width: 75%;

        margin:
            16px 0
            18px;
    }

    .subtitle {
        font-size: 13px;

        letter-spacing: .01em;
    }

    .nav-links {
        gap:
            9px
            14px;
    }

    .nav-links a {
        font-size: .62rem;
    }

    .app-logo {
        width: 42px;
        height: 42px;
    }

    .panel-title {
        font-size: .75rem;
    }

    .nav-btn {
        width: 32px;
        height: 52px;

        font-size: .9rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}