* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary: #1e3a5f;
    --primary-dark: #152942;
    --accent: #ff9900;
    --accent-hover: #e68a00;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL Support */
body[dir="rtl"] {
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

body[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

body[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 153, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    min-height: 70px;
    /* Force a compact height */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 2rem;
    height: 100%;
}

.logo-wrapper img {
    height: 40px;
    /* Strict professional height, no massive width constraints */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover img {
    transform: translateY(-2px);
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo-wrapper img {
    width: 260px;
    height: auto;
    display: block;
    object-fit: contain;
    /* Expert touch: Monochrome white logo for dark footers guarantees no ugly fringes and a top-tier premium look */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(0) invert(1);
    opacity: 1;
    transition: transform 0.3s ease;
}

.footer-logo-wrapper img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    /* Tighter spacing */
    align-items: center;
}

.nav-links>a:not(.btn) {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links>a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links>a:not(.btn):hover::after {
    width: 100%;
}

.nav-links>a:not(.btn):hover {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.lang-switcher a.active {
    background: var(--bg-gray);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(255, 153, 0, 0.05) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-mockup {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid var(--border);
    background: white;
}

.hero-mockup img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* Clients Bar */
.clients-bar {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.clients-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.5;
    font-size: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--primary);
}

/* Detailed Showcase */
.showcase {
    padding: 6rem 0;
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-image {
    flex: 1;
    position: relative;
}

.showcase-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.showcase-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.showcase-list {
    list-style: none;
    margin-top: 2rem;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.showcase-list i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 5px;
}

.showcase-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.showcase-list p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Simulator Section */
.simulator {
    padding: 6rem 0;
    background-color: var(--bg-gray);
}

.simulator-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.simulator-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-step {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sim-step:hover {
    border-color: var(--text-muted);
}

.sim-step.active {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.sim-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sim-step-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.sim-step-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.simulator-display {
    flex: 1.2;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sim-view {
    display: none;
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.4s ease;
}

.sim-view.active {
    display: block;
}

/* Sim UI Elements */
.sim-window {
    background: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sim-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-body {
    padding: 1.5rem;
    background: white;
}

.sim-skeleton-line {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.sim-input-box {
    height: 35px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #94a3b8;
    font-size: 0.85rem;
    gap: 8px;
}

.sim-button-action {
    background: var(--accent);
    color: white;
    padding: 0.75rem;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* Phone Sim */
.sim-phone {
    border: 8px solid #333;
    border-radius: 24px;
    overflow: hidden;
    height: 320px;
    background: #efeae2;
    display: flex;
    flex-direction: column;
    width: 250px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sim-chat-header {
    background: #075e54;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.sim-chat-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sim-chat-bubble {
    background: white;
    padding: 0.75rem;
    border-radius: 8px;
    border-top-left-radius: 0;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.5;
    color: #333;
}

/* Tracking Sim */
.sim-tracking {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sim-track-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    position: relative;
}

.sim-track-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background: #e2e8f0;
}

.sim-track-step.done,
.sim-track-step.active-step {
    opacity: 1;
}

.sim-track-step.done::after {
    background: #22c55e;
}

.sim-track-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.sim-track-step.done .sim-track-icon {
    background: #22c55e;
    color: white;
}

.sim-track-step.active-step .sim-track-icon {
    background: var(--accent);
    color: white;
    border: 2px solid rgba(255, 153, 0, 0.3);
}

/* Dash Sim */
.sim-dash-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sim-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.sim-stat {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.sim-chart {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 100px;
    padding-top: 1rem;
    border-bottom: 2px solid var(--border);
}

.sim-bar {
    flex: 1;
    background: var(--primary);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    opacity: 0.6;
    transition: height 0.5s ease;
}

.sim-bar:last-child {
    background: var(--accent);
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background-color: var(--primary-dark);
    color: white;
    overflow: hidden;
    /* Prevent horizontal scroll on body */
}

.testimonials h2,
.testimonials p {
    color: white;
}

.testimonials p {
    opacity: 0.8;
}

.reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    /* space for scrollbar */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
}

.reviews-grid::-webkit-scrollbar {
    height: 8px;
}

.reviews-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.reviews-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    min-width: 350px;
    max-width: 400px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.review-text {
    flex-grow: 1;
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-info h4 {
    color: white;
    margin: 0;
    font-size: 1rem;
}

.reviewer-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Lead Form Section */
.lead-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.lead-container {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.lead-info {
    flex: 1;
    background: var(--primary);
    color: white;
    padding: 4rem 3rem;
}

.lead-info h2,
.lead-info p {
    color: white;
}

.lead-info p {
    opacity: 0.8;
}

.lead-form {
    flex: 1.2;
    padding: 4rem 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Grid Utilities */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.price-card {
    background: var(--bg-light);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.price-card.popular {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    background: white;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-card .target {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.price-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.price-features li i {
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about span {
    color: var(--accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links ul a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .showcase-row,
    .showcase-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .lead-container {
        flex-direction: column;
    }

    .pricing-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .price-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}