/* ==========================================================================
   Shahalmi Premium Stylesheet — CSS Design System
   ========================================================================== */

/* Typography Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Tokens (Dark Mode Default) */
    --bg-primary: #080b11;
    --bg-secondary: #0f1524;
    --bg-glass: rgba(15, 22, 36, 0.7);
    --bg-glass-hover: rgba(23, 33, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-brand: #6366f1; /* Indigo */
    --color-brand-glow: rgba(99, 102, 241, 0.15);
    --color-accent: #10b981; /* Emerald/Success */
    --color-accent-glow: rgba(16, 185, 129, 0.15);
    --color-warning: #f59e0b; /* Amber */
    
    /* Layout Constants */
    --max-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16dp;
    --radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* Base resets & setups */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-brand-glow) 0%, rgba(8, 11, 17, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.glow-bg.left {
    top: 10%;
    left: -200px;
}

.glow-bg.right {
    top: 50%;
    right: -200px;
}

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header / Navigation */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(8, 11, 17, 0.6);
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 70px;
    background-color: rgba(8, 11, 17, 0.85);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--color-brand);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brand);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-smooth);
    background-color: var(--color-brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.nav-cta:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-brand);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
}

.download-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 24px;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-smooth);
}

.store-btn:hover {
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.15);
}

.store-icon {
    font-size: 24px;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-btn-text span:first-child {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text span:last-child {
    font-size: 15px;
    font-weight: 700;
}

.qr-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    max-width: 320px;
}

.qr-code {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.qr-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 290px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1e293b;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    overflow: hidden;
}

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

.mockup-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

/* Statistics Section */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 22, 36, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--color-brand);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
}

.features {
    padding: 100px 0;
}

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

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card.accent .feature-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* App Showcase Section */
.showcase {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(99,102,241,0.03) 50%, var(--bg-primary) 100%);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.showcase-visual .phone-mockup:nth-child(1) {
    transform: translateY(-20px);
}

.showcase-visual .phone-mockup:nth-child(2) {
    transform: translateY(20px);
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.showcase-p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.showcase-bullets {
    list-style: none;
    margin-bottom: 40px;
}

.showcase-bullets li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--text-secondary);
}

.showcase-bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Sellers Section / Page */
.sellers-hero {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
}

.sellers-hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.sellers-hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 100px;
}

.commission-section {
    padding: 100px 0;
    background: rgba(15, 22, 36, 0.2);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.commission-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.commission-rate {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 800;
    color: var(--color-brand);
    margin: 16px 0;
    line-height: 1;
}

.commission-rate span {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Onboarding Registration Form */
.registration-container {
    padding: 100px 0;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(15, 22, 36, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
}

.form-submit:hover {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* About Page */
.about-hero {
    padding: 180px 0 80px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.story-section {
    padding: 100px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.story-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

/* FAQ / Support Page */
.support-hero {
    padding: 180px 0 60px;
    text-align: center;
}

.faq-section {
    padding: 40px 0 100px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-icon {
    font-size: 20px;
    color: var(--color-brand);
    transition: var(--transition-smooth);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 12px;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

/* Download Conversion Page */
.download-page {
    padding: 180px 0 100px;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.download-box {
    max-width: 800px;
    margin: 0 auto;
}

.download-qr-group {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.download-qr-card {
    text-align: center;
}

.download-qr-card .qr-code {
    width: 140px;
    height: 140px;
    padding: 10px;
    margin: 0 auto 16px;
}

.download-qr-card span {
    font-weight: 600;
    color: var(--text-primary);
}

/* CTA Section */
.cta-banner {
    padding: 100px 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08) 0%, rgba(8, 11, 17, 0) 60%);
}

.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(15, 22, 36, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-card-desc {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 550px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    background: rgba(15, 22, 36, 0.4);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-info {
    max-width: 320px;
}

.footer-desc {
    margin-top: 16px;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 64px;
    }
    
    .hero-desc {
        margin: 0 auto 40px;
    }
    
    .download-badges {
        justify-content: center;
    }
    
    .qr-card {
        margin: 0 auto;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .showcase-visual {
        order: 2;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .features-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile menu drawer logic can be added */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .features-grid, .benefits-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-card-title {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
