/* ========================================
   Ethereal - Spatial OS Website
   A futuristic, immersive design system
======================================== */

:root {
    /* Core Colors */
    --bg-primary: #030308;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #12121c;
    --bg-card: rgba(18, 18, 30, 0.6);
    
    /* Accent Colors - Cyan/Teal spectrum */
    --accent-primary: #00f0ff;
    --accent-secondary: #7b61ff;
    --accent-tertiary: #ff3d71;
    --accent-glow: rgba(0, 240, 255, 0.15);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7b61ff 50%, #ff3d71 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Effects */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-glow: 1px solid rgba(0, 240, 255, 0.3);
    --shadow-glow: 0 0 60px rgba(0, 240, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   Reset & Base Styles
======================================== */

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Background Effects
======================================== */

/* Full-screen animated gradient background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

/* Ensure gradient canvas fills container */
.gradient-bg canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

/* ========================================
   Container
======================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   Typography Utilities
======================================== */

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Buttons
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Navigation
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(3, 3, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 40px !important;
    width: 40px !important;
    max-height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Footer logo */
.footer .logo-img,
.logo-img-footer {
    height: 50px !important;
    width: 50px !important;
    max-height: 50px;
}

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

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 0.625rem 1.25rem !important;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-primary) !important;
}

.nav-cta:hover {
    background: rgba(0, 240, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

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

/* ========================================
   Hero Section
======================================== */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
}

.hero-content-centered .hero-badge,
.hero-content-centered .hero-title,
.hero-content-centered .hero-subtitle,
.hero-content-centered .hero-actions,
.hero-content-centered .hero-stats {
    text-align: center;
}

.hero-content-centered .hero-actions {
    justify-content: center;
}

.hero-content-centered .hero-stats {
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    margin-bottom: var(--space-md);
}

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

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

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Spatial Demo Section - Immersive VR Experience
======================================== */

.spatial-demo {
    position: relative;
    min-height: 100vh;
    background: #000008;
    overflow: hidden;
    padding: 0;
}

.spatial-transition-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.spatial-transition-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

/* Starfield effect */
.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
}

.stars-1 {
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
                      radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.5), transparent),
                      radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.7), transparent);
    background-size: 250px 150px;
    animation: stars-move 100s linear infinite;
}

.stars-2 {
    background-image: radial-gradient(1px 1px at 50px 50px, rgba(0,240,255,0.6), transparent),
                      radial-gradient(1px 1px at 100px 100px, rgba(123,97,255,0.5), transparent),
                      radial-gradient(2px 2px at 200px 60px, rgba(255,255,255,0.4), transparent);
    background-size: 300px 200px;
    animation: stars-move 150s linear infinite reverse;
}

.stars-3 {
    background-image: radial-gradient(1px 1px at 80px 20px, rgba(255,61,113,0.4), transparent),
                      radial-gradient(1px 1px at 180px 140px, rgba(0,240,255,0.3), transparent);
    background-size: 350px 250px;
    animation: stars-move 200s linear infinite;
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-500px); }
}

/* VR Grid floor */
.vr-grid-floor {
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 60%;
    background: 
        linear-gradient(to bottom, transparent 0%, rgba(0, 240, 255, 0.03) 100%),
        repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.1) 0px, transparent 1px, transparent 80px);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    pointer-events: none;
}

.spatial-content {
    position: relative;
    z-index: 5;
    padding: var(--space-xl) var(--space-md);
}

.spatial-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.spatial-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.spatial-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Spatial demo - hide cursor in entire section */
.spatial-demo {
    cursor: none;
}

.spatial-demo * {
    cursor: none;
}

/* VR Viewport - the 3D space */
.vr-viewport {
    position: relative;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    perspective: 1500px;
    perspective-origin: 50% 40%;
}

.vr-scene {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(5deg);
}

/* VR Instructions */
.vr-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-md);
    z-index: 20;
}

.instruction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.instruction-icon {
    font-size: 1rem;
}

