@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --color-primary: #9e2347;
    --color-primary-600: #861d3c;
    --color-primary-700: #6f1732;
    --color-accent: #e3a34a;
    --color-accent-soft: #f7e8c9;

    --color-bg: #f7f7f4;
    --color-bg-deep: #ecece7;
    --color-surface: rgba(255, 255, 255, 0.88);
    --color-surface-solid: #ffffff;

    --color-text: #18191b;
    --color-heading: #18191b;
    --color-muted: #666a70;
    --color-border: rgba(25, 26, 29, 0.12);

    --color-white: #ffffff;
    --color-dark: #191a1d;
    --color-dark-2: #111214;

    --shadow-xs: 0 8px 24px rgba(25, 26, 29, 0.06);
    --shadow-sm: 0 16px 44px rgba(25, 26, 29, 0.09);
    --shadow-md: 0 28px 80px rgba(25, 26, 29, 0.12);
    --shadow-lg: 0 34px 110px rgba(25, 26, 29, 0.18);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --radius-xl: 46px;

    --container: 1180px;
    --header-height: 82px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.85;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background: rgba(216, 154, 91, 0.35);
    color: var(--color-heading);
}

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

button,
input,
textarea {
    font-family: inherit;
}

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

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 247, 244, 0.92);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border-bottom: 1px solid var(--color-border);
}

.site-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: var(--color-primary);
    opacity: 0.7;
}

.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: block;
    flex: 0 0 46px;
    object-fit: contain;
}

.brand-mark::after {
    content: none;
}

.brand-text {
    font-size: 25px;
    color: var(--color-heading);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(143, 79, 39, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 10px 34px rgba(74, 42, 22, 0.045);
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 17px;
    border-radius: 999px;
    color: rgba(36, 21, 13, 0.68);
    font-size: 15px;
    font-weight: 700;
    transition:
        color 0.25s var(--ease),
        background 0.25s var(--ease),
        transform 0.25s var(--ease);
}

.nav-links a:hover {
    color: var(--color-primary-700);
    background: rgba(143, 79, 39, 0.07);
}

.nav-links a.active {
    color: var(--color-primary-700);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(74, 42, 22, 0.08);
}

.nav-cta {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    overflow: hidden;
    color: var(--color-white);
    background:
        linear-gradient(135deg, var(--color-primary-700), var(--color-primary));
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(143, 79, 39, 0.27);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(143, 79, 39, 0.34);
}

.nav-cta:hover::before {
    opacity: 1;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(143, 79, 39, 0.11);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-primary-700);
    transition:
        transform 0.25s var(--ease),
        opacity 0.25s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: var(--color-bg-deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.02);
    transition:
        opacity 1s var(--ease),
        transform 6.5s var(--ease);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(247, 247, 244, 0.04) 0%, rgba(247, 247, 244, 0.2) 36%, rgba(247, 247, 244, 0.84) 69%, rgba(247, 247, 244, 0.98) 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(25, 26, 29, 0.03) 0%, transparent 32%, rgba(25, 26, 29, 0.08) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: min(650px, 100%);
    margin-right: auto;
    margin-left: 0;
    padding: 104px 0 96px;
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: -44px -36px -42px -42px;
    z-index: -1;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(143, 79, 39, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--color-primary-600);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(74, 42, 22, 0.055);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
    box-shadow: 0 0 0 5px rgba(216, 154, 91, 0.18);
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(40px, 5.4vw, 74px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
    max-width: 610px;
    margin: 24px 0 0;
    color: var(--color-muted);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 2;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 36px;
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    padding: 13px 27px;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease),
        background 0.25s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary));
    box-shadow: 0 18px 42px rgba(143, 79, 39, 0.31);
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    color: var(--color-primary-700);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(143, 79, 39, 0.14);
    box-shadow: 0 14px 38px rgba(74, 42, 22, 0.08);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(143, 79, 39, 0.22);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 38px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(143, 79, 39, 0.25);
    cursor: pointer;
    transition:
        width 0.3s var(--ease),
        background 0.3s var(--ease),
        opacity 0.3s var(--ease);
}

.hero-dot:hover {
    background: rgba(143, 79, 39, 0.42);
}

