/* ========================================
   Synaptic Landing Page Styles
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.3);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: var(--transition-medium);
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-icon i {
    width: 20px;
    height: 20px;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.nav-github {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.nav-github:hover {
    background: var(--accent);
}

.nav-github i {
    width: 20px;
    height: 20px;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-wrapper {
    max-width: var(--container-width);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

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

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-medium);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* App Preview */
.app-preview {
    width: 500px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.app-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.titlebar-title {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-content {
    display: flex;
    height: 300px;
}

.app-sidebar {
    width: 48px;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.sidebar-item.active {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
}

.sidebar-item i {
    width: 16px;
    height: 16px;
}

.app-editor {
    flex: 1;
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.editor-line {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.heading {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.wikilink {
    color: var(--accent);
}

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

.features {
    padding: var(--section-padding) 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.features-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-medium);
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    width: 28px;
    height: 28px;
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.feature-icon.green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.feature-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

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

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

/* ========================================
   Privacy Section
   ======================================== */

.privacy {
    padding: var(--section-padding) 24px;
    background: var(--bg-secondary);
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.privacy-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.privacy-icon i {
    width: 40px;
    height: 40px;
    color: #22c55e;
}

.privacy h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.privacy p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.privacy-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.privacy-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.privacy-feature i {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* ========================================
   Plugins Section
   ======================================== */

.plugins {
    padding: var(--section-padding) 24px;
}

.plugins-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-medium);
}

.plugin-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.plugin-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plugin-icon-box i {
    width: 28px;
    height: 28px;
}

.icon-orange {
    color: #fb923c;
}

.icon-blue {
    color: #60a5fa;
}

.icon-pink {
    color: #ec4899;
}

.icon-purple {
    color: #c084fc;
}

.plugin-info {
    flex: 1;
}

.plugin-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.plugin-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Download Section
   ======================================== */

.download {
    padding: var(--section-padding) 24px;
    background: var(--gradient-hero);
}

.download-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.download p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition-medium);
}

.download-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.download-btn i {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.platform-icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.download-btn div {
    text-align: left;
}

.dl-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dl-platform {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .hero-image {
        margin-top: 60px;
    }

    .app-preview {
        width: 100%;
        max-width: 400px;
        transform: none;
    }

    .nav-links a:not(.nav-github) {
        display: none;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .privacy h2,
    .download h2 {
        font-size: 1.75rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}