:root {
    --color-bg: #0A0A0B;
    --color-bg-secondary: #0F0F10;
    --color-text: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-primary: #7B3FF2;
    --color-primary-light: #9D5FFE;
    --color-accent: #E94CFF;
    --gradient-primary: linear-gradient(135deg, #7B3FF2 0%, #E94CFF 100%);
    --gradient-orb: radial-gradient(circle, rgba(123, 63, 242, 0.4) 0%, rgba(123, 63, 242, 0) 70%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(123, 63, 242, 0.2);
}

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

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.logo-subtext {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    margin-top: -0.3rem;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-cta {
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 63, 242, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(123, 63, 242, 0.5);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-tagline {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    color: #FFFFFF;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(123, 63, 242, 0.8),
        0 0 30px rgba(123, 63, 242, 0.6),
        0 0 40px rgba(123, 63, 242, 0.4),
        0 0 50px rgba(123, 63, 242, 0.3),
        0 0 60px rgba(123, 63, 242, 0.2);
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(123, 63, 242, 0.8),
            0 0 30px rgba(123, 63, 242, 0.6),
            0 0 40px rgba(123, 63, 242, 0.4),
            0 0 50px rgba(123, 63, 242, 0.3),
            0 0 60px rgba(123, 63, 242, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(123, 63, 242, 1),
            0 0 40px rgba(123, 63, 242, 0.8),
            0 0 50px rgba(123, 63, 242, 0.6),
            0 0 60px rgba(123, 63, 242, 0.4),
            0 0 70px rgba(123, 63, 242, 0.3),
            0 0 80px rgba(233, 76, 255, 0.3);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
}

/* Interactive Demo Styles */
.interactive-demo {
    width: 100%;
}

.demo-controls {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.demo-btn {
    flex: 1;
    min-width: 150px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(123, 63, 242, 0.1);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.demo-btn:hover {
    background: rgba(123, 63, 242, 0.2);
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
}

.demo-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(123, 63, 242, 0.4);
}

.demo-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.demo-display {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.05) 0%, rgba(233, 76, 255, 0.05) 100%);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.demo-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.demo-screen.active {
    opacity: 1;
    visibility: visible;
}

.demo-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-primary-light);
    border: 1px solid rgba(123, 63, 242, 0.3);
}

/* Prototype Demo Styles */
.mockup-container {
    width: 100%;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.dot:first-child { background: #ff5f56; }
.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.mockup-content {
    padding: 20px;
}

.skeleton-nav {
    height: 40px;
    background: linear-gradient(90deg, rgba(123, 63, 242, 0.2) 0%, rgba(123, 63, 242, 0.1) 50%, rgba(123, 63, 242, 0.2) 100%);
    border-radius: 6px;
    margin-bottom: 20px;
    animation: shimmer 2s infinite;
}

.skeleton-hero {
    margin-bottom: 20px;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 6px;
    margin-bottom: 10px;
    animation: shimmer 2s infinite;
}

.skeleton-text.lg { width: 80%; height: 20px; }
.skeleton-text.md { width: 60%; }

.skeleton-btn {
    width: 100px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 6px;
    margin-top: 15px;
    animation: pulse 2s infinite;
}

.skeleton-cards {
    display: flex;
    gap: 10px;
}

.skeleton-card {
    flex: 1;
    height: 80px;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.1) 0%, rgba(233, 76, 255, 0.1) 100%);
    border-radius: 8px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* AI Integration Demo Styles */
.ai-integration {
    width: 100%;
    max-width: 450px;
}

.product-interface {
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.product-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-item {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    position: relative;
}

.nav-item:first-child {
    color: var(--color-primary-light);
}

.nav-item:first-child::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.product-body {
    padding: 30px;
    min-height: 250px;
    position: relative;
}

.chat-interface {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    animation: slideUp 0.5s ease-out;
}

.chat-bubble.user {
    align-self: flex-end;
    background: rgba(123, 63, 242, 0.2);
    border: 1px solid rgba(123, 63, 242, 0.4);
    color: var(--color-text);
}

.chat-bubble.ai {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.1) 0%, rgba(233, 76, 255, 0.1) 100%);
    border: 1px solid rgba(233, 76, 255, 0.3);
    color: var(--color-text);
    position: relative;
}

.ai-thinking {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.ai-thinking span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: thinking 1.4s infinite;
}

.ai-thinking span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-thinking span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.ai-response {
    animation: fadeIn 0.8s ease-out 1.5s both;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-magic-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(123, 63, 242, 0.4);
    animation: glow 2s ease-in-out infinite;
}

.magic-wand {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(10deg);
    }
}

.integration-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: floatParticle 3s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 0.5s;
    background: var(--color-accent);
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 1.5s;
    background: var(--color-accent);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(-100px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-110px) scale(0);
        opacity: 0;
    }
}

