/* ==========================================================================
   Clopr SmartFab — Main stylesheet
   Brand: navy #212B3D · teal #188C7E · slate #384047
   Logical properties are used throughout so the sheet works in RTL and LTR.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --navy-950: #0D131E;
    --navy-900: #141B28;
    --navy-800: #1A2231;
    --navy-700: #212B3D;
    --navy-600: #2C3850;
    --navy-500: #3A4761;

    --teal-700: #0E6E62;
    --teal-600: #12806F;
    --teal-500: #188C7E;
    --teal-400: #22A894;
    --teal-300: #45C6B0;
    --teal-100: #D6F2EC;
    --teal-50: #EEFAF7;

    --slate-700: #384047;
    --slate-500: #5B6673;
    --slate-400: #8A94A3;
    --slate-300: #B9C1CC;
    --slate-200: #DCE2E9;
    --slate-100: #EDF1F5;
    --slate-50: #F6F8FA;

    --amber: #E8A33D;
    --white: #FFFFFF;

    /* Semantic */
    --ink: var(--navy-700);
    --ink-soft: var(--slate-500);
    --line: var(--slate-200);
    --surface: var(--white);
    --surface-alt: var(--slate-50);

    /* Type */
    --font-base: 'Poppins', system-ui, sans-serif;

    /* Radius & elevation */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(19, 26, 38, .06), 0 2px 8px rgba(19, 26, 38, .05);
    --shadow-md: 0 4px 12px rgba(19, 26, 38, .07), 0 12px 32px rgba(19, 26, 38, .07);
    --shadow-lg: 0 10px 24px rgba(19, 26, 38, .08), 0 28px 64px rgba(19, 26, 38, .12);
    --shadow-teal: 0 10px 30px rgba(24, 140, 126, .28);

    /* Rhythm */
    --section-y: clamp(64px, 8vw, 118px);
    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-base);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The bundled Bootstrap build is the Bootswatch "Litera" theme, which sets
   p { font-family: Georgia, ..., serif }. Pull every text element back onto
   the brand face. Icon fonts declare their family with !important, so they
   are unaffected. */
body, p, li, a, span, small, strong, label, blockquote, figcaption,
button, input, select, textarea, .btn, .form-control, .form-select, .lead {
    font-family: var(--font-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-base);
    color: var(--navy-700);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
    margin: 0 0 .6em;
}

