:root {
    --bg-dark: #05080a;
    --bg-soft: #081015;
    --card-bg: rgba(13, 22, 30, 0.90);
    --card-bg-strong: rgba(10, 19, 26, 0.96);
    --accent-green: #3d998b;
    --accent-bright: #59b8aa;
    --accent-glow: rgba(61, 153, 139, 0.40);
    --accent-line: rgba(61, 153, 139, 0.20);
    --text-light: #f0f0f0;
    --text-muted: #9aa6ac;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 20px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

html[dir="rtl"] body {
    font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

#tech-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.site-header,
main,
.site-footer,
.preview-notice {
    position: relative;
    z-index: 2;
}

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

.skip-link {
    position: fixed;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.preview-notice {
    padding: 8px 16px;
    border-bottom: 1px solid var(--accent-line);
    background: rgba(61, 153, 139, 0.95);
    color: white;
    text-align: center;
    font: 700 13px/1.4 Arial, sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(61, 153, 139, 0.20);
    background: rgba(5, 8, 10, 0.86);
    backdrop-filter: blur(20px);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(61, 153, 139, 0.25));
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    color: white;
    font-size: 1.16rem;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.64rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

html[dir="rtl"] .brand-copy strong,
html[dir="rtl"] .brand-copy small {
    letter-spacing: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    position: relative;
    color: #b0b9bd;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.site-nav a:not(.language-link)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--accent-green);
    transition: var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: white;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    right: 0;
}

.language-link {
    padding: 7px 17px;
    border: 1px solid var(--accent-green);
    border-radius: 30px;
    color: var(--accent-bright) !important;
}

.language-link:hover,
.language-link:focus-visible {
    background: var(--accent-green);
    color: white !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--card-bg);
    color: white;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    min-height: 730px;
    display: grid;
    align-items: center;
    padding: 130px 0 110px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(61, 153, 139, 0.13) 0%, rgba(5, 8, 10, 0.25) 48%, transparent 78%);
}

.hero-content {
    max-width: 980px;
    margin-inline: auto;
}

.hero-animate {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

.hero-animate.delay-1 {
    animation-delay: 0.2s;
}

.hero-animate.delay-2 {
    animation-delay: 0.4s;
}

.hero-animate.delay-3 {
    animation-delay: 0.6s;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    color: var(--accent-bright);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

html[dir="rtl"] .eyebrow {
    letter-spacing: normal;
}

.hero h1 {
    max-width: 940px;
    margin: 0 auto;
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-shadow: 0 10px 45px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] .hero h1 {
    line-height: 1.20;
    letter-spacing: -0.025em;
}

.hero h1 .highlight {
    display: block;
    color: var(--accent-bright);
    text-shadow: 0 0 28px rgba(61, 153, 139, 0.22);
}

.hero-lead {
    max-width: 760px;
    margin: 28px auto 0;
    color: #aab6ba;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.north-star {
    margin: 16px 0 0;
    color: white;
    font-size: 0.97rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.90rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 5px 15px var(--accent-glow);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: white;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.025);
    color: white;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--accent-green);
    background: rgba(61, 153, 139, 0.10);
    color: white;
    box-shadow: 0 0 18px rgba(61, 153, 139, 0.13);
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

.hero-proof {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.hero-proof li {
    padding: 8px 13px;
    border: 1px solid rgba(61, 153, 139, 0.24);
    border-radius: 999px;
    background: rgba(61, 153, 139, 0.08);
    color: #aee1da;
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.section {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

.section-muted {
    border-top: 1px solid rgba(61, 153, 139, 0.08);
    border-bottom: 1px solid rgba(61, 153, 139, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.authority-copy h2,
.contact-panel h2,
.form-panel h2 {
    margin: 0;
    color: white;
    font-size: clamp(2.05rem, 4.3vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .authority-copy h2,
html[dir="rtl"] .contact-panel h2,
html[dir="rtl"] .form-panel h2 {
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.section-heading p,
.authority-copy p,
.contact-panel > p,
.form-panel > p {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.problem-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.problem-card,
.service-card,
.method-step,
.evidence-panel,
.contact-panel,
.form-panel,
.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(61, 153, 139, 0.15);
    border-radius: var(--radius);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.problem-card::before,
.service-card::before,
.method-step::before,
.evidence-panel::before,
.contact-panel::before,
.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent, rgba(61, 153, 139, 0.065), transparent);
    transform: translateX(-100%);
    transition: 0.8s ease;
}

.problem-card:hover::before,
.service-card:hover::before,
.method-step:hover::before,
.evidence-panel:hover::before {
    transform: translateX(100%);
}

.problem-card:hover,
.service-card:hover,
.method-step:hover,
.evidence-panel:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.40), 0 0 20px rgba(61, 153, 139, 0.10);
}

.problem-card,
.service-card {
    min-height: 255px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.problem-card > *,
.service-card > *,
.method-step > *,
.evidence-panel > *,
.contact-panel > *,
.form-panel > * {
    position: relative;
    z-index: 1;
}

.icon-container {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 21px;
    border: 1px solid rgba(61, 153, 139, 0.22);
    border-radius: 12px;
    background: rgba(61, 153, 139, 0.10);
    color: var(--accent-bright);
    font-size: 1.42rem;
    transition: var(--transition);
}

.problem-card:hover .icon-container,
.service-card:hover .icon-container,
.method-step:hover .icon-container {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.problem-card h3,
.service-card h3,
.method-step h3 {
    margin: 0;
    color: white;
    font-size: 1.15rem;
    line-height: 1.35;
}

.problem-card p,
.service-card p,
.method-step p {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.90rem;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.method-step {
    min-height: 245px;
    padding: 26px 22px;
}

.method-step .icon-container {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 1.18rem;
}

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

.proof-list {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.proof-list li {
    position: relative;
    padding-inline-start: 28px;
    color: #c3ced1;
}

.proof-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--accent-bright);
    font-weight: 800;
}

.evidence-panel {
    padding: 34px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.evidence-panel h3 {
    margin: 0 0 20px;
    color: white;
    font-size: 1.30rem;
}

.evidence-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(61, 153, 139, 0.14);
}

.evidence-row strong {
    color: #dfe5e7;
    font-size: 0.90rem;
}

.evidence-row span {
    color: var(--accent-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

html[dir="rtl"] .evidence-row span {
    letter-spacing: normal;
}

.faq-list {
    max-width: 920px;
    margin-inline: auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: rgba(13, 22, 30, 0.86);
}

.faq-item[open] {
    border-color: rgba(61, 153, 139, 0.38);
    box-shadow: 0 0 22px rgba(61, 153, 139, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 25px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--accent-bright);
    font-size: 1.35rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    max-width: 790px;
    margin: -4px 25px 24px;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 24px;
}

.contact-panel,
.form-panel {
    padding: 36px;
}

.contact-details {
    display: grid;
    gap: 17px;
    margin-top: 32px;
}

.contact-detail {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(61, 153, 139, 0.14);
}

.contact-detail span {
    color: var(--accent-bright);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-detail a,
.contact-detail strong {
    color: white;
    font-size: 0.90rem;
    text-decoration: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 8px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: #e1e7e8;
    font-size: 0.79rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(61, 153, 139, 0.20);
    border-radius: 11px;
    outline: 0;
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.field select option {
    background: #101b21;
    color: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(61, 153, 139, 0.13);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 21px;
}

.alert {
    margin: 22px 0;
    padding: 13px 15px;
    border: 1px solid rgba(61, 153, 139, 0.22);
    border-radius: 10px;
    font-size: 0.87rem;
}

.alert-success {
    border-color: rgba(61, 153, 139, 0.48);
    background: rgba(61, 153, 139, 0.12);
    color: #b7e9e2;
}

.alert-error {
    border-color: rgba(214, 131, 131, 0.40);
    background: rgba(214, 131, 131, 0.08);
    color: #efc4c4;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid rgba(61, 153, 139, 0.10);
    background: rgba(0, 0, 0, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(61, 153, 139, 0.20));
}

.footer-brand p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.81rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.79rem;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(61, 153, 139, 0.20), 0 5px 15px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 25px rgba(61, 153, 139, 0.50), 0 5px 20px var(--accent-glow);
    }
}

@media (max-width: 1020px) {
    .problem-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .authority-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .js .site-nav {
        position: absolute;
        top: 72px;
        left: 20px;
        right: 20px;
        display: none;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--accent-line);
        border-radius: 14px;
        background: rgba(5, 8, 10, 0.97);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.52);
        backdrop-filter: blur(18px);
    }

    .js .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 8px 4px;
    }

    .site-nav a::after {
        display: none;
    }

    .language-link {
        width: fit-content;
        margin-top: 4px;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 92px;
    }

    .section {
        padding: 76px 0;
    }
}

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

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.90rem;
    }

    .problem-grid,
    .service-grid,
    .method-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .hero-actions,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .problem-card,
    .service-card,
    .method-step,
    .evidence-panel,
    .contact-panel,
    .form-panel {
        padding: 25px;
    }

    .contact-detail {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .evidence-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

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

    #tech-canvas {
        display: none;
    }

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