@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Rubik:wght@300;400;500;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    --btn-hover-gradient: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Inter', 'Rubik', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow-x: hidden;
    padding: 20px;
}

/* Background decorative glowing circles */
.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 15%;
    left: 20%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: 10%;
    right: 15%;
}

.container {
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

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

.logo-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.side-logo {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.side-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .side-logo {
        width: 80px;
    }
    .logo-header-wrapper {
        gap: 10px;
    }
}

.logo-container {
    margin-bottom: 0;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: var(--btn-gradient);
    border-radius: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    margin-bottom: 16px;
}

.logo-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to right, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Rubik', sans-serif;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.download-card.hebrew {
    direction: rtl;
    font-family: 'Rubik', sans-serif;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: var(--btn-gradient);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-download:hover {
    background: var(--btn-hover-gradient);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-download svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer {
    margin-top: 32px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================
   Site shell (Home + inner pages): sidebar nav
   ============================================ */

html {
    scroll-behavior: smooth;
}

body.site {
    display: block;
    padding: 0;
}

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-inline-end: 1px solid var(--card-border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(from -90deg, var(--accent-blue) 0deg 220deg, #84cc16 220deg 360deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.brand-role {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.nav-item.active {
    background: var(--btn-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sidebar-overlay {
    display: none;
}

.mobile-topbar {
    display: none;
}

.content {
    flex: 1;
    margin-inline-start: 260px;
    padding: 56px 48px 40px;
    position: relative;
    z-index: 10;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 14px;
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 14px 20px;
        background: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--card-border);
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid var(--card-border);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-primary);
        font-size: 1.1rem;
        cursor: pointer;
    }

    .mobile-brand {
        font-family: 'Rubik', sans-serif;
        font-weight: 600;
    }

    .content {
        margin-inline-start: 0;
        padding: 32px 20px;
    }
}

.hero-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    animation: fadeIn 0.8s ease-out;
}

.hero-logo-mark {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(from -90deg, var(--accent-blue) 0deg 220deg, #84cc16 220deg 360deg);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.hero-text h1 {
    font-size: 1.9rem;
    margin-bottom: 4px;
    text-align: start;
}

.hero-text .hero-tag {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 36px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease-out;
}

.content-card h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature-list li {
    position: relative;
    padding-inline-start: 26px;
    color: #e2e8f0;
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--btn-gradient);
}

.inline-link {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inline-link:hover {
    color: var(--accent-purple);
}

.page-placeholder {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.page-placeholder .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.back-home:hover {
    color: var(--text-primary);
}

.site-footer {
    margin-inline-start: 260px;
    padding: 24px 48px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .site-footer {
        margin-inline-start: 0;
        padding: 24px 20px 32px;
    }
}

.site-footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.site-footer .footer-links {
    margin-bottom: 8px;
}