p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
}

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--teal-500);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--teal-500);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Arabic tuning — Tajawal runs small and tight next to Poppins */
html[lang="ar"] body {
    line-height: 1.9;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
    letter-spacing: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section-sm {
    padding-block: clamp(48px, 5vw, 72px);
}

.section-alt {
    background: var(--surface-alt);
}

.section-dark {
    background: var(--navy-800);
    color: var(--slate-300);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-dark p {
    color: var(--slate-300);
}

.section-head {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.start {
    text-align: start;
    margin-inline: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    padding: .35rem .9rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.1rem;
}

html[lang="ar"] .eyebrow {
    letter-spacing: 0;
    text-transform: none;
    font-size: .85rem;
}

.section-dark .eyebrow {
    background: rgba(34, 168, 148, .12);
    border-color: rgba(34, 168, 148, .28);
    color: var(--teal-300);
}

.section-title {
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    margin-bottom: .5rem;
}

.section-sub {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.text-gradient {
    background: linear-gradient(115deg, var(--teal-500), var(--teal-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --btn-py: .8rem;
    --btn-px: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: var(--btn-py) var(--btn-px);
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: .96rem;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    --btn-py: .5rem;
    --btn-px: 1.05rem;
    font-size: .875rem;
}

.btn-lg {
    --btn-py: .95rem;
    --btn-px: 2rem;
    font-size: 1.02rem;
}

.btn-brand {
    background: var(--teal-500);
    color: #fff;
    box-shadow: 0 4px 14px rgba(24, 140, 126, .3);
}

.btn-brand:hover {
    background: var(--teal-600);
    color: #fff;
    box-shadow: var(--shadow-teal);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--navy-700);
    color: #fff;
}

.btn-dark:hover {
    background: var(--navy-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    color: var(--teal-600);
    border-color: var(--teal-500);
    background: var(--teal-50);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--navy-700);
}

.btn-white:hover {
    color: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Arrow that flips direction with the document */
.btn i.bi-arrow-right {
    transition: transform .2s ease;
}

html[dir="rtl"] .btn i.bi-arrow-right {
    transform: scaleX(-1);
}

.btn:hover i.bi-arrow-right {
    transform: translateX(3px);
}

html[dir="rtl"] .btn:hover i.bi-arrow-right {
    transform: scaleX(-1) translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Header / navbar
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--line);
    box-shadow: 0 2px 20px rgba(19, 26, 38, .06);
}

.site-header .navbar {
    padding-block: .7rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0;
}

.brand-mark {
    width: 40px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-weight: 700;
    font-size: 1.16rem;
    color: var(--navy-700);
    letter-spacing: -.02em;
}

.brand-name em {
    font-style: normal;
    color: var(--teal-500);
}

.brand-tag {
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 500;
}

html[lang="ar"] .brand-tag {
    letter-spacing: 0;
    text-transform: none;
    font-size: .72rem;
}

.nav-main {
    margin-inline: auto;
    gap: .15rem;
}

.nav-main .nav-link {
    color: var(--slate-700);
    font-weight: 500;
    font-size: .94rem;
    padding: .5rem .85rem;
    border-radius: var(--r-sm);
    position: relative;
    transition: color .2s ease, background-color .2s ease;
}

.nav-main .nav-link:hover,
.nav-main .nav-link.active {
    color: var(--teal-600);
    background: var(--teal-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--slate-700);
    border-radius: var(--r-pill);
    padding: .42rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    transition: all .2s ease;
}

.lang-switch:hover {
    border-color: var(--teal-500);
    color: var(--teal-600);
    background: var(--teal-50);
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .5rem .6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: none !important;
}

.toggler-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy-700);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: calc(var(--header-h) + clamp(48px, 7vw, 96px)) clamp(64px, 8vw, 110px);
    background: linear-gradient(168deg, var(--navy-900) 0%, var(--navy-700) 55%, #1D3A3C 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    /* engineering grid */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
}

.hero::after {
    content: '';
    position: absolute;
    inset-block-start: -220px;
    inset-inline-end: -180px;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(34, 168, 148, .3), transparent 62%);
    filter: blur(20px);
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(34, 168, 148, .14);
    border: 1px solid rgba(69, 198, 176, .32);
    color: var(--teal-300);
    padding: .4rem 1rem;
    border-radius: var(--r-pill);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-300);
    box-shadow: 0 0 0 0 rgba(69, 198, 176, .7);
    animation: pulse-dot 2.2s infinite;
}

@keyframes pulse-dot {
    70% { box-shadow: 0 0 0 9px rgba(69, 198, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(69, 198, 176, 0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.1rem;
    letter-spacing: -.035em;
}

html[lang="ar"] .hero-title {
    letter-spacing: 0;
}

.hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    color: rgba(255, 255, 255, .76);
    max-width: 34em;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 2.4rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .72);
}

.hero-points i {
    color: var(--teal-300);
    font-size: 1rem;
}

/* Hero visual — a live "drawing → nest → machine" panel */
.hero-visual {
    position: relative;
}

.hero-panel {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-xl);
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.hero-panel-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .2rem .4rem .85rem;
}

.hero-panel-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.hero-panel-bar .title {
    width: auto;
    height: auto;
    background: none;
    margin-inline-start: auto;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
    font-weight: 600;
}

html[lang="ar"] .hero-panel-bar .title {
    letter-spacing: 0;
    text-transform: none;
}

.hero-canvas {
    background: rgba(13, 19, 30, .55);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: block;
    width: 100%;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: .9rem;
}

.hero-stat {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-md);
    padding: .7rem .8rem;
    text-align: center;
}

.hero-stat b {
    display: block;
    font-size: 1.24rem;
    color: var(--teal-300);
    font-weight: 700;
    line-height: 1.2;
}

.hero-stat span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------------------
   7. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-block: 2.2rem;
}

