/* =========================================================
   NABIH — SAUDI FINANCIAL AI
   Main stylesheet
========================================================= */

:root {

    --green-950: #061c15;
    --green-900: #08291e;
    --green-800: #0b3929;
    --green-700: #0d5139;
    --green-600: #11704c;

    --green: #138a5b;
    --mint: #48d6a0;

    --gold: #c9a45c;
    --gold-light: #e4c982;

    --white: #ffffff;
    --cream: #f7f8f5;

    --text: #12251e;
    --muted: #6c7974;
    --border: rgba(13, 81, 57, 0.12);

    --danger: #c94c4c;
    --danger-bg: #fff2f2;

    --shadow:
        0 30px 80px rgba(4, 34, 24, 0.12);

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        "Cairo",
        "IBM Plex Sans Arabic",
        sans-serif;

    background: var(--cream);

    color: var(--text);

    overflow-x: hidden;

    line-height: 1.8;

}


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


button,
input {
    font-family: inherit;
}


/* =========================================================
   BACKGROUND
========================================================= */

.grid-background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -5;

    opacity: .28;

    background-image:
        linear-gradient(
            rgba(19, 138, 91, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(19, 138, 91, .045) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );

}


.ambient {

    position: fixed;

    border-radius: 50%;

    filter: blur(90px);

    pointer-events: none;

    z-index: -4;

}


.ambient-one {

    width: 500px;
    height: 500px;

    top: -200px;
    right: -180px;

    background:
        rgba(19, 138, 91, .13);

}


.ambient-two {

    width: 400px;
    height: 400px;

    bottom: 10%;
    left: -200px;

    background:
        rgba(201, 164, 92, .10);

}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    padding: 18px 5%;

    transition:
        background .3s ease,
        box-shadow .3s ease;

}


.nav-inner {

    max-width: 1250px;

    margin: auto;

    height: 70px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background:
        rgba(255,255,255,.78);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    border:
        1px solid rgba(255,255,255,.9);

    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(5,38,26,.07);

}


.brand {

    display: flex;

    align-items: center;

    gap: 11px;

}


.brand-mark {

    width: 43px;
    height: 43px;

    border-radius: 13px;

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--green-800),
            var(--green)
        );

    box-shadow:
        0 8px 22px rgba(19,138,91,.25);

}


.brand-line {

    position: absolute;

    width: 22px;
    height: 2px;

    background:
        var(--gold-light);

    transform:
        rotate(-34deg);

    top: 22px;
    right: 9px;

}


.brand-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--gold-light);

    position: absolute;

    right: 8px;
    top: 14px;

}


.brand-arrow {

    color: white;

    font-size: 17px;

    transform:
        translate(-3px, -3px);

}


.brand-text {

    display: flex;

    flex-direction: column;

    gap: 4px;

    line-height: 1.1;

}


.brand-text strong {

    font-size: 20px;

    font-weight: 800;

    color: var(--green-900);

}


.brand-text span {

    font-size: 9px;

    letter-spacing: 1.5px;

    color: var(--gold);

    direction: ltr;

}


.nav-links {

    display: flex;

    gap: 30px;

    align-items: center;

}


.nav-links a {

    color: #4e5c56;

    font-size: 13px;

    font-weight: 600;

    transition: .25s ease;

}


.nav-links a:hover {
    color: var(--green);
}


.nav-cta {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 11px 18px;

    color: white;

    background:
        var(--green-800);

    border-radius: 11px;

    font-size: 12px;

    font-weight: 700;

    transition: .3s ease;

}


.nav-cta:hover {

    transform:
        translateY(-2px);

    background:
        var(--green);

    box-shadow:
        0 10px 25px rgba(19,138,91,.2);

}


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

.hero {

    min-height: 820px;

    padding:
        175px 5% 90px;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 20%,
            rgba(19,138,91,.08),
            transparent 32%
        ),

        linear-gradient(
            180deg,
            #f8faf7 0%,
            #f5f7f3 100%
        );

}


.hero-container {

    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    gap: 80px;

    align-items: center;

}


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


.eyebrow {

    width: fit-content;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 7px 13px;

    border-radius: 100px;

    background:
        rgba(19,138,91,.07);

    border:
        1px solid rgba(19,138,91,.12);

    color: var(--green-700);

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 24px;

}


.pulse-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 0 5px rgba(19,138,91,.1);

    animation:
        pulse 2s infinite;

}


@keyframes pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 4px rgba(19,138,91,.10);
    }

    50% {
        box-shadow:
            0 0 0 9px rgba(19,138,91,.02);
    }

}