/* Floating Windows in VR space */
.vr-scene .window {
    position: absolute;
    background: rgba(18, 18, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 240, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: none;
    user-select: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.vr-scene .window * {
    cursor: none;
}

.vr-scene .window:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vr-scene .window.dragging {
    cursor: grabbing;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 
        0 40px 120px rgba(0, 240, 255, 0.3),
        0 0 80px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 100 !important;
}

/* Position windows in 3D space - spread around the viewer */
.vr-scene .window-1 {
    width: 280px;
    height: 180px;
    left: 5%;
    top: 15%;
    transform: translateZ(100px) rotateY(15deg);
    z-index: 5;
}

.vr-scene .window-2 {
    width: 250px;
    height: 170px;
    right: 5%;
    top: 10%;
    transform: translateZ(50px) rotateY(-15deg);
    z-index: 4;
}

.vr-scene .window-3 {
    width: 230px;
    height: 140px;
    left: 15%;
    bottom: 15%;
    transform: translateZ(150px) rotateY(10deg);
    z-index: 6;
}

.vr-scene .window-4 {
    width: 210px;
    height: 160px;
    right: 10%;
    bottom: 20%;
    transform: translateZ(80px) rotateY(-10deg);
    z-index: 3;
}

.vr-scene .window-5 {
    width: 240px;
    height: 155px;
    left: 38%;
    top: 5%;
    transform: translateZ(200px);
    z-index: 7;
}

/* Hand cursor for VR - always on top */
.hand-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.1s ease;
}

.hand-cursor-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-primary), 0 0 60px rgba(0, 240, 255, 0.5);
    transition: transform 0.1s ease, background 0.1s ease;
}

.hand-cursor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 50%;
    animation: cursor-ring 1.5s ease-out infinite;
}

@keyframes cursor-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.hand-cursor.active {
    opacity: 1;
}

.hand-cursor.grabbing .hand-cursor-dot {
    transform: translate(-50%, -50%) scale(0.7);
    background: var(--accent-tertiary);
    box-shadow: 0 0 30px var(--accent-tertiary), 0 0 60px rgba(255, 61, 113, 0.5);
}

/* Hide VR cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .hand-cursor {
        display: none !important;
    }
    
    .vr-viewport,
    .vr-scene .window,
    .vr-scene .window * {
        cursor: auto;
    }
}

/* Old window styles removed - now using .vr-scene .window styles above */

.window-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: var(--border-subtle);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:last-child { background: #28c840; }

.window-title {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.window-content {
    padding: 1rem;
}

/* Code window */
.code-content pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.6;
}

.code-keyword { color: #ff79c6; }
.code-class { color: #8be9fd; }
.code-method { color: #50fa7b; }
.code-string { color: #f1fa8c; }

/* Browser window */
.browser-content {
    padding: 0;
}

.browser-bar {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: var(--border-subtle);
}

.browser-url {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.browser-page {
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
}

/* Terminal window */
.terminal-content {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
}

.terminal-prompt {
    color: var(--accent-primary);
}

.terminal-output {
    color: #50fa7b;
}

/* Spotify window */
.spotify-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem !important;
}

.spotify-art {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #1db954 0%, #191414 100%);
    border-radius: 6px;
}

.spotify-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.spotify-track {
    font-size: 0.75rem;
    font-weight: 600;
}

.spotify-artist {
    font-size: 0.625rem;
    color: var(--text-tertiary);
}

.spotify-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-top: 0.25rem;
}

.play-btn {
    width: 24px;
    height: 24px;
    background: #1db954;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    color: white;
}

/* Slack window */
.slack-content {
    padding: 0 !important;
}

.slack-channel {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: var(--border-subtle);
}

.slack-message {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
}

.slack-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e01e5a 0%, #36c5f0 50%, #2eb67d 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.slack-text {
    font-size: 0.6875rem;
    line-height: 1.4;
}

.slack-text strong {
    display: block;
    margin-bottom: 0.125rem;
}

.slack-text p {
    color: var(--text-secondary);
    margin: 0;
}

/* Figma window */
.figma-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.figma-toolbar {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.figma-canvas {
    flex: 1;
    position: relative;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.figma-shape {
    position: absolute;
    border: 2px solid var(--accent-primary);
}

.shape-1 {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    left: 20%;
    top: 25%;
    background: rgba(0, 240, 255, 0.1);
}

.shape-2 {
    width: 60px;
    height: 30px;
    border-radius: 4px;
    right: 20%;
    bottom: 25%;
    background: rgba(123, 97, 255, 0.1);
    border-color: var(--accent-secondary);
}

/* Old hand cursor styles removed - using VR cursor styles above */

/* ========================================
   Animations
======================================== */

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animateIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Features Section
======================================== */

.features {
    padding: var(--space-xl) 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-4px);
}

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

.feature-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Feature visual - windows demo */
.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-md);
    position: relative;
}

.windows-demo {
    position: relative;
    width: 100%;
    height: 200px;
}

.mini-window {
    position: absolute;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-sm);
}

.mw-1 {
    width: 120px;
    height: 80px;
    left: 20%;
    top: 20%;
    animation: mw-float-1 4s ease-in-out infinite;
}

.mw-2 {
    width: 100px;
    height: 70px;
    right: 25%;
    top: 30%;
    animation: mw-float-2 5s ease-in-out infinite;
}

.mw-3 {
    width: 90px;
    height: 60px;
    left: 35%;
    bottom: 20%;
    animation: mw-float-3 4.5s ease-in-out infinite;
}

@keyframes mw-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(-5deg); }
    50% { transform: translate(10px, -15px) rotate(0deg); }
}

