/* ===================================================== */
/* SITE COLOR PALETTE */
/* ===================================================== */

:root {

        /* backgrounds */
        --bg-main: #0b0f14;
        --bg-deep: #08131c;
        --bg-panel: #111823;
        --bg-card: #141c27;

        /* borders */
        --border-subtle: #243142;
        --border-card: #273243;
        --border-light: #e1e6ed;

        /* text */
        --text-main: #ffffff;
        --text-primary: #e6eef8;
        --text-secondary: #c7d0da;
        --text-tertiary: #b9c6d6;
        --text-muted: #9aa7b5;

        /* light-mode text (header/nav) */
        --text-dark: #1b2a3a;

        /* brand */
        --accent: #2a7de1;
        --accent-soft: #7fc8ff;
        --metal-blue-dark: #3f5f78;
        --metal-blue: #6f8da7;
        --metal-blue-light: #c6def2;
        --metal-blue-bright: #eef8ff;
        --metal-gradient: linear-gradient(100deg, #3f5f78 0%, #89a7c0 36%, #d5e9fa 52%, #55758f 78%, #b4cee3 100%);
        --metal-gradient-bright: linear-gradient(100deg, #79a8cf 0%, #dff1ff 44%, #ffffff 55%, #8fc4ed 100%);

}

/* ===================================================== */
/* GENERAL PAGE STYLING */
/* ===================================================== */

body {
        font-family: Arial, Helvetica, sans-serif;
        margin: 0;
        padding-top: 0;
        background: var(--bg-main);
        color: var(--text-primary);
        line-height: 1.6;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
}

main {
        flex: 1;
}

.status-page {
        width: min(720px, calc(100% - 40px));
        margin: 90px auto;
        text-align: center;
}

.status-page h1 {
        color: var(--text-main);
        margin-bottom: 12px;
}

.status-page p {
        color: var(--text-secondary);
        margin-bottom: 28px;
}

.button-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 18px;
        border: 1px solid rgba(198, 222, 242, .36);
        border-radius: 8px;
        color: var(--text-main);
        text-decoration: none;
        background: rgba(42, 125, 225, .18);
}

.button-primary:hover {
        border-color: rgba(238, 248, 255, .66);
        background: rgba(42, 125, 225, .28);
}


/* ===================================================== */
/* MAIN SITE HEADER (homepage etc) */
/* ===================================================== */

header {
        background: white;
        padding: 40px 10%;
        text-align: center;
        border-bottom: 1px solid #e5e5e5;
        position: relative;
}

.logo {
        max-width: 530px;
        margin-bottom: 10px;
        width: min(100%, 530px);
        height: auto;
}

.home-header-inner {
        position: relative;
}

.brand-link {
        display: inline-flex;
}

nav {
        display: flex;
        justify-content: center;
        gap: 40px;
        align-items: center;
        flex-wrap: wrap;
}

nav a {
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
}

nav a:hover {
        color: var(--accent);
}

.dropdown {
        position: relative;
}

.dropdown:hover::after,
.dropdown:focus-within::after {
        content: "";
        position: absolute;
        left: -18px;
        right: -18px;
        top: 100%;
        height: 14px;
        z-index: 1999;
}


/* ===================================================== */
/* DROPDOWN */
/* ===================================================== */

.dropdown-content {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);

    background: rgba(21, 28, 38, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;

    min-width: 200px;
    padding: 6px 0;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45),
        0 0 10px rgba(127,200,255,0.08);

    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.98);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0s linear 0.25s;  /* delay hiding */

    visibility: hidden;
    pointer-events: none;
    z-index: 2000;
}

.dropdown-content a {
    color: var(--metal-blue-light);
    padding: 12px 18px;
    display: block;

    font-size: 15px;
    text-align: left;
    background-image: var(--metal-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 14px rgba(198, 222, 242, .16);
    transition: background 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.06);
    background-image: var(--metal-gradient-bright);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
            0 0 12px rgba(238, 248, 255, .34),
            0 0 22px rgba(127, 200, 255, .24);
    box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.04);
}

