/* ==========================================================================
   SALLA BAKALIM - PROMOTIONAL PAGE DESIGN SYSTEM (style.css)
   Theme: Obsidian & Indigo Tech Style (Ultra-Premium, Minimalist, Clean)
   ========================================================================== */

/* --- Design Tokens & CSS Variables --- */
:root {
    --bg-base: #09090b;
    --bg-surface: #121216;
    --bg-surface-high: #1a1a22;
    --bg-navbar: rgba(9, 9, 11, 0.8);
    
    --color-accent: #6366f1; /* Indigo-500 */
    --color-accent-hover: #4f46e5; /* Indigo-600 */
    --color-accent-glow: rgba(99, 102, 241, 0.15);
    
    --text-main: #f4f4f5; /* Zinc-100 */
    --text-muted: #a1a1aa; /* Zinc-400 */
    --text-dark: #09090b;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.25);
    
    --font-sans: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px 0 rgba(99, 102, 241, 0.15);
}

/* --- Base Reset & Performance Optimization --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
    background: 
        radial-gradient(circle at 80% 20%, #16162a 0%, rgba(9, 9, 11, 0) 50%),
        radial-gradient(circle at 20% 80%, #0d1622 0%, rgba(9, 9, 11, 0) 60%),
        var(--bg-base);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-high);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Containers --- */
.container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 90px 0;
    position: relative;
}

.highlight {
    color: #fff;
    background: linear-gradient(135deg, #fff 40%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Header / Navigation Bar --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 16px 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

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

.app-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: #fff;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    outline: none;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background-color: var(--bg-surface-high);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: #23232e;
    color: #fff;
}

/* --- Official-Style Store Badges --- */
.hero-store-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
}

.store-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #000;
    color: #fff;
    border: 1px solid #3f3f46; /* Zinc-700 */
    border-radius: 8px;
    padding: 8px 16px;
    width: 145px;
    height: 44px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.store-badge-btn:hover {
    border-color: #71717a; /* Zinc-500 */
    background-color: #0c0c0e;
}

.badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.badge-sub {
    font-size: 0.55rem;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
}

.badge-main {
    font-size: 0.85rem;
    font-weight: 700;
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0 60px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-item span.material-symbols-rounded {
    color: var(--color-accent);
    font-size: 1.15rem;
}

/* --- Hero Right Side: Phone Showcase --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-showcase {
    position: relative;
    width: 100%;
    max-width: 320px;
}

/* Borderless Phone Mockup container */
.phone-frame {
    background-color: #000;
    border: 10px solid #1a1a22;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 18.5;
    width: 100%;
}

.phone-frame.shadow-effect {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 40px 0 rgba(99, 102, 241, 0.1);
}

.phone-speaker {
    width: 50px;
    height: 4px;
    background: #1a1a22;
    border-radius: 99px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-premium);
}

.feat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.feat-icon-wrapper span.material-symbols-rounded {
    font-size: 1.35rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: rgba(18, 18, 22, 0.4);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--border-active);
}

.step-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    position: relative;
}

.step-icon-box span.material-symbols-rounded {
    font-size: 1.5rem;
    color: #fff;
}

.step-1 { background: linear-gradient(135deg, var(--color-accent) 0%, #818cf8 100%); }
.step-2 { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); }
.step-3 { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }

.step-number {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--bg-base);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    border: 1px solid var(--border-light);
    color: #fff;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

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

/* --- Screenshots Showcase Section --- */
.showcase-display {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 280px;
}

.showcase-item .phone-frame {
    box-shadow: var(--shadow-premium);
}

.showcase-item .phone-frame.border-style {
    border-color: #1e1e24;
}

.showcase-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Redesigned CTA Download Banner --- */
.download-banner {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--color-accent-glow);
    filter: blur(60px);
    pointer-events: none;
}

.download-banner-content {
    flex: 1.3;
}

.download-banner-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #fff;
}

.download-banner-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.download-banner-actions {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.download-banner-actions .btn {
    width: 100%;
    max-width: 220px;
}

.store-badges-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.playstore-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
}

.playstore-soon span {
    font-size: 0.95rem;
}

/* --- Premium Footer --- */
.footer {
    background-color: #060608;
    border-top: 1px solid var(--border-light);
    padding: 50px 0 0 0;
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
}

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

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 6px;
}

.footer-links-col a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links-col a:hover {
    color: #fff;
}

.footer-links-col a span.material-symbols-rounded {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
}

/* --- Responsive Media Queries --- */

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 520px;
    }
    
    .hero-store-badges {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .download-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 24px;
    }
    
    .download-banner-actions {
        align-items: center;
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .header-cta {
        margin-left: auto;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .showcase-display {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-store-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .download-banner-content h2 {
        font-size: 1.6rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}
