/* ========================================
   VisAI Landing Page — Premium Dark Theme
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #0B0B0F;
    --bg-secondary: #101014;
    --bg-tertiary: #16161C;
    --bg-card: rgba(22, 22, 28, 0.6);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    --accent-cyan: #00D4FF;
    --accent-teal: #00FFC8;
    --accent-blue: #4F7FFF;
    --accent-purple: #8B5CF6;
    
    --glow-cyan: rgba(0, 212, 255, 0.4);
    --glow-teal: rgba(0, 255, 200, 0.3);
    
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    --gradient-text: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* Glass effect */
    --glass-bg: rgba(16, 16, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Selection */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-sm) 0;
}

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

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px var(--glow-cyan);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

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

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

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-xl);
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-medium);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.nav-cta:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 40px var(--glow-cyan);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-medium);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
    transition: color var(--transition-fast);
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

.mobile-menu .nav-cta {
    text-align: center;
    margin-top: var(--space-sm);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) var(--space-lg);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 255, 200, 0.05) 0%, transparent 40%),
                radial-gradient(ellipse at 20% 80%, rgba(79, 127, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: 0 4px 30px var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--glow-cyan);
}

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

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

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.05rem;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   Section Common Styles
   ======================================== */
section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* ========================================
   Demo Section
   ======================================== */
.demo-section {
    background: var(--gradient-dark);
}

.demo-container {
    margin: var(--space-2xl) 0;
}

.demo-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #0a0a0e;
}

/* Floor Plan Base Styles */
.floorplan-base,
.floorplan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floorplan-base {
    z-index: 1;
}

.floorplan-overlay {
    z-index: 10;
    clip-path: inset(0 50% 0 0);
    background-color: #0a0a0e;
    will-change: clip-path;
}

.floorplan-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0e;
    z-index: -1;
}

.floorplan-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a0a0e;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

.floorplan-grid.empty {
    background-color: #0a0a0e;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.floorplan-walls {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.floorplan-optimized .floorplan-walls {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

/* Floor Plan Machines */
.fp-machine {
    position: absolute;
    background: linear-gradient(135deg, #1a2535 0%, #0d1520 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.fp-machine span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-cnc-1 {
    top: 60px;
    left: 60px;
    width: 100px;
    height: 80px;
}

.fp-cnc-2 {
    top: 60px;
    left: 180px;
    width: 100px;
    height: 80px;
}

.fp-lathe {
    top: 60px;
    right: 60px;
    width: 120px;
    height: 70px;
}

.fp-press {
    bottom: 120px;
    left: 60px;
    width: 90px;
    height: 100px;
}

.fp-assembly {
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 60px;
}

.fp-robot {
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/* Workstations */
.fp-workstation {
    position: absolute;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #1f3040, #152030);
    border: 2px solid rgba(0, 255, 200, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
}

.fp-ws-1 {
    top: 170px;
    left: 100px;
}

.fp-ws-2 {
    top: 170px;
    left: 220px;
}

.fp-ws-3 {
    top: 50%;
    right: 180px;
}

/* Conveyors */
.fp-conveyor {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.1) 0%,
        rgba(0, 212, 255, 0.4) 20%,
        rgba(0, 212, 255, 0.4) 80%,
        rgba(0, 212, 255, 0.1) 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.fp-conv-1 {
    top: 155px;
    left: 60px;
    width: 220px;
    height: 6px;
}

.fp-conv-2 {
    top: 155px;
    left: 280px;
    width: 6px;
    height: 200px;
}

.fp-conv-3 {
    bottom: 105px;
    left: 170px;
    width: 200px;
    height: 6px;
}

/* Safety Zones */
.fp-safety-zone {
    position: absolute;
    border: 2px dashed rgba(255, 180, 0, 0.5);
    border-radius: 4px;
    background: rgba(255, 180, 0, 0.03);
}

.fp-zone-1 {
    top: 45px;
    left: 45px;
    width: 250px;
    height: 180px;
}

.fp-zone-2 {
    bottom: 60px;
    right: 50px;
    width: 180px;
    height: 180px;
}

/* Storage Areas */
.fp-storage {
    position: absolute;
    background: repeating-linear-gradient(
        45deg,
        rgba(100, 100, 120, 0.1),
        rgba(100, 100, 120, 0.1) 5px,
        rgba(100, 100, 120, 0.2) 5px,
        rgba(100, 100, 120, 0.2) 10px
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-storage span {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-storage-1 {
    top: 250px;
    left: 60px;
    width: 80px;
    height: 50px;
}

.fp-storage-2 {
    bottom: 60px;
    right: 60px;
    width: 80px;
    height: 50px;
}

/* Paths / Walkways */
.fp-path {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
}

.fp-path-1 {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: calc(100% - 60px);
}

.fp-path-2 {
    top: 50%;
    left: 30px;
    transform: translateY(-50%) rotate(90deg);
    width: 50px;
    height: calc(100% - 60px);
    transform-origin: left center;
}

/* Labels */
.empty-label, .optimized-label {
    position: absolute;
    bottom: 20px;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    z-index: 10;
}

.empty-label {
    left: 30px;
}

.optimized-label {
    right: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

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

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

/* Demo Slider */
.demo-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent-cyan);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--glow-cyan);
    transition: transform var(--transition-fast);
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-icon {
    color: var(--accent-cyan);
}

/* Demo Features */
.demo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.demo-feature {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.demo-feature:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
}

.demo-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    background: var(--bg-primary);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    transition: all var(--transition-medium);
}

.step:hover .step-icon {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 40px var(--glow-cyan);
    transform: scale(1.05);
}

.step-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 50px;
}

.connector-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.connector-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* ========================================
   Why VisAI Section
   ======================================== */
.why-section {
    background: var(--gradient-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.benefit-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.benefit-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    margin-bottom: var(--space-md);
    box-shadow: 0 0 30px var(--glow-cyan);
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Technology Section
   ======================================== */
.tech-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.tech-card {
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.tech-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.tech-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-8px);
}

.tech-card:hover .tech-card-glow {
    opacity: 0.1;
}

.tech-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 200, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    margin-bottom: var(--space-lg);
}

.tech-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #050508 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.cta-glow-left {
    background: var(--accent-cyan);
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-glow-right {
    background: var(--accent-teal);
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
}

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

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-primary);
}

.contact-form {
    max-width: 600px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

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

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--glow-cyan);
    background: rgba(0, 212, 255, 0.03);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-sm);
}

