:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f0f4fb;

    --text: #111827;
    --text-soft: #5f6b7a;

    --primary: #4f5cff;
    --primary-dark: #3842d8;
    --secondary: #7c4dff;

    --line: rgba(17, 24, 39, 0.1);

    --success: #19a974;

    --shadow-sm: 0 10px 30px rgba(30, 41, 59, 0.08);
    --shadow-lg: 0 30px 80px rgba(46, 59, 125, 0.15);

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;

    --container: min(1180px, 92vw);
    --header-height: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
    font-family: "Inter", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: var(--container);
    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

/* =========================
   GENERAL
========================= */

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.section-kicker.light {
    color: #cdd3ff;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 52px;
}

.section-copy h2,
.platform-content h2,
.why-heading h2,
.final-cta-content h2 {
    font-size: clamp(2.2rem, 4.8vw, 4.8rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-header > p,
.platform-content > p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 92, 255, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    border-color: rgba(17, 24, 39, 0.1);
}

.btn-secondary:hover {
    border-color: rgba(79, 92, 255, 0.25);
}

.btn-small {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 0.84rem;
}

.btn-large {
    min-height: 56px;
    padding-inline: 28px;
}

.btn-white {
    background: #fff;
    color: #242b6b;
}

.btn-cta-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-weight: 700;
    transition: gap 0.25s ease;
}

.text-link:hover {
    gap: 14px;
}

/* =========================
   DEMO BADGE
========================= */

.demo-badge {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1000;
    padding: 8px 13px;
    border: 1px solid rgba(79, 92, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    font-size: 0.76rem;
    font-weight: 700;
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    border-bottom: 1px solid transparent;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 40px rgba(30, 41, 59, 0.07);
    backdrop-filter: blur(18px);
}

.header-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background:
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 10px 24px rgba(79, 92, 255, 0.24);
}

.brand-name {
    font-size: 1rem;
    color: #13182b;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    padding: 9px 0;
    color: #5d6674;
    font-size: 0.87rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.25s ease;
}

html[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #7a8492;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.language-switcher:hover {
    background: #fff;
    border-color: rgba(79, 92, 255, 0.25);
    box-shadow: 0 8px 22px rgba(79, 92, 255, 0.08);
}