.hero-dot.active {
    width: 38px;
    background: linear-gradient(90deg, var(--color-primary-700), var(--color-accent));
}

/* Sections */
.platform-numbers {
    padding: 34px 0;
    color: #ffffff;
    background: var(--color-dark);
}

.platform-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.platform-numbers-grid > div {
    display: grid;
    gap: 2px;
    padding: 8px 24px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.platform-numbers-grid > div:last-child { border-inline-start: 0; }
.platform-numbers-grid strong { color: var(--color-accent-soft); font-size: 30px; line-height: 1.25; }
.platform-numbers-grid span { color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 650; }

.section {
    position: relative;
    padding: 108px 0;
}

.section-soft {
    background: var(--color-bg-deep);
}

.section-heading {
    max-width: 770px;
    text-align: center;
    margin-bottom: 52px;
}

.section-heading .eyebrow {
    margin-inline: auto;
}

.section-heading h2,
.split-section h2,
.cta-box h2,
.contact-card h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-heading p,
.section-text {
    margin: 17px 0 0;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 2;
    font-weight: 500;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.feature-card {
    position: relative;
    isolation: isolate;
    min-height: 245px;
    padding: 30px;
    border: 1px solid rgba(143, 79, 39, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.72));
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.28s var(--ease),
        box-shadow 0.28s var(--ease),
        border-color 0.28s var(--ease);
}

.feature-card::before {
    content: "";
    position: absolute;
    inset-inline: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.28s var(--ease);
}

.feature-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    left: -70px;
    bottom: -78px;
    z-index: -1;
    border-radius: 999px;
    background: rgba(216, 154, 91, 0.12);
    filter: blur(4px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(143, 79, 39, 0.18);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 21px;
    color: var(--color-primary-700);
    background:
        linear-gradient(145deg, rgba(244, 217, 191, 0.92), rgba(255, 255, 255, 0.65));
    border: 1px solid rgba(143, 79, 39, 0.12);
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 28px rgba(143, 79, 39, 0.1);
}

.feature-card h3 {
    margin: 0 0 11px;
    color: var(--color-heading);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15.5px;
    line-height: 1.9;
    font-weight: 500;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 58px;
    align-items: center;
}

.steps {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.step {
    position: relative;
    display: flex;
    gap: 17px;
    padding: 20px;
    border: 1px solid rgba(143, 79, 39, 0.09);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 16px 42px rgba(74, 42, 22, 0.06);
    backdrop-filter: blur(16px);
}

.step span {
    flex: 0 0 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background:
        linear-gradient(145deg, var(--color-primary-700), var(--color-primary));
    color: var(--color-white);
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(143, 79, 39, 0.24);
}

.step h3 {
    margin: 0 0 4px;
    color: var(--color-heading);
    font-size: 20px;
    font-weight: 800;
}

.step p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15.5px;
    font-weight: 500;
}

.preview-card {
    position: relative;
    padding: 12px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 247, 238, 0.44));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-lg);
}

.preview-card::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
    border-radius: calc(var(--radius-xl) + 18px);
    background: rgba(158, 35, 71, 0.08);
    filter: none;
    opacity: 1;
}

.preview-card img {
    width: 100%;
    border-radius: 34px;
    box-shadow: 0 20px 50px rgba(74, 42, 22, 0.12);
}

/* CTA */
.cta-section {
    padding-top: 18px;
}

.cta-box {
    position: relative;
    isolation: isolate;
    padding: 76px 54px;
    border-radius: 44px;
    overflow: hidden;
    text-align: center;
    color: var(--color-white);
    background: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 43px;
    pointer-events: none;
}

.cta-box::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -160px;
    bottom: -220px;
    z-index: -2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.cta-box .eyebrow {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.16);
}