.hero h1 {

    max-width: 700px;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: 1.18;

    letter-spacing: -2px;

    font-weight: 800;

    color: var(--green-950);

    margin-bottom: 24px;

}


.hero h1 span {

    display: block;

    color: var(--green);

}


.hero-description {

    max-width: 610px;

    color: var(--muted);

    font-size: 16px;

    line-height: 2;

    margin-bottom: 32px;

}


.hero-actions {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 45px;

}


.primary-button {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 15px 22px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--green-800),
            var(--green)
        );

    border-radius: 13px;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 15px 30px rgba(19,138,91,.20);

    transition: .3s ease;

}


.primary-button i {
    transition: .3s ease;
}


.primary-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 20px 40px rgba(19,138,91,.27);

}


.primary-button:hover i {
    transform: translateX(-5px);
}


.secondary-button {

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 14px 18px;

    color: var(--green-800);

    font-size: 13px;

    font-weight: 700;

}


.secondary-button i {

    color:
        var(--gold);

    font-size: 18px;

}


.hero-trust {

    display: flex;

    align-items: center;

    gap: 22px;

}


.trust-item {

    display: flex;

    flex-direction: column;

}


.trust-item strong {

    color: var(--green-900);

    font-size: 19px;

    font-weight: 800;

}


.trust-item span {

    color: #84908b;

    font-size: 10px;

}


.trust-divider {

    width: 1px;
    height: 35px;

    background:
        rgba(19,138,91,.15);

}


/* =========================================================
   HERO DASHBOARD
========================================================= */

.hero-visual {

    position: relative;

    min-height: 510px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.orbital {

    position: absolute;

    border:
        1px solid rgba(19,138,91,.10);

    border-radius: 50%;

    animation:
        rotate 18s linear infinite;

}


.orbital-one {

    width: 530px;
    height: 530px;

}


.orbital-two {

    width: 400px;
    height: 400px;

    border-color:
        rgba(201,164,92,.13);

    animation-duration:
        25s;

    animation-direction:
        reverse;

}


@keyframes rotate {

    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }

}


.forecast-dashboard {

    width: min(470px, 90%);

    padding: 26px;

    position: relative;

    overflow: hidden;

    border-radius:
        27px;

    color: white;

    background:
        linear-gradient(
            145deg,
            #082d21,
            #061c15
        );

    box-shadow:
        0 40px 80px rgba(3,32,22,.28);

    transform:
        perspective(1000px)
        rotateY(-5deg)
        rotateX(3deg);

    animation:
        floatDashboard 6s ease-in-out infinite;

}


@keyframes floatDashboard {

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

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

}


.dashboard-glow {

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        rgba(19,138,91,.25);

    filter:
        blur(60px);

    top: -120px;
    right: -80px;

}


.dashboard-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

}


.dashboard-label {

    display: block;

    color:
        rgba(255,255,255,.45);

    font-size: 9px;

    margin-bottom: 2px;

}


.dashboard-top strong {

    font-size: 15px;

}


.live-status {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 5px 9px;

    border-radius: 100px;

    background:
        rgba(72,214,160,.08);

    color:
        #77e2b8;

    font-size: 8px;

}


.live-status span {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        #52d89e;

    box-shadow:
        0 0 8px #52d89e;

}


.dashboard-main {

    margin-top: 48px;

}


.dashboard-main > span {

    display: block;

    color:
        rgba(255,255,255,.48);

    font-size: 10px;

    margin-bottom: 6px;

}


.dashboard-main strong {

    display: block;

    font-size: 39px;

    letter-spacing: -1px;

}


.dashboard-main strong small {

    font-size: 15px;

    color:
        rgba(255,255,255,.5);

}


.positive-change {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        #70dfae;

    font-size: 9px;

    margin-top: 4px;

}


.chart-area {

    height: 150px;

    margin-top: 28px;

    position: relative;

}


.chart-lines {

    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}


.chart-lines span {

    width: 100%;

    border-top:
        1px solid rgba(255,255,255,.06);

}


.cash-chart {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

}