.trust-label {
    text-align: center;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--slate-400);
    font-weight: 600;
    margin-bottom: 1.3rem;
}

html[lang="ar"] .trust-label {
    letter-spacing: 0;
    text-transform: none;
    font-size: .9rem;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.6rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--slate-500);
    font-weight: 600;
    font-size: .95rem;
    opacity: .75;
    transition: opacity .2s ease, color .2s ease;
}

.trust-item:hover {
    opacity: 1;
    color: var(--navy-700);
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--teal-500);
}

/* --------------------------------------------------------------------------
   8. Pipeline (the 5 stages)
   -------------------------------------------------------------------------- */
.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    position: relative;
}

.pipeline::before {
    content: '';
    position: absolute;
    inset-block-start: 44px; /* يحاذي مركز الأيقونة / lines up with the icon centre */
    inset-inline: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-100), var(--teal-400), var(--teal-100));
    z-index: 0;
}

.stage {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: .6rem .8rem 1.2rem;
}

.stage-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto .9rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--teal-600);
    background: #fff;
    border: 1px solid var(--teal-100);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.stage:hover .stage-icon {
    background: var(--teal-500);
    color: #fff;
    transform: translateY(-5px) scale(1.04);
    box-shadow: var(--shadow-teal);
}

.stage-num {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--teal-600);
    margin-bottom: .3rem;
}

.stage h3 {
    font-size: 1.02rem;
    margin-bottom: .35rem;
}

.stage p {
    font-size: .88rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Feature cards
   -------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.9rem 1.7rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
    transform: scaleX(0);
    transform-origin: left; /* transform-origin لا يقبل القيم المنطقية / no logical keywords here */
    transition: transform .3s ease;
}

html[dir="rtl"] .feature-card::after {
    transform-origin: right;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--teal-50);
    color: var(--teal-600);
    margin-bottom: 1.15rem;
    transition: background-color .25s ease, color .25s ease;
}

.feature-card:hover .feature-icon {
    background: var(--teal-500);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: .55rem;
}

.feature-card p {
    font-size: .93rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. Nesting showcase
   -------------------------------------------------------------------------- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.panel-board {
    background: var(--navy-800);
    border-radius: var(--r-xl);
    padding: 1.3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .08);
}

.panel-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
    gap: 1rem;
}

.panel-board-head h4 {
    font-size: .92rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nest-chip {
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: var(--r-pill);
    background: rgba(34, 168, 148, .16);
    color: var(--teal-300);
    border: 1px solid rgba(34, 168, 148, .3);
}

.nest-sheet {
    display: block;
    width: 100%;
    border-radius: var(--r-md);
    background: rgba(13, 19, 30, .6);
}

.nest-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: .9rem;
}

.nest-meta div {
    text-align: center;
    padding: .6rem .4rem;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .04);
}

.nest-meta b {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.nest-meta span {
    font-size: .7rem;
    color: var(--slate-400);
}

/* قائمة مقارنة الخامات داخل اللوحة الداكنة */
.finish-list {
    display: flex;
    flex-direction: column;
    gap: .38rem;
    margin: 0;
}

.finish-list li {
    display: grid;
    grid-template-columns: 8.5em 1fr auto;
    align-items: center;
    gap: .7rem;
    font-size: .86rem;
}

.finish-list .fname {
    color: var(--slate-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finish-list .fbar {
    height: 8px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.finish-list .fbar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
}

.finish-list .fprice {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
    min-width: 5.2em;
    text-align: end;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .95rem;
    color: var(--ink-soft);
    font-size: .97rem;
}

.check-list i {
    color: var(--teal-500);
    font-size: 1.15rem;
    margin-top: .18rem;
    flex-shrink: 0;
}

.check-list strong {
    color: var(--navy-700);
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. Integrations
   -------------------------------------------------------------------------- */
/* ثلاثة أعمدة ثابتة حتى لا تبقى بطاقة يتيمة في صف / a fixed 3-up so six cards
   land as 2 clean rows instead of 5 + 1 */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.integration-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.35rem;
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.integration-card:hover {
    transform: translateY(-4px);
    background: rgba(34, 168, 148, .09);
    border-color: rgba(34, 168, 148, .35);
}

.integration-card i {
    font-size: 1.7rem;
    color: var(--teal-300);
    margin-bottom: .8rem;
    display: block;
}

.integration-card h4 {
    font-size: 1.02rem;
    color: #fff;
    margin-bottom: .35rem;
}

.integration-card p {
    font-size: .87rem;
    color: var(--slate-400);
    margin: 0;
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 2.4rem;
}

.format-tag {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: .42rem 1rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--slate-300);
    transition: all .2s ease;
}

.format-tag:hover {
    background: rgba(34, 168, 148, .16);
    border-color: rgba(34, 168, 148, .4);
    color: var(--teal-300);
}

/* --------------------------------------------------------------------------
   12. Workflow timeline
   -------------------------------------------------------------------------- */
.workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    counter-reset: step;
}

.workflow-step {
    position: relative;
    padding-inline-start: 3.6rem;
    counter-increment: step;
}

.workflow-step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--navy-700);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
}

