/* ============================================
   APEX AUTOMATION - LANDING PAGE STYLES
   Dark Technical Elegance Theme
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors - Dark Command Center Palette */
    --color-bg-deep: #050a0d;
    --color-bg-primary: #0a1215;
    --color-bg-elevated: #0f1a1f;
    --color-bg-card: #111f26;
    --color-bg-hover: #152a33;

    --color-text-primary: #e8f0f2;
    --color-text-secondary: #8fa3ad;
    --color-text-muted: #5a7080;

    --color-accent-cyan: #00F0FF;
    --color-accent-cyan-muted: #00c4d4;
    --color-accent-orange: #FF6B35;
    --color-accent-orange-muted: #e55a28;

    --color-border: rgba(0, 240, 255, 0.1);
    --color-border-strong: rgba(0, 240, 255, 0.2);

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-deep);
    overflow-x: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-cyan) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-orange) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
    opacity: 0.15;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent-cyan) 0%, transparent 70%);
    bottom: -200px;
    right: 20%;
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-xl);
    background: rgba(5, 10, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent-cyan);
}

.logo-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) ease;
}

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

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-accent-cyan);
    color: var(--color-bg-deep) !important;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--duration-fast) ease;
}

.nav-cta:hover {
    background: var(--color-accent-cyan-muted);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 10, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.mobile-open {
        display: flex;
    }

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

    .nav-links .nav-cta {
        margin-top: 1rem;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--duration-fast) ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    max-width: 900px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out-expo) backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-accent {
    font-family: var(--font-display);
    font-style: italic;
    background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent em {
    font-style: italic;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-fast) ease;
}

.btn-primary {
    background: var(--color-accent-cyan);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background: var(--color-accent-cyan-muted);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-strong);
}

.btn-secondary:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent-cyan);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s backwards;
}

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

.stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.stat-suffix {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--color-accent-cyan);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual - Flow Diagram */
.hero-visual {
    position: absolute;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 700px;
    opacity: 0.5;
    pointer-events: none;
}

.flow-diagram {
    width: 100%;
    height: auto;
}

.flow-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: flowDraw 3s var(--ease-out-expo) forwards infinite;
}

.flow-line-1 { animation-delay: 0s; }
.flow-line-2 { animation-delay: 1s; }
.flow-line-3 { animation-delay: 2s; }

@keyframes flowDraw {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}

.node {
    animation: nodeFloat 4s ease-in-out infinite;
}

.node-1 { animation-delay: 0s; }
.node-2 { animation-delay: 1s; }
.node-3 { animation-delay: 2s; }
.node-4 { animation-delay: 3s; }

@keyframes nodeFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -5px); }
}

.particle {
    animation: particlePulse 2s ease-in-out infinite;
}

.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: 0.6s; }
.particle:nth-child(3) { animation-delay: 1.2s; }

@keyframes particlePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Trust Bar */
.trust-bar {
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-primary);
}

.trust-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
}

.trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.5;
    transition: opacity var(--duration-fast) ease;
}

.trust-logo:hover {
    opacity: 0.8;
}

/* Section Styles */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-header {
    margin-bottom: var(--space-4xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-cyan);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section */
.services {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all var(--duration-normal) var(--ease-out-quart);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan) 0%, var(--color-accent-orange) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.service-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
    border-color: var(--color-border-strong);
    padding: var(--space-3xl);
}

.service-featured-content {
    display: flex;
    flex-direction: column;
}

.service-featured-content .service-number {
    margin-bottom: var(--space-md);
}

.service-featured .service-icon {
    width: 56px;
    height: 56px;
}

.service-featured .service-title {
    font-size: 1.75rem;
}

.service-featured .service-description {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.service-featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.workflow-visual {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.wf-node {
    opacity: 0.9;
}

.flow-dot {
    filter: drop-shadow(0 0 6px var(--color-accent-cyan));
}

@media (max-width: 768px) {
    .service-featured {
        grid-template-columns: 1fr;
        padding: var(--space-2xl);
    }

    .service-featured-visual {
        order: -1;
    }
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent-cyan);
    margin-bottom: var(--space-lg);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.service-features li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-left: var(--space-md);
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--color-accent-cyan);
    border-radius: 50%;
}

/* Service Card Animations */
.service-card-visual {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    pointer-events: none;
}

.service-card:hover .service-card-visual {
    opacity: 0.8;
}

.service-anim {
    width: 100%;
    height: 100%;
}