.lang-option {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.48;
    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.lang-option.active {
    color: var(--primary);
    opacity: 1;
}

.lang-divider {
    color: #c8ced6;
    font-size: 0.75rem;
}

/* =========================
   MOBILE NAV
========================= */

.mobile-menu-button {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.mobile-menu-button span {
    width: 18px;
    height: 1px;
    background: var(--text);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 899;
    padding: 28px 0 70px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav nav {
    width: min(92vw, 520px);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100svh;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(125, 77, 255, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(79, 92, 255, 0.11),
            transparent 30%
        ),
        linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.hero-decoration-one {
    width: 300px;
    height: 300px;
    top: 90px;
    right: -110px;
    background: rgba(79, 92, 255, 0.08);
}

.hero-decoration-two {
    width: 240px;
    height: 240px;
    bottom: 60px;
    left: -90px;
    background: rgba(124, 77, 255, 0.07);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 70px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(79, 92, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #535e71;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(79, 92, 255, 0.08);
}

.hero h1 {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: clamp(3rem, 6.2vw, 6.4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.hero-highlight {
    color: var(--primary);
}

.hero-description {
    max-width: 650px;
    margin-top: 28px;
    color: var(--text-soft);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 42px;
}

.hero-trust-avatars {
    display: flex;
}

.hero-trust-avatars span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-inline-start: -8px;
    border: 3px solid #f7f9fc;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #dce3ff, #eef1ff);
    color: #4a5580;
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
}

.hero-trust-avatars span:first-child {
    margin-inline-start: 0;
}

.hero-trust-copy {
    display: flex;
    flex-direction: column;
}

.hero-trust-copy strong {
    font-size: 0.83rem;
}

.hero-trust-copy span {
    color: #7b8492;
    font-size: 0.75rem;
}

/* =========================
   DASHBOARD MOCKUP
========================= */

.hero-visual {
    position: relative;
}

.dashboard-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
}

html[dir="ltr"] .dashboard-shell {
    transform: perspective(1400px) rotateY(5deg) rotateX(2deg);
}

.dashboard-topbar {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfe;
}

.dashboard-dots {
    display: flex;
    gap: 5px;
}

.dashboard-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d7dce5;
}

.dashboard-url {
    color: #9199a7;
    font-family: "Inter", sans-serif;
    font-size: 0.64rem;
}

.dashboard-layout {
    min-height: 500px;
    display: grid;
    grid-template-columns: 64px 1fr;
}

.dashboard-sidebar {
    padding: 22px 0;
    border-left: 1px solid var(--line);
    background: #fafbfe;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html[dir="ltr"] .dashboard-sidebar {
    border-left: 0;
    border-right: 1px solid var(--line);
}

.dashboard-logo {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.sidebar-item {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #edf0f6;
}

.sidebar-item.active {
    background: #e3e7ff;
    box-shadow: inset 0 0 0 1px rgba(79, 92, 255, 0.12);
}

.dashboard-main {
    padding: 24px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-heading > div:first-child {
    display: flex;
    flex-direction: column;
}

.dashboard-heading small {
    color: #a0a8b5;
    font-size: 0.64rem;
}

.dashboard-heading strong {
    font-size: 0.95rem;
}

.dashboard-profile {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9ecff;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.dashboard-stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.dashboard-stat span {
    display: block;
    color: #8b94a2;
    font-size: 0.6rem;
}

.dashboard-stat strong {
    display: block;
    margin: 6px 0 2px;
    font-family: "Inter", sans-serif;
    font-size: 1.05rem;
}

.dashboard-stat small {
    font-family: "Inter", sans-serif;
    font-size: 0.58rem;
}

.positive {
    color: var(--success);
}

.dashboard-chart-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.dashboard-card-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-card-heading > div {
    display: flex;
    flex-direction: column;
}

.dashboard-card-heading span {
    color: #88919e;
    font-size: 0.63rem;
}

.dashboard-card-heading strong {
    margin-top: 2px;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
}

.dashboard-period {
    white-space: nowrap;
}

.dashboard-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding: 0 4px;
}

.dashboard-chart span {
    flex: 1;
    border-radius: 8px 8px 3px 3px;
    background:
        linear-gradient(180deg, #5663ff, #aeb5ff);
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 12px;
    margin-top: 14px;
}

.dashboard-activity,
.dashboard-progress {
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.dashboard-activity > span,
.dashboard-progress > span {
    display: block;
    margin-bottom: 12px;
    color: #8c95a2;
    font-size: 0.62rem;
}

.activity-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.activity-row i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e8ff;
}

.activity-row div {
    height: 7px;
    border-radius: 999px;
    background: #edf0f5;
}

.progress-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 10px auto 0;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--primary) 0 78%,
            #eef0f5 78% 100%
        );
}

.progress-circle::before {
    content: "";
    position: absolute;
}

.progress-circle strong {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 0.82rem;
}

.floating-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.floating-card-one {
    right: -28px;
    bottom: 110px;
}

.floating-card-two {
    left: -36px;
    top: 120px;
    flex-direction: column;
    align-items: flex-start;
}

.floating-card-two strong {
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
}

.floating-card > div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.72rem;
}

.floating-card span {
    color: #848d99;
    font-size: 0.62rem;
}

.floating-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e7fbf3;
    color: var(--success) !important;
    font-weight: 800;
}

/* =========================
   TRUSTED
========================= */

.trusted-section {
    padding: 34px 0 42px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.trusted-label {
    margin-bottom: 24px;
    text-align: center;
    color: #8c94a0;
    font-size: 0.78rem;
}

.logo-cloud {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    align-items: center;
}

.logo-cloud span {
    text-align: center;
    color: #adb3bc;
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* =========================
   SOLUTIONS
========================= */

.solutions-section {
    background: #fff;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.solution-card {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 92, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

.solution-card-highlight {
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(135deg, #4f5cff, #7955e8);
}

.solution-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
    border-radius: 14px;
    background: #f0f3ff;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
}

.solution-card-highlight .solution-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.solution-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.solution-card p {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.solution-card-highlight p {
    color: rgba(255, 255, 255, 0.76);
}

.solution-card a {
    margin-top: auto;
    padding-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.solution-card-highlight a {
    color: #fff;
}

/* =========================
   PLATFORM
========================= */

.platform-section {
    background: #f3f6fb;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 80px;
    align-items: center;
}

.workflow-window {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.workflow-header {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    color: #5c6673;
    font-size: 0.78rem;
    font-weight: 700;
}

.workflow-header i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(25, 169, 116, 0.08);
}

.workflow-canvas {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background:
        radial-gradient(circle at center, rgba(79, 92, 255, 0.06), transparent 42%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(17, 24, 39, 0.025) 29px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 28px,
            rgba(17, 24, 39, 0.025) 29px
        );
}

.workflow-node {
    width: min(330px, 100%);
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid rgba(79, 92, 255, 0.15);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(79, 92, 255, 0.06);
}

.node-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf0ff;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
}

.workflow-node > div {
    display: flex;
    flex-direction: column;
}

.workflow-node small {
    color: #9ba3ae;
    font-size: 0.62rem;
}

.workflow-node strong {
    font-size: 0.78rem;
}

.workflow-line {
    width: 1px;
    height: 48px;
    background: rgba(79, 92, 255, 0.25);
}

.workflow-split {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.small-node {
    width: 100%;
}

.platform-content > p {
    margin: 22px 0 32px;
}

.platform-features {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.platform-feature {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
}

.platform-feature > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e8f9f2;
    color: var(--success);
    font-weight: 800;
}

.platform-feature strong {
    display: block;
    font-size: 0.9rem;
}

.platform-feature p {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.8rem;
}

/* =========================
   WHY
========================= */

.why-section {
    background:
        linear-gradient(135deg, #161b3f, #252c67 55%, #343995);
    color: #fff;
}

.why-heading {
    max-width: 820px;
    margin-bottom: 55px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 54px;
}

.stat-card {
    min-height: 160px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-card strong {
    display: block;
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.stat-card span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.why-card {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.why-number {
    display: block;
    margin-bottom: 34px;
    color: #aeb6ff;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
}

.why-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

/* =========================
   TESTIMONIAL
========================= */

.testimonial-section {
    background: #fff;
}

.testimonial-card {
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
}

.testimonial-mark {
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

.testimonial-card blockquote {
    font-size: clamp(1.35rem, 2.8vw, 2.5rem);
    line-height: 1.65;
    letter-spacing: -0.02em;
}

.testimonial-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    text-align: start;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ebeeff;
    color: var(--primary);
    font-family: "Inter", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
}

.testimonial-author > div:last-child {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 0.82rem;
}

.testimonial-author span {
    color: #89919d;
    font-size: 0.72rem;
}

/* =========================
   INSIGHTS
========================= */

.insights-section {
    background: #f5f7fb;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.insight-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.insight-visual {
    height: 220px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.insight-visual span {
    font-family: "Inter", sans-serif;
    font-size: 5rem;
    font-weight: 800;
    opacity: 0.25;
}

.visual-one {
    background:
        linear-gradient(135deg, #dfe4ff, #eef1ff);
    color: #6672ff;
}

.visual-two {
    background:
        linear-gradient(135deg, #e9ddff, #f7efff);
    color: #8358d8;
}

.visual-three {
    background:
        linear-gradient(135deg, #dff9f1, #edfdf8);
    color: #16a073;
}

.insight-content {
    padding: 24px;
}

.insight-category {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.insight-content h3 {
    margin: 8px 0 10px;
    font-size: 1rem;
}

.insight-content p {
    color: var(--text-soft);
    font-size: 0.8rem;
}

.insight-content a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
}

/* =========================
   FINAL CTA
========================= */

.final-cta {
    padding: 0 0 110px;
    background: #f5f7fb;
}

.final-cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
    padding: 60px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #4e5cff, #6f55db);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.final-cta-content {
    max-width: 760px;
}

.final-cta-content p {
    max-width: 650px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.final-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 75px 0 24px;
    background: #0d1128;
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 46px;
    padding-bottom: 48px;
}

.footer .brand-name {
    color: #fff;
}

.footer-brand p {
    max-width: 360px;
    margin-top: 18px;
    color: #939bb1;
    font-size: 0.82rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 0.82rem;
}

.footer-column a {
    color: #959db2;
    font-size: 0.78rem;
    transition: color 0.25s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #747d95;
    font-size: 0.72rem;
}

.demo-note {
    max-width: 470px;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 850;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #1a2050;
    color: #fff;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================
   LTR ADJUSTMENTS
========================= */

html[dir="ltr"] .hero-content,
html[dir="ltr"] .platform-content,
html[dir="ltr"] .section-header,
html[dir="ltr"] .why-heading,
html[dir="ltr"] .footer-main {
    text-align: left;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .platform-content {
    text-align: right;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1050px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-grid,
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 760px;
    }

    .hero-visual {
        max-width: 850px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .final-cta-card {
        grid-template-columns: 1fr;
    }

    .final-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .section {
        padding: 82px 0;
    }

    .header-container {
        gap: 10px;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .language-switcher {
        padding-inline: 10px;
        gap: 6px;
    }

    .lang-option {
        font-size: 0.74rem;
    }

    .hero {
        padding: 125px 0 82px;
        min-height: auto;
    }

    .hero-grid {
        gap: 50px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.6rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        align-items: flex-start;
    }

    .dashboard-shell {
        transform: none !important;
    }

    .dashboard-layout {
        grid-template-columns: 48px 1fr;
        min-height: 440px;
    }

    .dashboard-main {
        padding: 16px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }

    .logo-cloud {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .solutions-grid,
    .insights-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .workflow-canvas {
        padding: 32px 18px;
    }

    .workflow-split {
        grid-template-columns: 1fr;
    }

    .final-cta-card {
        padding: 38px 24px;
    }

    .final-cta-actions {
        flex-direction: column;
    }

    .final-cta-actions .btn {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .demo-badge {
        bottom: 72px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92vw;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .brand-name {
        display: none;
    }

    .language-switcher {
        min-height: 38px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 13vw, 3.8rem);
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .logo-cloud {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-card {
        min-height: auto;
    }

    .dashboard-chart {
        height: 110px;
    }

    .section-copy h2,
    .platform-content h2,
    .why-heading h2,
    .final-cta-content h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}