/* RESET & BASICS */
:root {
    --bg-black: #000000;
    --bg-dark: #080808;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --brand-yellow: #FFD700;
    --brand-green: #00E676;
    --border-color: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: var(--brand-yellow); }
ul { list-style: none; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }
.text-gray { color: var(--text-gray); }
.text-muted { opacity: 0.5; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }
.uppercase { text-transform: uppercase; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { color: var(--brand-yellow); font-weight: 700; letter-spacing: -0.5px; }
h1 { font-size: 3.5rem; line-height: 1.1; }
.subtitle { font-size: 1.2rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; }

/* NAVBAR */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 1px; font-size: 1.2rem; }
.logo a { color: var(--brand-yellow) !important; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; color: var(--text-white); }
.btn-nav {
    background: rgba(255, 215, 0, 0.1); color: var(--brand-yellow) !important;
    border: 1px solid var(--brand-yellow); padding: 10px 20px; border-radius: 4px;
}
.btn-nav:hover { background: var(--brand-yellow); color: black !important; }

/* BUTTONS */
.btn-white {
    display: inline-block; background: var(--brand-yellow); color: black;
    padding: 15px 30px; border-radius: 6px; font-weight: 600; font-size: 1rem;
    margin-top: 20px; border: none; transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-2px); background: #ffdb4d; box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); color: black; }

.btn-black {
    display: inline-block; background: transparent; color: var(--text-white);
    border: 1px solid #333; padding: 15px 30px; border-radius: 6px;
    font-weight: 600; font-size: 1rem; margin-top: 20px;
}
.btn-black:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }

/* HERO */
.hero, .vision {
    position: relative; height: 90vh; width: 96%; margin: 20px auto 0;
    border-radius: 20px; overflow: hidden; border: 1px solid #222;
}
.hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 100%);
}
.hero-content { position: absolute; bottom: 80px; left: 60px; max-width: 700px; z-index: 2; }
.hero-content p { font-size: 1.35rem; color: var(--text-white); }

/* VIDEO DEMO SECTION */
.demo-wrapper {
    position: relative; max-width: 1000px; margin: 60px auto;
    border: 1px solid #333; border-radius: 12px; overflow: hidden;
    background: #000; box-shadow: 0 0 50px rgba(255, 215, 0, 0.1);
}
.demo-header {
    background: #111; padding: 10px 20px; border-bottom: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #666;
}
.demo-dots { display: flex; gap: 6px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background-color: #333; }
.video-container { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.demo-video { width: 100%; height: 100%; object-fit: contain; }
.speed-badge {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255, 215, 0, 0.9); color: black;
    padding: 5px 10px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.8rem;
    z-index: 10; border: 1px solid white;
}
.overlay-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, #000 0%, transparent 100%); pointer-events: none;
}

/* CARDS & GRIDS */
.card {
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, rgba(0,0,0,0) 100%);
    padding: 30px; border-radius: 8px; border: 1px solid var(--border-color);
    transition: border-color 0.3s;
}
.card:hover { border-color: var(--brand-yellow); }
.icon { font-size: 2rem; margin-bottom: 20px; color: var(--brand-yellow); }
.card h4 { margin-bottom: 10px; font-size: 1.2rem; color: var(--text-white); }

/* VISUAL ABSTRACT */
.visual-abstract {
    background: var(--bg-card); aspect-ratio: 1/1; border-radius: 8px;
    position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
    background-image: radial-gradient(circle at 50% 50%, #333 1px, transparent 1px);
    background-size: 20px 20px; border: 1px solid var(--border-color);
}
.visual-abstract::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100px; height: 100px; background: var(--brand-yellow); filter: blur(80px); opacity: 0.2;
}
.visual-abstract .caption { font-size: 0.9rem; color: var(--text-gray); border-top: 1px solid var(--border-color); padding-top: 20px; }

/* COMPARISON TABLE */
.comparison-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden;
}
.col-vetnor { background: #111; padding: 40px; border-right: 1px solid var(--border-color); }
.col-traditional { background: #000; padding: 40px; }
.col-header { text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; font-size: 1.2rem; }
.check-list li, .minus-list li {
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 15px; font-size: 0.95rem;
}
.check { color: black; background: var(--brand-green); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: bold; }
.minus { color: #999; background: rgba(255,255,255, 0.1); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }

/* TEAM / ABOUT GRID (3 Columns Max) */
.team-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px;
}
.agent-card, .team-member {
    border: 1px solid #333; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0,0,0,0) 100%);
    padding: 20px; border-radius: 8px; transition: all 0.3s; position: relative; overflow: hidden; display: block;
}
.agent-card:hover { border-color: var(--brand-green); transform: translateY(-5px); cursor: pointer; }
.agent-card img, .team-member img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px;
    filter: grayscale(100%) contrast(1.2); margin-bottom: 15px; border: 1px solid #222;
}
.agent-card:hover img { filter: grayscale(0%) contrast(1); }
.status-badge {
    font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; font-weight: 700;
    display: inline-block; margin-bottom: 10px;
}
.status-active { background: rgba(0, 230, 118, 0.1); color: #00E676; border: 1px solid #00E676; }
.status-dev { background: rgba(255, 215, 0, 0.1); color: #FFD700; border: 1px solid #FFD700; }
.click-hint {
    position: absolute; top: 20px; right: 20px; font-size: 0.8rem; opacity: 0; transition: opacity 0.3s;
    color: var(--brand-yellow); font-weight: bold; z-index: 10; background: rgba(0,0,0,0.7); padding: 2px 6px; border-radius: 4px;
}
.agent-card:hover .click-hint { opacity: 1; }

/* TECH ZIG-ZAG */
.tech-row { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.tech-row.reverse { flex-direction: row-reverse; }
.tech-content { flex: 1; }
.tech-image { flex: 1; }
.tech-image img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); }

/* FOOTER */
.footer { background: linear-gradient(to top, #111, #000); padding-bottom: 40px; border-top: 1px solid #111; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 30px; margin-top: 80px; }
.socials span { margin-left: 15px; cursor: pointer; border: 1px solid #333; padding: 5px 8px; border-radius: 4px; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grid-2, .grid-3, .comparison-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .navbar { padding: 15px 20px; } .nav-links { display: none; }
    .hero-content { left: 20px; bottom: 40px; }
    .tech-row, .tech-row.reverse { flex-direction: column; }
    .team-grid { grid-template-columns: 1fr; }
}
/* APPLICATION AREAS MARQUEE */
.applications-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-black);
    border-top: 1px solid var(--border-color);
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    /* Fade effect on sides */
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Duplicate content logic requires distinct animation */
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused; /* Pause on hover for readability */
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves halfway, assuming content is duplicated once */
}

.app-card {
    width: 350px;
    background: linear-gradient(145deg, #111 0%, #050505 100%);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.app-card:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.app-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.app-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-yellow);
    stroke-width: 1.5;
}

.app-card h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.app-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}
/* BACKED BY SECTION */
.backed-by {
    background: var(--bg-black);
    border-top: 1px solid var(--border-color);
    padding-bottom: 80px; /* Reduced padding for a tighter fit before footer */
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* Space between logos */
    flex-wrap: wrap;
    margin-top: 40px;
}

.investor-logo {
    display: block;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.5; /* Dimmed by default */
}

.investor-logo:hover {
    opacity: 1; /* Bright on hover */
    transform: scale(1.05);
}

.investor-logo img {
    height: 45px; /* Fixed height for consistency */
    width: auto;
    /* This filter turns any black logo into white to match dark mode */
    filter: grayscale(100%) brightness(0) invert(1);
}
