:root {
    --bg-dark: #000000;
    --bg-card: #0c0c0c;
    --bg-hover: #161616;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --accent: #fff;
    --accent-glow: rgba(255, 255, 255, 0.4);
    --grok-primary: #f5f5f5;
    --grok-glow: rgba(245, 245, 245, 0.3);
    
    font-family: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
}

.brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-actions .btn-secondary {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-actions .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: #444;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
}

/* Glitch effect for Grok text */
.glitch {
    position: relative;
    display: inline-block;
    color: white;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(29px, 9999px, 83px, 0); }
    20% { clip: rect(74px, 9999px, 52px, 0); }
    40% { clip: rect(10px, 9999px, 20px, 0); }
    60% { clip: rect(61px, 9999px, 13px, 0); }
    80% { clip: rect(48px, 9999px, 9px, 0); }
    100% { clip: rect(98px, 9999px, 60px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(2px, 9999px, 20px, 0); }
    40% { clip: rect(33px, 9999px, 54px, 0); }
    60% { clip: rect(80px, 9999px, 60px, 0); }
    80% { clip: rect(70px, 9999px, 10px, 0); }
    100% { clip: rect(15px, 9999px, 90px, 0); }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 500px;
}

/* Buttons */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #fff;
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    width: 100%;
    max-width: 320px;
}

.btn-primary i {
    font-size: 1.5rem;
}

.btn-primary .btn-text {
    display: flex;
    flex-direction: column;
}

.btn-primary .btn-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-primary .btn-meta {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
    background: #f0f0f0;
}

.other-platforms-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}

.other-platforms {
    display: flex;
    gap: 16px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Visual Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.app-mockup {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 10;
    position: relative;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.app-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.mockup-header {
    padding: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
}

.win-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.close { background: #ff5f56; }
.min { background: #ffbd2e; }
.max { background: #27c93f; }

.mockup-title {
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.mockup-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-message {
    max-width: 85%;
}

.user-message {
    align-self: flex-end;
    background: #27272a;
    padding: 12px 16px;
    border-radius: 12px 12px 0 12px;
    font-size: 0.9rem;
}

.grok-message {
    display: flex;
    gap: 16px;
}

.grok-avatar {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

.grok-response {
    font-size: 0.95rem;
    color: #e4e4e7;
}

.grok-response p {
    margin-bottom: 8px;
}

.mockup-input {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.input-bar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.placeholder {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.send-icon {
    color: #fff;
    font-size: 0.9rem;
}

/* Glow orbs behind mockup */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    top: 50px;
    left: -50px;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -20px;
    right: 20px;
}

/* Features */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 60%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
    border-color: #444;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 25px 50px rgba(0,0,0,1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-content h2 {
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.3s;
}

.download-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem !important;
    text-align: right;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .app-mockup {
        transform: none !important;
        margin: 0 auto;
        max-width: 500px;
    }
}