.workflow-step:hover::before {
    background: var(--teal-500);
}

.workflow-step h3 {
    font-size: 1.06rem;
    margin-bottom: .4rem;
    padding-top: .5rem;
}

.workflow-step p {
    font-size: .92rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. Industries
   -------------------------------------------------------------------------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.industry-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-weight: 600;
    color: var(--navy-700);
    font-size: .96rem;
    transition: all .22s ease;
}

.industry-card:hover {
    border-color: var(--teal-300);
    background: var(--teal-50);
    transform: translateY(-3px);
    color: var(--teal-700);
}

.industry-card i {
    font-size: 1.4rem;
    color: var(--teal-500);
}

/* --------------------------------------------------------------------------
   14. Stats band
   -------------------------------------------------------------------------- */
.stats-band {
    background:
        linear-gradient(120deg, rgba(24, 140, 126, .96), rgba(14, 110, 98, .96)),
        var(--navy-800);
    color: #fff;
    border-radius: var(--r-xl);
    padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.4rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}

.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: .6;
}

.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.6rem;
    text-align: center;
}

.stat b {
    display: block;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.stat span {
    font-size: .92rem;
    color: rgba(255, 255, 255, .82);
}

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
}

.quote-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.9rem 1.7rem;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.quote-mark {
    font-size: 1.9rem;
    color: var(--teal-300);
    line-height: 1;
    margin-bottom: .7rem;
}

.quote-card p {
    font-size: .97rem;
    color: var(--slate-700);
    flex-grow: 1;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.quote-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy-700);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}

.quote-author b {
    display: block;
    font-size: .95rem;
    color: var(--navy-700);
    line-height: 1.3;
}

.quote-author span {
    font-size: .82rem;
    color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   16. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    background: var(--navy-800);
    border-color: var(--navy-800);
    box-shadow: var(--shadow-lg);
}

.price-card.featured h3,
.price-card.featured .price-amount {
    color: #fff;
}

.price-card.featured p,
.price-card.featured .price-features li {
    color: var(--slate-300);
}

.price-tag-popular {
    position: absolute;
    inset-block-start: -13px;
    inset-inline-end: 1.6rem;
    background: var(--teal-500);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .32rem .9rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-teal);
}

.price-card h3 {
    font-size: 1.2rem;
    margin-bottom: .3rem;
}

.price-card > p {
    font-size: .9rem;
    min-height: 2.8em;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy-700);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-block: .6rem .2rem;
}

.price-amount small {
    font-size: .88rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0;
}

.price-unit {
    display: block;
    font-size: .88rem;
    color: var(--slate-400);
}

.price-card.featured .price-unit {
    color: var(--slate-300);
}

.price-features {
    margin-block: 1.4rem;
    flex-grow: 1;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .91rem;
    color: var(--ink-soft);
    margin-bottom: .65rem;
}

.price-features i {
    color: var(--teal-500);
    margin-top: .22rem;
    flex-shrink: 0;
}

