/* AI Automation Hero - Dynamic Geometric Network */

.ai-network-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
    /* Force GPU layer */
}

/* Background Network Glow */
.network-glow {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%) translateZ(0);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
    will-change: transform, opacity;
    animation: glowPulse 10s ease-in-out infinite;
    /* Slower animation */
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.15);
    }
}

/* Nodes and Connections */
.network-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.network-line {
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0.15;
    /* Removed transition for performance - opacity changes every frame */
}

.node {
    fill: var(--accent);
    opacity: 0.6;
    /* Removed filter and transition for smoother animation */
}

/* Highlighted Node State */
.node.highlighted {
    fill: var(--accent-tertiary);
    opacity: 1;
    r: 4;
}

/* Connection Line Highlight */
.line-highlight {
    stroke: var(--accent-tertiary);
    stroke-width: 1.5;
    opacity: 0.4;
}

/* Interactive Elements */
.network-nodes {
    position: absolute;
    inset: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .network-glow {
        width: 400px;
        height: 400px;
        right: 0;
    }
}

@media (max-width: 768px) {
    .network-glow {
        width: 300px;
        height: 300px;
        bottom: 20%;
        top: auto;
    }
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    z-index: 5;
}

.dashboard-window {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) {
    background: #ff5f56;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #27c93f;
}

.window-url {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.window-body {
    padding: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.card-delta {
    font-size: 13px;
    color: #10b981;
    font-weight: 600;
}

.dashboard-chart {
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bar {
    flex: 1;
    background: var(--gradient-accent);
    border-radius: 4px 4px 0 0;
    height: var(--h);
    opacity: 0.7;
    transform-origin: bottom;
    transform: scaleY(0);
}

/* Floating Chips */
.floating-chip {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 5;
    opacity: 0;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.chip-booked {
    top: -20px;
    right: -20px;
}

.chip-sent {
    bottom: -15px;
    left: -25px;
}

.chip-icon {
    width: 44px;
    height: 44px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.chip-text strong {
    display: block;
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
}

.chip-text span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Floating chip animation (CSS-based for better performance) */
@keyframes floatChip {

    0%,
    100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-8px) translateZ(0);
    }
}

/* Text Rotator Animation */
.text-rotator {
    display: inline-block;
    position: relative;
    min-width: 180px;
    vertical-align: baseline;
}

.rotator-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}

.rotator-word.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    position: relative;
}