/* AI Automation Demo - Clean Linear Flow */
.automation-builder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-canvas {
    flex: 1;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.03) 0%, rgba(233, 76, 255, 0.03) 100%);
    border: 1px solid rgba(123, 63, 242, 0.15);
    border-radius: 16px;
    padding: 40px 20px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Workflow Stages */
.workflow-stage {
    min-width: 120px;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.1) 0%, rgba(233, 76, 255, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.workflow-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #7B3FF2, #E94CFF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.workflow-stage:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px rgba(123, 63, 242, 0.3);
}

.workflow-stage:hover::before {
    opacity: 1;
}

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

.workflow-stage:nth-child(1) { animation-delay: 0.2s; }
.workflow-stage:nth-child(3) { animation-delay: 0.4s; }
.workflow-stage:nth-child(5) { animation-delay: 0.6s; }

.stage-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stage-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Stage-specific styling */
.input-stage {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(123, 63, 242, 0.1));
}

.ai-stage {
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.25), rgba(233, 76, 255, 0.15));
    position: relative;
    overflow: visible;
}

.ai-stage::before {
    background: linear-gradient(135deg, #7B3FF2, #E94CFF);
    opacity: 0.8;
}

.output-stage {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(123, 63, 242, 0.1));
}

/* Flow Arrows with data flow effect */
.flow-arrow {
    font-size: 24px;
    color: transparent;
    background: linear-gradient(90deg, #7B3FF2, #E94CFF);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    animation: slideArrow 2s ease-in-out infinite;
    font-weight: bold;
}

.flow-arrow::after {
    content: '•';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #E94CFF;
    font-size: 8px;
    animation: dataFlow 2s linear infinite;
    opacity: 0;
}

@keyframes slideArrow {
    0%, 100% { 
        transform: translateX(-2px);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(2px);
        opacity: 1;
    }
}

@keyframes dataFlow {
    0% {
        transform: translate(-150%, -50%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translate(150%, -50%);
        opacity: 0;
    }
}

/* AI Pulse Effect */
.ai-pulse {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(123, 63, 242, 0.4) 0%, transparent 60%);
    animation: aiPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* Legacy node styles - hidden */
.ai-node,
.node-icon,
.node-label,
.input-node,
.process-node,
.ai-1,
.ai-2,
.ai-3,
.output-node,
.out-1,
.out-2,
.node-pulse,
.ai-activity,
.ai-activity span {
    display: none;
}

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

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

.automation-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-line {
    stroke-dasharray: 5, 5;
    opacity: 0.3;
    animation: flowDash 20s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -100;
    }
}

.flow-particle {
    filter: drop-shadow(0 0 6px currentColor);
}

.automation-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(123, 63, 242, 0.1) 100%);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.automation-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7B3FF2, #E94CFF, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

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

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #7B3FF2, #E94CFF);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 6px;
    font-family: 'Inter', monospace;
    letter-spacing: -0.5px;
    animation: statCount 2s ease-out forwards;
}

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

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 63, 242, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 76, 255, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 63, 242, 0.4) 0%, transparent 70%);
    top: 50%;
    left: -250px;
    transform: translateY(-50%);
}

.orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 76, 255, 0.4) 0%, transparent 70%);
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
}

/* Sections */
section {
    min-height: 100vh;
    height: 100vh;
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg); /* Top padding accounts for navbar */
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* Force stop at each section */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Include padding in height calculation */
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    line-height: 1.2;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

/* Problem Section */
.problem-section {
    background: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 63, 242, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.problem-section .container {
    position: relative;
    z-index: 1;
}

.problem-illustration-img {
    display: block;
    margin: var(--spacing-xl) auto 0;
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.1) 0%, rgba(233, 76, 255, 0.1) 100%);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(123, 63, 242, 0.2);
    animation: float 6s ease-in-out infinite;
}

/* Solutions Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.solution-card {
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.05) 0%, rgba(233, 76, 255, 0.05) 100%);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.solution-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-primary);
}

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

.solution-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* Services Section */
.services-section {
    background: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(123, 63, 242, 0.05);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

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

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    padding: var(--spacing-md) 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling */
.testimonials-wrapper::-webkit-scrollbar {
    height: 8px;
}

.testimonials-wrapper::-webkit-scrollbar-track {
    background: rgba(123, 63, 242, 0.1);
    border-radius: 4px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #7B3FF2, #E94CFF);
    border-radius: 4px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #9D5FFE, #FF6FFF);
}

.testimonials-track {
    display: flex;
    gap: var(--spacing-lg);
    width: fit-content;
    padding: 0 var(--spacing-md);
}

/* Auto-scroll animation removed - now manual scrolling */

/* Live indicator for automation demo */
.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.live-text {
    font-size: 10px;
    font-weight: 600;
    color: #ff6666;
    letter-spacing: 1px;
}

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

.testimonial-card {
    min-width: 400px;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.05) 0%, rgba(233, 76, 255, 0.05) 100%);
    border: 1px solid rgba(123, 63, 242, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px rgba(123, 63, 242, 0.3);
}

