/* ========================================================
   @font-face — self-hosted brand fonts
   ======================================================== */

/* TheYearofHandicrafts — Arabic */
@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('/landing-assets/fonts/alfont_com_TheYearofHandicrafts-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('/landing-assets/fonts/alfont_com_TheYearofHandicrafts-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('/landing-assets/fonts/alfont_com_TheYearofHandicrafts-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('/landing-assets/fonts/alfont_com_TheYearofHandicrafts-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TheYearofHandicrafts';
    src: url('/landing-assets/fonts/alfont_com_TheYearofHandicrafts-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Raleway — Latin */
@font-face {
    font-family: 'Raleway';
    src: url('/landing-assets/fonts/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/landing-assets/fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/landing-assets/fonts/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/landing-assets/fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================================
   CSS Variables
   ======================================================== */
:root {
    --primary: #02D866;
    --primary-hover: #029D4D;
    --primary-light: #EDFCF8;

    --secondary: #063F31;
    --secondary-hover: #053627;

    --text-heading: #1a1a2e;
    --text-body: #4a4a68;
    --text-muted: #8888a0;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-nav: 0 2px 16px rgba(0, 0, 0, 0.06);

    --font-family: 'TheYearofHandicrafts', 'Raleway', sans-serif;
    --nav-height: 72px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE / Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari / Opera */
}

body {
    font-family: var(--font-family);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
    list-style: none;
}

/* ========================================================
   NAVBAR
   ======================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.navbar--scrolled {
    background: var(--white);
    box-shadow: var(--shadow-nav);
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Logo ---- */
.navbar__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar__logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

/* Dark mode: show dark variant, hide light */
.navbar__logo-img--dark {
    display: none;
}

[data-theme="dark"] .navbar__logo-img--light {
    display: none;
}

[data-theme="dark"] .navbar__logo-img--dark {
    display: block;
}


.navbar__logo:hover {
    opacity: 0.85;
}

/* ---- Nav Links (desktop) ---- */
.navbar__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-body);
    position: relative;
    padding: 4px 0;
    transition: color var(--transition);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

/* ---- CTA Button ---- */
.navbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow var(--transition);
    flex-shrink: 0;
}

.navbar__cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 216, 102, 0.35);
}

.navbar__cta:active {
    transform: translateY(0);
}

/* ---- Hamburger (mobile only) ---- */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 4px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ========================================================
   MOBILE MENU
   ======================================================== */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1002;
    pointer-events: none;
}

.mobile-menu.open {
    pointer-events: auto;
}

/* Backdrop */
.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu.open .mobile-menu__backdrop {
    opacity: 1;
}

/* Panel — slides from left in RTL (which is visual left = dir start) */
.mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition);
}

.mobile-menu.open .mobile-menu__panel {
    transform: translateX(0);
}

/* Close button */
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-body);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.mobile-menu__close:hover {
    background: var(--gray-100);
    color: var(--text-heading);
}

/* Menu links */
.mobile-menu__links {
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    display: block;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-body);
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* CTA inside mobile menu */
.mobile-menu__cta {
    margin-top: auto;
    text-align: center;
    width: 100%;
    background: var(--primary);
    border: none;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {

    .navbar__links,
    .navbar__cta--desktop {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* ========================================================
   HERO SECTION
   ======================================================== */

/* ---- Background ---- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to left, rgba(2, 216, 102, 0.12) 0%, #CCF8E1 30%, var(--white) 95%);
    padding: 120px 24px 80px;
}

.hero__bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 216, 102, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    pointer-events: none;
    z-index: 0;
}

.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* ---- Layout ---- */
.hero__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ---- Text Content ---- */
.hero__content {
    animation: heroFadeInRight 0.6s ease both;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.hero__emoji {
    display: inline-block;
    animation: heroEmojiBounce 2s ease-in-out infinite;
}

.hero__subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 540px;
    margin-bottom: 32px;
}

/* ---- CTA Buttons ---- */
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
}

.hero__cta--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(2, 216, 102, 0.3);
}

.hero__cta--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(2, 216, 102, 0.4);
}

