:root {
    --bg-dark: #000000;
    --bg-card: #0A0A0A;
    --accent: #00F0FF;
    /* Cyber Cyan */
    --text-main: #EDEDED;
    --text-muted: #888888;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Backgrounds */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-dark) 90%);
    z-index: -1;
    pointer-events: none;
}

/* --- Components --- */

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

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

.btn-sm {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-sm:hover {
    border-color: var(--text-main);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    justify-content: center;
}

.logo-mark {
    width: fit-content;
    height: fit-content;
    background: var(--text-main);
    color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-weight: 800;
    padding: 4px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 240, 255, 0.15);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-bottom: 80px;
}

/* Stage / Dashboard */
.stage-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.stage-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.stage-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stage-content {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    width: 100%;
    height: 100%;
}

.stage-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 32px;
}

.data-point {
    text-align: right;
}

.label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 4px;
}

.value {
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.value.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Features Section */
.features,
.workflow {
    padding: 0 18px 120px;
}

.section-badge {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 32px;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

.bento-card.large {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 24px;
}

/* UI Mockup */
.ui-mockup-list {
    margin-top: 32px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.ui-row:last-child {
    border-bottom: none;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.row-play {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 10px;
    color: var(--accent);
    cursor: pointer;
}

.row-info {
    flex-grow: 1;
}

.row-info .name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.row-info .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.row-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.high {
    color: #00FF94;
    background: rgba(0, 255, 148, 0.1);
}

.med {
    color: #FFB800;
    background: rgba(255, 184, 0, 0.1);
}

/* Footer (Revised) */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    margin-top: 80px;
    background: #050505;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-col {
    margin: 0 auto;
    text-align: center;
}

/* --- Media Queries (Mobile & Tablet) --- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large {
        grid-column: span 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navbar */
    .nav-links {
        display: none;
        /* Hidden on mobile for simplicity */
    }

    .btn-sm {
        /* Keep Contact button visible */
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stage-content {
        height: 200px;
    }

    .stage-overlay {
        display: none;
        /* Hide detailed metrics on small screens */
    }

    /* Footer */
    .site-footer {
        padding: 70px 0 30px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .workflow {
        padding-top: 60px;
    }
}

/* Workflow Section */
.workflow {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.process-grid {
    display: flex;
    align-items: stretch;
    /* Fix: cards will be same height */
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    border-radius: 12px;
    position: relative;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.process-step:hover {
    border-color: var(--border-hover);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    /* Adjusted for better visibility as a header element */
    font-weight: 700;
    color: #FFFFFF;
    /* Fix: User requested white */
    margin-bottom: 16px;
    display: block;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 600;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes content to fill space if needed */
}

.step-desc strong {
    color: var(--text-main);
    font-weight: 500;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

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

    /* increased breakpoint for better tablet responsiveness */
    .process-grid {
        flex-direction: column;
        gap: 24px;
    }

    .process-arrow {
        transform: rotate(90deg);
        height: 32px;
        margin: 0 auto;
    }

    .process-step {
        width: 100%;
    }
}