/* -------------------------------------------------------------------------- */
/*                               DESIGN TOKENS & BASE                         */
/* -------------------------------------------------------------------------- */

:root {
    --brand: #16C590;
    --brand-soft: #f0fbf8;
    --teal-deep: #35798C;
    --background: #ffffff;
    --foreground: #1a1f2e;
    --card: #ffffff;
    --border: #eef1f4;
    --muted: #f8fafc;
    --muted-foreground: #64748b;
    --radius-3xl: 1.5rem;
    --font-sans: 'Tajawal', 'Cairo', system-ui, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* -------------------------------------------------------------------------- */
/*                                  LAYOUT                                    */
/* -------------------------------------------------------------------------- */

.max-w-7xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }
}

@media (min-width: 992px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

section,
footer {
    max-width: 100vw;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------- */
/*                                TYPOGRAPHY                                  */
/* -------------------------------------------------------------------------- */

.display-4 { font-size: clamp(1.75rem, 5vw, 3.5rem) !important; }
.display-5 { font-size: clamp(1.5rem, 4vw, 3rem) !important; }
.display-6 { font-size: clamp(1.35rem, 3.5vw, 2.5rem) !important; }

.fw-black { font-weight: 900; }
.ls-wide { letter-spacing: 0.1em; }

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }
.bg-teal-deep { background-color: var(--teal-deep) !important; }

/* -------------------------------------------------------------------------- */
/*                                 COMPONENTS                                 */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn-brand {
    background: var(--brand);
    color: white;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    box-shadow: 0 4px 14px rgba(22, 197, 144, 0.25);
    transition: all 0.3s;
}

.btn-brand:hover {
    background: var(--teal-deep);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-custom {
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--foreground);
    background: white;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-circle-nav { width: 44px; height: 44px; }

/* Cards */
.card-custom {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    transition: all 0.3s;
    height: 100%;
}

.card-custom:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .card-custom { padding: 1.5rem; }
}

/* Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.icon-box-bg {
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    transform: rotate(6deg);
    transition: transform 0.3s;
}

.icon-box-bg.bg-brand { opacity: 0.1; }
.icon-box-bg.bg-teal-deep { opacity: 0.1; }

.card-custom:hover .icon-box-bg {
    transform: rotate(12deg);
}

.icon-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px -12px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link-custom {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(26, 31, 46, 0.75);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link-custom:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.mobile-menu {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    z-index: 1040;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 992px) {
    .header-container { padding: 0 3rem; }
}

@media (min-width: 1200px) {
    header { height: 100px; }
    .btn-brand { padding: 14px 32px; font-size: 1rem; }
    .nav-link-custom { font-size: 1rem; padding: 10px 18px; }
}

/* -------------------------------------------------------------------------- */
/*                                SECTIONS                                    */
/* -------------------------------------------------------------------------- */

/* Hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-soft);
    color: var(--teal-deep);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(22, 197, 144, 0.1);
}

.hero-img {
    max-width: clamp(240px, 80vw, 500px);
    width: 100%;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* App Buttons Scaling */
.hero-app-btn {
    font-size: 0.875rem;
    min-width: 130px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero-app-btn .btn-icon { width: 20px; height: 20px; }

@media (min-width: 992px) {
    .hero-app-btn {
        font-size: 1.125rem;
        min-width: 180px;
        padding: 12px 32px !important;
    }
    .hero-app-btn .btn-icon { width: 24px; height: 24px; }
}

/* Slider */
.slider-section-inner {
    width: 100%;
}

.slider-wrapper {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Prevent cutting off bottom labels */
}

.slider-item {
    position: absolute;
    transition: all 0.5s ease-out;
}

.phone-frame {
    width: clamp(180px, 45vw, 280px);
    aspect-ratio: 9/19;
    border-radius: 2.5rem;
    border: 10px solid var(--foreground);
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.slider-label {
    position: absolute;
    bottom: -4rem; /* More breathing room */
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.938rem;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.dot-indicator.active {
    width: 32px;
    background: var(--brand);
}

@media (min-width: 576px) { .slider-wrapper { min-height: 600px; } }
@media (min-width: 992px) { .slider-wrapper { min-height: 700px; } }
@media (max-width: 480px) {
    .phone-frame { border-radius: 1.5rem; border-width: 6px; }
}

/* Accordion */
.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: 1rem !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: var(--brand) !important;
    box-shadow: 0 4px 15px rgba(22, 197, 144, 0.1) !important;
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    color: var(--foreground) !important;
    background: white !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--brand) !important;
    border-bottom: 1px solid var(--border);
}

.accordion-button::after {
    background-image: none;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    background: var(--brand);
    color: white;
    content: "\f078";
}

/* Download Box */
.download-box {
    background-color: var(--teal-deep);
    border-radius: 2.5rem;
    padding: 2rem 1.25rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(var(--brand) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    opacity: 0.1;
    pointer-events: none;
}

@media (min-width: 576px) { .download-box { padding: 2.5rem; } }
@media (min-width: 992px) { .download-box { padding: 4rem; } }
@media (max-width: 991px) { .download-box { padding: 2rem; } }

/* -------------------------------------------------------------------------- */
/*                                 UTILITIES                                  */
/* -------------------------------------------------------------------------- */

.logo-img { height: 44px; }
.footer-logo { height: 48px; }

.partner-logo {
    max-height: 140px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.icon-check-wrapper { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.about-img-wrapper { border: 2px solid rgba(22, 197, 144, 0.2); max-width: 480px; }
.heading-line { height: 4px; width: 44px; }
.how-it-works-line { border-top: 2px dashed rgba(22, 197, 144, 0.2); z-index: 0; }
.faq-container { max-width: 800px; }
.download-text-max { max-width: 400px; }
.app-icon-wrapper { max-width: 180px; }

.footer-custom {
    padding-top: 4rem;
    padding-bottom: 6rem;
}