.hero__cta--secondary {
    background: transparent;
    color: var(--text-heading);
    border: 2px solid var(--gray-200);
}

.hero__cta--secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ---- Trust Badges ---- */
.hero__trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__trust li {
    white-space: nowrap;
}

/* ========================================================
   DASHBOARD MOCKUP
   ======================================================== */
.hero__mockup-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFadeInLeft 0.6s 0.15s ease both;
}

.hero__mockup {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    animation: heroFloat 4s ease-in-out infinite;
}

/* ---- Topbar ---- */
.mockup__topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mockup__dots {
    display: flex;
    gap: 6px;
}

.mockup__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup__dots span:nth-child(1) {
    background: #ff5f57;
}

.mockup__dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup__dots span:nth-child(3) {
    background: #28c840;
}

.mockup__topbar-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: auto;
}

/* ---- Body layout ---- */
.mockup__body {
    display: flex;
    min-height: 280px;
}

.mockup__sidebar {
    width: 52px;
    background: var(--gray-50);
    border-left: 1px solid var(--gray-200);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup__sidebar-item {
    width: 100%;
    height: 28px;
    border-radius: 6px;
    background: var(--gray-200);
}

.mockup__sidebar-item.active {
    background: var(--primary);
    opacity: 0.7;
}

.mockup__main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---- Stat Cards ---- */
.mockup__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mockup__stat-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.mockup__stat-card--accent {
    background: var(--primary-light);
}

.mockup__stat-label {
    width: 50%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    margin: 0 auto 8px;
}

.mockup__stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.mockup__stat-card--accent .mockup__stat-value {
    color: var(--primary-hover);
}

/* ---- Chart ---- */
.mockup__chart {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px 12px 12px;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.mockup__chart-bars {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    height: 80px;
}

.mockup__bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), #6ee7a0);
    border-radius: 4px 4px 0 0;
    min-height: 12px;
    transition: height 0.4s ease;
}

/* ---- Message Rows ---- */
.mockup__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--gray-50);
    border-radius: 6px;
}

.mockup__row-icon {
    font-size: 0.8rem;
    width: 22px;
    text-align: center;
}

.mockup__row-text {
    flex: 1;
    height: 10px;
    border-radius: 4px;
    background: var(--gray-200);
}

.mockup__row-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.mockup__row-badge--success {
    background: var(--primary-light);
    color: var(--primary-hover);
}

.mockup__row-badge--pending {
    background: #fef3c7;
    color: #b45309;
}

/* ========================================================
   HERO ANIMATIONS
   ======================================================== */
@keyframes heroFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0);
    }

    50% {
        transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-12px);
    }
}

@keyframes heroEmojiBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ========================================================
   HERO — RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
        /* On mobile the two-column layout collapses vertically.
           Flip the gradient to top→bottom so green stays visible. */
        background: linear-gradient(to bottom, rgba(2, 216, 102, 0.10) 0%, #CCF8E1 25%, var(--white) 80%);
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero__content {
        animation-name: heroFadeInUp;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
        gap: 16px;
    }

    .hero__mockup-wrapper {
        animation-name: heroFadeInUp;
        animation-delay: 0.25s;
    }

    .hero__mockup {
        transform: perspective(1200px) rotateY(0) rotateX(3deg);
        max-width: 400px;
    }

    @keyframes heroFloat {

        0%,
        100% {
            transform: perspective(1200px) rotateY(0) rotateX(3deg) translateY(0);
        }

        50% {
            transform: perspective(1200px) rotateY(0) rotateX(3deg) translateY(-10px);
        }
    }
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================
   TRUST BAR
   ======================================================== */
.trust-bar {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 40px 24px;
}

.trust-bar__container {
    max-width: 1000px;
    margin: 0 auto;
}

.trust-bar__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.trust-bar__icon {
    font-size: 2rem;
    line-height: 1;
}

.trust-bar__number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    min-height: 2.1rem;
    /* prevent layout shift during counter animation */
}

