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

/* =========================
   GLOBAL
========================= */
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0b0f14;
    color: #e6edf3;
    line-height: 1.6;
    padding-top: 75px;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   NAV (FLOATING)
========================= */
.nav {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;

    background: rgba(11, 15, 20, 0.85);
    border: 1px solid #1f2933;
    border-radius: 10px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    position: relative;
    /* ✅ REQUIRED FIX */
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    /* ✅ minor improvement */
}

.nav-links a {
    color: #9aa4af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: #4da3ff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
}

/* =========================
   HERO
========================= */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 1px;
    background: #1f2933;
    opacity: 0.6;
    transform: translateX(-50%);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    max-width: 720px;
    margin: auto;
    color: #9aa4af;
    margin-bottom: 35px;
    font-size: 1rem;
}

/* =========================
   BUTTONS (UNIFIED STYLE)
========================= */
.btn {
    padding: 11px 22px;
    margin: 5px;
    display: inline-block;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;

    border: 1px solid #4da3ff;
    color: #4da3ff;
}

.btn:first-child {
    margin-right: 10px;
}

.btn:hover {
    background: rgba(102, 179, 255, 0.2);
    color: #ffffff;
    border-color: #66b3ff;
    transform: translateY(-1px);
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 40px 0;
}

.section.alt {
    background: #0f141a;
    border-top: 1px solid #1a222c;
    border-bottom: 1px solid #1a222c;
}

.section h2 {
    font-size: 1.7rem;
    margin-bottom: 18px;
    position: relative;
}

.section h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #4da3ff;
    margin-top: 10px;
}

.section p {
    color: #9aa4af;
    max-width: 750px;
    margin-bottom: 12px;
}

/* =========================
   GRID
========================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 18px;
}

/* =========================
   CARDS
========================= */
.card {
    background: #121821;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #1f2933;
    transition: all 0.15s ease;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4da3ff;
    opacity: 0;
    transition: opacity 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #2a3a4a;
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.card p {
    font-size: 0.9rem;
}

/* =========================
   PIPELINE
========================= */
.pipeline {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.pipeline div {
    padding: 6px 10px;
    background: #121821;
    border: 1px solid #1f2933;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #c2cbd3;
}

/* =========================
   LIST
========================= */
.list {
    list-style: none;
    margin-top: 15px;
}

.list li {
    margin-bottom: 10px;
    color: #c2cbd3;
    padding-left: 14px;
    position: relative;
}

.list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4da3ff;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    padding: 25px;
    background: #0b0f14;
    border-top: 1px solid #1f2933;
    color: #7b8794;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

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

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

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {

    .nav {
        top: 8px;
        width: 94%;
    }

    /* ✅ FIXED MOBILE MENU */
    .nav-links {
        display: none;
        flex-direction: column;

        position: absolute;
        top: 100%;
        right: 0;

        width: 220px;

        background: #0b0f14;
        border: 1px solid #1f2933;
        border-radius: 8px;

        padding: 10px;
        margin-top: 8px;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 12px;
    }

    .menu-toggle {
        display: block;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 70px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* =========================
   MOBILE NAV — FIXED
   ========================= */

@media (max-width: 768px) {

    /* STOP using transform-based centering on mobile */
    .nav {
        left: 0;
        transform: none;
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    /* Anchor dropdown correctly */
    .nav-inner {
        position: relative;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        flex-direction: column;

        background: #0b0f14;
        border-top: 1px solid rgba(255, 255, 255, 0.05);

        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }
}

/* =========================
   DESKTOP NAV — HARD RESET
   ========================= */

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}