.chart-fill {

    fill:
        url(#chartGradient);

}


.chart-line {

    fill: none;

    stroke:
        #59dba5;

    stroke-width: 3;

    stroke-linecap: round;

}


.dashboard-footer {

    display: flex;

    justify-content: space-between;

    padding-top: 17px;

    border-top:
        1px solid rgba(255,255,255,.08);

}


.dashboard-footer div {

    display: flex;

    flex-direction: column;

}


.dashboard-footer span {

    color:
        rgba(255,255,255,.38);

    font-size: 8px;

}


.dashboard-footer strong {

    font-size: 11px;

    margin-top: 3px;

}


.coverage strong {
    color: #6fe0ad;
}


/* =========================================================
   FLOATING ALERT
========================================================= */

.floating-alert {

    position: absolute;

    bottom: 55px;

    left: 0;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 13px 17px;

    background:
        rgba(255,255,255,.92);

    backdrop-filter:
        blur(18px);

    border:
        1px solid white;

    border-radius: 15px;

    box-shadow:
        0 20px 45px rgba(7,40,27,.15);

    animation:
        floatAlert 5s ease-in-out infinite;

}


@keyframes floatAlert {

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

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

}


.alert-icon {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    color: var(--green);

    background:
        rgba(19,138,91,.08);

}


.floating-alert div:last-child {

    display: flex;

    flex-direction: column;

}


.floating-alert span {

    color: #8a9691;

    font-size: 8px;

}


.floating-alert strong {

    color: var(--green-900);

    font-size: 11px;

}


/* =========================================================
   FEATURE STRIP
========================================================= */

.feature-strip {

    padding:
        0 5% 90px;

    margin-top: -30px;

    position: relative;

    z-index: 3;

}


.feature-strip-inner {

    max-width: 1120px;

    margin: auto;

    padding: 25px 30px;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 25px;

    background:
        rgba(255,255,255,.9);

    border:
        1px solid white;

    border-radius: 20px;

    box-shadow:
        var(--shadow);

}


.feature-item {

    display: flex;

    align-items: center;

    gap: 13px;

}


.feature-icon {

    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: var(--green);

    background:
        rgba(19,138,91,.07);

}


.feature-item strong {

    display: block;

    font-size: 12px;

    color: var(--green-900);

}


.feature-item span {

    display: block;

    color: #89938f;

    font-size: 9px;

}


/* =========================================================
   SECTIONS
========================================================= */

.forecast-section,
.how-section,
.about-section {

    max-width: 1150px;

    margin: auto;

    padding:
        110px 5%;

}


.section-heading,
.how-header {

    display: grid;

    grid-template-columns:
        65px 1fr;

    gap: 20px;

    margin-bottom: 45px;

}


.section-number {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    color: var(--green);

    background:
        rgba(19,138,91,.07);

    border:
        1px solid rgba(19,138,91,.1);

    font-size: 20px;

    font-weight: 800;

}


.section-kicker {
    display: block;
    color: var(--gold);
    font-size: 70px !important;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 8px;
}




.section-heading h2,
.how-header h2 {

    font-size:
        clamp(30px,4vw,47px);

    line-height: 1.35;

    color: var(--green-950);

    margin-bottom: 12px;

}


.section-heading h2 span,
.how-header h2 span {

    color: var(--green);

}


.section-heading p,
.how-header p {

    max-width: 650px;

    color: var(--muted);

    font-size: 13px;

}


/* =========================================================
   UPLOAD CARD
========================================================= */

.upload-card {

    padding: 34px;

    background:
        rgba(255,255,255,.88);

    border:
        1px solid white;

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow);

}


.upload-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 28px;

}


.upload-card-header > div:first-child span {

    color: var(--gold);

    font-size: 9px;

    font-weight: 800;

}


.upload-card-header h3 {

    color: var(--green-900);

    font-size: 20px;

}


.secure-badge {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 11px;

    border-radius: 100px;

    color: var(--green);

    background:
        rgba(19,138,91,.06);

    font-size: 9px;

    font-weight: 700;

}


/* DROP ZONE */

.drop-zone {

    min-height: 310px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 35px;

    border:
        1.5px dashed rgba(19,138,91,.25);

    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(19,138,91,.025),
            rgba(201,164,92,.025)
        );

    transition:
        .3s ease;

}


.drop-zone.dragging,
.drop-zone:hover {

    border-color:
        var(--green);

    background:
        rgba(19,138,91,.04);

    transform:
        translateY(-2px);

}


.upload-symbol {

    margin-bottom: 16px;

}


.upload-ring {

    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 19px;

    color: var(--green);

    background:
        rgba(19,138,91,.08);

    box-shadow:
        inset 0 0 0 8px rgba(19,138,91,.025);

    font-size: 24px;

}


.drop-zone h3 {

    color: var(--green-900);

    font-size: 17px;

}


.drop-zone > p {

    color: #89938f;

    font-size: 11px;

    margin: 3px 0 17px;

}


.choose-file {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 11px 18px;

    border-radius: 10px;

    color: white;

    background:
        var(--green-800);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s ease;

}


.choose-file:hover {

    background:
        var(--green);

    transform:
        translateY(-2px);

}


