:root {
    /* Colors (Cyber-Corporate) */
    --bg-dark: #030305;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.5);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;

    /* Client Login Page */
    .login-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .login-main {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 100px 0;
    }

    .login-container {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: center;
    }

    .login-card {
        background: rgba(15, 15, 20, 0.8);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        padding: 40px;
        width: 100%;
        max-width: 420px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        animation: fadeUp 0.8s ease-out;
    }

    .login-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .lock-icon {
        width: 60px;
        height: 60px;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: var(--primary);
        border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .login-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
        color: white;
    }

    .login-header p {
        color: var(--text-muted);
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group input {
        width: 100%;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: white;
        font-family: 'Inter', sans-serif;
        transition: all 0.3s ease;
    }

    .form-group input:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    }

    .btn-block {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .login-footer {
        margin-top: 25px;
        text-align: center;
        font-size: 13px;
        color: var(--text-muted);
    }

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

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

    .divider {
        margin: 0 10px;
        opacity: 0.3;
    }

    .login-error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #fca5a5;
        padding: 12px;
        border-radius: 8px;
        font-size: 13px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        animation: shake 0.5s ease-in-out;
    }

    .login-error.hidden {
        display: none;
    }

    .error-icon {
        width: 18px;
        height: 18px;
        background: rgba(239, 68, 68, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 12px;
    }

    @keyframes shake {

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

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    min-height: 100vh;
    /* E-Commerce Management Page Visuals */

    /* Galactic Background */
    .stars-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
            radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
            radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
        background-size: 550px 550px, 350px 350px, 250px 250px;
        background-position: 0 0, 40px 60px, 130px 270px;
        opacity: 0.1;
        z-index: 0;
        animation: starMove 100s linear infinite;
    }

    @keyframes starMove {
        from {
            transform: translateY(0);
        }

        to {
            transform: translateY(-2000px);
        }
    }

    /* Orbital System */
    .orbital-system {
        position: relative;
        width: 400px;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        transform-style: preserve-3d;
        transform: perspective(1000px) rotateX(60deg) rotateZ(-20deg);
    }

    .planet-core {
        width: 80px;
        height: 80px;
        background: radial-gradient(circle at 30% 30%, var(--primary), #000);
        border-radius: 50%;
        box-shadow: 0 0 50px var(--primary);
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: rotateX(-60deg) rotateZ(20deg);
        /* Counter-rotate to keep text flat */
    }

    .core-label {
        font-weight: 800;
        font-size: 12px;
        color: white;
        letter-spacing: 1px;
    }

    .orbit-path {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .ring-1 {
        width: 180px;
        height: 180px;
        border-color: rgba(99, 102, 241, 0.3);
    }

    .ring-2 {
        width: 280px;
        height: 280px;
        border-color: rgba(168, 85, 247, 0.2);
    }

    .ring-3 {
        width: 380px;
        height: 380px;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .satellite {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin-left: -20px;
        margin-top: -20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sat-body {
        width: 36px;
        height: 36px;
        background: #1a1a1a;
        border: 1px solid var(--accent);
        border-radius: 50%;
        color: var(--accent);
        font-size: 10px;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
        transform: rotateX(-60deg) rotateZ(20deg);
        /* Keep text flat */
    }

    .sat-1 {
        animation: orbit 8s linear infinite;
    }

    .sat-2 {
        animation: orbit 12s linear infinite reverse;
    }

    .sat-3 {
        animation: orbit 15s linear infinite;
    }

    .sat-4 {
        animation: orbit 20s linear infinite reverse;
    }

    @keyframes orbit {
        from {
            transform: rotate(0deg) translateX(140px) rotate(0deg);
        }

        to {
            transform: rotate(360deg) translateX(140px) rotate(-360deg);
        }
    }

    /* Adjust orbit radii via translateX in keyframes if needed, or use specific classes */
    /* Simplified for this demo, all satellites orbit at same radius but different speeds/directions */
    /* To make them distinct radii, we need specific keyframes or wrapper divs. Let's refine for visual variety */

    .sat-1 {
        animation: orbit1 8s linear infinite;
    }

    @keyframes orbit1 {
        from {
            transform: rotate(0deg) translateX(90px) rotate(0deg);
        }

        to {
            transform: rotate(360deg) translateX(90px) rotate(-360deg);
        }
    }

    .sat-2 {
        animation: orbit2 12s linear infinite;
    }

    @keyframes orbit2 {
        from {
            transform: rotate(120deg) translateX(140px) rotate(-120deg);
        }

        to {
            transform: rotate(480deg) translateX(140px) rotate(-480deg);
        }
    }

    .sat-3 {
        animation: orbit3 15s linear infinite;
    }

    @keyframes orbit3 {
        from {
            transform: rotate(240deg) translateX(190px) rotate(-240deg);
        }

        to {
            transform: rotate(600deg) translateX(190px) rotate(-600deg);
        }
    }

    /* Hologram Card */
    .hologram-card {
        background: rgba(10, 10, 20, 0.8);
        border: 1px solid var(--primary);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2), inset 0 0 20px rgba(99, 102, 241, 0.1);
        border-radius: 12px;
        padding: 20px;
        width: 100%;
        max-width: 450px;
        position: relative;
        overflow: hidden;
    }

    .hologram-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(transparent 50%, rgba(99, 102, 241, 0.05) 50%);
        background-size: 100% 4px;
        pointer-events: none;
        z-index: 1;
    }

    /* Data Pipeline */
    .pipeline-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .pipe-node {
        background: #222;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        border: 1px solid #444;
        z-index: 2;
    }

    .pipe-line {
        flex-grow: 1;
        height: 4px;
        background: #333;
        margin: 0 10px;
        position: relative;
        border-radius: 2px;
        overflow: hidden;
    }

    .packet {
        width: 20px;
        height: 100%;
        background: var(--success);
        position: absolute;
        top: 0;
        left: -20px;
        border-radius: 2px;
        box-shadow: 0 0 10px var(--success);
    }

    .p1 {
        animation: flow 2s linear infinite;
    }

    .p2 {
        animation: flow 2s linear infinite 0.6s;
    }

    .p3 {
        animation: flow 2s linear infinite 1.2s;
    }

    @keyframes flow {
        0% {
            left: -20px;
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            left: 100%;
            opacity: 0;
        }
    }

    .sync-status {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        font-family: monospace;
        color: var(--text-muted);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    /* Price Graph */
    .price-graph {
        height: 150px;
        display: flex;
        flex-direction: column;
    }

    .pg-header {
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 10px;
        text-align: center;
    }

    .pg-bars {
        flex-grow: 1;
        display: flex;
        align-items: flex-end;
        justify-content: space-around;
        gap: 5px;
    }

    .pg-bar {
        width: 15%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px 4px 0 0;
        position: relative;
        transition: height 0.3s ease;
    }

    .pg-bar.active {
        background: var(--accent);
        box-shadow: 0 0 15px var(--accent);
    }

    .pg-val {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        color: white;
        font-weight: bold;
    }

    .pg-footer {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        font-family: monospace;
    }

    .c-accent {
        color: var(--accent);
    }

    background-image: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

/* Dynamic Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow), 0 0 10px var(--accent-glow);
}

.btn-outline {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
    height: var(--header-height);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--container-width);
    z-index: 1000;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text {
    color: var(--text-main);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust {
    margin-top: 20px;
}

.hero-trust p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-logos img {
    height: 60px;
    width: 120px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    filter: none;
    transition: all 0.3s ease;
}

.hero-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
    /* Slight lift instead of scale */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.logo-fossil {
    padding: 0 !important;
    object-fit: contain !important;
}

.trust-more {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
    opacity: 0.8;
}

/* Visual Card (Glass) */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 50px rgba(99, 102, 241, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.5);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: rotateY(0deg) rotateX(0deg);
}

/* Floating Elements */
.hero-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .site-header {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        margin: 0 auto;
    }

    .main-nav {
        display: none;
    }

    .hero-visual img {
        transform: none;
    }

    .floating-card {
        display: none;
        /* Hide floating cards on mobile */
    }
}

/* Hero Floating Cards */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-main);
}

.text-success {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Card Positions & Animations */
.card-roi {
    top: 10%;
    right: -10%;
    border-left: 4px solid #4ade80;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.15);
    animation-delay: 0s;
}

.card-traffic {
    bottom: 15%;
    left: -15%;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    animation-delay: 2s;
}

.card-roas {
    bottom: -5%;
    right: 5%;
    border-left: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    animation-delay: 4s;
}

@keyframes float {

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

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

/* Authority Card Specific Styles */
.auth-metric {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-metric>span:first-child {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.auth-metric>span:last-child {
    display: block;
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-top: 20px;
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
}

.meter {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: fillAnimation 2s ease-out;
}

.fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes fillAnimation {
    from {
        width: 0 !important;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.service-card:nth-child(1) {
    transition-delay: 0.05s;
}

.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.15s;
}

.service-card:nth-child(4) {
    transition-delay: 0.2s;
}

.service-card:nth-child(5) {
    transition-delay: 0.25s;
}

.service-card:nth-child(6) {
    transition-delay: 0.3s;
}

.feature-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-list li:nth-child(3) {
    transition-delay: 0.3s;
}

/* Sections General */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* Features Section */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-list h4 {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.feature-list p {
    color: var(--text-muted);
    font-size: 15px;
}

.features-visual {
    position: relative;
}

.feature-card-visual {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    backdrop-filter: blur(20px);
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat-value {
    display: block;
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 120px 0;
}

.cta-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Lead Form Styles */
.lead-form {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.input-group {
    flex: 1;
    min-width: 250px;
}

.lead-form input {
    width: 100%;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    outline: none;
}

.lead-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.lead-form button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    min-width: 200px;
}

.form-note {
    font-size: 14px !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .lead-form {
        flex-direction: column;
    }

    .lead-form button {
        width: 100%;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    background: rgba(0, 0, 0, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 24px;
    font-family: var(--font-display);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 15px;
}

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

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Methodology Section (Enhanced) */
.methodology {
    position: relative;
}

/* Connecting Line (Desktop) */
.methodology-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 80px;
    position: relative;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    /* Aligns with markers */
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 0;
    opacity: 0.3;
}

.timeline-step {
    position: relative;
    z-index: 1;
}

.step-marker {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    box-shadow: 0 0 15px var(--primary-glow);
    position: relative;
    z-index: 2;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.step-icon {
    font-size: 24px;
}

.step-card h3 {
    font-size: 18px;
    font-family: var(--font-display);
    color: var(--text-main);
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.step-details {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.step-details h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.step-details ul {
    list-style: none;
}

.step-details li {
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 6px;
    padding-left: 12px;
    position: relative;
}

.step-details li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.step-metric {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.step-metric strong {
    color: var(--accent);
}

@media (max-width: 968px) {
    .methodology-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .methodology-timeline::before {
        display: none;
        /* Hide horizontal line on mobile */
    }

    .step-marker {
        margin-bottom: 16px;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Updates */
@media (max-width: 968px) {
    .features-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list li {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .cta-buttons {}
}

/* SEO Page Specific Styles */
.service-hero {
    padding-top: 160px;
    padding-bottom: 100px;
}

.badge-wrapper {
    margin-bottom: 20px;
}

.badge {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Service Details (Zigzag) */
.detail-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
}

.detail-block.reverse {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Watermark Number */
.detail-content::before {
    content: attr(data-step);
    position: absolute;
    top: -60px;
    left: -40px;
    font-size: 180px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    font-family: var(--font-display);
    z-index: -1;
    line-height: 1;
}

.detail-content h3 {
    font-size: 42px;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.detail-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.detail-item h4 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-item span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    display: block;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.detail-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Enhanced Visual Cards */
.tech-card,
.content-card,
.authority-card,
.seo-visual-card {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatCard 6s ease-in-out infinite;
}

.tech-card:hover,
.content-card:hover,
.authority-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.2), inset 0 0 0 1px rgba(168, 85, 247, 0.3);
}

@keyframes floatCard {

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

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

/* Specific Card Styles */
.code-snippet {
    font-family: 'Fira Code', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    font-size: 14px;
}

.code-snippet .tag {
    color: #f472b6;
}

.code-snippet .attr {
    color: #a78bfa;
}

.code-snippet .val {
    color: #34d399;
}

.health-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(52, 211, 153, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.health-score strong {
    color: #34d399;
    font-size: 24px;
    font-weight: 700;
}

.keyword-bubble {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    position: absolute;
    font-size: 14px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.keyword-bubble.main {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: rgba(168, 85, 247, 0.3);
    color: #fff;
    padding: 15px 30px;
    margin: 40px auto;
    display: block;
    text-align: center;
    width: fit-content;
}

.keyword-bubble.sub1 {
    top: 20px;
    left: 20px;
    animation: float 4s infinite;
}

.keyword-bubble.sub2 {
    bottom: 30px;
    right: 20px;
    animation: float 5s infinite 1s;
}

.keyword-bubble.sub3 {
    top: 40px;
    right: 10px;
    animation: float 6s infinite 2s;
}

@keyframes float {

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

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

/* Visual Cards (Abstract) */
.tech-card,
.content-card,
.authority-card,
.seo-visual-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.seo-visual-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rank-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
}

.rank-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 80%;
    background: var(--success);
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tech-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s;
}

.tech-item span {
    font-size: 14px;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tech-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* Meta Page Specific Visuals */

/* Targeting Card (Funnel) */
.targeting-card {
    width: 300px;
    height: 320px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(24, 119, 242, 0.1);
    /* Facebook Blue Glow */
    animation: floatCard 6s ease-in-out infinite;
}

.layer {
    width: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    position: relative;
    transition: all 0.3s;
}

.layer-1 {
    height: 60px;
    width: 90%;
    background: linear-gradient(90deg, rgba(24, 119, 242, 0.2), rgba(24, 119, 242, 0.4));
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.layer-2 {
    height: 60px;
    width: 70%;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.4));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.layer-3 {
    height: 60px;
    width: 50%;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.4));
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.pointer-arrow {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--success);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    50% {
        transform: translateY(5px);
    }
}

/* Ad Card (Preview) */
.ad-card {
    width: 280px;
    background: #1c1c1e;
    /* Darker card bg */
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: floatCard 7s ease-in-out infinite reverse;
}

.ad-header {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-1);
    border-radius: 50%;
}

.ad-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.ad-sponsored {
    font-size: 11px;
    color: var(--text-muted);
}

.ad-content {
    padding: 12px;
}

.ad-text-lines {
    height: 8px;
    width: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.ad-image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(45deg, #2c2c2e, #3a3a3c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.ad-cta-bar {
    height: 30px;
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.3);
    color: #1877F2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.ad-stats {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ROAS Card (Chart) */
.roas-card {
    width: 300px;
    height: 240px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
    /* Green Glow */
    animation: floatCard 8s ease-in-out infinite;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    width: 100%;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
    position: relative;
}

.chart-bar.active {
    background: var(--success);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.chart-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    animation: fadeIn 1s ease-out;
}

.chart-label {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}


/* Technical & Analytical Visuals for Meta Page */

/* Dashboard Card (Hero) */
.dashboard-card {
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    font-family: 'Inter', monospace;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.dash-title {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.d-label {
    font-size: 11px;
    color: var(--text-muted);
}

.d-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.d-change {
    font-size: 11px;
    font-weight: 600;
}

.d-change.up {
    color: var(--success);
}

.d-change.down {
    color: var(--accent);
}

/* CSS Chart */
.dash-chart-area {
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
    padding: 10px;
    display: flex;
    align-items: flex-end;
}

.css-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-point {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.p1 {
    bottom: 20%;
    left: 0%;
}

.p2 {
    bottom: 45%;
    left: 25%;
}

.p3 {
    bottom: 40%;
    left: 50%;
}

.p4 {
    bottom: 70%;
    left: 75%;
}

.p5 {
    bottom: 85%;
    left: 100%;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Simple approximation of a line */
    background: linear-gradient(to right, transparent 0%, transparent 100%);
    /* In a real scenario, SVG is better. Here we use points. */
}

/* Hero Metrics Row */
.hero-metrics-row {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.metric-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-pill .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-pill .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

/* Technical Targeting Card */
.targeting-card.technical {
    background: #0f0f11;
    border: 1px solid #333;
    padding: 0;
    gap: 0;
    justify-content: flex-start;
}

.tech-layer {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-layer:last-child {
    border-bottom: none;
}

.l-name {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
}

.l-metric {
    font-size: 12px;
    font-family: monospace;
    color: var(--primary);
}

.l1 {
    border-left: 4px solid var(--primary);
}

.l2 {
    border-left: 4px solid var(--accent);
}

.l3 {
    border-left: 4px solid var(--success);
}

.tech-result {
    padding: 15px;
    width: 100%;
    text-align: center;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-weight: bold;
    font-family: monospace;
}

/* A/B Test Card */
.ab-test-card {
    width: 320px;
    background: #151518;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.test-header {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-family: monospace;
}

.test-row {
    margin-bottom: 15px;
}

.test-row .variant {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: white;
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress .fill {
    height: 100%;
    border-radius: 3px;
}

.winner .fill {
    background: var(--success);
}

.loser .fill {
    background: var(--accent);
}

.score {
    font-size: 11px;
    color: var(--text-muted);
    float: right;
}

.test-badge {
    margin-top: 15px;
    text-align: center;
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Metrics Section */
.metrics-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(24, 119, 242, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
}

.metrics-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.metric-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.m-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.m-data {
    display: flex;
    flex-direction: column;
}

.m-val {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.m-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mini Stats Grid */
.stats-grid-mini {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-mini {
    display: flex;
    flex-direction: column;
}

/* Missing Technical Visual Styles */
.floating-stat {
    position: absolute;
    background: rgba(20, 20, 22, 0.9);
    border: 1px solid var(--success);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.fs-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.fs-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--success);
}

.graph-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.data-line-path {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: 60%;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 197, 94, 0.2) 100%);
    border-top: 3px solid var(--success);
    border-radius: 0 100% 0 0;
    /* Curve effect */
    z-index: 2;
    transform-origin: bottom left;
    animation: growGraph 2s ease-out forwards;
}

@keyframes growGraph {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.stat-mini strong {
    font-size: 18px;
    color: white;
}

.stat-mini span {
    font-size: 11px;
    color: var(--text-muted);
}

.mt-small {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
}



.spec-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.spec-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.spec-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

/* FAQ Styles */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 500;
}

.toggle-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {

    .detail-block,
    .detail-block.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .service-hero {
        padding-top: 120px;
    }
}

/* Missing SEO Visual Styles */
.traffic-stats {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.stat-row span:last-child {
    font-weight: 600;
    font-size: 16px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 60px;
}

/* Google Ads Page Specific Visuals */

/* Google Theme Overrides */
.google-theme .dash-status {
    color: #4285F4;
    /* Google Blue */
}

.google-dot {
    background: #4285F4;
    box-shadow: 0 0 8px #4285F4;
}

.google-theme .d-change.up {
    color: #34A853;
}

/* Google Green */
.google-theme .d-change.down {
    color: #EA4335;
}

/* Google Red */

/* CSS Bar Chart */
.css-bar-chart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    animation: growBar 1.5s ease-out forwards;
}

.b1 {
    height: 40%;
    animation-delay: 0.1s;
}

.b2 {
    height: 60%;
    animation-delay: 0.2s;
}

.b3 {
    height: 45%;
    animation-delay: 0.3s;
}

.b4 {
    height: 80%;
    background: #4285F4;
    animation-delay: 0.4s;
}

/* Highlight */
.b5 {
    height: 70%;
    animation-delay: 0.5s;
}

.b6 {
    height: 90%;
    animation-delay: 0.6s;
}

.b7 {
    height: 85%;
    animation-delay: 0.7s;
}

@keyframes growBar {
    from {
        height: 0;
    }

    to {
        height: var(--h);
    }

    /* Note: height is set in class, animation needs to handle it or just use from 0 */
}

/* Auction Card */
.auction-card {
    background: #18181b;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Inter', sans-serif;
}

.auction-header {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.formula-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.f-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.f-box.bid {
    border: 1px solid #4285F4;
}

.f-box.qs {
    border: 1px solid #FBBC05;
}

.f-box.rank {
    border: 1px solid #34A853;
    background: rgba(52, 168, 83, 0.1);
}

.f-val {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: white;
}

.f-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.f-op {
    font-weight: bold;
    color: var(--text-muted);
}

.competitor-row {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Quality Score Gauge */
.qs-gauge-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    position: relative;
}

.gauge-wrapper {
    width: 200px;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.gauge-arc {
    width: 200px;
    height: 200px;
    background: conic-gradient(from 270deg, #EA4335 0deg, #FBBC05 60deg, #34A853 120deg, transparent 180deg);
    border-radius: 50%;
    mask: radial-gradient(transparent 60%, black 61%);
    -webkit-mask: radial-gradient(transparent 60%, black 61%);
    transform: rotate(-90deg);
}

.gauge-needle {
    width: 4px;
    height: 90px;
    background: white;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: rotate(60deg);
    /* Pointing to high score */
    border-radius: 4px;
    animation: gaugeMove 2s ease-out forwards;
}

@keyframes gaugeMove {
    from {
        transform: rotate(-80deg);
    }

    to {
        transform: rotate(60deg);
    }
}

.gauge-value {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.gauge-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.qs-components {
    display: flex;
    gap: 10px;
}

.qs-comp {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
}

.qs-comp.active {
    color: #34A853;
    border: 1px solid rgba(52, 168, 83, 0.3);
}

/* ROI Graph Card */
.roi-graph-card {
    width: 350px;
    height: 250px;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.roi-chart-area {
    width: 100%;
    height: 100%;
    position: relative;
}

.line-cost {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 40%;
    border-top: 2px dashed #EA4335;
    background: linear-gradient(to bottom, rgba(234, 67, 53, 0.1), transparent);
    transform: skewY(-5deg);
}

.line-revenue {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 80%;
    border-top: 3px solid #34A853;
    background: linear-gradient(to bottom, rgba(52, 168, 83, 0.2), transparent);
    transform: skewY(-15deg);
    z-index: 2;
}

.roi-label {
    position: absolute;
    font-size: 10px;
    font-weight: bold;
}

.roi-label.cost {
    bottom: 45%;
    right: 10px;
    color: #EA4335;
}

.roi-label.revenue {
    bottom: 85%;
    right: 10px;
    color: #34A853;
}

.roi-stat-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #34A853;
    z-index: 10;
}

.roi-stat-overlay span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.roi-stat-overlay strong {
    font-size: 18px;
    color: #34A853;
}

/* Homepage Technical Visuals */

/* Tech Grid Background */
.tech-grid-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 1000px;
    }
}

/* Terminal Card Typing Effect */
.term-line {
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end);
    border-right: 2px solid transparent;
}

.term-line:nth-child(1) {
    animation-delay: 0s;
    width: 0;
    animation-fill-mode: forwards;
}

.term-line:nth-child(2) {
    animation-delay: 1s;
    width: 0;
    animation-fill-mode: forwards;
}

.term-line:nth-child(3) {
    animation-delay: 2s;
    width: 0;
    animation-fill-mode: forwards;
}

.term-line:nth-child(4) {
    animation-delay: 3s;
    width: 0;
    animation-fill-mode: forwards;
    border-right: 2px solid var(--success);
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--success)
    }
}

/* Dashboard Scanning Effect */
.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.8);
    animation: scan 3s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Glitch Effect for Title */
.dash-title {
    position: relative;
}

.dash-title::before,
.dash-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141416;
    /* Match card bg */
}

.dash-title::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.dash-title::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: skew(0.5deg);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
        transform: skew(0.1deg);
    }

    10% {
        clip: rect(30px, 9999px, 10px, 0);
        transform: skew(0.3deg);
    }

    15% {
        clip: rect(90px, 9999px, 20px, 0);
        transform: skew(0.8deg);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
        transform: skew(0.2deg);
    }

    100% {
        clip: rect(50px, 9999px, 60px, 0);
        transform: skew(0.6deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(60px, 9999px, 10px, 0);
        transform: skew(0.7deg);
    }

    5% {
        clip: rect(20px, 9999px, 80px, 0);
        transform: skew(0.2deg);
    }

    10% {
        clip: rect(90px, 9999px, 10px, 0);
        transform: skew(0.4deg);
    }

    15% {
        clip: rect(10px, 9999px, 50px, 0);
        transform: skew(0.1deg);
    }

    20% {
        clip: rect(50px, 9999px, 20px, 0);
        transform: skew(0.9deg);
    }

    100% {
        clip: rect(30px, 9999px, 70px, 0);
        transform: skew(0.3deg);
    }
}

/* Terminal Card */
.terminal-card {
    top: -20px !important;
    right: -20px !important;
    left: auto !important;
    background: #0f0f11 !important;
    border: 1px solid #333 !important;
    padding: 0 !important;
    width: 280px !important;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    z-index: 5;
}

.term-header {
    background: #1f1f22;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #333;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-dot.red {
    background: #ff5f56;
}

.term-dot.yellow {
    background: #ffbd2e;
}

.term-dot.green {
    background: #27c93f;
}

.term-body {
    padding: 15px;
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
}

.term-line {
    margin-bottom: 4px;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Tech Line Chart */
.tech-line-chart {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.05) 50%, transparent 51%),
        linear-gradient(transparent 49%, rgba(255, 255, 255, 0.05) 50%, transparent 51%);
    background-size: 20px 20px;
    position: relative;
}

.tech-line-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2));
    clip-path: polygon(0 100%, 10% 80%, 20% 85%, 30% 60%, 40% 70%, 50% 40%, 60% 55%, 70% 30%, 80% 45%, 90% 20%, 100% 10%, 100% 100%);
}

.tech-line-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    border-top: 2px solid var(--primary);
    clip-path: polygon(0 100%, 10% 80%, 20% 85%, 30% 60%, 40% 70%, 50% 40%, 60% 55%, 70% 30%, 80% 45%, 90% 20%, 100% 10%, 100% 100%);
    /* Same path but for border */
    z-index: 2;
}

/* Algorithmic Growth Engine Styles */
.algo-engine-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(124, 58, 237, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    overflow: hidden;
}

.engine-visual-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.engine-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input Packets */
.data-packet {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: flowRight 3s infinite linear;
    opacity: 0;
}

.data-packet:nth-child(1) {
    animation-delay: 0s;
}

.data-packet:nth-child(2) {
    animation-delay: 1s;
}

.data-packet:nth-child(3) {
    animation-delay: 2s;
}

@keyframes flowRight {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(50px);
        opacity: 0;
    }
}

/* The Core (CPU) */
.engine-core {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.core-chip {
    width: 160px;
    height: 160px;
    background: #111;
    border: 2px solid var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.chip-logo {
    font-family: 'Orbitron', sans-serif;
    /* Or monospace */
    font-weight: 900;
    font-size: 24px;
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 0 0 10px var(--primary);
}

.chip-circuits {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(124, 58, 237, .3) 25%, rgba(124, 58, 237, .3) 26%, transparent 27%, transparent 74%, rgba(124, 58, 237, .3) 75%, rgba(124, 58, 237, .3) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(124, 58, 237, .3) 25%, rgba(124, 58, 237, .3) 26%, transparent 27%, transparent 74%, rgba(124, 58, 237, .3) 75%, rgba(124, 58, 237, .3) 76%, transparent 77%, transparent);
    background-size: 30px 30px;
}

.core-status {
    margin-top: 15px;
    font-family: monospace;
    color: var(--success);
    font-size: 12px;
    animation: blinker 1s infinite;
}

/* Growth Protocol Styles */
.growth-protocol {
    padding: 100px 0;
    background: #050505;
    position: relative;
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.protocol-card {
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.protocol-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.p-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.p-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
}

.protocol-card:hover .p-num {
    color: var(--primary);
}

.p-header h3 {
    font-size: 20px;
    margin: 0;
}

.p-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.p-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pm-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pm-val {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* Visuals */
.p-visual {
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Stream Visual */
.visual-stream {
    font-family: monospace;
    color: var(--success);
    font-size: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.7;
}

.stream-line {
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 5px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: scanDown 2s infinite linear;
}

@keyframes scanDown {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Grid Visual */
.visual-grid {
    position: relative;
}

.grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
}

.h1 {
    top: 30%;
    left: 0;
    width: 100%;
    height: 1px;
}

.h2 {
    top: 70%;
    left: 0;
    width: 100%;
    height: 1px;
}

.v1 {
    left: 30%;
    top: 0;
    height: 100%;
    width: 1px;
}

.v2 {
    left: 70%;
    top: 0;
    height: 100%;
    width: 1px;
}

.grid-node {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: moveNode 4s infinite;
}

@keyframes moveNode {
    0% {
        top: 30%;
        left: 30%;
    }

    25% {
        top: 30%;
        left: 70%;
    }

    50% {
        top: 70%;
        left: 70%;
    }

    75% {
        top: 70%;
        left: 30%;
    }

    100% {
        top: 30%;
        left: 30%;
    }
}

/* Pulse Visual */
.visual-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulseOut 2s infinite;
}

.r1 {
    animation-delay: 0s;
}

.r2 {
    animation-delay: 0.6s;
}

@keyframes pulseOut {
    0% {
        width: 12px;
        height: 12px;
        opacity: 0.8;
    }

    100% {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

/* Curve Visual */
.visual-curve {
    display: flex;
    align-items: flex-end;
}

.curve-path {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary));
    clip-path: polygon(0 100%, 20% 90%, 40% 80%, 60% 50%, 80% 30%, 100% 10%, 100% 100%);
    opacity: 0.3;
}

.curve-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-top: 2px solid var(--primary);
    clip-path: polygon(0 100%, 20% 90%, 40% 80%, 60% 50%, 80% 30%, 100% 10%, 100% 100%);
    /* Same path */
    animation: drawCurve 3s ease-out forwards;
}

@keyframes drawCurve {
    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .protocol-grid {
        grid-template-columns: 1fr;
    }
}

/* Growth Visual */
.growth-chart-bg {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.growth-line-path {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--success));
    clip-path: polygon(0 100%, 20% 80%, 40% 85%, 60% 40%, 80% 50%, 100% 10%, 100% 100%);
    opacity: 0.5;
}

.growth-stat {
    position: absolute;
    top: 30px;
    left: 30px;
    background: #111;
    border: 1px solid var(--success);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}

.gs-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.gs-val {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--success);
}

@media (max-width: 992px) {

    .step-content-wrapper,
    .step-content-wrapper.reverse {
        flex-direction: column;
    }

    .step-visual {
        width: 100%;
        height: 200px;
        /* Slightly taller for mobile/tablet */
    }

    .engine-visual-wrapper {
        flex-direction: column;
    }

    .data-packet {
        animation: none;
        opacity: 1;
        transform: none;
        width: 100%;
        /* Full width on mobile */
        justify-content: center;
    }

    .engine-col {
        width: 100%;
    }
}

/* Output Packets */
.result-packet {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--success);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 120px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.result-packet:hover {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.rp-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.rp-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Global Overflow Fix */
/* AI Generative Page Visuals */

/* Math Overlay */
.math-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.math-symbol {
    position: absolute;
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.05);
    animation: floatMath 10s ease-in-out infinite;
}

@keyframes floatMath {

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

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

/* Neural Network Card */
.neural-card {
    background: #0a0a0c;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.neural-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
}

.n-status {
    color: var(--accent);
    animation: blink 2s infinite;
}

.neural-net {
    height: 200px;
    position: relative;
    margin-bottom: 20px;
}

.node {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--primary);
    z-index: 2;
}

.n1 {
    top: 20%;
    left: 10%;
}

.n2 {
    top: 80%;
    left: 10%;
}

.n3 {
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.n4 {
    top: 20%;
    left: 90%;
}

.n5 {
    top: 80%;
    left: 90%;
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    height: 1px;
    opacity: 0.3;
    transform-origin: 0 0;
    z-index: 1;
}

/* Simple CSS lines for connections - in a real app SVG is better */
.c1 {
    top: 20%;
    left: 10%;
    width: 180px;
    transform: rotate(25deg);
}

.c2 {
    top: 80%;
    left: 10%;
    width: 180px;
    transform: rotate(-25deg);
}

.c3 {
    top: 50%;
    left: 50%;
    width: 180px;
    transform: rotate(-25deg);
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.c4 {
    top: 50%;
    left: 50%;
    width: 180px;
    transform: rotate(25deg);
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.neural-console {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: #ccc;
}

.console-line {
    margin-bottom: 4px;
}

.c-green {
    color: var(--success);
}

/* Code Terminal */
.code-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Fira Code', monospace;
    border: 1px solid #333;
}

.term-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.term-buttons {
    position: absolute;
    left: 15px;
    display: flex;
    gap: 6px;
}

.term-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.term-buttons span:nth-child(2) {
    background: #ffbd2e;
}

.term-buttons span:nth-child(3) {
    background: #27c93f;
}

.term-title {
    color: #999;
    font-size: 12px;
}

.term-body {
    padding: 20px;
    color: #d4d4d4;
    font-size: 12px;
    line-height: 1.5;
}

.language-python {
    color: #ce9178;
}

/* Probability Graph */
.graph-card {
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.graph-header {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bell-curve-container {
    height: 150px;
    position: relative;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.bell-curve {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.2) 0%, transparent 100%);
    border-top: 2px solid var(--accent);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.5);
    /* Stretch to look like bell curve */
}

.mean-line {
    position: absolute;
    height: 100%;
    width: 1px;
    background: var(--text-muted);
    border-left: 1px dashed var(--text-muted);
    left: 50%;
    top: 0;
}

.label-mean {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.graph-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

/* Client Login Page */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
}

.login-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.login-card {
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.lock-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.login-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

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

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

.divider {
    margin: 0 10px;
    opacity: 0.3;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

.login-error.hidden {
    display: none;
}

.error-icon {
    width: 18px;
    height: 18px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

@keyframes shake {

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

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* =========================================
   Responsive Design
   ========================================= */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logos {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        /* Limit height on tablet */
    }

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .site-header {
        width: calc(100% - 20px);
        top: 10px;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Navigation */
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        padding: 100px 40px;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .main-nav a {
        font-size: 20px;
        display: block;
    }

    /* Layout Adjustments */
    .services-grid,
    .protocol-grid,
    .engine-visual-wrapper,
    .features-container {
        grid-template-columns: 1fr;
        display: grid;
    }

    .engine-visual-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .logo a {
        justify-content: center;
    }

    /* Typography */
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    /* Spacing */
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 140px;
    }

    .header-actions {
        display: none;
    }
}