@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@700;800;900&display=swap');

:root {
    /* Elevated Dark Nuances */
    --bg-black: #08080a;
    --bg-darker: #0c0c0f;
    --bg-surface: #121217;
    --bg-light: #f4f4f5;
    /* For Breakout Contrast */
    --accent-yellow: #f8fb12;
    --accent-glow: rgba(248, 251, 18, 0.12);
    --text-white: #ffffff;
    --text-black: #08080a;
    --text-muted: #a1a1aa;
    /* Brighter for readability */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Sophisticated Background --- */
.tech-void {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #08080a;
    overflow: hidden;
}

.tech-void::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(248, 251, 18, 0.03) 0%, transparent 50%);
    animation: flowLight 15s ease-in-out infinite alternate;
}

@keyframes flowLight {
    from {
        transform: translate(-5%, -5%) rotate(0deg);
    }

    to {
        transform: translate(5%, 5%) rotate(5deg);
    }
}

.tech-void::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(248, 251, 18, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 251, 18, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.04em;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-yellow);
    background: rgba(248, 251, 18, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(248, 251, 18, 0.2);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    max-width: 1000px;
    background: linear-gradient(135deg, #fff 60%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* --- Magnetic Button --- */
.btn-ai {
    position: relative;
    padding: 1.2rem 3rem;
    background: var(--accent-yellow);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(248, 251, 18, 0.3);
    white-space: nowrap;
}

.btn-ai:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.4);
}

/* --- Grid & Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* --- Comparison Section --- */
.comparison {
    padding: 10rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 5rem;
}

.comp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.comp-box {
    padding: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    hyphens: auto;
}

.comp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: 0.5s;
}

.comp-box:hover::before {
    left: 100%;
}

.img-container {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid var(--glass-border);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.8);
    transition: var(--transition-smooth);
}

.img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(8, 8, 10, 0.8));
    pointer-events: none;
}

.comp-box:hover .img-container img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1);
}

.comp-box.bad {
    border-color: rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02), transparent);
}

.comp-box.good {
    border-color: rgba(248, 251, 18, 0.3);
    background: linear-gradient(135deg, rgba(248, 251, 18, 0.05), transparent);
    box-shadow: 0 0 40px rgba(248, 251, 18, 0.05);
}

.comp-box.good::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.comp-box h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comp-list li span {
    color: #fff;
    font-weight: 600;
}

.icon-bad {
    color: #ef4444;
}

.icon-good {
    color: var(--accent-yellow);
}

/* --- AI Flow Viz --- */
.flow-viz {
    padding: 10rem 0;
    background: var(--bg-darker);
    position: relative;
}

.process-nodes {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-nodes::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.node {
    width: 60px;
    height: 60px;
    background: var(--bg-black);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.node.active {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px var(--accent-glow);
}

.node-content {
    text-align: center;
    position: absolute;
    top: 80px;
    width: 200px;
}

.node-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.node-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Status Bar --- */
.status-footer {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    z-index: 100;
    pointer-events: none;
}

.status-footer span {
    transition: opacity 0.5s ease;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-yellow);
    border-radius: 50%;
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

@media (max-width: 768px) {

    .comp-grid,
    .grid {
        grid-template-columns: 1fr !important;
    }

    nav {
        width: 95%;
        padding: 0.8rem 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .pipeline-container {
        flex-direction: column;
    }

    .pipeline-container>div:nth-child(even) {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .status-footer {
        bottom: 5.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 85%;
        justify-content: center;
        background: rgba(8, 8, 10, 0.7);
        padding: 0.5rem 1rem;
        border-radius: 100px;
        backdrop-filter: blur(15px);
        border: 1px solid var(--glass-border);
        white-space: nowrap;
    }

    .status-footer span:last-child {
        display: none;
    }

    .comp-box {
        padding: 1.5rem;
    }

    .comp-box h2 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }

    .btn-ai {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .sticky-cta-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 1001;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
}

.sticky-cta-mobile {
    display: none;
}

/* --- Breakout Sections --- */
.section-light {
    background: var(--bg-light);
    color: var(--text-black);
    padding: 10rem 0;
}

.section-light .section-title,
.section-light .section-label {
    color: var(--text-black);
}

.section-light .comp-box {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.05);
}

.section-light .comp-box h3,
.section-light .comp-box h4 {
    color: var(--text-black);
}

/* --- Black Box Visual --- */
.black-box-viz {
    background: radial-gradient(circle at center, #1a1a24 0%, #08080a 100%);
    border: 1px solid rgba(248, 251, 18, 0.1);
    border-radius: 20px;
    padding: 4rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.black-box-viz::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(248, 251, 18, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(248, 251, 18, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.big-stat {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Outfit';
}

/* --- Black Box Visual Scan --- */
.black-box-viz::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent-yellow);
    box-shadow: 0 0 20px var(--accent-yellow);
    opacity: 0.1;
    animation: scanLine 8s linear infinite;
}

@keyframes scanLine {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Agent Stack & Architecture Styles --- */
.stack-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 12rem 2rem 8rem;
}

.circuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.flow-container {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.flow-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-yellow), transparent);
    margin: 1rem 0;
}

.stack-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.stack-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 40px rgba(248, 251, 18, 0.05);
    transform: translateY(-5px);
}

.stack-card .tag {
    font-family: 'Outfit';
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-yellow);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.circuit-path {
    position: absolute;
    stroke: var(--accent-yellow);
    stroke-width: 1;
    fill: none;
    opacity: 0.2;
    stroke-dasharray: 5;
    animation: flowCircuit 20s linear infinite;
}

@keyframes flowCircuit {
    to {
        stroke-dashoffset: -100;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}


[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Circular Feedback Utility --- */
.feedback-loop {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-yellow);
    animation: rotateLoop 4s linear infinite;
    margin-top: 1.5rem;
}

@keyframes rotateLoop {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}