:root {
    /* Colors */
    --bg-color: #050505;
    --surface-color: #111111;
    --surface-hover: #161616;
    --text-main: #ffffff;
    --text-muted: #888888;
    --brand-neon: #ccff00;
    --brand-neon-glow: rgba(204, 255, 0, 0.4);
    --border-color: #222222;

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --glow-sm: 0 0 10px var(--brand-neon-glow);
    --glow-md: 0 0 20px var(--brand-neon-glow);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}



/* Base Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--brand-neon);
    color: #000;
    box-shadow: var(--glow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-md);
}

.section-label {
    font-family: var(--font-heading);
    color: var(--brand-neon);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Navbar */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--brand-neon);
    box-shadow: var(--glow-sm);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand-neon);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 4rem;
}

/* Background Grid Effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--brand-neon);
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.micro-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Hero Visuals - Digital Artifacts */
.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.artifact-card {
    position: absolute;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.artifact-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Animations */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes float-medium {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-15px) rotate(6deg);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-main {
    width: 400px;
    top: 10%;
    left: 10%;
    z-index: 2;
    animation: float-slow 6s ease-in-out infinite;
    border: 1px solid var(--brand-neon);
    box-shadow: var(--glow-sm);
}

.card-mockup-1 {
    width: 250px;
    top: -5%;
    right: 10%;
    z-index: 1;
    opacity: 0.8;
    animation: float-medium 7s ease-in-out infinite;
}

.card-mockup-2 {
    width: 280px;
    bottom: 10%;
    right: 20%;
    z-index: 3;
    animation: float-fast 5s ease-in-out infinite;
}



/* Background Noise Animation */
.noise-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Base64 Noise Textures */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100px 100px;
    animation: bg-animation .2s infinite;
    opacity: 0.15;
    /* Increased visibility as requested */
    visibility: visible;
    pointer-events: none;
    z-index: 0;
}

@keyframes bg-animation {
    0% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-5%, -5%)
    }

    20% {
        transform: translate(-10%, 5%)
    }

    30% {
        transform: translate(5%, -10%)
    }

    40% {
        transform: translate(-5%, 15%)
    }

    50% {
        transform: translate(-10%, 5%)
    }

    60% {
        transform: translate(15%, 0)
    }

    70% {
        transform: translate(0, 10%)
    }

    80% {
        transform: translate(-15%, 0)
    }

    90% {
        transform: translate(10%, 5%)
    }

    100% {
        transform: translate(5%, 0)
    }
}

/* Additional Cards for "Swarm" Effect */
.card-mockup-3 {
    width: 200px;
    top: 60%;
    left: -5%;
    z-index: 4;
    animation: float-medium 8s ease-in-out infinite reverse;
    filter: brightness(0.7);
}

.card-mockup-4 {
    width: 180px;
    top: -15%;
    left: 30%;
    z-index: 0;
    opacity: 0.5;
    animation: float-slow 9s ease-in-out infinite;
    filter: blur(2px);
}


/* Problem Section */
.problem-section {
    padding: 8rem 0;
    background-color: #080808;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pain-card {
    background: var(--surface-color);
    border: 1px solid #331111;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
}

.pain-card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffaaaa;
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.system-alert {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    font-family: var(--font-heading);
    color: #ff3333;
    border: 1px solid #ff3333;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Solution Section */
.solution-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.solution-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.solution-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--brand-neon);
    font-weight: bold;
}

.pipeline-diagram {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.pipeline-step {
    background: #222;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-step.active {
    background: #222211;
    border-left-color: var(--brand-neon);
}

.pipeline-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--brand-neon);
    letter-spacing: 1px;
}

/* Use Cases Section */
.use-cases-section {
    padding: 8rem 0;
    background-color: #080808;
}

.use-case-card {
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-neon);
}

.use-case-visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    /* Updated per user request */
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.use-case-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the whole image is visible without cropping */
    object-position: center;
    opacity: 0.9;
    /* Slightly increased visibility */
    transition: opacity 0.3s;
}

.use-case-card:hover .use-case-visual img {
    opacity: 1;
}

.use-case-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.use-case-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.outcome-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--brand-neon);
    background: rgba(204, 255, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Examples Section */
.examples-section {
    padding: 8rem 0;
    background-color: var(--surface-color);
}

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

.example-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    /* Enforce 16:9 format as requested */
}

.example-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the 16:9 area */
    display: block;
}

.example-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: black;
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #333;
}

.example-card:hover .example-overlay {
    opacity: 1;
}

.example-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

/* How It Works Section */
.how-it-works-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    background-image: linear-gradient(to right, #111 1px, transparent 1px);
    background-size: 10rem 100%;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
    z-index: 0;
}

.step-card {
    width: 18%;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid var(--brand-neon);
    color: var(--brand-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Why Section */
.why-section {
    padding: 8rem 0;
    background-color: #050505;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
    border: 1px solid #222;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.comparison-table th {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.comparison-table .highlight-col {
    background: rgba(204, 255, 0, 0.05);
    border-left: 1px solid var(--brand-neon);
    border-right: 1px solid var(--brand-neon);
    color: var(--brand-neon);
    text-align: center;
}

.comparison-table td.check {
    color: var(--brand-neon);
    font-size: 1.2rem;
    text-align: center;
}

.comparison-table td.cross {
    color: #444;
    font-size: 1.2rem;
    filter: grayscale(1);
    text-align: center;
}

/* Final CTA */
.cta-section {
    padding: 10rem 0;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--brand-neon);
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* Footer */
footer {
    border-top: 1px solid #222;
    padding: 4rem 0;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-col h4 {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    margin-bottom: 0.8rem;
    color: #666;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
}

/* Animation Classes */
.typewriter-target {
    opacity: 1;
    /* Keep layout stable */
}

.reveal-char {
    opacity: 0;
    display: inline-block;
    transform: translateY(5px);
    transition: opacity 0.05s ease, transform 0.05s ease;
    will-change: opacity, transform;
}

.typewriter-target.is-visible .reveal-char {
    opacity: 1;
    transform: translateY(0);
}

.word-wrapper {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.25em;
    /* Adjust spacing between words if needed, or rely on the &nbsp; */
}

/* Adjust space wrapper if using it explicitly */
.space {
    display: inline-block;
}

/* Sticky Nav */
.main-nav {
    position: sticky;
    top: 0;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

.desktop-only {
    display: inline-block;
}

.mobile-cta-link {
    display: none;
    color: var(--brand-neon) !important;
    font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Navbar Mobile */
    .desktop-only {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: black;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-cta-link {
        display: block;
    }

    /* Hero Mobile */
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }

    .hero-cta-group {
        align-items: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 2rem;
    }

    .card-main {
        width: 300px;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
        /* Simplify on mobile if needed */
        top: 0;
    }

    .card-mockup-1,
    .card-mockup-2,
    .card-mockup-3,
    .card-mockup-4 {
        scale: 0.7;
    }

    /* General Grids */
    .grid-3,
    .solution-grid,
    .example-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Solution Section */
    .solution-content {
        order: 2;
    }

    .solution-visual {
        order: 1;
    }

    /* Timeline */
    .timeline {
        flex-direction: column;
        gap: 2rem;
        padding-left: 20px;
        margin-top: 2rem;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        left: 39px;
        top: 0;
    }

    .step-card {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }

    .step-number {
        min-width: 40px;
    }

    .step-card h3 {
        margin-top: 0;
    }
}