/* ==========================================================================
   Polish CSS — Premium SaaS Design Refinements
   Visual excellence layer. References Stripe, Linear, Vercel, Framer.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. GLOBAL BODY & FONT TUNING
   -------------------------------------------------------------------------- */

body {
    font-size: 16px;
    letter-spacing: -0.01em;
    line-height: 1.65;
}

p {
    color: var(--text-muted);
    line-height: 1.78;
}

strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Smooth anchor navigation with sticky nav offset */
section[id] {
    scroll-margin-top: 80px;
}


/* --------------------------------------------------------------------------
   2. NAVIGATION — Refined, elegant
   -------------------------------------------------------------------------- */

.navbar {
    height: 68px;
}

.nav-content {
    height: 68px;
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--text-main);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

.nav-link.active {
    color: var(--text-main);
}


/* --------------------------------------------------------------------------
   3. HERO SECTION — Bold, spacious, premium feel
   -------------------------------------------------------------------------- */

.hero::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -250px;
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(26, 86, 255, 0.05) 0%, transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Title mark highlight */
.hero-title mark {
    background: none;
    color: var(--brand-accent);
}

.hero-title {
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* Accent keyword highlight in hero heading */
.hero-title mark {
    background: none;
    color: var(--brand-accent);
}


/* --------------------------------------------------------------------------
   4. SECTION TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.875rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: var(--section-subtitle-max, 580px);
    line-height: 1.72;
    margin: 0 auto 3.5rem;
}


/* --------------------------------------------------------------------------
   5. BADGES — Refined pill design
   -------------------------------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background-color: var(--brand-accent-soft);
    color: var(--brand-accent);
    border: 1px solid var(--border-hover);
    margin-bottom: 1.25rem;
}

.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}





/* --------------------------------------------------------------------------
   7. FEATURE CARDS — Refined structure
   -------------------------------------------------------------------------- */

/* feature-card, service-card, etc. now leverage the unified .card class */


/* --------------------------------------------------------------------------
   8. SERVICE CARDS — Left-aligned with subtle accent line
   -------------------------------------------------------------------------- */

/* service-card styles integrated into components.css */


/* --------------------------------------------------------------------------
   9. HOW IT WORKS — Premium icon steps
   -------------------------------------------------------------------------- */

.steps-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    position: relative;
}

.step-card {
    position: relative;
    padding: 1.5rem 1rem;
    text-align: center;
    background: transparent;
}

.step-card::before {
    display: none; /* remove old pseudo-element */
}

.step-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-box {
    width: 68px;
    height: 68px;
    background: #fff;
    border: 1.5px solid var(--border-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
    position: relative;
    z-index: 1;
}

.step-card:hover .step-icon-box {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 12px 28px -4px rgba(124,58,237,0.18);
    border-color: rgba(124,58,237,0.4);
}

.step-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 30px;
    height: 30px;
    background: var(--brand-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(124,58,237,0.4);
    z-index: 2;
    line-height: 1;
    letter-spacing: 0;
    border: 2px solid var(--bg-card);
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 220px;
    margin: 0 auto;
}

/* Dashed arrow between steps */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem; /* align with icon center */
    color: var(--border-main);
    width: 60px;
    flex-shrink: 0;
}

.step-connector svg {
    width: 60px;
    height: 24px;
    overflow: visible;
}

[dir="rtl"] .step-connector svg {
    transform: scaleX(-1);
}

.step-number {
    display: none; /* hide old big numbers, replaced by .step-badge */
}

@media (max-width: 768px) {
    .steps-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .step-connector {
        display: none;
    }
    .step-card p {
        max-width: none;
    }
}


/* --------------------------------------------------------------------------
   10. OFFERS / CTA SECTION — Dark premium stripe
   -------------------------------------------------------------------------- */

.offers {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #0d1424 0%, #111827 50%, #0a0f1e 100%);
    color: white;
}

.offers::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 65% 50%, rgba(26, 86, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.10) 0%, transparent 50%);
    pointer-events: none;
}

.offers .card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4.5rem 3rem;
    border-radius: var(--r-xl);
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.offers h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: 0;
}

.offers p {
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 1.1rem auto 2.25rem;
    font-size: 1rem;
    line-height: 1.72;
}

.offers .btn-primary {
    background: #fff;
    color: #0f172a;
    border-color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    font-size: 0.975rem;
    padding: 0.9rem 2.25rem;
    border-radius: var(--r-md);
}

.offers .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
    color: #0f172a;
}


/* --------------------------------------------------------------------------
   11. PRICING SECTION — Clean, premium plan hierarchy
   -------------------------------------------------------------------------- */

