/* ===== CSS VARIABLES (Taqseem Brand) ===== */
:root {
    --primary: #10B981;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --primary-soft: #D1FAE5;
    --primary-softer: #ECFDF5;
    --secondary: #1E293B;
    --secondary-900: #0F172A;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;
    --radius: 0.75rem;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .10), 0 4px 12px rgba(0, 0, 0, .06);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--secondary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Wrap main and footer in a scrollable area */
.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR (Match App) ===== */
::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: #FFFFFF !important;
}

::-webkit-scrollbar-thumb {
    background-color: #7fddb0 !important;
    border-radius: 10px !important;
    border: 2px solid #f9faf7 !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #10B981 !important;
    border-color: #f9faf7 !important;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container-main {
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--slate-200);
}

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

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--white);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    background: var(--primary-softer);
    color: var(--primary-dark);
    border: 1px solid var(--primary-soft);
    border-radius: 999px;
    padding: .35rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

.section-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
    margin-top: .5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-600);
    line-height: 1.7;
    max-width: 580px;
    margin-top: .75rem;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Fade-in animation */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow .3s;
    z-index: 100;
}

#navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active {
    font-weight: 700;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-login {
    font-size: .9rem;
    font-weight: 600;
    color: var(--slate-600);
    padding: .5rem 1.25rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    transition: all .2s;
}

.nav-cta .btn {
    padding: .5rem 1.25rem;
    font-size: .875rem;
}

.nav-login:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: .4rem;
    border-radius: 8px;
    background: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    overflow: hidden;
}

.mobile-menu-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 0;
}

.mobile-menu.open {
    grid-template-rows: 1fr;
}

.mobile-menu.open .mobile-menu-inner {
    padding: 1rem 1.5rem 1.5rem;
}

.mobile-menu a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--slate-600);
    padding: .75rem 0;
    border-bottom: 1px solid var(--slate-100);
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--primary);
}

.mobile-menu a:last-child {
    border: none;
}

.mobile-menu .mobile-cta {
    margin-top: 1rem;
    padding: .75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    justify-content: center;
    border-bottom: none;
    transition: background .2s, transform .2s;
}

/* ===== FOOTER ===== */
footer,
#footer-placeholder footer {
    background: var(--secondary-900) !important;
    color: rgba(255, 255, 255, .8) !important;
    padding: 5rem 0 3rem;
    display: block;
    width: 100%;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-brand .nav-logo {
    color: var(--primary);
    margin-bottom: .75rem;
}

.footer-brand p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    margin-top: 1.25rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.footer-col a {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
    color: rgba(255, 255, 255, .3);
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ===== COMMON FEATURE COMPONENTS ===== */

/* Feature Row Layout */
.feature-row {
    padding: 6rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.feature-row:nth-child(even) {
    background: var(--slate-50);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.feature-row.reverse .feature-row-inner {
    direction: rtl;
}

.feature-row.reverse .feature-row-inner>* {
    direction: ltr;
}

.feature-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
}

.feature-checklist-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-softer);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-checklist-text h4 {
    font-weight: 700;
    font-size: .95rem;
    color: var(--secondary);
    margin-bottom: .25rem;
}

.feature-checklist-text p {
    font-size: .875rem;
    color: var(--slate-600);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Feature Visuals (Base) */
.feature-visual {
    position: relative;
    background: var(--white);
    border-radius: 1.25rem;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    overflow: hidden;
}

/* Common UI Elements inside Visuals */
.fake-d-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .85rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.fake-d-row:last-child {
    border-bottom: none;
}

.fake-d-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.fake-d-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #DBEAFE;
    color: #1D4ED8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-d-name {
    font-size: .9rem;
    font-weight: 600;
    color: var(--secondary);
}

.fake-d-date {
    font-size: .75rem;
    color: var(--slate-500);
}

.fake-d-val {
    font-weight: 700;
    font-size: .95rem;
    color: var(--secondary);
}

/* Features Hero Base */
.features-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(160deg, var(--white) 0%, var(--primary-softer) 100%);
    text-align: center;
    border-bottom: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, .08) 0%, transparent 70%);
    pointer-events: none;
}

.features-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.features-hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.features-hero p {
    font-size: 1.15rem;
    color: var(--slate-600);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 840px) {
    .feature-row-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .feature-row.reverse .feature-row-inner {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }
}