:root {
    --primary: #2563EB;
    /* Royal Blue */
    --primary-hover: #1D4ED8;
    /* Darker Blue */
    --secondary: #06B6D4;
    /* Cyan */
    --dark-bg: #0F172A;
    --card-bg: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --gradient-main: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
    /* Blue shadow */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Container override for full width */
.glass-header .container {
    max-width: 100%;
    padding: 0 3rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.vertical-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

.hero-sub {
    max-width: 800px;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e1;
}

.input-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.input-group input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    flex: 1;
}

/* OS Window Demo */
.demo-wrapper {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.local-os-window {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.os-top-bar {
    height: 36px;
    background: rgba(31, 41, 55, 0.9);
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    font-size: 0.75rem;
    color: #9ca3af;
}

.os-desktop {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Search UI Inside Demo */
.search-modal {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 560px;
    background: #1a1b1e;
    border: 1px solid #2d2e32;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.hidden {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.95);
}

.search-input-area {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #2d2e32;
}

.search-icon {
    color: #52525b;
    margin-right: 0.75rem;
}

.search-icon.active {
    color: #3b82f6;
    animation: pulse 2s infinite;
}

#demo-input {
    background: transparent;
    border: none;
    color: #e5e7eb;
    flex: 1;
    outline: none;
}

.search-results {
    max-height: 400px;
    transition: max-height 0.3s;
    overflow: hidden;
}

.search-results.collapsed {
    max-height: 0;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 8px;
    border-radius: 9999px;
}

.ai-status.hidden {
    display: none;
}

.result-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2d2e32;
    position: relative;
    transition: background 0.2s;
}

.result-item.hovered {
    background: #232429;
}

.result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e5e7eb;
    font-weight: 500;
    font-size: 0.875rem;
}

.match-score {
    font-size: 0.75rem;
    color: #71717a;
    border: 1px solid #3f3f46;
    padding: 2px 6px;
    border-radius: 4px;
}

.file-path {
    font-size: 0.75rem;
    color: #71717a;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.snippet {
    font-size: 0.8125rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.action-group {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.result-item.hovered .action-group {
    opacity: 1;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid #3f3f46;
    cursor: pointer;
    transition: all 0.2s;
}

.open-btn {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.copy-btn {
    background: #27272a;
    color: #d4d4d8;
}

.action-btn.active {
    transform: scale(0.92);
    opacity: 0.8;
}

.search-footer {
    padding: 0.5rem 1rem;
    background: #161618;
    font-size: 0.75rem;
    color: #71717a;
    display: flex;
    justify-content: space-between;
}

kbd {
    background: #27272a;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.7rem;
    color: #d4d4d8;
}

.demo-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-cursor.visible {
    opacity: 1;
}

.demo-cursor.clicking {
    transform: scale(0.8);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.3s;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* CTA */
.cta-section {
    padding: 5rem 0;
    background: white;
    color: #0f172a;
    text-align: center;
}

.item-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    margin-bottom: 2rem;
}

footer {
    padding: 2rem 0;
    background: #0f172a;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #1e293b;
}

.waitlist-form {
    width: 100%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
}

.highlight {
    color: #3b82f6;
    font-weight: 700;
}

.hidden {
    display: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}