@keyframes mw-float-2 {
    0%, 100% { transform: translate(0, 0) rotate(5deg); }
    50% { transform: translate(-15px, -10px) rotate(0deg); }
}

@keyframes mw-float-3 {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(5px, -20px) rotate(3deg); }
}

/* ========================================
   How It Works Section
======================================== */

.how-it-works {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.02) 50%, transparent 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

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

.step-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.step-content {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.step-visual {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
}

/* Install animation */
.install-animation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.install-animation span {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.install-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.install-progress {
    height: 100%;
    width: 75%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 75%; }
    100% { width: 100%; }
}

/* Connect animation */
.connect-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.device {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.device svg {
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
}

.connect-beam {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.connect-beam::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: beam-flow 1.5s linear infinite;
}

@keyframes beam-flow {
    0% { left: -30px; }
    100% { left: 100%; }
}

/* Workspace animation */
.workspace-animation {
    position: relative;
    height: 100px;
}

.workspace-window {
    position: absolute;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
}

.wp-1 {
    width: 60px;
    height: 40px;
    left: 20%;
    top: 20%;
    animation: wp-arrange-1 3s ease-in-out infinite;
}

.wp-2 {
    width: 70px;
    height: 50px;
    left: 40%;
    top: 30%;
    animation: wp-arrange-2 3s ease-in-out infinite;
}

.wp-3 {
    width: 50px;
    height: 35px;
    right: 20%;
    top: 25%;
    animation: wp-arrange-3 3s ease-in-out infinite;
}

@keyframes wp-arrange-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 5px); }
}

@keyframes wp-arrange-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(0, -10px) scale(1.05); }
}

@keyframes wp-arrange-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 10px); }
}

.workspace-hand {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 30%;
    left: 50%;
    animation: workspace-hand-move 3s ease-in-out infinite;
}

@keyframes workspace-hand-move {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-40px, -20px); }
    50% { transform: translate(20px, 10px); }
    75% { transform: translate(60px, -15px); }
}

/* ========================================
   Comparison Section
======================================== */

.comparison {
    padding: var(--space-xl) 0;
}

.comparison-table {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
}

.comparison-header {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.875rem;
}

.comparison-col {
    padding: var(--space-sm) var(--space-md);
    border-bottom: var(--border-subtle);
}

.comparison-header .comparison-col {
    color: var(--text-secondary);
    text-align: center;
}

.comparison-header .comparison-col:first-child {
    text-align: left;
}

.comparison-col.highlight {
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent-primary);
    text-align: center;
}

.comparison-row .comparison-col {
    font-size: 0.9375rem;
}

.comparison-row .comparison-col:not(:first-child) {
    text-align: center;
    color: var(--text-secondary);
}

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

.comparison-row:last-child .comparison-col {
    border-bottom: none;
}

.comparison-cta {
    text-align: center;
}

.comparison-cta p {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* ========================================
   Quote Section
======================================== */

.quote-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.main-quote {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 0;
    position: absolute;
    top: -20px;
    left: -20px;
}

.main-quote p {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================
   Waitlist Section
======================================== */

.waitlist {
    padding: var(--space-xl) 0;
}

.waitlist-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.waitlist-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.waitlist-content {
    position: relative;
    z-index: 1;
}

.waitlist-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.waitlist-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

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

.form-group {
    display: flex;
    gap: 0.75rem;
}

.form-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

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

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

.waitlist-stats {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: var(--border-subtle);
}

.ws-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ws-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-primary);
}

.ws-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Orbit visual */
.waitlist-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.orbit-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    animation: orbit-rotate 10s linear infinite;
}

.orbit-2 {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    animation: orbit-rotate 15s linear infinite reverse;
}