/* Chat bubble animations */
.chat-bubble {
    opacity: 0;
    animation: chatFadeIn 0.5s ease forwards;
}

.chat-bubble-1 { animation-delay: 0s; }
.chat-bubble-2 { animation-delay: 0.8s; }
.chat-bubble-3 { animation-delay: 1.6s; }

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-dot {
    animation: typingPulse 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
}

/* Lead particle glow */
.lead-particle {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Output pulse animation */
.output-pulse {
    animation: outputPulse 2s ease-in-out infinite;
}

@keyframes outputPulse {
    0%, 100% { r: 5; opacity: 0.3; }
    50% { r: 8; opacity: 1; }
}

/* Chart bar glow */
.chart-bar {
    filter: drop-shadow(0 0 3px currentColor);
}

/* Process Section */
.process {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-deep);
}

.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.process-timeline {
    position: relative;
    display: grid;
    gap: var(--space-3xl);
}

.process-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.process-animation {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Gear rotation animations */
.gear-large {
    animation: gearRotateSlow 20s linear infinite;
}

.gear-medium {
    animation: gearRotateMedium 12s linear infinite reverse;
}

.gear-small {
    animation: gearRotateFast 8s linear infinite;
}

@keyframes gearRotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearRotateMedium {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearRotateFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Flow particles glow effect */
.flow-particles circle {
    filter: drop-shadow(0 0 6px currentColor);
}

.process-stats-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
    border: 1px solid var(--color-border-strong);
    border-radius: 16px;
    padding: var(--space-2xl);
    width: 100%;
    max-width: 380px;
}

.stats-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.stats-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    color: var(--color-accent-cyan);
}

.stats-card-icon svg {
    width: 22px;
    height: 22px;
}

.stats-card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.stats-card-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.stats-metric {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 var(--space-md);
    align-items: baseline;
}

.stats-metric-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-accent-cyan);
    grid-row: span 2;
}

.stats-metric-unit {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    align-self: end;
}

.stats-metric-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    align-self: start;
}

.stats-card-footer {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.stats-tools {
    display: flex;
    gap: var(--space-sm);
}

.stats-tool {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-deep);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

@media (max-width: 1024px) {
    .process-wrapper {
        grid-template-columns: 1fr;
    }

    .process-visual {
        order: -1;
        padding: var(--space-xl) 0;
    }

    .process-stats-card {
        max-width: 100%;
    }
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 40px;
    bottom: 40px;
    width: 1px;
    background: linear-gradient(180deg,
        var(--color-accent-cyan) 0%,
        var(--color-border) 50%,
        var(--color-accent-cyan) 100%
    );
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-strong);
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent-cyan);
}

.step-content {
    padding-top: var(--space-sm);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.step-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.step-deliverable {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-elevated);
    border-radius: 6px;
    font-size: 0.875rem;
}

.deliverable-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-cyan);
}

/* Work Section */
.work {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.case-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out-quart);
}

.case-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-4px);
}

.case-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.case-image {
    background: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

.case-image-placeholder {
    width: 100%;
    max-width: 300px;
    color: var(--color-border-strong);
}

.case-image-placeholder svg {
    width: 100%;
    height: auto;
}

/* Case Study Animation */
.case-visual {
    width: 100%;
    max-width: 300px;
}

.results-animation {
    width: 100%;
    height: auto;
}

/* Animated line drawing */
.results-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease-out forwards infinite;
}

.results-line-glow {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 3s ease-out forwards infinite;
    opacity: 0.5;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 400; }
    40% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}

/* Data points animation */
.data-point {
    opacity: 0;
    animation: pointAppear 0.3s ease-out forwards;
}

.data-point:nth-child(1) { animation-delay: 0.5s; }
.data-point:nth-child(2) { animation-delay: 0.8s; }
.data-point:nth-child(3) { animation-delay: 1.1s; }
.data-point:nth-child(4) { animation-delay: 1.4s; }
.data-point:nth-child(5) { animation-delay: 1.7s; }
.data-point:nth-child(6) { animation-delay: 2s; }

@keyframes pointAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.data-point-end {
    filter: drop-shadow(0 0 6px var(--color-accent-cyan));
}

/* Pulse rings */
.pulse-ring {
    opacity: 0;
    animation: pulseExpand 2s ease-out infinite;
    animation-delay: 2.2s;
}

.pulse-ring-2 {
    animation-delay: 2.5s;
}

@keyframes pulseExpand {
    0% { opacity: 0.8; r: 8; }
    100% { opacity: 0; r: 25; }
}