.cta-box .eyebrow::before {
    background: var(--color-white);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.cta-box h2 {
    color: var(--color-white);
}

.cta-box p {
    max-width: 670px;
    margin: 20px auto 32px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 2;
    font-weight: 500;
}

.cta-box .btn-primary {
    background: var(--color-white);
    color: var(--color-primary-700);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.cta-box .btn-primary::before {
    background: var(--color-bg);
}

/* Inner Pages */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 82px;
    background: var(--color-bg-deep);
    border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    inset-inline-start: -180px;
    top: -220px;
    border-radius: 999px;
    background: rgba(158, 35, 71, 0.08);
    filter: blur(8px);
}

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

/* Contact */
.contact-grid {
    display: block;
}

.contact-card,
.contact-form {
    position: relative;
    padding: 36px;
    border: 1px solid rgba(143, 79, 39, 0.1);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 242, 0.82));
    box-shadow: var(--shadow-sm);
}

.contact-card {
    overflow: hidden;
    width: min(720px, 100%);
    margin-inline: auto;
}

.contact-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -80px;
    bottom: -80px;
    border-radius: 999px;
    background: rgba(216, 154, 91, 0.14);
}

.contact-card h2 {
    margin-bottom: 18px;
}

.contact-item {
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid rgba(143, 79, 39, 0.11);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--color-muted);
    font-size: 13.5px;
    font-weight: 700;
}

.contact-item a,
.contact-item p {
    margin: 0;
    color: var(--color-primary-700);
    font-size: 16px;
    font-weight: 800;
}

.contact-whatsapp {
    margin-top: 24px;
}

.contact-form {
    display: grid;
}