.pricing-grid {
    margin-top: 3.5rem;
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

/* pricing-card styles integrated into components.css */

/* Popular card — accented border + elevated */
.pricing-card.popular {
    border: 2px solid var(--brand-accent);
    box-shadow: 0 8px 32px -4px rgba(124,58,237,0.18);
    transform: translateY(-8px);
    background: linear-gradient(160deg, #fff 80%, #f5f0ff 100%);
}

.pricing-card.popular:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px -8px rgba(124,58,237,0.25);
}

/* "Recommended" floating badge */
.pricing-card.popular::before {
    content: "موصى به";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand-accent);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: var(--r-full);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}

.pricing-header {
    margin-bottom: 0.25rem;
}

.pricing-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.pricing-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.25rem 0;
    letter-spacing: -0.04em;
    line-height: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.15rem;
}

.pricing-price sup {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.pricing-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border-main);
    margin: 1.25rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.pricing-features li .icon {
    width: 15px;
    height: 15px;
    color: #10b981;
    flex-shrink: 0;
    stroke-width: 2.5;
}

/* Popular card check icons get accent color */
.pricing-card.popular .pricing-features li .icon {
    color: var(--brand-accent);
}

/* CTA button always at bottom */
.pricing-card .btn {
    margin-top: auto;
}

/* Accent button for popular card */
.btn-accent {
    background-color: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
    box-shadow: 0 4px 16px rgba(124,58,237,0.28);
}

.btn-accent:hover {
    background-color: #6D28D9;
    border-color: #6D28D9;
    box-shadow: 0 6px 24px rgba(124,58,237,0.38);
    transform: translateY(-2px);
    color: #fff;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   12. TESTIMONIALS — Premium quote card
   -------------------------------------------------------------------------- */

.testimonials-grid {
    gap: 1.5rem;
}

.testimonial-card {
    position: relative;
    padding: 2.25rem;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 5rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--text-main);
    opacity: 0.05;
    pointer-events: none;
}

.testimonial-content {
    font-size: 0.975rem;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    font-style: normal;
    line-height: 1.75;
    font-weight: 400;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
    color: #f59e0b;
    font-size: 0.85rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-main);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   13. ABOUT SECTION — Clean split
   -------------------------------------------------------------------------- */

.about .split-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-top: 1rem;
}

.about .section-title {
    margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   14. CONTACT SECTION — Professional form and info styling
   -------------------------------------------------------------------------- */

.contact-form.card {
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-control {
    background: var(--bg-muted);
    border: 1px solid var(--border-main);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:focus {
    background: #fff;
    border-color: rgba(26, 86, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.08);
    outline: none;
}

.info-icon {
    width: 38px;
    height: 38px;
    background: #f0f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-text h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.info-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.map-placeholder {
    background: #f5f5f5;
    border-radius: var(--r-md);
    border-color: rgba(0, 0, 0, 0.06);
    height: 280px;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder::after {
    content: '📍 Click to load map';
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.map-placeholder:hover {
    background: #eeeeee;
}


/* --------------------------------------------------------------------------
   15. FAQ ACCORDION — Smooth and premium
   -------------------------------------------------------------------------- */

.faq-accordion {
    max-width: 720px;
    margin: 3rem auto 0;
}

.faq-card {
    border-radius: var(--r-md) !important;
    margin-bottom: 0.75rem !important;
    overflow: hidden;
}

.faq-header {
    padding: 1.35rem 1.5rem;
}

.faq-header h4 {
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.faq-icon {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-card.open .faq-header {
    border-bottom: 1px solid var(--border-main);
}

.faq-content {
    padding: 1.25rem 1.5rem 1.5rem;
    line-height: 1.75;
    font-size: 0.925rem;
    animation: faqExpand 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqExpand {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --------------------------------------------------------------------------
   16. FOOTER — Clean, minimal, organized
   -------------------------------------------------------------------------- */

.footer {
    background: var(--bg-muted);
}

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: inline-block;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
    transform: translateX(2px);
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-top .footer-col:first-child p {
    font-size: 0.875rem;
    line-height: 1.65;
    max-width: 220px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-light);
}


/* --------------------------------------------------------------------------
   17. SCROLL REVEAL ANIMATIONS — Entrance effects
   -------------------------------------------------------------------------- */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* --------------------------------------------------------------------------
   18. UTILITIES — Extra helpers
   -------------------------------------------------------------------------- */

.mb-12 {
    margin-bottom: 3rem;
}

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

.text-sm {
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Accent link style in nav */
.nav-links a.btn {
    border-radius: 8px;
    padding: 0.5rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Selection color */
::selection {
    background: rgba(26, 86, 255, 0.15);
    color: var(--text-main);
}


/* --------------------------------------------------------------------------
   19. RESPONSIVE REFINEMENTS
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 4rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

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

    .offers .card {
        padding: 3rem 1.75rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .section-spacing {
        padding: 4.5rem 0;
    }

    .pricing-card.popular {
        transform: none;
    }
}
