@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0f1c;
    overflow-x: hidden;
    position: relative;
}

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

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Glow Effects */
.glow-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

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

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

.demo-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.4s both;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.375rem;
    font-weight: 400;
    color: #e2e8f0;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
    line-height: 1.6;
}

.cta-section {
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.7);
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
}

.cta-button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.demo-button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}


/* Features section */
.features {
    padding: 120px 0 100px;
    position: relative;
}

.features-cards-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 0;
}

.feature-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.large-card {
    grid-column: span 6;
    grid-row: span 2;
    padding: 40px;
}

.medium-card {
    grid-column: span 6;
    padding: 32px;
}

.small-card {
    grid-column: span 6;
    padding: 28px;
}

.card-header {
    margin-bottom: 24px;
}

.card-tag {
    background: rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

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

.feature-icon-large {
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 18px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Custom Icons */
.icon-robot {
    width: 50px;
    height: 50px;
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.icon-robot::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 16px 0 0 white;
}

.icon-robot::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 20px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.icon-analytics {
    width: 38px;
    height: 38px;
    position: relative;
}

.icon-analytics::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 10px;
    height: 24px;
    background: linear-gradient(to top, #3b82f6, #1d4ed8);
    border-radius: 3px;
}

.icon-analytics::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 10px;
    height: 38px;
    background: linear-gradient(to top, #3b82f6, #1d4ed8);
    border-radius: 3px;
    box-shadow: 14px -10px 0 rgba(59, 130, 246, 0.7);
}

.icon-code {
    width: 38px;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-code::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid #3b82f6;
    border-right: none;
    border-bottom: none;
    transform: rotate(-45deg);
    left: 6px;
}

.icon-code::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 3px solid #3b82f6;
    border-left: none;
    border-top: none;
    transform: rotate(-45deg);
    right: 6px;
}

.feature-title-large {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #f8fafc;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.feature-description {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 400;
    flex-grow: 1;
}

.visual-element {
    margin: 16px 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-indicator {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.control-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
}

.connection-lines {
    margin-left: 20px;
    width: 80px;
    height: 40px;
    position: relative;
}

.connection-lines::before,
.connection-lines::after {
    content: '';
    position: absolute;
    height: 2px;
    background: rgba(59, 130, 246, 0.4);
}

.connection-lines::before {
    width: 60%;
    top: 30%;
    left: 0;
}

.connection-lines::after {
    width: 40%;
    top: 70%;
    left: 20px;
}

.escalation-chart {
    width: 100px;
    height: 60px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        rgba(59, 130, 246, 0.5) 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.escalation-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 0 0 8px 8px;
}

/* Footer */
.footer {
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #e2e8f0;
    font-weight: 500;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
}

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

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

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-10px); opacity: 1; }
}

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

.feature-card {
    animation: slideInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }

/* Workflow Animation */
.workflow-animation {
    margin-top: 24px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.workflow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.stage-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Documents */
.document {
    width: 16px;
    height: 20px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 2px;
    position: relative;
    margin: 2px;
    animation: documentFloat 3s ease-in-out infinite;
}

.document::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: #64748b;
    border-radius: 1px;
    box-shadow: 0 3px 0 #64748b, 0 6px 0 #64748b;
}

.doc-1 { animation-delay: 0s; }
.doc-2 { animation-delay: 0.5s; }
.doc-3 { animation-delay: 1s; }

/* AI Processor */
.ai-processor {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-core {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    animation: aiPulse 2s ease-in-out infinite;
}

.ai-core::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.processing-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: ringRotate 4s linear infinite;
}

.ring-1 {
    width: 32px;
    height: 32px;
    border-top-color: #3b82f6;
}

.ring-2 {
    width: 40px;
    height: 40px;
    border-top-color: #60a5fa;
    animation-direction: reverse;
    animation-duration: 3s;
}

/* Output Items */
.output-item {
    width: 18px;
    height: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 3px;
    position: relative;
    margin: 2px;
    animation: outputGlow 2s ease-in-out infinite;
}

.output-item::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 8px;
    font-weight: bold;
}

.output-1 { animation-delay: 1.5s; }
.output-2 { animation-delay: 2s; }

/* Workflow Arrows */
.workflow-arrows {
    position: relative;
    width: 40px;
    height: 2px;
    display: flex;
    align-items: center;
}

.arrow-flow {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    position: relative;
    animation: flowPulse 2s ease-in-out infinite;
}

.arrow-flow::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #3b82f6;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    animation: arrowPulse 2s ease-in-out infinite;
}