.form-group {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.form-group label {
    color: var(--color-heading);
    font-size: 14.5px;
    font-weight: 800;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(143, 79, 39, 0.14);
    border-radius: 18px;
    padding: 15px 17px;
    background: rgba(255, 250, 244, 0.82);
    color: var(--color-heading);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition:
        border-color 0.22s var(--ease),
        background 0.22s var(--ease),
        box-shadow 0.22s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(128, 105, 90, 0.72);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(143, 79, 39, 0.44);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(216, 154, 91, 0.13);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 78px 0 26px;
    color: var(--color-white);
    background: var(--color-dark);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: var(--color-primary);
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.7fr 1fr;
    gap: 46px;
}

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

.footer-text {
    max-width: 500px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15.5px;
    line-height: 2;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.footer-socials a {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    color: var(--color-dark);
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
    transform: translateY(-3px);
}

.footer-socials svg {
    width: 22px;
    height: 22px;
}

.site-footer h3 {
    margin: 0 0 17px;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 11px;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    font-weight: 500;
    transition:
        color 0.22s var(--ease),
        transform 0.22s var(--ease);
}

.footer-links a:hover {
    color: var(--color-accent-soft);
    transform: translateX(-4px);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

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

    .hero-content {
        width: min(590px, 100%);
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 76px;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-links a {
        padding-inline: 13px;
        font-size: 14px;
    }

    .split-section,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        margin-inline: auto;
    }

    .hero-content::before {
        inset: -28px -24px -28px -24px;
    }

    .preview-card {
        max-width: 720px;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .navbar {
        height: var(--header-height);
    }

    .brand-text {
        font-size: 22px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(var(--header-height) + 10px);
        inset-inline: 14px;
        display: none;
        align-items: stretch;
        padding: 12px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(20px);
    }

    .nav-links.open {
        display: grid;
    }

    .nav-links a {
        justify-content: center;
        padding: 12px 16px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 760px;
        align-items: flex-end;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(247, 247, 244, 0.12) 0%, rgba(247, 247, 244, 0.78) 44%, rgba(247, 247, 244, 0.98) 100%);
    }

    .hero-slide {
        background-position: center top;
    }

    .hero-content {
        padding: 110px 0 58px;
    }

    .hero-content::before {
        opacity: 0.86;
        border-radius: 32px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.22;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
        line-height: 1.95;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .platform-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .platform-numbers-grid > div:nth-child(odd) { border-inline-start: 1px solid rgba(255,255,255,.12); }
    .platform-numbers-grid > div:nth-child(even) { border-inline-start: 0; }
    .platform-numbers-grid strong { font-size: 25px; }

    .section {
        padding: 72px 0;
    }

    .section-heading {
        margin-bottom: 34px;
        text-align: start;
    }

    .section-heading .eyebrow {
        margin-inline: 0;
    }

    .feature-card {
        min-height: auto;
        padding: 25px;
    }

    .split-section {
        gap: 34px;
    }

    .step {
        padding: 17px;
    }

    .step span {
        flex-basis: 48px;
        height: 48px;
    }

    .cta-section {
        padding-top: 0;
    }

    .cta-box {
        padding: 42px 22px;
        border-radius: 32px;
    }

    .page-hero {
        padding: 78px 0 58px;
    }

    .contact-card,
    .contact-form {
        padding: 26px;
        border-radius: 28px;
    }

    .footer-grid {
        gap: 32px;
    }

    .site-footer {
        padding-top: 58px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 720px;
    }

    .hero-content {
        padding-bottom: 44px;
    }

    .hero-content::before {
        inset: -22px -16px -22px -16px;
    }

    .eyebrow {
        font-size: 13px;
        padding: 8px 12px;
    }

    .hero h1,
    .page-hero h1 {
        letter-spacing: -0.035em;
    }

    .section-heading h2,
    .split-section h2,
    .cta-box h2,
    .contact-card h2 {
        font-size: 30px;
    }

    .preview-card {
        padding: 8px;
        border-radius: 30px;
    }

    .preview-card img {
        border-radius: 24px;
    }
}

/* Single-page presentation */
body {
    background: #f7f7f5;
}

.hero-single {
    min-height: calc(100svh - var(--header-height) - 48px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-single .hero-content::before {
    display: none;
}

.hero-single::before {
    background: linear-gradient(90deg, rgba(247, 247, 245, 0.12), rgba(247, 247, 245, 0.92) 72%);
}

.hero-single::after {
    background: linear-gradient(180deg, transparent 60%, rgba(28, 16, 9, 0.12));
}

.hero h1,
.section-heading h2,
.split-section h2,
.contact-card h2,
.feature-card h3 {
    letter-spacing: 0;
}

.section-soft {
    background: #eef1ed;
}

.feature-card,
.contact-card,
.contact-form,
.preview-card,
.step {
    border-radius: 8px;
}

.feature-card,
.contact-card,
.contact-form {
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(36, 21, 13, 0.07);
}

.feature-card::after,
.contact-card::after {
    display: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(36, 21, 13, 0.1);
}

.home-features .feature-card {
    min-height: 220px;
}

/* Featured clients */
.clients-section {
    overflow: hidden;
    background: #ffffff;
}

.clients-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.clients-heading h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.28;
    letter-spacing: 0;
}

.clients-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-weight: 600;
}

.clients-heading p strong {
    color: var(--color-primary-700);
    font-size: 19px;
}

.clients-navigation {
    display: flex;
    align-items: center;
    gap: 17px;
}

.clients-position {
    min-width: 84px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.clients-position span:first-child {
    color: var(--color-primary-700);
    font-size: 18px;
}

.clients-position i {
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent-soft);
}

.clients-controls {
    display: flex;
    gap: 9px;
}

.clients-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-primary-700);
    background: #ffffff;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.clients-controls button:hover {
    background: var(--color-bg);
    transform: translateY(-2px);
}

.clients-slider {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
}

.clients-slider::-webkit-scrollbar {
    display: none;
}

.clients-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 4px 0 26px;
}

.client-card {
    position: relative;
    flex: 0 0 310px;
    min-height: 174px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-solid);
    box-shadow: var(--shadow-xs);
    text-align: start;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.client-card::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 999px 0 0 999px;
    background: var(--color-primary);
}

a.client-card:hover {
    border-color: rgba(158, 35, 71, 0.28);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.client-logo {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(143, 79, 39, 0.1);
    border-radius: 8px;
    background: #f7f7f5;
    box-shadow: inset 0 0 0 6px #ffffff;
}

.client-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    border-radius: 8px;
    object-fit: contain;
}

.client-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.client-content strong {
    max-width: 100%;
    margin-top: 4px;
    color: var(--color-heading);
    font-size: 20px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.client-description {
    display: -webkit-box;
    max-width: 100%;
    margin: 8px 0 0;
    overflow: hidden;
    color: #a7a7a7;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.client-content small {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
}

.client-content > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--color-primary-600);
    font-size: 13px;
    font-weight: 800;
}

.client-content b {
    font-size: 17px;
}

.client-card-static {
    cursor: default;
}