.orbit-3 {
    width: 290px;
    height: 290px;
    margin: -145px 0 0 -145px;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-item {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    top: 0;
    left: 50%;
    margin-left: -6px;
    box-shadow: 0 0 20px var(--accent-primary);
}

.orbit-2 .orbit-item {
    background: var(--accent-secondary);
    box-shadow: 0 0 20px var(--accent-secondary);
}

.orbit-3 .orbit-item {
    background: var(--accent-tertiary);
    box-shadow: 0 0 20px var(--accent-tertiary);
}

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

.core-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Footer
======================================== */

.footer {
    padding: var(--space-lg) 0 var(--space-md);
    border-top: var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

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

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

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    flex-shrink: 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

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

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

.footer-legal a {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

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

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1024px) {
    .hero {
        min-height: 70vh;
        padding-top: calc(80px + var(--space-md));
    }
    
    .vr-viewport {
        height: 500px;
    }
    
    .vr-scene .window-1 { width: 220px; height: 145px; left: 5%; top: 10%; transform: translateZ(80px) rotateY(10deg); }
    .vr-scene .window-2 { width: 200px; height: 135px; right: 5%; top: 5%; transform: translateZ(40px) rotateY(-10deg); }
    .vr-scene .window-3 { width: 180px; height: 115px; left: 10%; bottom: 10%; transform: translateZ(100px) rotateY(8deg); }
    .vr-scene .window-4 { width: 170px; height: 125px; right: 8%; bottom: 15%; transform: translateZ(60px) rotateY(-8deg); }
    .vr-scene .window-5 { width: 190px; height: 130px; left: 35%; top: 5%; transform: translateZ(150px); }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .waitlist-card {
        grid-template-columns: 1fr;
    }
    
    .waitlist-visual {
        display: none;
    }
    
    .waitlist-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 60vh;
        padding-top: calc(70px + var(--space-md));
        padding-bottom: var(--space-md);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    
    /* Spatial demo mobile */
    .spatial-demo {
        min-height: auto;
    }
    
    .spatial-content {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .vr-viewport {
        height: 400px;
    }
    
    .vr-scene {
        transform: rotateX(3deg);
    }
    
    /* Show only 4 windows on mobile */
    .vr-scene .window-5 {
        display: none;
    }
    
    .vr-scene .window-1 { width: 160px; height: 110px; left: 2%; top: 5%; transform: translateZ(60px) rotateY(8deg); }
    .vr-scene .window-2 { width: 150px; height: 105px; right: 2%; top: 8%; transform: translateZ(30px) rotateY(-8deg); }
    .vr-scene .window-3 { width: 145px; height: 95px; left: 5%; bottom: 5%; transform: translateZ(80px) rotateY(5deg); }
    .vr-scene .window-4 { width: 140px; height: 100px; right: 5%; bottom: 10%; transform: translateZ(45px) rotateY(-5deg); }
    
    .vr-instructions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vr-grid-floor {
        height: 40%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .step {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.2fr 1fr 1fr;
        font-size: 0.8125rem;
    }
    
    .comparison-col {
        padding: var(--space-xs) var(--space-sm);
    }
    
    .main-quote p {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .quote-mark {
        font-size: 4rem;
        top: -10px;
        left: -10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vr-viewport {
        height: 320px;
    }
    
    /* Show only 3 windows on small mobile */
    .vr-scene .window-4,
    .vr-scene .window-5 {
        display: none;
    }
    
    .vr-scene .window-1 {
        width: 130px;
        height: 90px;
        left: 2%;
        top: 5%;
        transform: translateZ(40px) rotateY(5deg);
    }
    
    .vr-scene .window-2 {
        width: 125px;
        height: 85px;
        right: 2%;
        top: 10%;
        transform: translateZ(25px) rotateY(-5deg);
    }
    
    .vr-scene .window-3 {
        width: 140px;
        height: 88px;
        left: 25%;
        bottom: 10%;
        transform: translateZ(55px);
    }
    
    .window-content {
        padding: 0.5rem !important;
    }
    
    .code-content pre {
        font-size: 0.5rem;
        line-height: 1.4;
    }
    
    .window-header {
        padding: 0.5rem 0.75rem;
    }
    
    .window-title {
        font-size: 0.625rem;
    }
    
    .window-dots span {
        width: 8px;
        height: 8px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat {
        text-align: center;
        min-width: 80px;
    }
    
    .spatial-header h2 {
        font-size: 1.5rem;
    }
    
    .spatial-header p {
        font-size: 0.9375rem;
    }
    
    .vr-instructions {
        bottom: 10px;
    }
    
    .instruction {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .comparison-header .comparison-col:first-child {
        display: none;
    }
    
    .comparison-row .comparison-col.feature-name {
        background: rgba(0, 0, 0, 0.3);
        font-weight: 600;
        border-bottom: none;
    }
    
    .comparison-row .comparison-col:not(.feature-name) {
        padding: var(--space-xs) var(--space-sm);
    }
}