.selected-file {

    display: flex;

    align-items: center;

    gap: 7px;

    min-height: 25px;

    color: #8c9792;

    font-size: 9px;

    margin-top: 13px;

}


.selected-file.has-file {

    color:
        var(--green);

    font-weight: 700;

}


.file-types {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 9px;

}


.file-types span {

    padding: 3px 7px;

    border-radius: 5px;

    background:
        #edf2ee;

    color: #75817c;

    font-size: 7px;

    font-weight: 800;

}


.file-types small {

    color: #a0aaa6;

    font-size: 8px;

    margin-right: 4px;

}


/* =========================================================
   DATA REQUIREMENTS
========================================================= */

.data-requirements {

    margin-top: 18px;

    padding: 20px;

    border-radius: 17px;

    background:
        #f8faf8;

    border:
        1px solid #edf1ee;

}


.requirements-title {

    display: flex;

    gap: 12px;

    align-items: flex-start;

}


.requirements-icon {

    color:
        var(--green);

    margin-top: 3px;

}


.requirements-title strong {

    color: var(--green-900);

    font-size: 12px;

}


.requirements-title p {

    color: #89938f;

    font-size: 9px;

    margin-top: 2px;

}


.columns-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 14px;

}


.columns-grid span {

    direction: ltr;

    padding: 5px 9px;

    border-radius: 7px;

    background: white;

    border: 1px solid #e7ece9;

    color: #65726c;

    font-family: monospace;

    font-size: 8px;

}


/* =========================================================
   FORECAST INFO
========================================================= */

.forecast-info {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 18px;

    padding: 17px 20px;

    border:
        1px solid rgba(201,164,92,.2);

    border-radius: 15px;

    background:
        rgba(201,164,92,.045);

}


.forecast-info-icon {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--gold);

    background:
        rgba(201,164,92,.09);

    border-radius: 11px;

}


.forecast-info div:nth-child(2) {

    display: flex;

    flex-direction: column;

}


.forecast-info span {

    color: #8f9189;

    font-size: 8px;

}


.forecast-info strong {

    color: var(--green-900);

    font-size: 11px;

}


.forecast-engine {

    margin-right: auto;

    display: flex;

    flex-direction: column;

    text-align: left;

}


.forecast-engine strong {

    direction: ltr;

}


/* =========================================================
   GENERATE BUTTON
========================================================= */

.generate-button {

    width: 100%;

    margin-top: 18px;

    padding: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    border: none;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--green-900),
            var(--green)
        );

    cursor: pointer;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 15px 30px rgba(19,138,91,.18);

    transition: .3s ease;

}


.generate-button:hover:not(:disabled) {

    transform:
        translateY(-2px);

    box-shadow:
        0 20px 40px rgba(19,138,91,.25);

}


.generate-button:disabled {

    opacity: .65;

    cursor: wait;

}


.generate-button i {

    transition: .3s ease;

}


.generate-button:hover i {
    transform: translateX(-5px);
}


.button-loader {

    display: none;

    width: 16px;
    height: 16px;

    border:
        2px solid rgba(255,255,255,.3);

    border-top-color:
        white;

    border-radius: 50%;

    animation:
        spin .7s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   STATUS
========================================================= */

.file-status {

    display: none;

    margin-top: 18px;

    padding: 13px 17px;

    border-radius: 12px;

    background:
        #edf9f3;

    color: var(--green-700);

    border:
        1px solid #d5f0e2;

    font-size: 10px;

}


.file-status i {
    margin-left: 7px;
}


/* =========================================================
   ERROR
========================================================= */

.error-box {

    display: none;

    margin-top: 18px;

    padding: 17px;

    display: none;

    align-items: flex-start;

    gap: 12px;

    border-radius: 13px;

    background:
        var(--danger-bg);

    border:
        1px solid #f3d4d4;

}


.error-icon {

    color:
        var(--danger);

}


.error-box strong {

    color: #9d3f3f;

    font-size: 11px;

}


.error-box p {

    color: #a96868;

    font-size: 9px;

    margin-top: 2px;

}


/* =========================================================
   RESULT
========================================================= */

.result-section {

    display: none;

    margin-top: 70px;

}


.result-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 25px;

}


.result-header h2 {

    color: var(--green-950);

    font-size: 30px;

}


.result-header p {

    direction: ltr;

    text-align: right;

    color: #87928d;

    font-size: 9px;

}


.result-status {

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 8px 12px;

    border-radius: 100px;

    color: var(--green);

    background:
        rgba(19,138,91,.07);

    font-size: 9px;

    font-weight: 700;

}