.trust-bar__label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-bar__tagline {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Trust bar responsive ---- */
@media (max-width: 768px) {
    .trust-bar__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }

    .trust-bar__number {
        font-size: 1.5rem;
    }
}

/* ========================================================
   GENERIC SECTIONS (features, pricing, faq, etc.)
   ======================================================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* ========================================================
   FEATURES SECTION
   ======================================================== */
.features {
    background: var(--white);
    padding: 100px 24px;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.features__header {
    text-align: center;
    margin-bottom: 56px;
}

.features__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.features__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Grid ---- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- Card ---- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ---- Icon circle ---- */
.feature-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features {
        padding: 72px 20px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }
}

/* ========================================================
   SCROLL ANIMATION UTILITY — fade-up
   ======================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

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

/* ========================================================
   BACK TO TOP BUTTON
   ======================================================== */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(2, 216, 102, 0.35);
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#backToTop:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(2, 216, 102, 0.45);
    transform: translateY(-2px) scale(1);
}

#backToTop:active {
    transform: translateY(0) scale(0.95);
}

[data-theme="dark"] #backToTop {
    box-shadow: 0 4px 14px rgba(2, 216, 102, 0.2);
}

/* ========================================================
   HOW IT WORKS — STEPS TIMELINE
   ======================================================== */
.steps-section {
    background: var(--gray-50);
    padding: 100px 24px;
}

.steps-section__container {
    max-width: 1000px;
    margin: 0 auto;
}

.steps-section__header {
    text-align: center;
    margin-bottom: 56px;
}

.steps-section__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.steps-section__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Timeline row ---- */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

/* ---- Individual step ---- */
.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

/* Stagger delays — applied on top of .fade-up transition */
.step[data-delay="0"] {
    transition-delay: 0s;
}

.step[data-delay="1"] {
    transition-delay: 0.2s;
}

.step[data-delay="2"] {
    transition-delay: 0.4s;
}


/* Connecting dashed line between steps (desktop) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(-50% + 24px);
    width: 100%;
    height: 0;
    border-top: 2px dashed var(--primary);
    opacity: 0.4;
    z-index: 0;
}

/* Arrow head at the end of each connecting line */
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 19px;
    left: calc(-50% + 24px);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--primary);
    opacity: 0.5;
    z-index: 1;
}

/* LTR: flip dashed line and arrow to point right (1 → 2 → 3) */
[dir="ltr"] .step:not(:last-child)::after {
    left: auto;
    right: calc(-50% + 24px);
}

[dir="ltr"] .step:not(:last-child)::before {
    left: auto;
    right: calc(-50% + 24px);
    border-right: none;
    border-left: 8px solid var(--primary);
}

/* ---- Number circle ---- */
.step__number {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(2, 216, 102, 0.3);
}

/* ---- Emoji Icon ---- */
.step__icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 14px;
}

