:root {
    --bg-color: #050505;
    --surface-color: rgba(25, 25, 30, 0.4);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --glass-blur: blur(16px);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.w-100 { width: 100%; display: inline-block; text-align: center; }

.gradient-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassmorphism {
    background: var(--surface-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
}

/* Background Blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    animation: float 10s ease-in-out infinite;
}

.blob-2 {
    top: 40%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: var(--accent-cyan);
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 100;
    padding: 1rem 2rem;
    border-radius: 100px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-cyan);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--accent-purple);
}

.btn-secondary:hover {
    background: rgba(112, 0, 255, 0.1);
    transform: translateY(-2px);
}

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

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.badge-purple { background: rgba(112, 0, 255, 0.2); color: #d0a3ff; border: 1px solid rgba(112, 0, 255, 0.4); }
.badge-cyan { background: rgba(0, 240, 255, 0.2); color: #a3fdff; border: 1px solid rgba(0, 240, 255, 0.4); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Features */
.features-section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Downloads */
.downloads-section {
    padding: 5rem 0 8rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
}

.download-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.card-features li {
    margin-bottom: 0.8rem;
    color: #e5e7eb;
}

.card-footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Instructions Section */
.instructions-section {
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 24px;
}

.instructions-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.instruction-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.instruction-col {
    min-width: 0;
}

.instruction-col h4 {
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.instruction-col ol {
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.instruction-col li {
    margin-bottom: 0.8rem;
}

.instruction-col pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    overflow-x: auto;
    color: #e5e7eb;
    font-size: 0.85rem;
    max-width: 100%;
}

/* Guide Section */
.guide-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.guide-header {
    margin-bottom: 4rem;
}

.guide-content {
    padding: 3rem;
    border-radius: 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 4rem;
    border: 1px solid var(--surface-border);
    background: #000;
}

.video-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent var(--accent-purple);
    margin-left: 8px;
}

.video-thumbnail-link:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-thumbnail-link:hover .play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.video-thumbnail-link:hover .play-button {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.guide-item {
    transition: transform 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
}

.guide-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.guide-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guide-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Modal & Contact Form */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-purple);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

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

.form-group input, 
.form-group textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.file-input {
    padding: 0.5rem 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.file-input::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.file-input::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Fix modal scrolling on small screens */
@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 4rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid, .instruction-columns {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }

    .download-card, .instructions-section {
        padding: 1.5rem;
    }

    .guide-content {
        padding: 1.5rem;
    }

    .video-container {
        margin: -1.5rem -1.5rem 2rem -1.5rem;
        border-radius: 24px 24px 0 0;
        border: none;
        border-bottom: 1px solid var(--surface-border);
    }
    
    .guide-grid {
        gap: 2rem;
    }
    
    .navbar {
        position: relative;
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 1rem;
    }
    
    .hero {
        padding-top: 20px;
    }
}

/* SPA Views */
.view-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.view-section.active {
    display: block;
}

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

/* Walkthrough SPA styles */
.walkthrough-step {
    margin-bottom: 4rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: rgba(20, 20, 25, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.walkthrough-step:hover {
    transform: translateY(-5px);
    border-color: rgba(147, 51, 234, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9333ea, #06b6d4);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.step-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-cyan);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.code-snippet {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-light {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px currentColor;
}

.status-green {
    background-color: #4ade80;
    color: #4ade80;
}