/* SHOW STATE */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);

    visibility: visible;
    transition-delay: 0s;   /* show immediately */

    pointer-events: auto;
}

.header-actions {
        display: flex;
        gap: 14px;
        align-items: center;
}

.home-header-inner .header-actions {
        position: absolute;
        top: 0;
        right: 0;
}

.action-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-dark);
        text-decoration: none;
}

.action-link:hover {
        color: var(--accent);
}

.action-icon {
        height: 26px;
        width: 26px;
        opacity: .85;
        cursor: pointer;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2;
}

.action-link:hover .action-icon,
.action-icon:hover {
        opacity: 1;
}

.cart-count {
        position: absolute;
        right: -8px;
        top: -8px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--accent);
        color: white;
        font-size: 11px;
        line-height: 17px;
        font-weight: 700;
        text-align: center;
        box-sizing: border-box;
}



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

.hero {
        position: relative;
        width: 100%;
        height: 520px;

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

        text-align: center;
        background: #0b0f14;
        color: white;

        overflow: hidden;
        margin-bottom: 80px;
}

.hero-content {
        position: relative;
        z-index: 2;
        max-width: 700px;
}

.hero h1 {
        font-size: 42px;
        margin-bottom: 20px;
}

.hero p {
        font-size: 20px;
        color: var(--text-secondary);
}

#vision-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
}


/* ===================================================== */
/* TECH PRODUCT PAGES */
/* ===================================================== */

.tech-layout {
        background: var(--bg-main);
        color: var(--text-primary);
}

.tech-layout .hero {
        display: none;
}


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

.tech-layout .site-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;

        align-items: start;

        padding: 50px 36px 10px 36px;

        background: white;

        position: sticky;
        top: 0;
        z-index: 1000;

        box-shadow: 0 2px 6px rgba(0, 0, 0, .06);

        border-bottom: none;
}



/* TE icon */
.tech-layout .header-logo {
        height: 140px;
        width: auto;
        align-self: start;
        margin-top: -25px;
}



/* product banner */
.tech-layout .header-product {
        grid-column: 2;
        grid-row: 1;

        display: flex;
        justify-content: center;
        align-items: flex-start;

        margin-top: 0px;
        margin-bottom: 60px;
}

.tech-layout .header-product img {
        height: 250px;
        width: auto;

        filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .18));
}



/* nav */
.tech-layout .header-nav {
        grid-column: 1 / span 3;
        grid-row: 2;

        display: flex;
        justify-content: center;
        gap: 42px;

        margin-top: 2px;

        font-size: 16px;
}

.tech-layout .header-nav a {
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 600;
        white-space: nowrap;
}

.tech-layout .header-nav a:hover {
        color: var(--accent);
}



/* user icons */
.tech-layout .header-actions {
        grid-column: 3;
        grid-row: 1;

        display: flex;
        gap: 20px;

        align-items: flex-start;
        margin-top: 0px;
}




/* ===================================================== */
/* PRODUCT CONTENT */
/* ===================================================== */

.product-content {
        width: min(1100px, calc(100% - 40px));
        margin: 0 auto;

        background: transparent;
        color: #d6dee8;

        padding: 1px 80px 50px 60px;
}

.product-content h2 {
        margin-top: 57px;
        margin-bottom: 18px;
        color: #ffffff;
}

.tech-layout .feature p {
        color: var(--text-tertiary);
}

.two-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin-top: 40px;
        align-items: center;
}

.two-column img {
        max-width: 100%;
}

.overview-tagline {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 10px;
}


/* ===================================================== */
/* KEY CAPABILITIES PLAQUES */
/* ===================================================== */
.features {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        margin-top: 7px;
}

.feature {
        background: var(--bg-panel);
        padding: 26px 28px;
        border-radius: 10px;
        border: 1px solid var(--border-subtle);
        max-width: 420px;
        transition: transform .18s ease, box-shadow .18s ease;
}

.feature:hover {
        transform: translateY(-4px);
        box-shadow:
                0 12px 24px rgba(0, 0, 0, .45),
                0 0 10px rgba(127, 200, 255, .18);
}

