/* index.css */
:root {
    --bg-color: #1A1D21;
    --bg-alt: #22252a;
    --bg-card: #282b31;
    --text-main: #FFFFFF;
    --text-muted: #A0A5AA;
    
    --accent-pink: #FF2E93;
    --accent-orange: #FF8A00;
    --accent-mint: #00E5FF;
    --accent-purple: #B142FF;
    --accent-green: #C6FF00;

    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    position: relative;
    z-index: 10;
}

#node-canvas-bg, #node-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

#node-canvas-bg {
    z-index: 0;
    filter: blur(3px);
    opacity: 0.6;
}

#node-canvas {
    z-index: 1;
    opacity: 0.85; /* Increased for stronger presence */
}

/* Canvas fallback / subtle grid overlay just to give it structure */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

/* Utilities */
.highlight {
    color: var(--accent-orange);
    text-shadow: 0 0 20px rgba(255, 138, 0, 0.4);
    font-weight: 700;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
}

.primary-btn {
    background-color: var(--accent-mint);
    color: #000000;
    border: 1px solid var(--accent-mint);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-mint);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.secondary-btn:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(26, 29, 33, 0.85);
    transition: background 0.3s;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.nav-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

/* Sections General */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10rem;
}

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

.hero .headline {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero .sub-headline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Giant Logo Banner */
.hero-logo-banner {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 0.9;
}

.hero-logo-banner img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

/* Agitator Section */
.agitator {
    background: radial-gradient(ellipse at center, var(--bg-alt) 0%, transparent 80%);
    text-align: center;
    padding: 8rem 2rem;
    max-width: 100%; 
}

.agitator-content {
    max-width: 800px;
    margin: 0 auto;
}

.agitator h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.agitator p {
    font-size: 1.125rem;
}

/* Solutions Section */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.solution-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

/* Node hover highlights */
.solution-card:nth-child(1):hover, .solution-card:nth-child(1).mobile-active {
    border-color: rgba(255, 46, 147, 0.3);
    box-shadow: 0 10px 40px rgba(255, 46, 147, 0.08);
}
.solution-card:nth-child(1):hover::before, .solution-card:nth-child(1).mobile-active::before { background: var(--accent-pink); }

.solution-card:nth-child(2):hover, .solution-card:nth-child(2).mobile-active {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.08);
}
.solution-card:nth-child(2):hover::before, .solution-card:nth-child(2).mobile-active::before { background: var(--accent-mint); }

.solution-card:nth-child(3):hover, .solution-card:nth-child(3).mobile-active {
    border-color: rgba(255, 138, 0, 0.3);
    box-shadow: 0 10px 40px rgba(255, 138, 0, 0.08);
}
.solution-card:nth-child(3):hover::before, .solution-card:nth-child(3).mobile-active::before { background: var(--accent-orange); }

.solution-card:nth-child(4):hover, .solution-card:nth-child(4).mobile-active {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}
.solution-card:nth-child(4):hover::before, .solution-card:nth-child(4).mobile-active::before { background: var(--text-main); }

.solution-card:nth-child(5):hover, .solution-card:nth-child(5).mobile-active {
    border-color: rgba(177, 66, 255, 0.3);
    box-shadow: 0 10px 40px rgba(177, 66, 255, 0.08);
}
.solution-card:nth-child(5):hover::before, .solution-card:nth-child(5).mobile-active::before { background: var(--accent-purple); }

.solution-card:nth-child(6):hover, .solution-card:nth-child(6).mobile-active {
    border-color: rgba(198, 255, 0, 0.3);
    box-shadow: 0 10px 40px rgba(198, 255, 0, 0.08);
}
.solution-card:nth-child(6):hover::before, .solution-card:nth-child(6).mobile-active::before { background: var(--accent-green); }


.card-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.solution-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Tech Stack Section */
.tech-stack-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative; /* For HUD absolute positioning */
}

/* Interactive Heads-Up Display */
.tech-hud-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-hud-svg.active {
    opacity: 1;
}

#tech-hud-line {
    fill: none;
    stroke: var(--hud-color, #fff);
    stroke-width: 2;
    transition: stroke 0.3s ease;
    filter: drop-shadow(0 0 12px var(--hud-glow, rgba(255,255,255,0.4)));
}

.tech-hud {
    position: absolute;
    top: 0; /* Will be dynamically updated by JS if needed, or roughly anchored left */
    left: 0;
    width: 100%;
    max-width: 440px;
    background: rgba(15, 17, 20, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.08); /* Increased border prominence */
    border-top: 4px solid var(--hud-color, #fff); /* Increased top accent */
    border-radius: 12px;
    padding: 2.5rem;
    z-index: 10;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none; /* Ignore clicks when hidden */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.65), inset 0 0 40px rgba(255,255,255,0.03), 0 0 45px var(--hud-glow, rgba(255,255,255,0.1));
    /* Added more prominent 3D drop shadow and intensified the HUD glow */
}

.tech-hud.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto; /* Re-enable clicks */
}

.tech-hud h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tech-hud p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.tech-info {
    transition: var(--transition-smooth);
}

.tech-info.dimmed {
    opacity: 0.15;
    filter: blur(3px);
}


.tech-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.reliability-list {
    list-style: none;
    margin-top: 2rem;
}

.reliability-list li {
    margin-bottom: 2rem;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.reliability-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-pink);
    font-family: var(--font-mono);
}

.reliability-list li strong {
    color: var(--text-main);
    font-family: var(--font-mono);
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.tech-grid-wrapper {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.tech-item:hover, .tech-item.mobile-active, .tech-item.hud-active {
    background: rgba(255,255,255,0.05);
    border-color: var(--glow-border, rgba(255,255,255,0.1));
    box-shadow: 0 10px 40px var(--glow-shadow, rgba(255, 255, 255, 0.05));
    transform: translateY(-2px);
}

.tech-item img, .tech-item svg {
    width: 34px;
    height: 34px;
    padding: 3px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.tech-item:hover img, .tech-item.mobile-active img, .tech-item.hud-active img, .tech-item:hover svg, .tech-item.mobile-active svg, .tech-item.hud-active svg {
    opacity: 1;
}

.tech-item span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* Video Placeholder */
.video-section {
    text-align: center;
}

.video-header {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.video-header h2 {
    font-size: 2.5rem;
}

.video-placeholder {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #0f1114;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0, 229, 255, 0.03);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.video-placeholder:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0, 229, 255, 0.1);
}

.video-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.play-icon {
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.video-placeholder:hover .play-icon {
    color: var(--accent-mint);
    opacity: 1;
    transform: scale(1.1);
}

.video-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.video-player {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #0f1114;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0, 229, 255, 0.03);
    overflow: hidden;
    display: block;
    transition: var(--transition-smooth);
}

.video-player:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(0, 229, 255, 0.1);
}

.video-player video {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto 6rem auto;
}

.footer-content h2 {
    font-size: 2.5rem;
}

.footer-btn {
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 900px) {
    .tech-stack-container {
        grid-template-columns: 1fr;
    }
    
    .tech-grid-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero .headline {
        font-size: 3rem;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .cta-button, .footer-content .cta-button {
        width: 100%;
    }
    
    .navbar-container {
        padding: 1rem 1.5rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
