/* SHAHNA STAR OS - MODERN SAAS LANDING PAGE CSS */

:root {
    --ss-primary: #0F2E59;
    --ss-primary-hover: #0D2E5C;
    --ss-secondary: #2D3748;
    --ss-accent: #D29A2C;
    --ss-accent-hover: #E5A93C;
    --ss-success: #10B981;
    --ss-bg: #FFFFFF;
    --ss-bg-soft: #F8FAFC;
    --ss-text: #1E293B;
    --ss-muted: #64748B;
    --ss-border: #E2E8F0;
    
    /* Mesh Gradients */
    --ss-gradient-hero: radial-gradient(circle at 10% 20%, rgba(15, 46, 89, 0.95) 0%, rgba(13, 46, 92, 0.98) 90%);
    --ss-gradient-accent: linear-gradient(135deg, var(--ss-accent) 0%, #F59E0B 100%);
}

/* Base resets & Fonts overrides */
html[dir="ltr"] body { font-family: 'Inter', sans-serif !important; }
html[dir="rtl"] body { font-family: 'Tajawal', sans-serif !important; }

body {
    background-color: var(--ss-bg);
    color: var(--ss-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utilities */
.text-primary-ss { color: var(--ss-primary) !important; }
.text-secondary-ss { color: var(--ss-secondary) !important; }
.text-accent-ss { color: var(--ss-accent) !important; }
.text-success-ss { color: var(--ss-success) !important; }
.text-muted-ss { color: var(--ss-muted) !important; }

.bg-primary-ss { background-color: var(--ss-primary) !important; }
.bg-secondary-ss { background-color: var(--ss-secondary) !important; }
.bg-accent-ss { background-color: var(--ss-accent) !important; }
.bg-soft-ss { background-color: var(--ss-bg-soft) !important; }

/* Buttons */
.btn-primary-ss {
    background: var(--ss-gradient-accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 154, 44, 0.3);
}
.btn-primary-ss:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 154, 44, 0.4);
    color: #fff;
}

.btn-outline-ss {
    background-color: transparent;
    color: var(--ss-primary);
    border: 1.5px solid var(--ss-primary);
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-ss:hover {
    background-color: var(--ss-primary);
    color: #fff;
}

.btn-outline-white {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-white:hover {
    background-color: #fff;
    color: var(--ss-primary);
}

/* Hero Section */
.hero-section {
    background: var(--ss-gradient-hero);
    color: #fff;
    padding: 140px 0 100px 0;
    position: relative;
    overflow: hidden;
}
/* Abstract Background Shapes */
.hero-shape-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(210,154,44,0.15) 0%, rgba(210,154,44,0) 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero-shape-2 {
    position: absolute;
    bottom: -150px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(16,185,129,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* Floating Glass Stats */
.hero-glass-stat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.hero-glass-stat .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(210, 154, 44, 0.2);
    color: var(--ss-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.hero-glass-stat .stat-text { text-align: start; }
.hero-glass-stat .stat-value { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.hero-glass-stat .stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 1px; }

/* Trust List */
.hero-trust-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}
.hero-trust-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.hero-trust-list li i {
    color: var(--ss-accent);
    margin: 0 8px;
}
html[dir="rtl"] .hero-trust-list li i { margin-left: 8px; margin-right: 0; }
html[dir="ltr"] .hero-trust-list li i { margin-right: 8px; margin-left: 0; }

.hero-image-wrapper { position: relative; z-index: 2; }
.hero-image-wrapper img {
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
html[dir="rtl"] .hero-image-wrapper img { transform: perspective(1000px) rotateY(5deg); }
.hero-image-wrapper:hover img { transform: perspective(1000px) rotateY(0deg) translateY(-5px); }

/* Social Proof (Metrics) */
.metrics-section {
    padding: 70px 0;
    background-color: var(--ss-bg);
    position: relative;
    z-index: 5;
    margin-top: -40px; /* Overlap hero */
}
.metric-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ss-border);
    box-shadow: 0 10px 30px rgba(15, 46, 89, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 46, 89, 0.1);
    border-color: var(--ss-accent);
}
.metric-value {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--ss-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}
.metric-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ss-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Premium Bento Grid (Features) */
.bento-section {
    padding: 100px 0;
    background: var(--ss-bg-soft);
}
.bento-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--ss-border);
    padding: 40px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.bento-card:hover {
    box-shadow: 0 20px 40px rgba(15, 46, 89, 0.08);
    transform: translateY(-5px);
    border-color: rgba(210, 154, 44, 0.3);
}
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: var(--ss-gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bento-card:hover::before { opacity: 1; }

.bento-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--ss-bg-soft);
    color: var(--ss-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.bento-card:hover .bento-icon-wrapper {
    background: var(--ss-primary);
    color: #fff;
    transform: scale(1.1);
}
.bento-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ss-primary);
    margin-bottom: 15px;
}
.bento-desc {
    color: var(--ss-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Timeline (How it works) */
.timeline-section {
    padding: 100px 0;
    background: #fff;
}
.timeline-container {
    position: relative;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: var(--ss-border);
    transform: translateX(-50%);
}
.timeline-step {
    margin-bottom: 60px;
    position: relative;
}
.timeline-step:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--ss-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ss-primary);
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-step:hover .timeline-marker {
    background: var(--ss-primary);
    color: #fff;
    border-color: var(--ss-accent);
    transform: translateX(-50%) scale(1.1);
}
.timeline-content {
    width: 45%;
    background: var(--ss-bg-soft);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--ss-border);
    transition: all 0.3s ease;
}
.timeline-step:nth-child(odd) .timeline-content { margin-left: auto; }
.timeline-step:hover .timeline-content {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--ss-accent);
}
html[dir="rtl"] .timeline-step:nth-child(odd) .timeline-content { margin-left: 0; margin-right: auto; }

/* Testimonials */
.testimonial-section {
    padding: 100px 0;
    background: var(--ss-bg-soft);
}
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ss-border);
    padding: 40px 30px;
    position: relative;
    height: 100%;
}
.testimonial-quote-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--ss-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(210, 154, 44, 0.3);
}
html[dir="rtl"] .testimonial-quote-icon { right: auto; left: 30px; }
.testimonial-text {
    font-size: 1.05rem;
    color: var(--ss-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ss-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ss-primary);
    font-weight: 700;
    font-size: 1.2rem;
}
.testimonial-name { font-weight: 800; color: var(--ss-primary); margin-bottom: 2px; }
.testimonial-role { font-size: 0.85rem; color: var(--ss-muted); }
.testimonial-stars { color: #F59E0B; font-size: 0.9rem; margin-bottom: 15px; }

/* Pricing */
.pricing-section {
    padding: 100px 0;
    background: #fff;
}
.pricing-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--ss-border);
    padding: 40px;
    position: relative;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card.recommended {
    border-color: var(--ss-accent);
    box-shadow: 0 20px 50px rgba(15, 46, 89, 0.1);
    transform: scale(1.03);
    z-index: 2;
    background: linear-gradient(to bottom, #ffffff, var(--ss-bg-soft));
}
.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ss-gradient-accent);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(210, 154, 44, 0.3);
}
.pricing-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ss-primary);
    margin-bottom: 15px;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--ss-text);
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.pricing-price span { font-size: 1.2rem; font-weight: 500; color: var(--ss-muted); }
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--ss-border);
    color: var(--ss-text);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i {
    color: var(--ss-success);
    font-size: 1.1rem;
}
html[dir="rtl"] .pricing-features li i { margin-left: 12px; }
html[dir="ltr"] .pricing-features li i { margin-right: 12px; }