/* ---- Text ---- */
.step__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.step__desc {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .steps-section {
        padding: 72px 20px;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    /* Vertical connecting line (mobile) */
    .steps-timeline::before {
        content: '';
        position: absolute;
        top: 24px;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        border-right: 2px dashed var(--primary);
        opacity: 0.4;
        z-index: 0;
    }

    .step {
        max-width: 400px;
        padding: 24px 0;
    }

    /* Hide horizontal connectors on mobile */
    .step:not(:last-child)::after,
    .step:not(:last-child)::before {
        display: none;
    }

    .step__number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* ========================================================
   DASHBOARD PREVIEW SECTION
   ======================================================== */
.dash-preview {
    background: var(--white);
    padding: 100px 24px;
    overflow: hidden;
}

.dash-preview__container {
    max-width: 1100px;
    margin: 0 auto;
}

.dash-preview__header {
    text-align: center;
    margin-bottom: 48px;
}

.dash-preview__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.dash-preview__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Browser frame ---- */
.dash-preview__frame {
    max-width: 900px;
    margin: 0 auto 56px;
    perspective: 1200px;
}

.dash-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}

.dash-frame:hover {
    transform: rotateX(0);
}

/* Browser chrome bar */
.dash-frame__chrome {
    background: #f0f0f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #ddd;
}

.dash-frame__dots {
    display: flex;
    gap: 6px;
}

.dash-frame__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-frame__dots span:nth-child(1) {
    background: #ff5f56;
}

.dash-frame__dots span:nth-child(2) {
    background: #ffbd2e;
}

.dash-frame__dots span:nth-child(3) {
    background: #27c93f;
}

.dash-frame__url {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 280px;
    font-family: -apple-system, sans-serif;
    direction: ltr;
}

/* Dashboard body — sidebar + main */
.dash-frame__body {
    display: flex;
    background: #fafbfc;
    min-height: 280px;
}

/* Sidebar */
.dash-frame__sidebar {
    width: 140px;
    background: #fff;
    border-left: 1px solid #eee;
    padding: 16px 0;
    flex-shrink: 0;
}

.dash-frame__sidebar-logo {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 0 16px 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.dash-frame__nav-item {
    padding: 8px 16px;
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.dash-frame__nav-item--active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    border-right: 3px solid var(--primary);
}

/* Main content area */
.dash-frame__main {
    flex: 1;
    padding: 20px;
}

.dash-frame__greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 16px;
}

/* Stat cards row */
.dash-frame__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.dash-frame__stat {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.dash-frame__stat--green {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(2, 216, 102, 0.05), rgba(2, 216, 102, 0.02));
}

.dash-frame__stat-icon {
    font-size: 1rem;
    margin-bottom: 4px;
}

.dash-frame__stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.dash-frame__stat-label {
    font-size: 0.6rem;
    color: #999;
    margin-top: 2px;
}

/* Messages table */
.dash-frame__table {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.dash-frame__table-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-heading);
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.dash-frame__table-row {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.7rem;
    border-bottom: 1px solid #f8f8f8;
    gap: 8px;
}

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

.dash-frame__table-name {
    font-weight: 500;
    color: var(--text-heading);
    flex: 1;
}

.dash-frame__table-type {
    color: #888;
    font-size: 0.65rem;
}

.dash-frame__table-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.dash-frame__table-badge--success {
    background: rgba(2, 216, 102, 0.1);
    color: #1a9b4b;
}

.dash-frame__table-badge--pending {
    background: rgba(255, 189, 46, 0.15);
    color: #b8860b;
}

/* ---- Feature highlights ---- */
.dash-preview__highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.dash-highlight {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

.dash-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.dash-highlight__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.dash-highlight__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.dash-highlight__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .dash-preview {
        padding: 72px 20px;
    }

    .dash-frame__sidebar {
        display: none;
    }

    .dash-frame__stats {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .dash-frame__stat {
        padding: 8px;
    }

    .dash-frame__stat-val {
        font-size: 0.85rem;
    }

    .dash-preview__highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dash-highlight {
        padding: 18px 12px;
    }
}

@media (max-width: 480px) {
    .dash-frame__table-type {
        display: none;
    }
}

/* ========================================================
   PROTECTION / ANTI-SPAM SECTION
   ======================================================== */
.protection {
    background: linear-gradient(160deg, #0f1724 0%, #111827 40%, #0d2818 100%);
    color: #fff;
    padding: 100px 24px;
    overflow: hidden;
    position: relative;
}

/* Decorative background glow */
.protection::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 216, 102, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.protection__container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.protection__header {
    text-align: center;
    margin-bottom: 56px;
}

.protection__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.protection__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Two-column grid ---- */
.protection__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 48px;
}

/* ---- Shield graphic ---- */
.protection__shield {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    position: relative;
    width: 220px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shieldFloat 4s ease-in-out infinite;
}

.shield__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 216, 102, 0.3) 0%, rgba(2, 216, 102, 0.08) 50%, transparent 70%);
    animation: shieldPulse 3s ease-in-out infinite;
}

.shield__svg {
    width: 160px;
    height: 187px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(2, 216, 102, 0.4));
}

@keyframes shieldPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes shieldFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ---- Protection feature items ---- */
.protection__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.protection__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.protection__item:hover {
    background: rgba(2, 216, 102, 0.06);
    border-color: rgba(2, 216, 102, 0.2);
}