.feature h3 {
        color: var(--accent-soft);
        margin-top: 0;
        margin-bottom: 10px;
}

.feature p {
        color: var(--text-secondary);
}


/* ===================================================== */
/* PRODUCT VARIANTS */
/* ===================================================== */

.product-variants {
        width: 75%;
        margin: 35px auto;
        text-align: center;
}

.product-variants h2 {
        margin-bottom: 7px;
        color: var(--text-main);
}

.variant-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 40px;
        margin-top: 12px;
}

.variant-card {
        background: var(--bg-card);
        border: 1px solid var(--border-card);
        border-radius: 10px;
        padding: 35px;

        color: var(--text-secondary);
}

.variant-card h3 {
        font-size: 22px;
        font-weight: 700;

        color: var(--accent-soft);

        margin-bottom: 12px;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 6px;
}

.variant-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}

.price {
        font-size: 26px;
        font-weight: 700;
        margin: 20px 0;
        color: var(--text-main);
}

.add-cart {
        background: var(--accent);
        border: none;
        color: white;
        padding: 12px 22px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 700;
        transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

.add-cart:hover {
        background: #1f66be;
        transform: translateY(-1px);
}

.add-cart:disabled {
        cursor: default;
        opacity: .72;
        transform: none;
}


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

footer {
        text-align: center;
        padding: 8px 0;
        font-size: 12px;
        background: var(--bg-deep);
        color: var(--text-muted);
        margin-top: 80px;
}

.ocelliii-diagram {
    width: 42%;
    height: auto;
}

/* ===================================================== */
/* UTILITY AND SHOP PAGES */
/* ===================================================== */

.utility-page {
        width: min(960px, calc(100% - 40px));
        margin: 58px auto 20px;
}

.utility-page h1 {
        color: var(--text-main);
        font-size: 34px;
        line-height: 1.15;
        margin: 0 0 12px;
}

.utility-page > p {
        color: var(--text-secondary);
        margin-bottom: 30px;
}

.utility-panel {
        background: var(--bg-panel);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 28px;
}

.form-grid {
        display: grid;
        gap: 16px;
}

.form-grid label,
.cart-row label {
        display: grid;
        gap: 6px;
        color: var(--text-secondary);
        font-weight: 700;
}

input {
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        background: #0f1722;
        color: var(--text-main);
        padding: 11px 12px;
        font: inherit;
}

.status-text,
.empty-state {
        color: var(--text-muted);
}

.shop-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 28px;
}

.shop-card {
        background: var(--bg-card);
        border: 1px solid var(--border-card);
        border-radius: 8px;
        padding: 24px;
        color: var(--text-secondary);
}

.shop-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: contain;
        margin-bottom: 16px;
        background: #0f1722;
        border-radius: 6px;
}

.shop-card h2,
.cart-row h3 {
        color: var(--text-main);
        margin: 0 0 8px;
}

.cart-row {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        align-items: center;
        padding: 18px 0;
        border-bottom: 1px solid var(--border-subtle);
}

.cart-row input {
        width: 76px;
}

.cart-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-top: 28px;
}

.cart-total {
        color: var(--text-main);
        font-size: 24px;
        font-weight: 700;
}

@media (max-width: 760px) {
        header {
                padding: 28px 20px;
        }

        .home-header-inner .header-actions {
                position: static;
                justify-content: center;
                margin-bottom: 14px;
        }

        nav,
        .tech-layout .header-nav {
                gap: 18px;
        }

        .tech-layout .site-header {
                grid-template-columns: 1fr auto;
                padding: 24px 20px 12px;
        }

        .tech-layout .header-product {
                grid-column: 1 / span 2;
                grid-row: 2;
                margin-bottom: 24px;
        }

        .tech-layout .header-product img {
                max-width: 82vw;
                height: auto;
                max-height: 180px;
        }

        .tech-layout .header-nav {
                grid-column: 1 / span 2;
                grid-row: 3;
        }

        .two-column,
        .cart-row,
        .cart-summary {
                grid-template-columns: 1fr;
                display: grid;
        }

        .product-content {
                padding: 1px 0 40px;
        }
}