.status-pulse {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(19,138,91,.08);

}


/* MAIN RESULT */

.result-main-card {

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 32px;

    color: white;

    border-radius: 23px;

    background:
        linear-gradient(
            135deg,
            var(--green-900),
            #0a4632
        );

    box-shadow:
        0 25px 60px rgba(5,45,31,.2);

}


.result-main-card::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        rgba(72,214,160,.09);

    filter: blur(20px);

    left: -100px;
    bottom: -180px;

}


.result-main-content {

    position: relative;

    z-index: 1;

}


.result-main-content > span {

    display: block;

    color: rgba(255,255,255,.5);

    font-size: 10px;

}


.result-main-content > strong {

    display: block;

    direction: ltr;

    text-align: right;

    font-size: 42px;

    letter-spacing: -1px;

    margin: 3px 0;

}


.result-main-content small {

    color:
        rgba(255,255,255,.42);

    font-size: 9px;

}


.result-main-icon {

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 17px;

    color:
        #65dbaa;

    background:
        rgba(72,214,160,.08);

    border:
        1px solid rgba(72,214,160,.15);

    font-size: 25px;

}


/* METRICS */

.metrics-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 14px;

    margin-top: 14px;

}


.metric-card {

    min-height: 155px;

    padding: 20px;

    position: relative;

    background:
        white;

    border:
        1px solid #edf0ed;

    border-radius: 17px;

    box-shadow:
        0 10px 30px rgba(6,35,24,.045);

}


.metric-icon {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: var(--green);

    background:
        rgba(19,138,91,.07);

    margin-bottom: 15px;

}


.metric-card > span {

    display: block;

    color: #89938e;

    font-size: 9px;

}


.metric-card > strong {

    display: block;

    color: var(--green-900);

    font-size: 18px;

    margin-top: 3px;

}


.metric-card > small {

    color: #a2aaa7;

    font-size: 8px;

}


.company-value {

    direction: ltr;

    text-align: right;

    font-family: monospace;

    font-size: 14px !important;

}


/* RISK */

.risk-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 6px;

    padding: 5px 12px;

    border-radius: 100px;

    font-size: 10px;

    font-weight: 800;

}


.risk-badge.safe {

    color: #18754f;

    background:
        #e9f8f0;

}


.risk-badge.danger {

    color: #a93f3f;

    background:
        #fff0f0;

}


.risk-badge.warning {

    color: #956f20;

    background:
        #fff8e8;

}


/* INSIGHT */

.insight-card {

    display: flex;

    gap: 17px;

    margin-top: 14px;

    padding: 23px;

    border:
        1px solid rgba(201,164,92,.22);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fffdf8,
            #faf7ef
        );

}


.insight-symbol {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--gold);

    border-radius: 13px;

    background:
        rgba(201,164,92,.1);

}


.insight-content > span {

    color: var(--gold);

    font-size: 8px;

    font-weight: 800;

}


.insight-content h3 {

    color: var(--green-900);

    font-size: 14px;

}


.insight-content p {

    color: #68756f;

    font-size: 10px;

    line-height: 1.9;

}


/* DETAILS */

.result-details {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    margin-top: 14px;

    border:
        1px solid #edf0ed;

    border-radius: 15px;

    overflow: hidden;

    background: white;

}


.result-details > div {

    padding: 16px 20px;

    border-left:
        1px solid #edf0ed;

}


.result-details > div:last-child {
    border-left: none;
}


.result-details span {

    display: block;

    color: #939c98;

    font-size: 8px;

}


.result-details strong {

    display: block;

    color: var(--green-900);

    font-size: 10px;

    margin-top: 3px;

}


/* =========================================================
   HOW
========================================================= */

.how-section {

    max-width: 1250px;

}


.steps {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 15px;

    position: relative;

}


.step-card {

    position: relative;

    padding: 25px;

    min-height: 240px;

    background:
        white;

    border:
        1px solid #edf0ed;

    border-radius: 19px;

    transition: .3s ease;

}


.step-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 25px 50px rgba(7,40,27,.08);

    border-color:
        rgba(19,138,91,.16);

}


.step-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 35px;

}


.step-top span {

    color:
        var(--gold);

    font-size: 10px;

    font-weight: 800;

}


.step-top i {

    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color:
        var(--green);

    background:
        rgba(19,138,91,.07);

}


.step-card h3 {

    color:
        var(--green-900);

    font-size: 15px;

    margin-bottom: 8px;

}


.step-card p {

    color:
        #7e8984;

    font-size: 10px;

    line-height: 1.9;

}


/* =========================================================
   ABOUT
========================================================= */