.protection__check {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.protection__item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.protection__item-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* ---- Confidence quote ---- */
.protection__quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    position: relative;
}

.protection__quote::before {
    content: none;
}

.protection__quote p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .protection {
        padding: 72px 20px;
    }

    .protection__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .protection__shield {
        order: -1;
    }

    .shield {
        width: 160px;
        height: 185px;
        margin: 0 auto;
    }

    .shield__svg {
        width: 120px;
        height: 140px;
    }

    .shield__glow {
        width: 140px;
        height: 140px;
    }

    .protection__item {
        text-align: right;
    }

    .protection__quote {
        padding: 20px 24px;
    }

    .protection__quote::before {
        content: none;
    }
}

/* ========================================================
   PRICING SECTION
   ======================================================== */
.pricing {
    background: var(--gray-50);
    padding: 100px 24px;
}

.pricing__container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing__header {
    text-align: center;
    margin-bottom: 56px;
}

.pricing__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.pricing__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ---- Grid ---- */
/* Single plan (Saqr Plus). One column capped at a card's width and centred by
   `margin: 0 auto` — which is direction-agnostic, so RTL and LTR both centre.
   Do NOT use `justify-content: center` with `1fr` (the track absorbs all free
   space, so it does nothing) or `auto-fit`/`minmax` (the lone card stretches
   to the full max-width). */
.pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto;
}

/* ---- Card ---- */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Popular card */
.pricing-card--popular {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(2, 216, 102, 0.12);
    z-index: 1;
}

.pricing-card--popular:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 16px 48px rgba(2, 216, 102, 0.16);
}

/* Badge */
.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(2, 216, 102, 0.3);
}

/* Head */
.pricing-card__head {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.pricing-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pricing-card__old-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pricing-card__old-price {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
}

.pricing-card__discount-badge {
    display: inline-flex;
    align-items: center;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

.pricing-card__amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.pricing-card__sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Feature list */
.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-body);
    padding: 7px 0;
}

.pricing-card__features li svg {
    flex-shrink: 0;
}

/* Buttons */
.pricing-card__btn {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.pricing-card__btn--outline {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.pricing-card__btn--outline:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pricing-card__btn--filled {
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
}

.pricing-card__btn--filled:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* VAT note */
.pricing__vat {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 32px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .pricing-card--popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 72px 20px;
    }
}

/* ========================================================
   FAQ SECTION
   ======================================================== */
.faq {
    background: var(--white);
    padding: 100px 24px;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__header {
    text-align: center;
    margin-bottom: 48px;
}

.faq__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.faq__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* List */
.faq__list {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.faq__item {
    border-bottom: 1px solid var(--gray-200);
}

.faq__item:last-child {
    border-bottom: none;
}

/* Question button */
.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: right;
    transition: background var(--transition);
    gap: 16px;
}

.faq__question:hover {
    background: var(--gray-50);
}

.faq__question[aria-expanded="true"] {
    background: var(--gray-50);
}

/* Arrow */
.faq__arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq__question[aria-expanded="true"] .faq__arrow {
    transform: rotate(180deg);
}

/* Answer */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq__answer p {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .faq {
        padding: 72px 20px;
    }

    .faq__question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq__answer p {
        padding: 0 20px 16px;
        font-size: 0.9rem;
    }
}

/* ========================================================
   FINAL CTA SECTION
   ======================================================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 24px;
    text-align: center;
}

.final-cta__container {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.final-cta__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.final-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.final-cta__btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.final-cta__badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.final-cta__badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .final-cta {
        padding: 60px 20px;
    }

    .final-cta__badges {
        gap: 16px;
    }
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 30px;
}

.footer__container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

/* Brand */
.footer__logo {
    margin-bottom: 14px;
}

.footer__logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* Links */
.footer__links,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.footer__links a,
.footer__contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__links a:hover,
.footer__contact a:hover {
    color: #fff;
}

/* Bottom */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 24px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__links,
    .footer__contact {
        align-items: center;
    }

    .footer__links a,
    .footer__contact a {
        justify-content: center;
    }
}

/* ========================================================
   LEGAL PAGES (Privacy / Terms)
   ======================================================== */
.legal {
    padding: 120px 24px 60px;
}

.legal__container {
    max-width: 800px;
    margin: 0 auto;
}

.legal__container h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.legal__updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal__container section {
    margin-bottom: 36px;
}

.legal__container h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.legal__container h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
    margin-top: 16px;
}

