/* Bas App Website — Shared Styles */
/* Matches app theme: dark background, neon green accent, RTL Arabic */

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #0A1A12;
    --bg-card: #0A1A12;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent: #00FF9F;
    --accent-secondary: #00FFAA;
    --warning: #FFE600;
    --error: #FF3366;
    --border-accent: rgba(0, 255, 159, 0.2);
    --glow-accent: rgba(0, 255, 159, 0.4);
    --radius: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-accent);
    margin-bottom: 40px;
}

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

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

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-brand span {
    font-size: 1.2rem;
    font-weight: 700;
}

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

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

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 48px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 24px;
    box-shadow: 0 0 40px var(--glow-accent);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 20px var(--glow-accent);
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
}

.hero-description {
    max-width: 540px;
    margin: 20px auto 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Section */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 0 12px var(--glow-accent);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: rgba(0, 255, 159, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.1);
}

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

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Privacy Highlights */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.privacy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 159, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 159, 0.2);
}

.privacy-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.privacy-item p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 230, 0, 0.08);
    border: 1px solid rgba(255, 230, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 32px;
}

.disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.7;
}

.disclaimer p {
    color: var(--warning);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-accent);
    padding: 32px 0;
    margin-top: 48px;
    text-align: center;
}

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

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

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

.footer-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Policy Pages */
.policy-page {
    padding-bottom: 48px;
}

.policy-header {
    text-align: center;
    padding: 40px 0 32px;
}

.policy-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 12px var(--glow-accent);
}

.policy-header .last-updated {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.policy-content {
    max-width: 720px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 36px;
}

.policy-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-accent);
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.policy-section ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 6px 0;
    padding-right: 20px;
    position: relative;
    line-height: 1.7;
}

.policy-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.policy-intro {
    font-size: 1.05rem !important;
    color: var(--text-primary) !important;
    line-height: 1.9 !important;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.policy-contact {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
}

.policy-contact h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.policy-contact a {
    color: var(--accent);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero .tagline {
        font-size: 1.05rem;
    }

    .hero-logo {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .card-grid,
    .privacy-grid {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 20px;
    }

    .policy-header h1 {
        font-size: 1.6rem;
    }
}

/* ========================================
   NEW SECTIONS — SEO Enhanced Landing Page
   ======================================== */

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -16px;
    margin-bottom: 32px;
}

/* App Store Download Button */
.hero-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text-primary);
    color: #000;
    padding: 12px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    direction: ltr;
}

.app-store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--glow-accent);
    opacity: 1;
    color: #000;
}

.apple-icon {
    flex-shrink: 0;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.app-store-small {
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.8;
}

.app-store-large {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Nav Download Button */
.nav-download-btn {
    background: var(--accent);
    color: #000 !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow-accent);
    opacity: 1;
}

/* Screenshots Gallery */
.screenshots-section {
    overflow: hidden;
}

.screenshots-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 6px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-item img {
    width: 240px;
    height: auto;
    border-radius: 24px;
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 30px rgba(0, 255, 159, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(0, 255, 159, 0.2);
}

.screenshot-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* How It Works — Phases */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phase-card:hover {
    border-color: rgba(0, 255, 159, 0.4);
    box-shadow: 0 0 25px rgba(0, 255, 159, 0.1);
}

.phase-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.phase-days {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.phase-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.phase-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.phase-tree {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-accent);
    font-size: 0.85rem;
    color: var(--accent);
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit-item {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.benefit-item:hover {
    border-color: rgba(0, 255, 159, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.1);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.benefit-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(0, 255, 159, 0.4);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-right: 16px;
    transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 24px 20px;
    background: var(--bg-card);
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.faq-answer ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    padding-right: 20px;
    position: relative;
    line-height: 1.7;
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* SEO Content Sections */
.seo-content-section {
    padding: 36px 0;
}

.seo-content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
}

.seo-content-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* Competitor Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.comparison-item {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comparison-item:hover {
    border-color: rgba(0, 255, 159, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.1);
}

.comparison-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.comparison-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.comparison-item p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-box {
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 48px 32px;
    box-shadow: 0 0 60px rgba(0, 255, 159, 0.15);
}

.cta-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 0 20px var(--glow-accent);
}

.cta-box > p:first-of-type {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.app-store-btn-large {
    padding: 16px 36px;
    border-radius: 16px;
}

.app-store-btn-large .app-store-large {
    font-size: 1.4rem;
}

.cta-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer Logo */
.footer-logo {
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
    .phases-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid,
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-item img {
        width: 200px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-box h2 {
        font-size: 1.4rem;
    }
}

/* Responsive — Mobile (supplements existing 600px breakpoint) */
@media (max-width: 600px) {
    .benefits-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .nav-download-btn {
        display: none;
    }

    .app-store-btn {
        padding: 10px 24px;
    }

    .app-store-btn-large {
        padding: 14px 28px;
    }

    .app-store-btn-large .app-store-large {
        font-size: 1.2rem;
    }

    .screenshot-item img {
        width: 180px;
    }
}
