/* ==========================================================================
   GalarzaIDE — Enterprise Landing & Documentation Stylesheet
   Design inspired by modern high-end IDEs (JetBrains, Linear, VS Code)
   STRICT RULE: NO EMOJIS. All graphics use inline vector SVGs or clean typography.
   ========================================================================== */

:root {
    --bg-primary: #0d0c0a;
    --bg-secondary: #131210;
    --bg-card: #1a1815;
    --bg-card-hover: #211f1a;
    --bg-input: #0f0e0c;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    --border-color-glow: rgba(232, 130, 58, 0.4);
    
    --text-primary: #f2ede4;
    --text-secondary: #a39a8c;
    --text-muted: #736a5d;
    --text-link: #e8823a;

    --brand-accent: #e8823a;
    --brand-accent-light: #f2a765;
    --brand-gradient: linear-gradient(135deg, #e8823a 0%, #c2571f 100%);
    --brand-gradient-text: linear-gradient(135deg, #f2a765 0%, #e8823a 55%, #c2571f 100%);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-cyan: #06b6d4;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Atmospheric Glows */
.bg-glow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 15%, rgba(232, 130, 58, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(194, 87, 31, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 55%);
}

.bg-glow-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

.gradient-text {
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--brand-accent-light);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.nav-actions .btn-primary {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-actions .btn-primary:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon-box {
    width: 30px;
    height: 30px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon-box svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vr {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    display: inline-block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 72px 0 64px;
    text-align: left;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 24px;
}

.hero-pill-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pillPulse 2s ease-in-out infinite;
}

@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-green); opacity: 1; }
    50% { box-shadow: 0 0 4px var(--accent-green); opacity: 0.55; }
}

.hero-title {
    font-size: 54px;
    letter-spacing: -1.2px;
    font-weight: 800;
    max-width: 960px;
    margin: 0 0 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 0 36px;
    line-height: 1.6;
}

.hero-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Download Split Button with OS Dropdown */
.download-split-btn {
    position: relative;
    display: inline-flex;
}

.download-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    transition: all var(--transition-fast);
}

.download-main-btn:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

.download-main-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.download-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #6d28d9;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    color: #ffffff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.download-arrow-btn:hover {
    background: #5b21b6;
}

.download-arrow-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.download-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: #161b22;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    z-index: 50;
    padding: 8px;
}

.download-dropdown.show {
    display: flex;
}

.download-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background var(--transition-fast);
}

.download-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.download-dropdown-item .platform-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.download-dropdown-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.download-dropdown-item .file-ext {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Hero App Mockup / Screenshot Showcase
   ========================================================================== */
.showcase-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    perspective: 1000px;
}

.showcase-glow {
    position: absolute;
    top: -20px;
    left: 5%;
    right: 5%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 80%);
    filter: blur(45px);
    z-index: -1;
}

.window-frame {
    background: #11141a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    text-align: left;
    position: relative;
}

.window-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), rgba(96, 165, 250, 0.6), transparent);
    z-index: 2;
}

.window-titlebar {
    background: #161b22;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dot-close { background: #ff5f56; }
.dot-min { background: #ffbd2e; }
.dot-max { background: #27c93f; }

.window-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.window-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

.window-image-box {
    position: relative;
    overflow: hidden;
    background: #0d1117;
}

.window-image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.window-image-box:hover img {
    transform: scale(1.01);
}

/* Feature Overlays on Screenshot */
.showcase-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.highlight-card:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.highlight-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon-box svg {
    width: 18px;
    height: 18px;
    fill: var(--brand-accent-light);
}

.highlight-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.highlight-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   AI Section (JetBrains Style Native AI Showcase)
   ========================================================================== */
.ai-section {
    padding: 96px 0 72px;
}

.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 860px) {
    .ai-cards-grid {
        grid-template-columns: 1fr;
    }
}

.ai-card {
    background: linear-gradient(145deg, #180b33 0%, #11141e 100%);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-normal), transform var(--transition-normal);
}

.ai-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-3px);
}

.ai-card-title {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.ai-card-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.ai-models-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.model-pill svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Code Snippet Box inside Card */
.snippet-box {
    background: #090c10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: "JetBrains Mono", Consolas, "SF Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #e6edf3;
    overflow-x: auto;
}

.snippet-token-keyword { color: #f472b6; }
.snippet-token-string { color: #34d399; }
.snippet-token-fn { color: #60a5fa; }
.snippet-token-comment { color: #6e7681; }

/* ==========================================================================
   Desktop vs Web Comparison ("¿Por qué Desktop?")
   ========================================================================== */
.reasons-section {
    padding: 80px 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1080px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.reason-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-normal);
}

.reason-card:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.reason-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.reason-icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.reason-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.reason-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Interactive Documentation Hub (Full Guide)
   ========================================================================== */
.docs-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #0b0e14;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}

.docs-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: 88px;
}

.docs-nav-title {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 8px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.docs-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.docs-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.docs-nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.docs-nav-btn.active {
    color: #ffffff;
    background: var(--brand-accent);
}

.docs-nav-btn.active svg {
    fill: #ffffff;
}

.docs-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 480px;
}

.doc-pane {
    display: none;
}

.doc-pane.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

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

.doc-title {
    font-size: 26px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.doc-pane p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.doc-pane h4 {
    font-size: 18px;
    margin: 28px 0 12px;
    color: var(--text-primary);
}

.doc-step-box {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
}

.doc-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.doc-step-text h5 {
    font-size: 15px;
    margin-bottom: 6px;
}

.doc-step-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.doc-code-block {
    background: #090c10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    color: #34d399;
    margin: 12px 0 20px;
    display: block;
    overflow-x: auto;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.doc-table th, .doc-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.doc-table td code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #38bdf8;
}

/* ==========================================================================
   FAQ Section (Collapsible Accordion)
   ========================================================================== */
.faq-section {
    padding: 80px 0;
}

.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    fill: var(--brand-accent-light);
}

.faq-answer {
    display: none;
    padding: 0 24px 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================================================
   Downloads Grid Section
   ========================================================================== */
.downloads-section {
    padding: 80px 0 100px;
    text-align: center;
}

.downloads-section .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.download-card:hover {
    border-color: var(--brand-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.download-card-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--text-primary);
}

.download-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.download-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.download-card .btn-download {
    width: 100%;
    margin-top: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #07090d;
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 14px;
    max-width: 320px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   Auth Modal (Login & Register)
   ========================================================================== */
.auth-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.auth-backdrop.show {
    display: flex;
}

.auth-box {
    background: #13171f;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 36px;
    animation: modalScale 0.2s ease forwards;
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.auth-close-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    background: #090c10;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: #1f242d;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

.form-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: none;
    margin-bottom: 16px;
}

.form-alert.show {
    display: block;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #86efac;
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    margin-top: 8px;
}

.btn-auth-submit:hover {
    opacity: 0.95;
}