.about-card {

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 50px 60px;

    overflow: hidden;

    position: relative;

    color: white;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            var(--green-950),
            var(--green-800)
        );

}


.about-card::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.07);

    left: -150px;
    bottom: -200px;

}


.about-content {

    max-width: 650px;

    position: relative;

    z-index: 2;

}


.about-content h2 {

    font-size:
        clamp(28px,4vw,43px);

    line-height: 1.4;

    margin-bottom: 15px;

}


.about-content h2 span {
    color: #64dca8;
}


.about-content p {

    color:
        rgba(255,255,255,.58);

    font-size: 12px;

    line-height: 2;

}


.about-symbol {

    position: relative;

    width: 230px;
    height: 230px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.symbol-circle {

    width: 150px;
    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(72,214,160,.25);

    border-radius: 50%;

    color:
        #70dfae;

    font-size: 80px;

    font-weight: 800;

    position: relative;

}


.symbol-orbit {

    position: absolute;

    width: 205px;
    height: 205px;

    border:
        1px dashed rgba(201,164,92,.28);

    border-radius: 50%;

    animation:
        rotate 15s linear infinite;

}


/* =========================================================
   FOOTER
========================================================= */

footer {

    padding:
        40px 5%;

    background:
        var(--green-950);

    color: white;

}


.footer-inner {

    max-width: 1150px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

}


.brand-mark.small {

    width: 37px;
    height: 37px;

}


.footer-brand strong {

    display: block;

    font-size: 15px;

}


.footer-brand span {

    display: block;

    color:
        rgba(255,255,255,.38);

    font-size: 8px;

}


.footer-inner > p {

    color:
        rgba(255,255,255,.38);

    font-size: 8px;

}


.copyright {

    color:
        rgba(255,255,255,.3);

    font-size: 8px;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .nav-links {
        display: none;
    }


    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;

    }


    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;

    }


    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    .hero-visual {
        min-height: 470px;
    }


    .floating-alert {
        left: 5%;
    }


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


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


    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 700px) {

    .navbar {
        padding: 10px 3%;
    }


    .nav-inner {
        height: 60px;
    }


    .nav-cta {
        padding: 9px 12px;
        font-size: 9px;
    }


    .hero {
        padding:
            135px 5% 60px;
    }


    .hero h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }


    .hero-description {
        font-size: 13px;
    }


    .hero-actions {
        flex-direction: column;
        width: 100%;
    }


    .primary-button,
    .secondary-button {
        justify-content: center;
        width: 100%;
    }


    .hero-trust {
        gap: 12px;
    }


    .trust-item strong {
        font-size: 15px;
    }


    .feature-strip-inner {
        grid-template-columns: 1fr;
    }


    .forecast-section,
    .how-section,
    .about-section {
        padding:
            75px 5%;
    }


    .section-heading,
    .how-header {
        grid-template-columns: 1fr;
    }


    .section-number {
        width: 42px;
        height: 42px;
    }


    .upload-card {
        padding: 18px;
    }


    .upload-card-header {
        align-items: flex-start;
        gap: 15px;
    }


    .secure-badge {
        display: none;
    }


    .forecast-info {
        flex-wrap: wrap;
    }


    .forecast-engine {
        width: 100%;
        margin-right: 53px;
        text-align: right;
    }


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


    .result-header {
        flex-direction: column;
        gap: 15px;
    }


    .result-main-card {
        padding: 25px;
    }


    .result-main-content > strong {
        font-size: 30px;
    }


    .result-details {
        grid-template-columns: 1fr;
    }


    .result-details > div {
        border-left: none;
        border-bottom: 1px solid #edf0ed;
    }


    .result-details > div:last-child {
        border-bottom: none;
    }


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


    .about-card {
        padding: 35px 25px;
    }


    .about-symbol {
        display: none;
    }

}


@media (max-width: 430px) {

    .brand-text strong {
        font-size: 17px;
    }


    .brand-mark {
        width: 38px;
        height: 38px;
    }


    .hero h1 {
        font-size: 34px;
    }


    .forecast-dashboard {
        padding: 20px;
    }


    .dashboard-main strong {
        font-size: 31px;
    }


    .floating-alert {
        transform: scale(.85);
        transform-origin: left bottom;
    }

}
/* =========================================================
   NABIH V2 — SAFE VISUAL OVERRIDES
   Requested polish: logo, typography, spacing, process numbers,
   bilingual navigation, and three-level risk presentation.
========================================================= */