.testimonial-rating {
    margin-bottom: var(--spacing-sm);
    display: flex;
    gap: 2px;
}

.testimonial-rating span {
    font-size: 1rem;
    filter: saturate(0.8);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    font-style: italic;
    min-height: 100px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.author-avatar.gradient-bg {
    background: var(--gradient-primary);
}

.author-name {
    font-weight: 600;
    color: var(--color-text);
}

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

/* Clients Section */
.clients-section {
    background: var(--color-bg-secondary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.client-type {
    text-align: center;
}

.client-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    padding: 20px;
    background: linear-gradient(135deg, rgba(123, 63, 242, 0.1) 0%, rgba(233, 76, 255, 0.1) 100%);
    border: 1px solid rgba(123, 63, 242, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
}

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

.client-type h3 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Value Section */
.value-section {
    padding: var(--spacing-xxl) 0;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.value-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Section */
.contact-section {
    background: var(--color-bg-secondary);
    text-align: center;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--color-bg);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
    scroll-snap-align: end;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--color-text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(123, 63, 242, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(123, 63, 242, 0.6);
    }
}

.fade-in-up {
    animation: fadeInUp 0.2s ease-out;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.05s ease, transform 0.05s ease;
}

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

.stagger-item .solution-card,
.stagger-item .service-card,
.stagger-item .client-type {
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.05s ease, transform 0.05s ease;
}

.stagger-item .solution-card.visible,
.stagger-item .service-card.visible,
.stagger-item .client-type.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation - instant */
body {
    opacity: 0;
    transition: opacity 0.05s ease;
}

body.loaded {
    opacity: 1;
}

/* Card hover with gradient follow */
.solution-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(123, 63, 242, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

.solution-card *,
.service-card * {
    position: relative;
    z-index: 1;
}

/* Scroll snap for sections with potentially long content */
.services-section,
.solutions-section,
.clients-section,
.testimonials-section {
    min-height: 100vh;
    height: auto; /* Allow expansion if content is too long */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg);
    box-sizing: border-box;
}

/* Ensure proper spacing for grids */
.services-grid,
.solutions-grid,
.clients-grid,
.testimonials-grid {
    width: 100%;
}

/* Optional: Add scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: bounce 2s infinite;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: var(--spacing-xl);
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .interactive-demo {
        width: 100%;
        max-width: 100%;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .demo-btn {
        width: 100%;
    }
    
    .demo-display {
        height: 350px;
    }
    
    .problem-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .problem-illustration {
        margin-top: var(--spacing-lg);
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-container {
        grid-template-columns: 1fr auto auto;
        gap: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* Disable snap scrolling on mobile for better usability */
    html {
        scroll-snap-type: none;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    section {
        min-height: auto;
        padding: 100px 0 var(--spacing-xl);
        padding-top: 100px !important;
        overflow-x: hidden;
        max-width: 100vw;
        scroll-padding-top: 100px;
    }
    
    .problem-section {
        padding-top: 100px !important;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        padding-top: 80px;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* AI Automation Demo - Mobile Layout */
    .automation-builder {
        position: relative;
        min-height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .workflow-canvas {
        flex-direction: column;
        padding: 15px;
        gap: 8px;
        min-height: 280px;
    }
    
    .workflow-stage {
        min-width: 80px;
        padding: 12px 10px;
        gap: 6px;
    }
    
    .stage-icon {
        font-size: 18px;
    }
    
    .stage-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        font-size: 18px;
        margin: -5px 0;
    }
    
    .automation-stats {
        flex-direction: row;
        padding: 12px 10px;
        gap: 5px;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 8px;
        line-height: 1.2;
    }
    
    .live-indicator {
        top: 5px;
        right: 5px;
        padding: 2px 6px;
        gap: 4px;
    }
    
    .live-text {
        font-size: 8px;
    }
    
    .live-dot {
        width: 5px;
        height: 5px;
    }
    
    .demo-display {
        min-height: 480px;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--color-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--spacing-md) 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .solutions-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 300px;
    }
    
    .testimonials-track {
        animation-duration: 20s;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
}