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

:root {
    --bg: #0B0D12;
    --bg-alt: #15161B;
    --card: #1A1C23;
    --border: #262933;
    --text: #E8EAF0;
    --muted: #8A8F9E;
    --accent: #4ADE80;
    --accent-dim: #22C55E;
    --gold: #D4AF37;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-logo img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent);
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-dim);
    color: #000 !important;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 640px;
}

/* ===== HERO ===== */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-arabic {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 28px;
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.25);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted);
    margin-bottom: 8px;
    max-width: 560px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== FEATURES ===== */
.feature-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--card);
    padding: 6px;
    border-radius: 30px;
    width: fit-content;
    border: 1px solid var(--border);
}

.feature-tab {
    padding: 10px 24px;
    border-radius: 24px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.feature-tab.active {
    background: var(--accent);
    color: #000;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 222, 128, 0.08);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.feature-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.feature-panel {
    display: none;
}

.feature-panel.active {
    display: block;
}

.future-badge {
    display: inline-block;
    font-size: 0.65rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===== TUTORIAL ===== */
.tutorial-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.tutorial-step:hover {
    border-color: var(--accent);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

.platform-compare {
    margin-top: 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.platform-compare h3 {
    padding: 20px 24px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th,
td {
    padding: 14px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.02);
}

td:first-child {
    font-weight: 600;
}

/* ===== DOWNLOAD ===== */
#download {
    text-align: center;
}

#download .section-sub {
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    opacity: 0.6;
    cursor: not-allowed;
}

.store-badge:hover {
    border-color: var(--accent);
}

.store-badge .store-icon {
    font-size: 1.8rem;
}

.store-badge .store-text {
    text-align: left;
}

.store-badge .store-small {
    font-size: 0.7rem;
    color: var(--muted);
    display: block;
}

.store-badge .store-big {
    font-size: 1rem;
    font-weight: 700;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* ===== PRIVACY ENHANCEMENTS ===== */
.privacy-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 40px 0 14px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.privacy-content h3:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.75;
}

.privacy-content ul {
    padding-left: 24px;
    margin-bottom: 18px;
}

.privacy-content ul li {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.7;
}

.privacy-content ul li strong {
    color: var(--text);
    font-weight: 600;
}

.privacy-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.privacy-content a:hover {
    border-bottom-color: var(--accent);
}

.privacy-meta {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 18px 22px;
    background: var(--card);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.privacy-meta strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

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

.footer-copy a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    section {
        padding: 72px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .tutorial-step {
        flex-direction: column;
        gap: 14px;
    }

    th,
    td {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
}