.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-toggle {
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(13,81,57,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.78);
    color: var(--green-800);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

.language-toggle:hover {
    border-color: rgba(19,138,91,.28);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(5,38,26,.06);
}

.language-toggle i {
    color: var(--gold);
    font-size: 15px;
}

.brand-mark {
    overflow: visible;
    border-radius: 13px;
}

.brand-letter {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
}

.brand-mark.small .brand-letter {
    font-size: 23px;
}

/* The logo is intentionally only the Arabic letter ن — no arrows or graph marks. */
.brand-line,
.brand-dot,
.brand-arrow {
    display: none !important;
}

/* More breathing room in the hero/banner. */
.hero {
    min-height: 860px;
    padding-top: 190px;
    padding-bottom: 105px;
}

.hero-container {
    gap: 92px;
}

.eyebrow {
    margin-bottom: 28px;
    padding: 9px 15px;
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(45px, 5.2vw, 72px);
    line-height: 1.2;
    margin-bottom: 27px;
}

.hero-description {
    max-width: 640px;
    font-size: 17px;
    line-height: 2.05;
    margin-bottom: 36px;
}

.hero-actions {
    gap: 18px;
    margin-bottom: 50px;
}

.primary-button,
.secondary-button {
    font-size: 14px;
}

.primary-button {
    padding: 16px 24px;
}

.secondary-button {
    padding: 15px 19px;
}

.trust-item span {
    font-size: 11px;
}

.feature-strip {
    margin-top: -42px;
    padding-bottom: 100px;
}

.feature-strip-inner {
    padding: 29px 34px;
    gap: 32px;
}

.feature-item {
    gap: 15px;
}

.feature-icon {
    width: 46px;
    height: 46px;
}

.feature-item strong {
    font-size: 13px;
}

.feature-item span {
    font-size: 10px;
    margin-top: 2px;
}

/* Section headings and upload spacing */
.forecast-section,
.how-section,
.about-section {
    padding-top: 125px;
    padding-bottom: 125px;
}

.section-heading,
.how-header {
    margin-bottom: 54px;
}

.section-heading p,
.how-header p {
    font-size: 14px;
    line-height: 1.95;
}

.upload-card {
    padding: 40px;
    border-radius: 22px;
}

/* Larger process numbers — visible at a glance. */
.step-top {
    margin-bottom: 30px;
}

.step-top span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--green-900);
    background: linear-gradient(145deg, #f4fbf7, #e7f5ee);
    border: 1px solid rgba(19,138,91,.12);
    font-size: 16px;
    letter-spacing: .3px;
}

.step-top i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
}

.step-card {
    padding: 27px;
    min-height: 260px;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 11px;
    line-height: 2;
}

/* Three-level risk system */
.risk-badge {
    min-width: 88px;
    padding: 7px 14px;
    font-size: 11px;
}

.risk-badge.safe {
    color: #18754f;
    background: #e9f8f0;
}

.risk-badge.moderate,
.risk-badge.warning {
    color: #956f20;
    background: #fff8e8;
}

.risk-badge.at_risk,
.risk-badge.danger {
    color: #a93f3f;
    background: #fff0f0;
}

.risk-guide {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 5% 125px;
}

.risk-guide-header {
    margin-bottom: 28px;
}

.risk-guide-header h2 {
    margin: 4px 0 10px;
    color: var(--green-950);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.35;
}

.risk-guide-header p {
    max-width: 780px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.95;
}

.risk-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.risk-guide-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 125px;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #edf0ed;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(6,35,24,.04);
}

.risk-guide-card .risk-guide-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-bottom: 6px;
}

.risk-guide-card strong {
    color: var(--green-900);
    font-size: 17px;
}

.risk-guide-card > span:last-child {
    color: #7e8984;
    font-size: 11px;
    line-height: 1.8;
}