/* Waitlist Container */
.waitlist-container {
    position: relative;
    min-height: 200px;
}

.waitlist-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.waitlist-success.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.waitlist-success .success-icon {
    margin-bottom: var(--space-lg);
}

.waitlist-success .success-icon svg {
    color: var(--accent-teal);
}

.waitlist-success .success-circle {
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
    animation: drawCircle 0.6s ease forwards;
}

.waitlist-success .success-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck 0.4s ease forwards 0.5s;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.waitlist-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.waitlist-success p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

/* Confetti particles */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(200px) rotate(720deg);
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #000;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
    max-width: 300px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}


.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .tech-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: var(--space-sm) 0;
    }
}

@media (max-width: 768px) {
    :root {
        --space-3xl: 5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .demo-wrapper {
        height: 400px;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .demo-wrapper {
        height: 280px;
    }
    
    .step {
        padding: var(--space-lg) var(--space-sm);
    }
}

/* ========================================
   Mobile Floor Plan Optimization
   ======================================== */
@media (max-width: 768px) {
    .demo-wrapper {
        height: 350px;
    }
    
    /* Scale down the entire floor plan content */
    .floorplan-base,
    .floorplan-overlay {
        transform-origin: top left;
    }
    
    .floorplan-walls {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
        border-width: 2px;
    }
    
    .floorplan-grid {
        background-size: 20px 20px;
    }
    
    /* Machines - scaled and repositioned for mobile */
    .fp-machine {
        border-width: 1px;
    }
    
    .fp-machine span {
        font-size: 0.5rem;
        letter-spacing: 0;
    }
    
    .fp-cnc-1 {
        top: 35px;
        left: 25px;
        width: 55px;
        height: 45px;
    }
    
    .fp-cnc-2 {
        top: 35px;
        left: 90px;
        width: 55px;
        height: 45px;
    }
    
    .fp-lathe {
        top: 35px;
        right: 25px;
        width: 65px;
        height: 40px;
    }
    
    .fp-press {
        bottom: 70px;
        left: 25px;
        width: 50px;
        height: 55px;
    }
    
    .fp-assembly {
        bottom: 50px;
        width: 90px;
        height: 35px;
    }
    
    .fp-robot {
        right: 35px;
        width: 40px;
        height: 40px;
    }
    
    /* Workstations */
    .fp-workstation {
        width: 20px;
        height: 20px;
        border-width: 1px;
    }
    
    .fp-ws-1 {
        top: 95px;
        left: 45px;
    }
    
    .fp-ws-2 {
        top: 95px;
        left: 115px;
    }
    
    .fp-ws-3 {
        right: 90px;
    }
    
    /* Conveyors */
    .fp-conv-1 {
        top: 90px;
        left: 25px;
        width: 120px;
        height: 4px;
    }
    
    .fp-conv-2 {
        top: 90px;
        left: 145px;
        width: 4px;
        height: 110px;
    }
    
    .fp-conv-3 {
        bottom: 65px;
        left: 90px;
        width: 100px;
        height: 4px;
    }
    
    /* Safety Zones */
    .fp-zone-1 {
        top: 25px;
        left: 20px;
        width: 135px;
        height: 100px;
        border-width: 1px;
    }
    
    .fp-zone-2 {
        bottom: 35px;
        right: 20px;
        width: 100px;
        height: 100px;
        border-width: 1px;
    }
    
    /* Storage */
    .fp-storage {
        display: none;
    }
    
    /* Paths */
    .fp-path {
        display: none;
    }
    
    /* Labels */
    .empty-label,
    .optimized-label {
        bottom: 10px;
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .empty-label {
        left: 15px;
    }
    
    .optimized-label {
        right: 15px;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    /* Slider handle - bigger for touch */
    .demo-slider {
        width: 3px;
    }
    
    .slider-handle {
        width: 44px;
        height: 44px;
    }
    
    .slider-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .demo-wrapper {
        height: 260px;
    }
    
    /* Even smaller on very small screens */
    .fp-cnc-1,
    .fp-cnc-2 {
        width: 45px;
        height: 38px;
    }
    
    .fp-cnc-2 {
        left: 78px;
    }
    
    .fp-lathe {
        width: 50px;
        height: 35px;
    }
    
    .fp-assembly {
        width: 70px;
        height: 28px;
    }
    
    .fp-robot {
        width: 32px;
        height: 32px;
    }
    
    .fp-press {
        width: 40px;
        height: 45px;
    }
    
    .fp-machine span {
        font-size: 0.4rem;
    }
    
    .fp-workstation {
        width: 16px;
        height: 16px;
    }
    
    .fp-zone-1,
    .fp-zone-2 {
        display: none;
    }
    
    .empty-label,
    .optimized-label {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .slider-handle {
        width: 52px;
        height: 52px;
    }
    
    .demo-slider {
        width: 4px;
    }
}