/* Data Particles */
.data-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #60a5fa;
    border-radius: 50%;
    opacity: 0;
    animation: particleFlow 3s ease-in-out infinite;
}

.particle-1 { animation-delay: 0s; }
.particle-2 { animation-delay: 0.6s; }
.particle-3 { animation-delay: 1.2s; }
.particle-4 { animation-delay: 1.8s; }
.particle-5 { animation-delay: 2.4s; }

/* Animations */
@keyframes documentFloat {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

@keyframes outputGlow {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 0 rgba(34, 197, 94, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes particleFlow {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Human in the Loop Animation */
.human-loop-animation {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.automation-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 80px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(59, 130, 246, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: #3b82f6;
    border-color: #1d4ed8;
    animation: stepPulse 2s ease-in-out infinite;
}

.step-indicator.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.step-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flow-arrow {
    width: 16px;
    height: 2px;
    background: #3b82f6;
    position: relative;
    animation: flowActive 2s ease-in-out infinite;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -2px;
    width: 0;
    height: 0;
    border-left: 6px solid #3b82f6;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.pause-arrow {
    animation: flowPause 4s ease-in-out infinite;
    background: #f59e0b;
}

.pause-arrow::after {
    border-left-color: #f59e0b;
}

.continue-arrow {
    animation: flowContinue 4s ease-in-out infinite;
    background: #22c55e;
    animation-delay: 2s;
}

.continue-arrow::after {
    border-left-color: #22c55e;
}

/* Decision Point */
.decision-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.confidence-meter {
    width: 24px;
    height: 16px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.meter-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    border-radius: 3px;
    animation: confidenceDrop 4s ease-in-out infinite;
}

.warning-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: warningBlink 1s ease-in-out infinite;
}

.decision-label {
    font-size: 0.6rem;
    color: #ef4444;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Human Oversight */
.human-oversight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.human-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-head {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.avatar-head::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 3px;
    height: 3px;
    background: #64748b;
    border-radius: 50%;
    box-shadow: 7px 0 0 #64748b, 3.5px 4px 0 #64748b;
}

.avatar-body {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 4px;
    margin-top: -2px;
    z-index: 1;
}

.attention-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    animation: attentionPulse 2s ease-in-out infinite;
    opacity: 0;
}

.control-options {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.control-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    animation: buttonReady 4s ease-in-out infinite;
    animation-delay: 1s;
}

.control-btn.approve {
    background: #22c55e;
}

.control-btn.reject {
    background: #ef4444;
}

.control-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: buttonClick 4s ease-in-out infinite;
    animation-delay: 1.8s;
}

.control-btn.approve::after {
    content: '✓';
    color: white;
    font-size: 5px;
    font-weight: bold;
}

.control-btn.reject::after {
    content: '×';
    color: white;
    font-size: 6px;
    font-weight: bold;
}

.human-label {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Animation Keyframes */
@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flowActive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes flowPause {
    0%, 25% { opacity: 1; }
    50%, 75% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes flowContinue {
    0%, 50% { opacity: 0.3; }
    75%, 100% { opacity: 1; }
}

@keyframes confidenceDrop {
    0%, 25% { width: 80%; background: linear-gradient(90deg, #22c55e, #3b82f6); }
    50%, 75% { width: 30%; background: linear-gradient(90deg, #ef4444, #f59e0b); }
    100% { width: 80%; background: linear-gradient(90deg, #22c55e, #3b82f6); }
}

@keyframes warningBlink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

@keyframes attentionPulse {
    0%, 25% { opacity: 0; transform: scale(0.8); }
    50%, 75% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

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

@keyframes buttonClick {
    0%, 40% { opacity: 0; }
    50%, 60% { opacity: 1; }
    100% { opacity: 0; }
}

/* AI-Powered Escalation Animation */
.escalation-animation {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

/* Workflow Stage */
.workflow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.workflow-processor {
    width: 28px;
    height: 28px;
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processor-core {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    animation: processorPulse 2s ease-in-out infinite;
}

.data-flow {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #60a5fa, transparent);
    animation: dataRotate 1.5s linear infinite;
    transform-origin: center bottom;
}

.processing-waves {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: workflowPulse 2s ease-in-out infinite;
}

.processing-waves::after {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    top: -6px;
    left: -6px;
    animation: workflowPulse 2s ease-in-out infinite 0.5s;
}

.workflow-label {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Exception Detection */
.exception-detected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.exception-alert {
    width: 24px;
    height: 24px;
    background: #dc2626;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: exceptionTrigger 3s ease-in-out infinite;
}

.alert-icon {
    color: white;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

.alert-pulse {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    animation: alertPulse 1s ease-out infinite;
    opacity: 0;
}

.exception-label {
    font-size: 0.6rem;
    color: #dc2626;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Context Gathering */
.context-gathering {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.context-bubble {
    width: 12px;
    height: 12px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    position: relative;
    margin: 1px;
    animation: contextAppear 3s ease-in-out infinite;
}

.context-bubble.context-1 { animation-delay: 1s; }
.context-bubble.context-2 { animation-delay: 1.3s; }
.context-bubble.context-3 { animation-delay: 1.6s; }

.bubble-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: dotActivate 3s ease-in-out infinite;
}

.context-1 .bubble-dot { animation-delay: 1s; }
.context-2 .bubble-dot { animation-delay: 1.3s; }
.context-3 .bubble-dot { animation-delay: 1.6s; }

.context-label {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Escalation Arrow */
.escalation-arrow {
    position: relative;
    width: 20px;
    height: 3px;
    display: flex;
    align-items: center;
}

.escalation-arrow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    top: 50%;
    transform: translateY(-50%);
    animation: dataFlow 2s linear infinite;
}

.escalation-arrow::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dataPacket 2s linear infinite;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-urgent {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #dc2626);
    position: relative;
    animation: urgentFlow 3s ease-in-out infinite;
    animation-delay: 2s;
}

.arrow-urgent::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #ef4444;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    animation: arrowUrgent 3s ease-in-out infinite;
    animation-delay: 2s;
}

.urgency-pulse {
    position: absolute;
    width: 28px;
    height: 11px;
    background: radial-gradient(ellipse, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    animation: urgencyPulse 1s ease-out infinite;
    animation-delay: 2s;
    opacity: 0;
}

/* Team Notification */
.team-notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.notification-badge {
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgeAppear 3s ease-in-out infinite;
    animation-delay: 2.3s;
}

.badge-number {
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.notification-ring {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    animation: notificationRing 1s ease-out infinite;
    animation-delay: 2.5s;
    opacity: 0;
}

.team-avatars {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.team-member {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 50%;
    position: relative;
    animation: memberAlert 3s ease-in-out infinite;
}

.team-member.member-1 { animation-delay: 2.5s; }
.team-member.member-2 { animation-delay: 2.7s; }

.team-member::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    opacity: 0;
    animation: statusActive 3s ease-in-out infinite;
}

.team-member.member-1::after { animation-delay: 2.5s; }
.team-member.member-2::after { animation-delay: 2.7s; }

.team-label {
    font-size: 0.6rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Animation Keyframes */
@keyframes processorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

@keyframes workflowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes exceptionTrigger {
    0%, 30% { transform: scale(1); background: #3b82f6; }
    35%, 100% { transform: scale(1.2); background: #dc2626; }
}

@keyframes alertPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes contextAppear {
    0%, 33% { transform: scale(0); opacity: 0; }
    40%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes dotActivate {
    0%, 33% { opacity: 0; }
    40%, 100% { opacity: 1; }
}

@keyframes urgentFlow {
    0%, 66% { opacity: 0; }
    75%, 100% { opacity: 1; }
}

@keyframes arrowUrgent {
    0%, 66% { opacity: 0; }
    75%, 100% { opacity: 1; }
}

@keyframes urgencyPulse {
    0% { opacity: 0.6; }
    100% { opacity: 0; }
}

@keyframes dataFlow {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes dataPacket {
    0% { left: -4px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 20px; opacity: 0; }
}

/* Audit & Replay Animation */
.audit-animation {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 120px;
}

/* Timeline */
.timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 8px;
}

.timeline-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 50%, rgba(59, 130, 246, 0.3) 50%, rgba(59, 130, 246, 0.3) 100%);
    transform: translateY(-50%);
    animation: timelineProgress 4s ease-in-out infinite;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.step-dot.completed {
    background: #3b82f6;
    animation: stepComplete 4s ease-in-out infinite;
}

.step-dot.current {
    background: #1d4ed8;
    border-color: #1d4ed8;
    animation: currentStep 2s ease-in-out infinite;
}

.step-dot.pending {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.step-time {
    font-size: 0.5rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}

.replay-cursor {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 16px;
    background: #f59e0b;
    border-radius: 2px;
    transform: translateY(-50%);
    animation: cursorMove 4s ease-in-out infinite;
    z-index: 3;
}

.replay-cursor::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 7px;
    height: 7px;
    background: #f59e0b;
    border-radius: 50%;
    animation: cursorPulse 1s ease-in-out infinite;
}

/* Decision Review */
.decision-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.decision-card {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: cardHighlight 4s ease-in-out infinite;
    animation-delay: 2s;
}

.decision-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: indicatorBlink 2s ease-in-out infinite;
}

.decision-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.decision-line {
    height: 2px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 1px;
    animation: lineLoad 4s ease-in-out infinite;
}

.decision-line.line-1 {
    width: 70%;
    animation-delay: 2.2s;
}

.decision-line.line-2 {
    width: 45%;
    animation-delay: 2.4s;
}

.review-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    position: relative;
    animation: actionReady 4s ease-in-out infinite;
    animation-delay: 3s;
}

.action-btn.replay {
    animation-delay: 3s;
}

.action-btn.analyze {
    animation-delay: 3.2s;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    animation: btnActivate 4s ease-in-out infinite;
}

.action-btn.replay::after {
    animation-delay: 3s;
}

.action-btn.analyze::after {
    animation-delay: 3.2s;
}

/* Animation Keyframes for Audit & Replay */
@keyframes timelineProgress {
    0% { background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%); }
    25% { background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 25%, rgba(59, 130, 246, 0.3) 25%, rgba(59, 130, 246, 0.3) 100%); }
    50% { background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 50%, rgba(59, 130, 246, 0.3) 50%, rgba(59, 130, 246, 0.3) 100%); }
    75% { background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 75%, rgba(59, 130, 246, 0.3) 75%, rgba(59, 130, 246, 0.3) 100%); }
    100% { background: linear-gradient(90deg, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%); }
}

@keyframes stepComplete {
    0%, 25% { background: white; transform: scale(1); }
    30%, 100% { background: #3b82f6; transform: scale(1.1); }
}

@keyframes currentStep {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(29, 78, 216, 0.4); }
    50% { transform: scale(1.2); box-shadow: 0 0 8px rgba(29, 78, 216, 0.6); }
}

@keyframes cursorMove {
    0% { left: 0%; }
    25% { left: 25%; }
    50% { left: 50%; }
    75% { left: 75%; }
    100% { left: 0%; }
}

@keyframes cursorPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes cardHighlight {
    0%, 50% { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
    55%, 80% { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); }
    100% { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
}

@keyframes indicatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes lineLoad {
    0%, 50% { opacity: 0.4; transform: scaleX(0.8); }
    55%, 80% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.4; transform: scaleX(0.8); }
}

@keyframes actionReady {
    0%, 75% { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }
    80%, 90% { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); }
    100% { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }
}

@keyframes btnActivate {
    0%, 75% { opacity: 0; }
    80%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Update Without Code Animation */
.update-animation {
    margin-top: 20px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 100px;
}

/* SOP Editor */
.sop-editor {
    flex: 1;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 8px;
    position: relative;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.editor-title {
    font-size: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.edit-indicator {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    animation: editBlink 2s ease-in-out infinite;
}

.editor-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.text-line {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 8px;
}

.text-segment {
    height: 2px;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.text-segment.original {
    width: 40px;
    background: rgba(59, 130, 246, 0.3);
    animation: textFadeOut 5s ease-in-out infinite;
}

.text-segment.updated {
    width: 45px;
    background: #22c55e;
    opacity: 0;
    animation: textFadeIn 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.text-segment.new {
    width: 50px;
    background: #3b82f6;
    opacity: 0;
    animation: textFadeIn 5s ease-in-out infinite;
    animation-delay: 2s;
}

.save-indicator {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0;
    animation: saveAppear 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

.save-dot {
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
}

.save-text {
    font-size: 0.4rem;
    color: #22c55e;
    font-weight: 500;
}

/* Adaptation Arrow */
.adaptation-arrow {
    position: relative;
    width: 20px;
    height: 3px;
    display: flex;
    align-items: center;
}

.arrow-sync {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    position: relative;
    border-radius: 2px;
    animation: syncFlow 5s ease-in-out infinite;
    animation-delay: 3s;
    opacity: 0;
}

.arrow-sync::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #22c55e;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    animation: arrowAppear 5s ease-in-out infinite;
    animation-delay: 3s;
}

.sync-pulse {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    animation: syncPulse 5s ease-in-out infinite;
    animation-delay: 3.2s;
    opacity: 0;
}

/* Workflow Update */
.workflow-update {
    flex: 1;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 8px;
    position: relative;
}

.workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.workflow-title {
    font-size: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.update-badge {
    font-size: 0.4rem;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
    opacity: 0;
    animation: badgeAppear 5s ease-in-out infinite;
    animation-delay: 4s;
}

.workflow-nodes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.workflow-node {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-core {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.workflow-node.new-node .node-core {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    opacity: 0;
    animation: nodeSpawn 5s ease-in-out infinite;
    animation-delay: 4.2s;
}

.node-update-ring {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #22c55e;
    border-radius: 50%;
    opacity: 0;
    animation: updateRing 5s ease-in-out infinite;
}

.workflow-node.node-1 .node-update-ring {
    animation-delay: 3.5s;
}

.workflow-node.node-2 .node-update-ring {
    animation-delay: 3.7s;
}

.node-spawn-ring {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #22c55e;
    border-radius: 50%;
    opacity: 0;
    animation: spawnRing 5s ease-in-out infinite;
    animation-delay: 4.2s;
}

.workflow-connection {
    width: 8px;
    height: 2px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 1px;
    animation: connectionUpdate 5s ease-in-out infinite;
    animation-delay: 3.8s;
}

/* Animation Keyframes for Update Without Code */
@keyframes editBlink {
    0%, 60% { opacity: 1; }
    30% { opacity: 0.3; }
}

@keyframes textFadeOut {
    0%, 30% { opacity: 1; }
    35%, 100% { opacity: 0.3; }
}

@keyframes textFadeIn {
    0%, 30% { opacity: 0; transform: scaleX(0); }
    35%, 100% { opacity: 1; transform: scaleX(1); }
}

@keyframes saveAppear {
    0%, 50% { opacity: 0; transform: scale(0.8); }
    55%, 80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1); }
}

@keyframes syncFlow {
    0%, 60% { opacity: 0; }
    65%, 85% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes arrowAppear {
    0%, 60% { opacity: 0; }
    65%, 100% { opacity: 1; }
}

@keyframes syncPulse {
    0%, 60% { opacity: 0; left: 0; }
    65% { opacity: 1; left: 0; }
    85% { opacity: 1; left: 16px; }
    100% { opacity: 0; left: 16px; }
}

@keyframes badgeAppear {
    0%, 80% { opacity: 0; transform: scale(0.8); }
    85%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes nodeSpawn {
    0%, 84% { opacity: 0; transform: scale(0); }
    87%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes updateRing {
    0%, 70% { opacity: 0; transform: scale(0.8); }
    73% { opacity: 0.8; transform: scale(1); }
    77% { opacity: 0; transform: scale(1.3); }
    100% { opacity: 0; transform: scale(1.3); }
}

@keyframes spawnRing {
    0%, 84% { opacity: 0; transform: scale(0.5); }
    87% { opacity: 0.8; transform: scale(1); }
    92% { opacity: 0; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(1.5); }
}

@keyframes connectionUpdate {
    0%, 76% { background: rgba(59, 130, 246, 0.3); }
    80%, 100% { background: rgba(34, 197, 94, 0.6); }
}

@keyframes badgeAppear {
    0%, 76% { transform: scale(0); opacity: 0; }
    80%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes notificationRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes memberAlert {
    0%, 83% { transform: scale(1); }
    87%, 100% { transform: scale(1.1); }
}

@keyframes statusActive {
    0%, 83% { opacity: 0; }
    87%, 100% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 1024px) {
    .audit-animation {
        min-height: 100px;
        gap: 12px;
    }
    
    .timeline-container {
        height: 35px;
    }
    
    .step-dot {
        width: 10px;
        height: 10px;
    }
    
    .step-time {
        font-size: 0.45rem;
    }
    
    .decision-card {
        padding: 6px;
    }
    
    .action-btn {
        width: 14px;
        height: 14px;
    }
    .features-cards-layout {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }
    
    .large-card {
        grid-column: span 8;
        grid-row: span 1;
    }
    
    .medium-card {
        grid-column: span 4;
    }
    
    .small-card {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .nav {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .demo-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    
    .features-cards-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .large-card,
    .medium-card,
    .small-card {
        grid-column: span 1;
        grid-row: span 1;
        padding: 20px;
    }
    
    .feature-title-large {
        font-size: 1.5rem;
    }
    
    .feature-icon-large {
        font-size: 3rem;
    }
    
    .visual-element {
        height: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    
    .cta-button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .large-card,
    .medium-card,
    .small-card {
        padding: 16px;
    }
    
    .card-header {
        margin-bottom: 16px;
    }
    
    .feature-title-large {
        font-size: 1.3rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-icon-large {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
}