.safe-card .risk-guide-dot { background: #39a978; }
.moderate-card .risk-guide-dot { background: #c9a45c; }
.danger-card .risk-guide-dot { background: #c94c4c; }

/* Result typography */
.result-main-content > strong {
    font-size: clamp(34px, 4vw, 50px);
}

.metric-card > span {
    font-size: 10px;
}

.metric-card > strong {
    font-size: 20px;
}

.insight-content p {
    font-size: 12px;
    line-height: 2;
}

/* English direction / spacing adjustments */
html[dir="ltr"] .primary-button i,
html[dir="ltr"] .nav-cta i {
    transform: rotate(180deg);
}

html[dir="ltr"] .primary-button:hover i {
    transform: rotate(180deg) translateX(-5px);
}

html[dir="ltr"] .company-value {
    text-align: left;
}

html[dir="ltr"] .forecast-engine {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

@media (max-width: 1000px) {
    .nav-actions {
        gap: 7px;
    }

    .hero {
        min-height: auto;
        padding-top: 155px;
    }

    .risk-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .language-toggle {
        width: 42px;
        padding: 0;
    }

    .language-toggle span {
        display: none;
    }

    .nav-cta {
        padding: 10px 13px;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 65px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 14px;
    }

    .feature-strip {
        margin-top: -20px;
        padding-bottom: 70px;
    }

    .forecast-section,
    .how-section,
    .about-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .upload-card {
        padding: 22px;
    }

    .step-top span {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .risk-guide {
        padding-bottom: 80px;
    }
}

/* =========================================================
   TYPOGRAPHY UPGRADE — clearer, larger, more premium
   Keeps the existing layout and model integration unchanged.
========================================================= */

/* Navigation */
.brand-text strong { font-size: 22px; }
.brand-text span { font-size: 11px; }
.nav-links a { font-size: 15px; font-weight: 600; }
.language-toggle { font-size: 14px; }
.nav-cta { font-size: 15px; }

/* Hero / banner */
.eyebrow { font-size: 14px; }
.hero h1 { font-size: clamp(48px, 5.5vw, 76px); }
.hero-description { font-size: 19px; line-height: 2; max-width: 700px; }
.primary-button, .secondary-button { font-size: 15px; }
.hero-trust .trust-item strong { font-size: 22px; }
.hero-trust .trust-item span { font-size: 12px; }

/* General section headings */
.section-kicker { font-size: 13px; }
.section-heading h2,
.how-header h2 { font-size: clamp(34px, 4vw, 48px); }
.section-heading p,
.how-header p { font-size: 16px; line-height: 2; }

/* Upload / forecast area */
.upload-card-header h3 { font-size: 23px; }
.upload-card-header p { font-size: 15px; line-height: 1.9; }
.secure-badge { font-size: 13px; }
.drop-zone h4 { font-size: 18px; }
.drop-zone p { font-size: 14px; }
.choose-file { font-size: 15px; }
.selected-file { font-size: 13px; }
.file-types { font-size: 12px; }
.requirements-title strong { font-size: 15px; }
.requirements-title span { font-size: 13px; }
.columns-grid span { font-size: 12px; }
.forecast-info span { font-size: 12px; }
.forecast-info strong { font-size: 15px; }
.generate-button { font-size: 16px; }

/* Results */
.result-header h2 { font-size: clamp(32px, 4vw, 46px); }
.result-header p { font-size: 14px; }
.result-status { font-size: 13px; }
.result-main-content > span { font-size: 14px; }
.result-main-content > small { font-size: 13px; }
.metric-card > span { font-size: 13px; }
.metric-card > strong { font-size: 23px; }
.metric-card > small { font-size: 11px; }
.risk-badge { font-size: 14px !important; }
.insight-content > span { font-size: 11px; }
.insight-content h3 { font-size: 20px; }
.insight-content p { font-size: 14px; line-height: 2; }
.result-details span { font-size: 12px; }
.result-details strong { font-size: 14px; }

/* How it works — noticeably larger step numbers */
.step-top span {
    width: 58px;
    height: 58px;
    font-size: 21px;
    font-weight: 800;
}
.step-top i { font-size: 19px; }
.step-card h3 { font-size: 19px; }
.step-card p { font-size: 14px; line-height: 1.9; }

/* Risk guide */
.risk-guide-header h2 { font-size: clamp(30px, 3.2vw, 40px); }
.risk-guide-header p { font-size: 15px; line-height: 2; }
.risk-guide-card strong { font-size: 19px; }
.risk-guide-card > span:last-child { font-size: 13px; line-height: 1.9; }

/* Footer */
.footer-brand strong { font-size: 18px; }
.footer-brand span { font-size: 10px; }
.footer-inner > p { font-size: 11px; }

@media (max-width: 700px) {
    .brand-text strong { font-size: 19px; }
    .brand-text span { font-size: 9px; }
    .hero h1 { font-size: 42px; line-height: 1.25; }
    .hero-description { font-size: 16px; line-height: 1.9; }
    .section-heading h2,
    .how-header h2 { font-size: 32px; }
    .section-heading p,
    .how-header p { font-size: 14px; }
    .upload-card-header h3 { font-size: 20px; }
    .drop-zone h4 { font-size: 16px; }
    .step-top span { width: 52px; height: 52px; font-size: 19px; }
    .step-card h3 { font-size: 18px; }
    .step-card p { font-size: 13px; }
    .metric-card > span { font-size: 12px; }
    .metric-card > strong { font-size: 21px; }
    .insight-content p { font-size: 13px; }
}