.price-card .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   17. FAQ
   -------------------------------------------------------------------------- */
.faq-wrap {
    max-width: 820px;
    margin-inline: auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: .8rem;
    overflow: hidden;
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.open {
    border-color: var(--teal-300);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    width: 100%;
    background: none;
    border: 0;
    text-align: start;
    padding: 1.1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy-700);
    cursor: pointer;
}

.faq-q i {
    color: var(--teal-500);
    transition: transform .25s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-a p {
    padding: 0 1.3rem 1.2rem;
    margin: 0;
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 60%, #1D3A3C);
    color: #fff;
    border-radius: var(--r-xl);
    padding: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset-block-start: -140px;
    inset-inline-start: 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(34, 168, 148, .28), transparent 65%);
}

.cta-band > * {
    position: relative;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.cta-band p {
    color: rgba(255, 255, 255, .75);
    max-width: 40em;
    margin-inline: auto;
    margin-bottom: 1.9rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: var(--slate-400);
    padding-block: clamp(3rem, 5vw, 4.5rem) 1.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.4rem;
    padding-bottom: 2.6rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 45px;
    object-fit: contain;
}

.footer-logo .brand-name {
    color: #fff;
}

.footer-logo .brand-tag {
    color: var(--slate-400);
}

.footer-about {
    font-size: .9rem;
    color: var(--slate-400);
    max-width: 34em;
}

.footer-social {
    display: flex;
    gap: .55rem;
    margin-top: 1.1rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: var(--slate-300);
    font-size: 1rem;
    transition: all .22s ease;
}

.footer-social a:hover {
    background: var(--teal-500);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.footer-col li {
    margin-bottom: .6rem;
}

.footer-col a,
.footer-col span {
    color: var(--slate-400);
    font-size: .9rem;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.footer-contact i {
    color: var(--teal-400);
    margin-top: .25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
}

.footer-bottom p {
    margin: 0;
    font-size: .86rem;
    color: var(--slate-500);
}

.footer-legal {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.footer-legal a {
    color: var(--slate-500);
}

.footer-legal a:hover {
    color: var(--teal-300);
}

/* --------------------------------------------------------------------------
   20. Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    inset-block-end: 22px;
    inset-inline-end: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teal-500);
    color: #fff;
    box-shadow: var(--shadow-teal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s ease;
    z-index: 1020;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--teal-600);
    color: #fff;
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   21. Inner page hero (about / contact / 404)
   -------------------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
    color: #fff;
    padding-block: calc(var(--header-h) + 56px) 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 30%, transparent 100%);
}

.page-hero > .container {
    position: relative;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    margin-bottom: .6rem;
}

.page-hero p {
    color: rgba(255, 255, 255, .72);
    max-width: 46em;
    margin-inline: auto;
    margin-bottom: 0;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
    margin-top: 1rem;
}

.breadcrumbs a {
    color: var(--teal-300);
}

/* Forms */
.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
}

.form-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: .72rem .95rem;
    font-size: .95rem;
    color: var(--navy-700);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(24, 140, 126, .14);
}

.contact-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    transition: all .22s ease;
}

.contact-tile:hover {
    border-color: var(--teal-300);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.contact-tile .ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-50);
    color: var(--teal-600);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-tile b {
    display: block;
    color: var(--navy-700);
    font-size: .95rem;
}

.contact-tile span,
.contact-tile a {
    font-size: .9rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   22. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .pipeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.6rem;
    }

    .pipeline::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    :root {
        --header-h: 70px;
    }

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
    }

    .hero-lead {
        max-width: none;
    }

    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        margin-top: .8rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-main {
        margin-inline: 0;
        margin-bottom: .8rem;
    }

    .nav-actions {
        justify-content: flex-start;
        padding-top: .8rem;
        border-top: 1px solid var(--line);
    }

    .price-card.featured {
        order: -1;
    }

    .integration-grid,
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .pipeline {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .brand-tag {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .nest-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .pipeline {
        grid-template-columns: 1fr;
    }

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

    .hero-cta .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .integration-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}
