:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-blue: #0044cc;
    --electric-blue: #0070f3;
    --cyan-glow: #00eeff;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --gradient-hero: linear-gradient(to right, #0070f3, #00c6ff);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(0, 118, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

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

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

/* Typography */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(180deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Particle Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 0;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--electric-blue);
}

.agent-list li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.agent-list li strong {
    color: var(--cyan-glow);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.agent-list li span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.highlight-btn {
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.highlight-btn:hover {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
    color: white;
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.4);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    background: rgba(0, 112, 243, 0.1);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 112, 243, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

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

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 0 30px rgba(0, 112, 243, 0.15);
    transform: translateY(-5px);
}

/* Vision Section */
#vision {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
    max-width: 800px;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--electric-blue);
    margin-top: 0.5rem;
    font-weight: 500;
}

.vision-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.big-idea {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.text-white {
    color: #fff;
    font-weight: 600;
}

.icon-glow {
    font-size: 2rem;
    color: var(--cyan-glow);
    filter: drop-shadow(0 0 10px rgba(0, 238, 255, 0.4));
    margin-bottom: 1rem;
}

/* Tech Section */
#technology {
    position: relative;
    padding: 6rem 0;
    text-align: center;
}

#technology .subtitle {
    max-width: 800px;
    margin: 1rem auto 4rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.tech-card {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Align card content to left */
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--card-border);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
}

.tech-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.tech-icon-large {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--cyan-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.tech-card h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

.agent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.agent-list i {
    color: var(--electric-blue);
}

/* Founder */
#founder {
    max-width: 1400px;
    /* Match other sections */
    margin: 0 auto;
    padding: 6rem 2rem;
}

.founder-wrapper {
    /* No longer enforcing flex-col on the wrapper itself for the stats */
    border: 1px solid var(--electric-blue);
    background: linear-gradient(180deg, rgba(0, 112, 243, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    /* Wrapper is column: Top Content (Bio+Photo) -> Bottom Content (Stats) */
}

.founder-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* Text gets much more space, shrinking the photo column */
    gap: 4rem;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    text-align: left;
}

.photo-frame {
    width: 100%;
    max-width: 250px;
    /* Force smaller size even on wide screens */
    aspect-ratio: 1 / 1.1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    /* Slightly reduced radius */
    overflow: hidden;
    /* Ensure image doesn't overflow rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
    margin: 0 auto;
    /* Center in its column */
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fallback for when image is missing (optional) */
.photo-frame.placeholder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
}

.photo-frame i {
    font-size: 3rem;
    color: var(--electric-blue);
    opacity: 0.5;
}

.photo-frame:hover {
    border-color: var(--electric-blue);
}

.label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.founder-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 700px;
    /* Limit line length for readability */
}

.founder-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1.2rem;
    border-left: 3px solid var(--electric-blue);
    padding-left: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
}

.founder-stats {
    display: flex;
    justify-content: flex-start;
    /* Align start */
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--card-border);
    width: 100%;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit';
    line-height: 1;
}

.unit {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--electric-blue);
    text-transform: uppercase;
}

.desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Dual Action Split */
.splits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 4rem auto;
    gap: 1px;
    gap: 1px;
    /* Gap for border line */
    background: linear-gradient(to bottom, transparent, var(--card-border), transparent);
}

.split-col {
    background: var(--bg-dark);
    /* Cover the gradient background */
    padding: 4rem;
    border: 1px solid var(--card-border);
    transition: background 0.4s ease;
}

.split-col:hover {
    background: rgba(255, 255, 255, 0.02);
}

.col-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.col-header i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.badge {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    text-transform: uppercase;
}

.benefits {
    list-style: none;
    margin: 2rem 0;
}

.benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.benefits i {
    color: var(--electric-blue);
}

/* Forms */
.fake-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fake-form input,
.fake-form select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.8rem;
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.fake-form label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: -0.5rem;
    margin-top: 0.5rem;
}

.btn-full {
    background: var(--electric-blue);
    color: white;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
}

.btn-full:hover {
    background: var(--primary-blue);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--electric-blue);
    color: var(--electric-blue);
}

.btn-outline:hover {
    background: rgba(0, 112, 243, 0.1);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

/* Footer */
/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    background-color: var(--bg-dark);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright {
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-right {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.footer-right a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-right a:hover {
    color: var(--electric-blue);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 900px) {

    .header-container,
    .container {
        padding: 0 1.5rem;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding-top: 60px;
        /* Space for header */
        transition: all 0.3s ease;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 1.5rem 0;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    /* Simplified for now */
    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    h1 {
        font-size: 3rem;
    }

    .vision-stats,
    .splits-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 2rem;
    }

    .founder-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .split-col {
        padding: 2rem;
    }
}

@media (min-width: 901px) {
    .mobile-toggle {
        display: none;
    }
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--electric-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.5);
    z-index: 99;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}