/* Direct contact */
.whatsapp-float {
    position: fixed;
    inset-inline-end: 24px;
    bottom: 24px;
    z-index: 90;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 17px 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    color: #ffffff;
    background: #168c4c;
    box-shadow: 0 16px 38px rgba(13, 92, 48, 0.3);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #ffffff;
    background: #117940;
    box-shadow: 0 20px 44px rgba(13, 92, 48, 0.38);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-single {
        min-height: calc(100svh - var(--header-height) - 24px);
        background-position: 42% top;
    }

    .hero-single::before {
        background: linear-gradient(180deg, rgba(247, 247, 245, 0.08), rgba(247, 247, 245, 0.95) 58%);
    }

    .clients-heading {
        align-items: center;
        margin-bottom: 26px;
    }

    .clients-navigation {
        gap: 8px;
    }

    .clients-position {
        display: none;
    }

    .clients-heading .eyebrow {
        margin-bottom: 10px;
    }

    .clients-heading h2 {
        font-size: 30px;
    }

    .clients-track {
        gap: 12px;
    }

    .clients-slider {
        width: calc(100% - 28px);
    }

    .client-card {
        flex: 0 0 calc((100vw - 52px) / 2);
        min-height: 196px;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        padding: 16px 10px;
        text-align: center;
    }

    .client-logo {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }

    .client-content {
        flex: 0 1 auto;
        align-items: center;
    }

    .client-content strong {
        font-size: 16px;
    }

    .client-content > span {
        margin-top: 7px;
        font-size: 12px;
    }

    .clients-controls button {
        width: 42px;
        height: 42px;
    }

    .whatsapp-float {
        inset-inline-end: 14px;
        bottom: 14px;
        width: 54px;
        min-height: 54px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-card,
    .clients-controls button {
        transition: none;
    }
}

/* Premium featured clients */
.clients-section {
    padding-block: 112px 96px;
    color: #ffffff;
    background: var(--color-dark);
    border-top: 4px solid var(--color-accent);
}

.clients-heading {
    align-items: flex-end;
    gap: 48px;
    margin-bottom: 48px;
}

.clients-heading-copy { max-width: 690px; }

.clients-heading .eyebrow {
    color: var(--color-accent-soft);
    background: #24262a;
    border-color: #373a40;
    box-shadow: none;
}

.clients-heading h2 {
    color: #ffffff;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.22;
}

.clients-heading p {
    max-width: 600px;
    margin-top: 14px;
    color: #b9bbc0;
    font-size: 16px;
    line-height: 1.9;
    font-weight: 500;
}

.clients-heading-side {
    display: flex;
    align-items: flex-end;
    gap: 28px;
}

.clients-proof {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-inline-start: 24px;
    border-inline-start: 1px solid #3b3d42;
}

.clients-proof strong {
    color: var(--color-accent);
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

.clients-proof span {
    color: #c5c7cb;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.clients-position { color: #8f9298; }
.clients-position span:first-child { color: #ffffff; }
.clients-position i { background: #494c52; }

.clients-controls button {
    border-color: #3b3d42;
    color: #ffffff;
    background: #24262a;
}

.clients-controls button:hover {
    color: var(--color-dark);
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.clients-track { gap: 20px; }

.client-card {
    flex-basis: 370px;
    min-height: 206px;
    gap: 22px;
    padding: 30px 26px;
    border-color: #35383d;
    background: #222428;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.client-card::after { display: none; }

.client-card::before {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 999px 0 0 999px;
    background: var(--color-primary);
}

a.client-card:hover {
    border-color: rgba(227, 163, 74, 0.55);
    background: #292b30;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
    transform: translateY(-6px);
}

.client-card > .client-card-index {
    position: absolute;
    top: 14px;
    inset-inline-end: 17px;
    max-width: none;
    color: #74777d;
    font-size: 12px;
    font-weight: 800;
}

.client-logo {
    flex-basis: 118px;
    width: 118px;
    height: 118px;
    border-color: #44474d;
    background: #ffffff;
    box-shadow: inset 0 0 0 6px var(--color-bg);
}

.client-content strong {
    color: #ffffff;
    font-size: 22px;
}

.client-content small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b0b2b7;
}

.client-content small i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #167a4a;
    box-shadow: 0 0 0 4px rgba(22, 122, 74, 0.16);
}

.client-content > .client-action { color: var(--color-accent); }
.client-content > .client-action-muted { color: #858585; }

@media (max-width: 900px) {
    .clients-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
    }

    .clients-heading-side {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .clients-section { padding-block: 76px 64px; }
    .clients-heading { margin-bottom: 32px; }
    .clients-heading h2 { font-size: 34px; }
    .clients-heading p { font-size: 14px; }
    .clients-proof { padding-inline-start: 16px; }
    .clients-proof strong { font-size: 34px; }
    .clients-slider { width: calc(100% - 28px); }
    .clients-track { gap: 14px; }

    .client-card {
        flex: 0 0 min(82vw, 330px);
        min-height: 194px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        padding: 25px 20px;
        text-align: start;
    }

    .client-logo {
        flex-basis: 100px;
        width: 100px;
        height: 100px;
    }

    .client-content { align-items: flex-start; }
    .client-content strong { font-size: 19px; }
    .client-description { font-size: 12px; line-height: 1.55; }
    .client-content > .client-action { margin-top: 10px; }
}

@media (max-width: 420px) {
    .clients-heading-side { align-items: center; }
    .clients-proof span { font-size: 12px; }
    .clients-controls button { width: 40px; height: 40px; }
    .client-card { flex-basis: 84vw; }
    .client-logo { flex-basis: 88px; width: 88px; height: 88px; }
}

/* Website navigation */
.site-header {
    background: rgba(247, 247, 244, 0.97);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header::after {
    display: none;
}

.site-header.is-scrolled {
    background: rgba(247, 247, 244, 0.99);
    box-shadow: 0 10px 30px rgba(25, 26, 29, 0.07);
}

.navbar {
    min-height: 78px;
    gap: 34px;
}

.brand {
    flex: 0 0 auto;
    gap: 11px;
    color: var(--color-heading);
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-mark::after {
    content: none;
}

.brand-copy {
    display: grid;
    gap: 2px;
    line-height: 1.1;
}

.brand-text {
    color: var(--color-heading);
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-copy small {
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-links {
    align-self: stretch;
    gap: 28px;
    margin-inline: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 100%;
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    border: 0;
    background: transparent;
    color: var(--color-heading);
    box-shadow: none;
    transform: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    min-height: 44px;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--color-dark);
    border-radius: 8px;
    background: var(--color-dark);
    color: #ffffff;
    box-shadow: none;
    letter-spacing: 0;
}

.nav-cta::before {
    display: none;
}

.nav-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}

.nav-cta:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 8px 18px rgba(158, 35, 71, 0.16);
    transform: translateY(-1px);
}

.nav-cta:hover svg {
    transform: translateX(-2px);
}

.nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--color-dark);
}

@media (max-width: 1100px) {
    .navbar { gap: 22px; }
    .nav-links { gap: 20px; }
    .brand-copy small { display: none; }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 70px;
        gap: 14px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .brand-text { font-size: 21px; }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 14px;
        z-index: 1000;
        gap: 0;
        margin: 0;
        padding: 7px;
        border: 1px solid var(--color-border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(25, 26, 29, 0.13);
    }

    .nav-links.open { display: grid; }

    .nav-links a {
        min-height: 48px;
        justify-content: flex-start;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(25, 26, 29, 0.07);
        border-radius: 6px;
        font-size: 15px;
    }

    .nav-links a:last-child { border-bottom: 0; }
    .nav-links a::after { display: none; }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(158, 35, 71, 0.07);
        color: var(--color-primary);
    }
}

@media (max-width: 420px) {
    .navbar { min-height: 66px; }
    .brand-copy small { display: none; }
    .nav-toggle { width: 42px; height: 42px; }
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header .container,
    .hero .container {
        width: calc(100% - 28px);
        max-width: calc(100% - 28px);
    }

    .brand,
    .brand-copy,
    .hero-content {
        min-width: 0;
        max-width: 100%;
    }

    .hero-content {
        width: 100%;
        margin-inline: 0;
        padding-inline: 0;
    }

    .hero-content > *,
    .hero-actions,
    .hero-stats {
        max-width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