/* Trend arrow */
.trend-arrow {
    opacity: 0;
    animation: arrowBounce 1s ease-out forwards;
    animation-delay: 2.2s;
}

@keyframes arrowBounce {
    0% { opacity: 0; transform: translate(175px, 35px); }
    60% { transform: translate(175px, 20px); }
    100% { opacity: 1; transform: translate(175px, 25px); }
}

/* Result percentage */
.result-percent {
    opacity: 0;
    animation: percentFade 0.5s ease-out forwards;
    animation-delay: 2.4s;
}

@keyframes percentFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.case-content {
    padding: var(--space-2xl);
}

.case-category {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-orange);
    margin-bottom: var(--space-md);
}

.case-title {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.case-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xl);
}

.case-metrics {
    display: flex;
    gap: var(--space-2xl);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-accent-cyan);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Testimonials */
.testimonials {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-deep);
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    position: relative;
}

.testimonial-card {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-xl);
    left: var(--space-2xl);
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--color-border);
    line-height: 1;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-bg-deep);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 500;
}

.author-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    border-color: var(--color-accent-cyan);
}

.testimonial-dot.active {
    background: var(--color-accent-cyan);
    border-color: var(--color-accent-cyan);
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 var(--space-md);
}

.testimonial-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.testimonial-arrow:hover {
    border-color: var(--color-accent-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.testimonial-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

.testimonial-arrow:hover svg {
    color: var(--color-accent-cyan);
}

@media (max-width: 768px) {
    .testimonial-arrows {
        position: static;
        transform: none;
        justify-content: center;
        gap: var(--space-md);
        margin-top: var(--space-lg);
        padding: 0;
    }

    .testimonial-quote {
        font-size: 1.125rem;
    }
}

/* CTA Section */
.cta {
    padding: var(--space-5xl) 0;
    background: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

.cta-actions {
    margin-bottom: var(--space-xl);
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.cta-note svg {
    color: var(--color-accent-cyan);
}

/* CTA Animation */
.cta-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    opacity: 0.4;
}

.cta-animation {
    width: 100%;
    height: 100%;
}

/* Orbital animations */
.orbit-outer {
    animation: orbitRotate 60s linear infinite;
    transform-origin: center;
}

.orbit-middle {
    animation: orbitRotate 40s linear infinite reverse;
    transform-origin: center;
}

.orbit-inner {
    animation: orbitRotate 20s linear infinite;
    transform-origin: center;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbit particles glow */
.orbit-particle {
    filter: drop-shadow(0 0 8px currentColor);
}

/* Core animations */
.core-ring {
    animation: coreRingSpin 10s linear infinite;
    transform-origin: center;
}

@keyframes coreRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.core-center {
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { opacity: 0.6; r: 10; }
    50% { opacity: 1; r: 14; }
}

/* Energy pulse waves */
.energy-pulse {
    opacity: 0;
    animation: energyWave 3s ease-out infinite;
}

.pulse-2 { animation-delay: 1s; }
.pulse-3 { animation-delay: 2s; }

@keyframes energyWave {
    0% { opacity: 0.8; r: 40; }
    100% { opacity: 0; r: 100; }
}

/* Connection rays animation */
.ray {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: rayExtend 3s ease-out infinite;
}

.ray:nth-child(2) { animation-delay: 0.2s; }
.ray:nth-child(3) { animation-delay: 0.4s; }
.ray:nth-child(4) { animation-delay: 0.6s; }
.ray:nth-child(5) { animation-delay: 0.8s; }
.ray:nth-child(6) { animation-delay: 1s; }
.ray:nth-child(7) { animation-delay: 1.2s; }
.ray:nth-child(8) { animation-delay: 1.4s; }

@keyframes rayExtend {
    0% { stroke-dashoffset: 100; opacity: 0; }
    50% { stroke-dashoffset: 0; opacity: 0.5; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 768px) {
    .cta-visual {
        width: 300px;
        height: 300px;
        opacity: 0.25;
    }
}

/* Footer */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
}

.copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.footer-legal a:hover {
    color: var(--color-text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual {
        opacity: 0.3;
        width: 70%;
    }

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

    .service-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

    .case-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    .nav-links {
        display: none;
    }

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

    .hero {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
    }

    .hero-visual {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .stat-divider {
        display: none;
    }

    .trust-container {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .trust-logos {
        justify-content: center;
        gap: var(--space-xl);
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .timeline-line {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .case-metrics {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
