:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-blue: #0071ff;
    --accent-purple: #8c00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --noise-opacity: 0.05;
}

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

html {
    scroll-behavior: auto; /* Handled by GSAP ScrollSmoother if we had it, but standard for now */
    background: var(--bg-color);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}

#noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 9999;
}

#canvas-webgl {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-glow {
    text-shadow: 0 0 30px rgba(140, 0, 255, 0.3);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-launch {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.badge-ai {
    display: inline-flex;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 1.2rem 2.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
    color: var(--text-primary);
    padding: 1.2rem 2.5rem;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-mockup {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 2;
}

.floating-mockup img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7));
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(140,0,255,0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

/* Feature Rows */
.feature-rows {
    padding: 10vh 0;
}

.row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5vh 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
}

.row-tag {
    color: var(--accent-blue);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.row-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.row-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.check-list i {
    color: var(--accent-blue);
    font-size: 1.5rem;
}

.vision-scan-demo {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--glass-border);
}

.demo-img {
    width: 100%;
    display: block;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 20px 4px var(--accent-blue);
    z-index: 5;
    animation: scan 4s infinite linear;
}

@keyframes scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

/* Bento Grid */
.bento-grid {
    padding: 10vh 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
    display: block;
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.bento-item.tall {
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sync-anim {
    height: 150px;
    margin-top: 2rem;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(30px);
}

/* CTA */
#cta {
    padding: 15vh 2rem;
    text-align: center;
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.cta-inner h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-primary.large {
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

.footer-logo img {
    width: 24px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-btns { justify-content: center; }
    .row-content h2 { font-size: 2.5rem; }
    .check-list li { justify-content: center; }
    .grid-container {
        grid-template-columns: 1fr;
    }
    .bento-item.tall, .bento-item.wide {
        grid-row: auto;
        grid-column: auto;
    }
}