.legal__container p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal__container ul {
    padding-right: 20px;
    margin-bottom: 12px;
}

.legal__container li {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 6px;
}

.legal__container a {
    color: var(--primary);
    text-decoration: none;
}

.legal__container a:hover {
    text-decoration: underline;
}

/* Navbar solid (for legal pages) */
.navbar--solid {
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar__back {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition);
}

.navbar__back:hover {
    opacity: 0.7;
}

/* ========================================================
   ANIMATION STAGGER DELAYS
   ======================================================== */
[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

[data-delay="700"] {
    transition-delay: 0.7s;
}

/* ========================================================
   DARK MODE VARIABLES
   ======================================================== */
[data-theme="dark"] {
    --text-heading: #f0f0f0;
    --text-body: #b0b0c0;
    --text-muted: #7878a0;

    --white: #1a1a2e;
    --gray-50: #13132a;
    --gray-100: #1e1e38;
    --gray-200: #2a2a44;
    --gray-800: #d0d0e0;
    --gray-900: #0a0a18;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-nav: 0 2px 16px rgba(0, 0, 0, 0.4);

    --primary-light: rgba(2, 216, 102, 0.12);
}

/* ========================================================
   SMOOTH COLOR TRANSITIONS
   ======================================================== */
body,
.navbar,
.navbar__logo,
.navbar__link,
.mobile-menu__link,
.hero,
.trust-bar,
.features,
.feature-card,
.steps-section,
.step__title,
.step__desc,
.dash-preview,
.dash-frame,
.dash-frame__chrome,
.dash-frame__sidebar,
.dash-frame__sidebar-logo,
.dash-frame__stat,
.dash-frame__table,
.dash-frame__table-row,
.dash-highlight,
.pricing,
.pricing-card,
.pricing-card__head,
.pricing-card__name,
.pricing-card__amount,
.pricing-card__currency,
.faq,
.faq__list,
.faq__item,
.faq__question,
.legal {
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* ========================================================
   SECTION-SPECIFIC DARK OVERRIDES
   ======================================================== */

/* Navbar */
[data-theme="dark"] .navbar.navbar--scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
}

/* Hero */
[data-theme="dark"] .hero {
    background: linear-gradient(to left, rgba(2, 216, 102, 0.08) 0%, rgba(2, 80, 45, 0.55) 30%, var(--white) 95%);
}

[data-theme="dark"] .hero__bg-grid {
    opacity: 0.15;
}

[data-theme="dark"] .hero__cta--secondary {
    border-color: var(--gray-200);
    color: var(--text-heading);
}

[data-theme="dark"] .hero__cta--secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Trust Bar */
[data-theme="dark"] .trust-bar {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

/* Identity icons in dark mode — keep native green colors, no filter needed */

/* Features */
[data-theme="dark"] .features {
    background: var(--white);
}

[data-theme="dark"] .feature-card {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Steps section */
[data-theme="dark"] .steps-section {
    background: var(--gray-50);
}

/* Mockup inside hero */
[data-theme="dark"] .hero__mockup {
    background: var(--gray-50);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mockup__topbar {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .mockup__sidebar {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .mockup__sidebar-item {
    background: var(--gray-200);
}

[data-theme="dark"] .mockup__stat-card {
    background: var(--gray-100);
}

[data-theme="dark"] .mockup__stat-label {
    background: var(--gray-200);
}

[data-theme="dark"] .mockup__chart {
    background: var(--gray-100);
}

[data-theme="dark"] .mockup__row {
    background: var(--gray-100);
}

[data-theme="dark"] .mockup__row-text {
    background: var(--gray-200);
}

/* Dashboard preview */
[data-theme="dark"] .dash-preview {
    background: var(--white);
}

[data-theme="dark"] .dash-frame {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dash-frame__chrome {
    background: #252540;
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__url {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-muted);
}

[data-theme="dark"] .dash-frame__body {
    background: var(--gray-50);
}

[data-theme="dark"] .dash-frame__sidebar {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__sidebar-logo {
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__nav-item {
    color: var(--text-muted);
}

[data-theme="dark"] .dash-frame__stat {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__table {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__table-header {
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-frame__table-row {
    border-color: var(--gray-100);
}

[data-theme="dark"] .dash-frame__table-type {
    color: var(--text-muted);
}

[data-theme="dark"] .dash-frame__stat-label {
    color: var(--text-muted);
}

[data-theme="dark"] .dash-highlight {
    border-color: var(--gray-200);
}

[data-theme="dark"] .dash-highlight:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Protection section — already dark, stays the same */

/* Pricing */
[data-theme="dark"] .pricing {
    background: var(--gray-50);
}

[data-theme="dark"] .pricing-card {
    background: var(--white);
    border-color: var(--gray-200);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pricing-card--popular {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(2, 216, 102, 0.15);
}

[data-theme="dark"] .pricing-card__head {
    border-color: var(--gray-200);
}

/* FAQ */
[data-theme="dark"] .faq {
    background: var(--white);
}

[data-theme="dark"] .faq__list {
    border-color: var(--gray-200);
}

[data-theme="dark"] .faq__item {
    border-color: var(--gray-200);
}

[data-theme="dark"] .faq__question:hover,
[data-theme="dark"] .faq__question[aria-expanded="true"] {
    background: var(--gray-50);
}

/* Final CTA and Footer — stay the same (already dark/green) */

/* Legal pages */
[data-theme="dark"] .legal {
    background: var(--white);
}

[data-theme="dark"] .navbar--solid {
    background: var(--white);
}

/* Mobile menu */
[data-theme="dark"] .mobile-menu__panel {
    background: var(--white);
    /* keep the original transform slide + add bg-color transition */
    transition: transform var(--transition), background-color 0.3s ease;
}

[data-theme="dark"] .mobile-menu__link:hover,
[data-theme="dark"] .mobile-menu__link.active {
    background: var(--primary-light);
    color: var(--primary);
}

[data-theme="dark"] .mobile-menu__close:hover {
    background: var(--gray-100);
}

/* Images — slight opacity adjustment */
[data-theme="dark"] img:not([src*=".svg"]) {
    opacity: 0.88;
}

/* ========================================================
   THEME TOGGLE BUTTON
   ======================================================== */
.theme-toggle {
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle:active {
    transform: rotate(0deg);
}

/* Icon visibility */
.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

/* Mobile variant — full-width row with label */
.theme-toggle--mobile {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
}

.theme-toggle--mobile:hover {
    transform: none;
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle__label {
    font-family: var(--font-family);
    font-size: 1.05rem;
}

/* Hide desktop toggle on mobile, show mobile one instead */
@media (max-width: 768px) {
    #theme-toggle {
        display: none;
    }
}

/* ========================================================
   LANGUAGE TOGGLE BUTTON
   Mirrors .theme-toggle but shows a language label ("English" or
   "العربية") instead of an icon. Click triggers a page reload into
   the other supported locale (see landing/js/i18n.js:setLocale).
   ======================================================== */
.lang-toggle {
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    height: 40px;
    padding: 0 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-body);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    flex-shrink: 0;
    line-height: 1;
    margin-inline-end: 8px;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-toggle--mobile {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    #lang-toggle {
        display: none;
    }
}

/* Dark theme + mobile: override hero gradient to vertical */
@media (max-width: 768px) {
    [data-theme="dark"] .hero {
        background: linear-gradient(to bottom, rgba(2, 216, 102, 0.08) 0%, rgba(2, 80, 45, 0.5) 30%, var(--white) 85%);
    }
}