/* Clients / Logos Marquee */
.clients-section {
    padding: 60px 0;
    background: var(--ss-bg-soft);
    border-top: 1px solid var(--ss-border);
    border-bottom: 1px solid var(--ss-border);
}
.client-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
    max-height: 45px;
    margin: 0 auto;
}
.client-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* FAQ Accordion */
.custom-accordion .accordion-item {
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
}
.custom-accordion .accordion-button {
    background: #fff;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ss-text);
    box-shadow: none !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--ss-primary);
    background: var(--ss-bg-soft);
}
.custom-accordion .accordion-button::after {
    filter: grayscale(1);
    transition: transform 0.3s ease;
}
.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: none;
}
.custom-accordion .accordion-body {
    padding: 0 25px 25px 25px;
    color: var(--ss-muted);
    line-height: 1.7;
    background: var(--ss-bg-soft);
}

/* CTA Section */
.cta-section {
    background: var(--ss-gradient-hero);
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,0.05);
}
.cta-shape-1 { top: -100px; left: -100px; }
.cta-shape-2 { bottom: -150px; right: -50px; border-color: rgba(210,154,44,0.1); }
.cta-section h2 {
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer-modern {
    background: #09172e;
    color: #94a3b8;
    padding: 80px 0 30px;
}
.footer-modern h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 25px;
    font-size: 1.15rem;
}
.footer-modern ul { list-style: none; padding: 0; margin: 0; }
.footer-modern ul li { margin-bottom: 12px; }
.footer-modern ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-modern ul li a:hover {
    color: var(--ss-accent);
    transform: translateX(5px);
}
html[dir="rtl"] .footer-modern ul li a:hover { transform: translateX(-5px); }
.footer-modern .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.footer-modern .social-links a:hover {
    background: var(--ss-accent);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* Utility layout helpers */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ss-primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.section-title p {
    color: var(--ss-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .timeline-container::before { left: 30px; }
    html[dir="rtl"] .timeline-container::before { left: auto; right: 30px; }
    .timeline-marker { left: 30px; }
    html[dir="rtl"] .timeline-marker { left: auto; right: 30px; }
    .timeline-content { width: calc(100% - 80px); margin-left: 80px !important; }
    html[dir="rtl"] .timeline-content { margin-left: 0 !important; margin-right: 80px !important; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .metrics-section { margin-top: 0; padding: 40px 0; }
    .pricing-card.recommended { transform: scale(1); margin-top: 30px; margin-bottom: 30px; }
    .cta-section h2 { font-size: 2rem; }
}

/* Animations */
.hover-elevation { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-elevation:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

@keyframes floatAnim {
    0% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}
.floating-anim { animation: floatAnim 6s ease-in-out infinite; }

/* Modern Navbar */
.navbar-modern {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15, 46, 89, 0.05);
    transition: all 0.3s ease;
}
.navbar-modern .navbar-nav .nav-link {
    color: var(--ss-text) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-modern .navbar-nav .nav-link:hover,
.navbar-modern .navbar-nav .nav-link.active {
    color: var(--ss-primary) !important;
}
.navbar-modern .navbar-brand img { max-height: 45px; width: auto; }
.navbar-modern .auth-btn-link {
    color: var(--ss-primary) !important;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    padding: 10px 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.navbar-modern .auth-btn-link:hover { color: var(--ss-accent) !important; }
.navbar-modern .auth-btn-primary {
    background: var(--ss-gradient-accent) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(210, 154, 44, 0.2);
}
.navbar-modern .auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(210, 154, 44, 0.3);
}
