:root {
    --bg: #050505;
    --green: #00ff9c;
    --border: rgba(0, 255, 156, 0.2);
}

* {
    box-sizing: border-box;
    transition: width 0.35s ease,
        max-width 0.35s ease,
        margin 0.35s ease,
        margin-left 0.35s ease,
        margin-right 0.35s ease,
        padding 0.35s ease,
        gap 0.35s ease,
        font-size 0.35s ease,
        opacity 0.35s ease;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--green);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(0.85rem, 1.2vw, 1rem)
}

body.resizing * {
    transition: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0,0,0,1);
    border-bottom: 1px solid var(--border);
}

.logo {
    letter-spacing: 2px;
}

.nav-status {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* LIVE BANNER */
.live-banner {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-color: rgba(0,0,0,1);
    padding: 6px 0;
    position: fixed;
    z-index: 9;
}

#ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 450s linear infinite;
    font-size: 0.85rem;
    opacity: 0.8;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* MOBILE TICKER */
@media screen and (max-width: 1430px) {
    #ticker {
        font-size: 0.75rem;
        padding-left: 50%;
        animation: scroll 450s linear infinite;
    }
}

/* MATRIX RAIN */
#matrix {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

.top-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 40px);
    width: 100%;
    margin-top: clamp(80px, 12vw, 120px);
    position: relative;
    z-index: 2;
    margin-left: 20px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 6vw, 100px);
    width: clamp(100%, 60vw, 50%);
}

.featured-about {
    display: flex;
    justify-content: center;
    padding: 24px 30px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    width: clamp(88%, 55vw, 60%);
}

.featured-about, .featured-wrapper {
    width: 100%;
    margin: 0;
}

.text {
    max-width: 500px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

.products {
    width: clamp(100%, 45vw, 42%);     
    display: flex;
    flex-direction: column;  
    position: static;
    z-index: 2;
    margin-top: clamp(40px, 18vw, 200px);
    margin-bottom: 60px;
    margin-right: 30px;
}

.products-title {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 20px;
    letter-spacing: 1px;
    margin-left: 45%;
    opacity: 0.85;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(clamp(140px, 28vw, 180px), 1fr)
    );
    gap: clamp(15px, 3vw, 28px);
}

/* PRODUCT CARD */
.product-card {
    text-align: center;
}

/* PRODUCT BOX */
.product-box {
    width: clamp(130px, 26vw, 180px);
    height: clamp(130px, 26vw, 180px);
    margin: 0 auto 10px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.85);
}

.product-text {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* FEATURED WRAPPER */
.featured-wrapper {
    display: grid;
    align-items: end;
    width: 60%;
    z-index: 9;
    margin-left: clamp(0px, 6vw, 100px);
    margin-top: 10px;
}

/* OTHER FEATURED AI BOXES */
.featured-ai {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 24px 30px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    flex-direction: column;
}

/* AI TEXT / IMAGE */
.ai-text {
    max-width: 500px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

.ai-image {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.ai-image img {
    max-width: none;
    height: auto;
    display: block;
    width: 80%;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0,255,156,0.08);
}

.iframe-box {
    width: 95%;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.85);
    margin-top: 75px;
    height: 449px;
    margin-left: 10px;
    position: relative;
}

.iframe-box h1 {
    font-size: 24px;
    margin-left: 10px;
}

.iframe-box iframe {
    width: 100%;
    height: 300px; /* adjust as needed */
    border: none;
    display: block;
}

.iframe-box p {
    text-align: center;
    margin: 30px 0;
}

/* GRID NODES */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 20px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin-top: 100px;
}

.node {
    border: 1px solid var(--border);
    padding: 20px;
    background-color: rgba(0,0,0,0.85);
    box-shadow: 0 0 20px rgba(0,255,156,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.node:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0,255,156,0.15);
}

.node h3 {
    margin-top: 0;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    letter-spacing: 1px;
}

.node p {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    opacity: 0.8;
}

/* SCANLINES */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
    z-index: 1;
}

