:root {
    color-scheme: light;
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #eef4fa;
    --text: #14243b;
    --muted: #64748b;
    --line: #dce5ef;
    --primary: #1768e8;
    --primary-strong: #0f54c8;
    --cyan: #39b9c8;
    --navy: #0a1b32;
    --footer: #08172b;
    --radius: 22px;
    --shadow-sm: 0 10px 28px rgba(18, 43, 76, .06);
    --shadow-md: 0 24px 60px rgba(18, 43, 76, .12);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #121d2c;
    --surface-soft: #0e1928;
    --text: #f1f5fb;
    --muted: #a8b6c9;
    --line: #2b394d;
    --primary: #68a7ff;
    --primary-strong: #3c82eb;
    --cyan: #54d0d0;
    --navy: #081321;
    --footer: #060d17;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, .16);
    --shadow-md: 0 26px 64px rgba(0, 0, 0, .3);
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: clip;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", "Tajawal", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    transition: background-color .25s ease, color .25s ease;
}

html[lang="ar"] body {
    font-family: "Tajawal", "DM Sans", sans-serif;
}

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

button,
input,
textarea {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 72%, white);
    outline-offset: 3px;
}

::selection {
    background: color-mix(in srgb, var(--primary) 22%, transparent);
    color: var(--text);
}

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

/* Header */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
}

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

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    background: linear-gradient(145deg, #49c5ce, #2870df 72%, #625bd6);
    box-shadow: 0 8px 20px rgba(32, 105, 200, .2);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.brand-mark span {
    color: #c9fbf4;
}

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

.brand-copy strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -.25px;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2.1px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 34px);
    margin-inline: auto;
}

.main-nav a,
.language-switch {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: color .18s ease;
}

.main-nav a:not(.nav-contact):hover,
.main-nav a.is-current:not(.nav-contact),
.language-switch:hover {
    color: var(--primary);
}

.main-nav a:not(.nav-contact) {
    position: relative;
    padding-block: 10px;
}

.main-nav a:not(.nav-contact)::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    content: "";
    transition: transform .2s ease;
}

.main-nav a:not(.nav-contact):hover::after,
.main-nav a:not(.nav-contact).is-current::after {
    transform: scaleX(1);
}

.main-nav .nav-contact {
    padding: 11px 17px;
    border: 1px solid var(--primary);
    border-radius: 11px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(23, 104, 232, .18);
    color: #fff;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.main-nav .nav-contact:hover,
.main-nav .nav-contact.is-current {
    transform: translateY(-1px);
    background: var(--primary-strong);
    box-shadow: 0 11px 22px rgba(23, 104, 232, .25);
    color: #fff;
}

.nav-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 15px;
}

.theme-toggle,
.nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.theme-toggle:hover,
.nav-toggle:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.nav-toggle {
    display: none;
    align-content: center;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* Feedback and buttons */
.flash {
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.flash-success {
    border-color: #9ad9ba;
    background: #edfbf4;
    color: #176b43;
}

.flash-error {
    border-color: #f0b5b5;
    background: #fff3f3;
    color: #9e3434;
}

.flash ul {
    margin: 6px 0 0;
    padding-inline-start: 20px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.button-primary {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(23, 104, 232, .19);
    color: #fff;
}

.button-primary:hover {
    border-color: var(--primary-strong);
    background: var(--primary-strong);
    box-shadow: 0 14px 28px rgba(23, 104, 232, .25);
}

.button-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--text);
}

.button-outline:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
    color: var(--primary);
}

.text-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
    transition: gap .18s ease, color .18s ease;
}

.text-link:hover {
    gap: 12px;
    color: var(--primary-strong);
}

/* Home hero */
.hero-section--saas {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(64px, 8vw, 108px) 28px;
    background:
        radial-gradient(ellipse at 78% 40%, rgba(56, 148, 235, .11), transparent 31rem),
        radial-gradient(ellipse at 8% 5%, rgba(57, 185, 200, .08), transparent 24rem),
        linear-gradient(180deg, var(--surface), var(--bg));
}

.hero-section--saas::before {
    position: absolute;
    z-index: -1;
    top: -240px;
    inset-inline-end: -110px;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--primary) 13%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 44px color-mix(in srgb, var(--primary) 2%, transparent), 0 0 0 88px color-mix(in srgb, var(--primary) 1.5%, transparent);
    content: "";
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
    max-width: 590px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .85px;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-section--saas .eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 12%, transparent);
    content: "";
}

.hero-copy h1 {
    max-width: 720px;
    margin: 22px 0 18px;
    color: var(--text);
    font-size: clamp(44px, 5vw, 66px);
    font-weight: 800;
    letter-spacing: -2.8px;
    line-height: 1.06;
}

html[lang="ar"] .hero-copy h1 {
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: 0;
    line-height: 1.42;
}

.hero-section--saas .hero-copy h1 {
    background: linear-gradient(105deg, var(--text) 5%, var(--primary) 75%, #51b6d1);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.hero-proof::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #33b889;
    box-shadow: 0 0 0 4px rgba(51, 184, 137, .12);
    content: "";
}

.hero-bottom-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 26px);
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero-bottom-line i,
.contact-signature span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);
}

/* Product preview */
.home-product-preview {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 470px;
    place-items: center;
    isolation: isolate;
}

.preview-glow {
    position: absolute;
    z-index: -1;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(53, 140, 228, .2), rgba(66, 195, 201, .07) 45%, transparent 72%);
    filter: blur(22px);
}

.preview-orbit {
    position: absolute;
    z-index: -1;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    border-radius: 50%;
}

.preview-orbit--one { width: min(96%, 470px); }
.preview-orbit--two { width: min(78%, 365px); border-color: color-mix(in srgb, var(--cyan) 21%, transparent); }

.preview-window {
    position: relative;
    width: min(100%, 550px);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    border: 1px solid #d8e2ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 34px 85px rgba(25, 59, 102, .2), 0 8px 24px rgba(20, 63, 116, .08);
    transition: transform .4s ease, box-shadow .4s ease;
}

.home-product-preview:hover .preview-window {
    transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px);
    box-shadow: 0 42px 92px rgba(25, 59, 102, .23), 0 10px 28px rgba(20, 63, 116, .1);
}

.preview-window-bar {
    display: flex;
    height: 44px;
    align-items: center;
    gap: 12px;
    padding-inline: 14px;
    border-bottom: 1px solid #e7edf4;
    background: #fff;
}

.preview-brand,
.preview-sidebar-brand {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(145deg, #43c7c2, #506be0);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.preview-brand span,
.preview-sidebar-brand span { color: #d5fff8; }

.preview-window-address {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 5px;
    color: #8a98aa;
    font-size: 8px;
}

.preview-window-address i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3dbe5;
}

.preview-window-address span { margin-inline-start: 6px; }
.preview-window-menu { color: #8493a5; font-size: 13px; }

.preview-app {
    display: grid;
    min-height: 310px;
    grid-template-columns: 48px minmax(0, 1fr);
    background: #f6f8fb;
}

.preview-sidebar {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 13px 8px;
    background: #11213a;
}

.preview-sidebar > i {
    width: 15px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
}

.preview-sidebar > i.is-active { border-color: #73a9ff; background: #327bea; box-shadow: 0 4px 12px rgba(50, 123, 234, .4); }
.preview-sidebar-user { width: 17px; height: 17px; margin-top: auto; border-radius: 50%; background: linear-gradient(145deg, #8edfd7, #6480e8); }

.preview-dashboard {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.preview-dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-dashboard-heading div { display: grid; gap: 5px; }
.preview-dashboard-heading div span:first-child { width: 95px; height: 8px; border-radius: 5px; background: #243953; }
.preview-dashboard-heading div span:last-child { width: 135px; height: 5px; border-radius: 5px; background: #d1dbe6; }
.preview-dashboard-heading > i { width: 42px; height: 17px; border-radius: 6px; background: #e8f1ff; }

.preview-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-stat { display: grid; min-height: 54px; gap: 7px; padding: 9px; border: 1px solid #e5ebf2; border-radius: 9px; background: #fff; }
.preview-stat span { width: 45%; height: 4px; border-radius: 5px; background: #aab8c9; }
.preview-stat i { width: 55%; height: 9px; border-radius: 5px; background: #243953; }
.preview-stat b { width: 34%; height: 4px; border-radius: 5px; background: #76c7b0; }

.preview-chart-card { position: relative; min-height: 135px; overflow: hidden; padding: 12px; border: 1px solid #e5ebf2; border-radius: 10px; background: #fff; }
.preview-chart-heading { display: flex; align-items: center; justify-content: space-between; }
.preview-chart-heading i { width: 70px; height: 6px; border-radius: 4px; background: #40546e; }
.preview-chart-heading span { width: 46px; height: 12px; border-radius: 4px; background: #edf4fc; }
.preview-chart-heading b { width: 36px; height: 6px; border-radius: 4px; background: #d4deea; }
.preview-chart-grid { position: absolute; inset: 43px 12px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.preview-chart-grid span { border-top: 1px solid #edf1f6; }
.preview-chart-line { position: absolute; right: 14px; bottom: 24px; left: 14px; width: calc(100% - 28px); height: 76px; overflow: visible; }
.preview-chart-line path { fill: none; stroke: url(#previewLine); stroke-width: 4; stroke-linecap: round; }
.preview-chart-bars { position: absolute; right: 15px; bottom: 11px; left: 15px; display: flex; height: 26px; align-items: end; justify-content: space-between; opacity: .18; }
.preview-chart-bars i { width: 5%; height: 45%; border-radius: 3px 3px 0 0; background: #438af1; }
.preview-chart-bars i:nth-child(3n) { height: 90%; }
.preview-chart-bars i:nth-child(4n) { height: 65%; }
.preview-bottom-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-bottom-row > div { display: flex; height: 27px; align-items: center; gap: 6px; padding: 5px; border: 1px solid #e7edf4; border-radius: 7px; background: #fff; }
.preview-bottom-row i { width: 10px; height: 10px; border-radius: 4px; background: #dceaff; }
.preview-bottom-row span { width: 45%; height: 4px; border-radius: 4px; background: #aab8c9; }
.preview-bottom-row b { width: 18%; height: 4px; margin-inline-start: auto; border-radius: 4px; background: #8bd1b9; }

.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(210, 224, 240, .8);
    border-radius: 13px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.float-card-top { top: 15%; inset-inline-start: -2%; }
.float-card-bottom { right: 0; bottom: 12%; }
.float-card > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #eaf2ff; color: var(--primary); font-weight: 800; }
.float-card div { display: grid; line-height: 1.3; }
.float-card strong { color: var(--text); font-size: 11px; }
.float-card small { color: var(--muted); font-size: 9px; }

/* Sections and editorial hierarchy */
.section {
    padding-block: clamp(68px, 8vw, 104px);
}

.section-soft {
    background: color-mix(in srgb, var(--surface-soft) 72%, var(--bg));
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 390px);
    align-items: end;
    gap: 30px;
    margin-bottom: 36px;
}

.section-heading h2,
.about-copy h2 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: clamp(30px, 3.4vw, 43px);
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.2;
}

html[lang="ar"] .section-heading h2,
html[lang="ar"] .about-copy h2 {
    letter-spacing: 0;
    line-height: 1.45;
}

.section-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.card-grid,
.project-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(18px, 2.2vw, 26px);
}

.project-grid--featured,
.project-catalog-grid,
.blog-catalog-grid,
.services-catalog-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.project-grid--featured > .project-card {
    width: min(100%, 460px);
    max-width: 460px;
    flex: 1 1 340px;
}

.blog-grid--featured {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-grid--featured > .blog-card {
    width: min(100%, 360px);
    flex: 1 1 310px;
}

.project-catalog-grid > .project-card,
.blog-catalog-grid > .blog-card,
.services-catalog-grid > .service-card {
    width: min(100%, 360px);
    max-width: 360px;
    flex: 1 1 310px;
}

.project-catalog-grid > .project-card:only-child,
.blog-catalog-grid > .blog-card:only-child,
.services-catalog-grid > .service-card:only-child {
    width: min(100%, 520px);
    max-width: 520px;
    flex-basis: 520px;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.empty-state {
    display: grid;
    width: min(100%, 680px);
    max-width: 680px;
    flex: 1 1 100%;
    min-height: 170px;
    grid-column: 1 / -1;
    justify-self: center;
    place-items: center;
    padding: 30px;
    border: 1px dashed color-mix(in srgb, var(--primary) 28%, var(--line));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-soft) 66%, var(--surface));
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
}

.empty-state--catalog { min-height: 240px; }

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav > div:last-child { display: flex; align-items: center; gap: 5px; }
.pagination-wrap a,
.pagination-wrap span[aria-current="page"] > span,
.pagination-wrap span[aria-disabled="true"] > span {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-wrap span[aria-current="page"] > span {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap svg { width: 16px; height: 16px; }

.catalog-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.catalog-heading-mark { color: var(--primary); }
.catalog-heading-label i { color: var(--cyan); font-style: normal; }
.section--catalog { padding-block: 56px 92px; }

/* Service, project, and insight cards */
.service-card,
.project-card,
.blog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    box-shadow: var(--shadow-md);
}

.service-card {
    position: relative;
    display: flex;
    min-height: 265px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(23px, 2.6vw, 31px);
}

.service-card--catalog { min-height: 300px; }
.service-card-copy { flex: 1; }

.service-card-topline {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.service-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line));
    border-radius: 15px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface-soft));
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.card-index {
    color: color-mix(in srgb, var(--muted) 75%, transparent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-card h3,
.project-card h3,
.blog-card h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.35px;
    line-height: 1.4;
}

.service-card p,
.project-card p,
.blog-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.service-card--catalog .text-link {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.project-card,
.blog-card {
    display: flex;
    flex-direction: column;
}

.project-image,
.blog-image {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 1.55;
    place-items: center;
    background: linear-gradient(145deg, #fbfdff, #edf4fb);
}

.project-image img,
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.project-image img { object-fit: contain; padding: clamp(16px, 3vw, 28px); }

.project-card:hover .project-image img,
.blog-card:hover .blog-image img {
    transform: scale(1.035);
}

.project-content,
.blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(20px, 2.3vw, 26px);
}

.project-meta,
.post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface-soft));
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
}

.project-content h3 a,
.blog-content h3 a { transition: color .18s ease; }
.project-content h3 a:hover,
.blog-content h3 a:hover { color: var(--primary); }
.blog-content .text-link { margin-top: auto; }

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        radial-gradient(circle at 68% 32%, rgba(82, 157, 246, .16), transparent 34%),
        linear-gradient(145deg, #f5f9ff, #eaf1fa);
    color: var(--primary);
    font-size: 54px;
    font-weight: 800;
}

/* About and closing call to action */
.about-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 84% 12%, rgba(50, 135, 210, .2), transparent 31rem),
        linear-gradient(120deg, #0b1a2f, #102442 62%, #17294b);
    color: #f5f8ff;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(38px, 7vw, 100px);
}

.about-art {
    position: relative;
    display: grid;
    min-height: clamp(270px, 34vw, 410px);
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(193, 220, 255, .17);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 50%, rgba(60, 150, 218, .2), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015));
    box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 25px 60px rgba(0, 0, 0, .18);
}

.about-art::before,
.about-art::after {
    position: absolute;
    width: 66%;
    aspect-ratio: 1;
    border: 1px solid rgba(160, 205, 248, .2);
    border-radius: 50%;
    content: "";
}

.about-art::after { width: 84%; border-color: rgba(160, 205, 248, .11); }

.about-big-q {
    position: relative;
    z-index: 1;
    color: #f4f8ff;
    font-size: clamp(150px, 18vw, 220px);
    font-weight: 800;
    letter-spacing: -14px;
    line-height: 1;
}

.about-big-q span { color: #55cdd0; }
.about-copy .eyebrow { border-color: rgba(120, 190, 255, .22); background: rgba(46, 89, 139, .22); color: #b5dcff; }
.about-copy h2 { color: #f4f8ff; }
.about-copy > p { max-width: 620px; color: #bdc9d8; line-height: 2; }

.about-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.about-points > div {
    display: grid;
    gap: 8px;
    padding: 13px 14px;
    border: 1px solid rgba(180, 207, 238, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.about-points span { color: #6ad2d1; font-size: 10px; font-weight: 800; }
.about-points strong { color: #edf4ff; font-size: 11px; font-weight: 650; }

.cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(50px, 6vw, 76px);
    background: linear-gradient(115deg, #1260d6, #174fb5 60%, #263f9c);
    color: #fff;
}

.cta-section::after {
    position: absolute;
    z-index: -1;
    top: -190px;
    inset-inline-end: -100px;
    width: 440px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, .04), 0 0 0 78px rgba(255, 255, 255, .025);
    content: "";
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-inner h2 { margin: 12px 0 8px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.cta-inner p { max-width: 620px; margin: 0; color: rgba(245, 249, 255, .8); }
.cta-section .eyebrow { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #eaf3ff; }
.cta-section .button-outline { border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .08); color: #fff; }
.cta-section .button-outline:hover { background: rgba(255, 255, 255, .16); }

/* Catalog and detail page hero */
.page-hero--catalog,
.page-hero--detail {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(56px, 7vw, 88px);
    background:
        radial-gradient(ellipse at 82% 35%, rgba(54, 146, 226, .11), transparent 28rem),
        radial-gradient(ellipse at 10% 10%, rgba(57, 185, 200, .07), transparent 23rem),
        linear-gradient(180deg, var(--surface), var(--bg));
}

.page-hero--catalog::before,
.page-hero--detail::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(color-mix(in srgb, var(--primary) 4%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary) 4%, transparent) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 92%, transparent);
}

.page-hero-layout {
    display: grid;
    min-height: 300px;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(26px, 5vw, 64px);
}

.page-hero-copy { position: relative; z-index: 1; max-width: 590px; }
.page-hero-copy h1 { margin: 16px 0 12px; color: var(--text); font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -2px; line-height: 1.12; }
.page-hero-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--primary); }
.detail-category { width: fit-content; margin: 16px 0 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 700; }

/* Dashboard-like illustrations used on interior pages */
.tech-visual {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 340px;
    place-items: center;
    isolation: isolate;
}

.tech-visual-orbit {
    position: absolute;
    z-index: -1;
    aspect-ratio: 1;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    border-radius: 50%;
}

.tech-visual-orbit--outer { width: min(100%, 420px); }
.tech-visual-orbit--inner { width: min(78%, 330px); border-color: color-mix(in srgb, var(--cyan) 20%, transparent); }

.tech-panel {
    width: min(100%, 550px);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-3deg);
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(21, 53, 91, .18);
    color: #15263d;
}

.tech-panel-topbar { display: flex; height: 42px; align-items: center; gap: 10px; padding-inline: 14px; border-bottom: 1px solid #e9eef5; }
.tech-panel-brand { color: #1768e8; font-size: 18px; font-weight: 850; }
.tech-panel-brand span { color: #41bfc2; }
.tech-panel-address { flex: 1; color: #7b8a9d; font-size: 7px; font-weight: 750; letter-spacing: 1px; }
.tech-panel-address i { color: #39b9c8; font-style: normal; }
.tech-panel-status { color: #25a782; font-size: 7px; font-weight: 800; letter-spacing: .6px; }
.tech-panel-status i { display: inline-block; width: 5px; height: 5px; margin-inline-end: 4px; border-radius: 50%; background: currentColor; }
.tech-panel-main { display: grid; min-height: 255px; grid-template-columns: 42px minmax(0, 1fr); background: #f5f8fc; }
.tech-panel-rail { display: flex; align-items: center; flex-direction: column; gap: 13px; padding: 12px 7px; background: #13243c; }
.tech-rail-mark { color: #fff; font-size: 10px; font-weight: 800; }
.tech-panel-rail > i { width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.tech-panel-rail > i.is-active { border-color: #73aaff; background: #327bea; }
.tech-rail-bottom { width: 15px; height: 15px; margin-top: auto; border-radius: 50%; background: linear-gradient(145deg, #75d5cb, #5684e7); }
.tech-panel-workspace { min-width: 0; padding: 15px; }
.tech-workspace-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.tech-workspace-heading > div { display: grid; gap: 3px; }
.tech-workspace-heading small { color: #8291a5; font-size: 6px; font-weight: 750; letter-spacing: .8px; }
.tech-workspace-heading strong { color: #1d3452; font-size: 10px; }
.tech-workspace-menu { color: #8291a5; font-size: 12px; }
.tech-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.tech-metric { display: grid; gap: 6px; padding: 9px; border: 1px solid #e4ebf3; border-radius: 8px; background: #fff; }
.tech-metric > span { color: #8b99aa; font-size: 6px; font-weight: 750; letter-spacing: .6px; }
.tech-metric strong { color: #203653; font-size: 13px; }
.tech-meter { display: block; height: 3px; border-radius: 3px; background: #dbe8f7; }
.tech-meter--long { width: 75%; background: linear-gradient(90deg, #3484ed, #43c2c7); }
.tech-meter--mid { width: 54%; background: linear-gradient(90deg, #43c2c7, #76cba9); }
.tech-graph { position: relative; min-height: 100px; overflow: hidden; padding: 9px; border: 1px solid #e4ebf3; border-radius: 8px; background: #fff; }
.tech-graph-heading { display: flex; justify-content: space-between; color: #6e7e93; font-size: 6px; font-weight: 750; }
.tech-graph-heading i { color: #2cae8b; font-style: normal; }
.tech-graph-lines { position: absolute; inset: 31px 9px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.tech-graph-lines i { border-top: 1px solid #edf1f5; }
.tech-graph-bars { position: absolute; right: 13px; bottom: 10px; left: 13px; display: flex; height: 44px; align-items: end; justify-content: space-between; opacity: .4; }
.tech-graph-bars i { width: 5%; height: 45%; border-radius: 3px 3px 0 0; background: #4888e5; }
.tech-graph-bars i:nth-child(3n) { height: 88%; }
.tech-graph-bars i:nth-child(4n) { height: 65%; }
.tech-node-map { position: absolute; right: 7%; bottom: 8%; width: 28%; height: 26%; border: 1px solid #e4ebf3; border-radius: 9px; background: rgba(255,255,255,.94); }
.tech-node-map-label { position: absolute; top: 7px; left: 8px; color: #8391a3; font-size: 5px; font-weight: 800; letter-spacing: .6px; }
.tech-node { position: absolute; z-index: 1; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: #3386ed; box-shadow: 0 0 0 3px rgba(51,134,237,.15); }
.tech-node--one { top: 46%; left: 24%; }
.tech-node--two { top: 62%; left: 58%; background: #3cbeb7; box-shadow: 0 0 0 3px rgba(60,190,183,.15); }
.tech-node--three { top: 32%; left: 76%; }
.tech-node-link { position: absolute; height: 1px; transform-origin: left; background: #a9c4e7; }
.tech-node-link--one { top: 58%; left: 29%; width: 34%; transform: rotate(18deg); }
.tech-node-link--two { top: 65%; left: 63%; width: 28%; transform: rotate(-36deg); }
.tech-visual-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid #dce6f1; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); font-size: 7px; font-weight: 800; letter-spacing: .45px; }
.tech-visual-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.tech-visual-tag--one { top: 10%; inset-inline-start: 0; }
.tech-visual-tag--two { right: 0; bottom: 8%; }

/* Detail content */
.section--detail { padding-top: clamp(52px, 6vw, 78px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); align-items: start; gap: clamp(28px, 5vw, 68px); }
.detail-content { max-width: 820px; padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-content { color: var(--muted); font-size: 15px; line-height: 2.05; overflow-wrap: anywhere; }
.prose-content > :first-child { margin-top: 0; }
.prose-content > :last-child { margin-bottom: 0; }
.prose-content h2,
.prose-content h3,
.prose-content h4 { color: var(--text); }
.article-aside { position: sticky; top: 105px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.article-aside .eyebrow { font-size: 9px; letter-spacing: .6px; }
.article-aside h2 { margin: 18px 0 9px; color: var(--text); font-size: 24px; line-height: 1.35; }
.article-aside p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.article-aside .button { width: 100%; margin-top: 20px; }
.detail-cover--hero { display: grid; width: min(100%, 520px); min-height: 280px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); }
.detail-cover--hero img { width: 100%; height: 100%; max-height: 390px; object-fit: contain; padding: 18px; }
.page-hero-media { display: grid; min-width: 0; place-items: center; }
.article-layout--detail .detail-content { width: 100%; }
.post-detail--editorial { max-width: 920px; }
.post-detail--editorial .detail-content { max-width: none; padding: clamp(28px, 5vw, 60px); }
.post-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px 0; color: var(--muted); font-size: 12px; font-weight: 700; }

/* Contact form */
.contact-section { background: var(--surface-soft); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(36px, 7vw, 92px); }
.contact-intro { position: sticky; top: 110px; }
.contact-symbol { display: grid; width: 66px; height: 66px; place-items: center; margin-block: 24px; border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--primary) 7%, var(--surface)); box-shadow: var(--shadow-sm); color: var(--primary); font-size: 30px; font-weight: 850; }
.contact-intro h2 { margin: 0 0 10px; color: var(--text); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.contact-intro > p { max-width: 420px; color: var(--muted); line-height: 1.9; }
.contact-signature { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.contact-signature i { color: var(--primary); font-style: normal; }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md); }
.contact-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-form-heading h2 { margin: 8px 0 0; color: var(--text); font-size: 23px; line-height: 1.3; }
.contact-form-code { color: color-mix(in srgb, var(--primary) 16%, var(--surface-soft)); font-size: 54px; font-weight: 850; letter-spacing: -5px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-field { display: grid; min-width: 0; gap: 7px; }
.form-field label { color: var(--text); font-size: 12px; font-weight: 750; }
.form-field input,
.form-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.form-field input { min-height: 46px; padding: 10px 12px; }
.form-field textarea { min-height: 150px; padding: 12px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); outline: 0; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.field-error { color: #d84242; font-size: 11px; font-weight: 650; }
.contact-form > .button { justify-self: start; }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding-top: 54px; background: var(--footer); color: #eef4fc; }
.site-footer::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(57,185,200,.6), rgba(69,126,229,.55), transparent); content: ""; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(140px, .6fr) minmax(220px, .9fr); gap: clamp(30px, 6vw, 82px); padding-bottom: 42px; }
.brand-light .brand-copy strong { color: #f3f7ff; }
.brand-light .brand-copy small { color: #9cacc0; }
.footer-brand p,
.footer-cta p { max-width: 390px; color: #aab8ca; font-size: 13px; line-height: 1.85; }
.footer-links,
.footer-cta { display: flex; align-items: flex-start; flex-direction: column; gap: 11px; }
.footer-links h2,
.footer-cta h2 { margin: 5px 0 4px; color: #f2f6fc; font-size: 13px; font-weight: 800; }
.footer-links a { color: #b7c4d4; font-size: 12px; }
.footer-links a:hover,
.footer-cta .text-link:hover { color: #70ded4; }
.footer-cta .text-link { color: #82b7ff; }
.footer-bottom { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(170,194,216,.14); color: #93a3b7; font-size: 10px; }

/* 404 */
.not-found-section { display: grid; min-height: min(780px, calc(100svh - 78px)); place-items: center; padding-block: 60px; background: var(--bg); }
.not-found-container { display: grid; place-items: center; }
.not-found-card { width: min(100%, 660px); padding: clamp(28px, 6vw, 60px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-md); text-align: center; }
.not-found-art { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 17px; color: color-mix(in srgb, var(--primary) 18%, var(--surface-soft)); font-size: clamp(80px, 15vw, 132px); font-weight: 850; letter-spacing: -8px; line-height: 1; }
.not-found-question { color: var(--primary); animation: not-found-float 3.8s ease-in-out infinite; }
.not-found-eyebrow { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: 1.2px; }
.not-found-card h1 { margin: 10px 0; color: var(--text); font-size: clamp(30px, 5vw, 42px); }
.not-found-copy { max-width: 440px; margin: 0 auto; color: var(--muted); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.not-found-note { display: block; margin-top: 24px; color: var(--muted); font-size: 11px; }
.not-found-card .button-outline { background: var(--surface); }

/* Motion */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.card-grid > .reveal:nth-child(2),
.project-grid > .reveal:nth-child(2),
.blog-grid > .reveal:nth-child(2) { transition-delay: .07s; }
.card-grid > .reveal:nth-child(3),
.project-grid > .reveal:nth-child(3),
.blog-grid > .reveal:nth-child(3) { transition-delay: .14s; }
@keyframes not-found-float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

/* Responsive */
@media (max-width: 1050px) {
    .nav-wrap { gap: 18px; }
    .main-nav { gap: 17px; }
    .hero-layout { gap: 28px; }
    .home-product-preview { min-height: 400px; }
    .page-hero-layout { gap: 28px; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 40px, 680px); }
    .nav-wrap { min-height: 72px; }
    .nav-toggle { display: grid; order: 3; }
    .nav-tools { order: 2; gap: 9px; }
    .main-nav { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 4px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); }
    .main-nav.is-open { display: flex; }
    .main-nav a:not(.nav-contact) { padding: 11px 12px; border-radius: 9px; }
    .main-nav a:not(.nav-contact)::after { display: none; }
    .main-nav a:not(.nav-contact):hover,
    .main-nav a:not(.nav-contact).is-current { background: var(--surface-soft); }
    .main-nav .nav-contact { text-align: center; }
    .hero-layout,
    .page-hero-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-copy { max-width: 650px; }
    .home-product-preview { width: min(100%, 610px); min-height: 400px; margin-inline: auto; }
    .hero-bottom-line { margin-top: 18px; }
    .page-hero-layout { min-height: 0; }
    .tech-visual { min-height: 320px; }
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-aside,
    .contact-intro { position: static; }
    .article-aside { max-width: 560px; }
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .contact-intro { max-width: 600px; }
    .about-layout { grid-template-columns: minmax(0, 1fr); }
    .about-art { min-height: 280px; }
    .footer-main { grid-template-columns: minmax(0, 1fr) minmax(130px, .7fr); }
    .footer-cta { grid-column: 1 / -1; }
    .card-grid,
    .project-grid:not(.project-grid--featured):not(.project-catalog-grid),
    .blog-grid:not(.blog-catalog-grid):not(.blog-grid--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 32px); }
    .nav-wrap { gap: 9px; }
    .brand { gap: 8px; }
    .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 21px; }
    .brand-copy strong { font-size: 13px; }
    .brand-copy small { font-size: 7px; letter-spacing: 1.6px; }
    .nav-tools { gap: 6px; }
    .theme-toggle,
    .nav-toggle { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
    .language-switch { font-size: 10px; }
    .hero-section--saas { padding-block: 52px 22px; }
    .hero-copy h1 { margin-block: 17px 14px; font-size: clamp(39px, 10vw, 52px); letter-spacing: -1.8px; }
    html[lang="ar"] .hero-copy h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.42; }
    .hero-lead { font-size: 14px; }
    .hero-actions { gap: 9px; margin-top: 21px; }
    .button { min-height: 43px; padding: 10px 14px; font-size: 12px; }
    .home-product-preview { min-height: 300px; }
    .preview-window { transform: none; border-radius: 14px; }
    .preview-app { min-height: 245px; }
    .preview-dashboard { gap: 8px; padding: 11px; }
    .preview-chart-card { min-height: 110px; }
    .float-card { padding: 9px; }
    .float-card-top { top: 2%; inset-inline-start: -1%; }
    .float-card-bottom { right: -1%; bottom: 1%; }
    .float-card > span { width: 27px; height: 27px; }
    .float-card strong { font-size: 9px; }
    .float-card small { font-size: 8px; }
    .hero-bottom-line { flex-wrap: wrap; gap: 9px; font-size: 8px; letter-spacing: 1px; }
    .section { padding-block: 60px; }
    .section-heading { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 25px; }
    .section-heading h2,
    .about-copy h2 { font-size: 31px; letter-spacing: -.8px; }
    html[lang="ar"] .section-heading h2,
    html[lang="ar"] .about-copy h2 { letter-spacing: 0; }
    .card-grid,
    .project-grid:not(.project-grid--featured):not(.project-catalog-grid),
    .blog-grid:not(.blog-catalog-grid):not(.blog-grid--featured) { grid-template-columns: minmax(0, 1fr); }
    .project-grid--featured > .project-card,
    .project-catalog-grid > .project-card,
    .blog-catalog-grid > .blog-card,
    .services-catalog-grid > .service-card { width: 100%; max-width: 430px; flex-basis: 100%; }
    .service-card { min-height: 0; }
    .page-hero--catalog,
    .page-hero--detail { padding-block: 46px 36px; }
    .page-hero-copy h1 { font-size: clamp(35px, 9vw, 46px); letter-spacing: -1.2px; }
    html[lang="ar"] .page-hero-copy h1 { letter-spacing: 0; line-height: 1.42; }
    .tech-visual { min-height: 260px; }
    .tech-panel { transform: none; }
    .tech-node-map { display: none; }
    .section--catalog { padding-block: 42px 65px; }
    .catalog-heading { margin-bottom: 18px; font-size: 9px; }
    .detail-content { padding: 22px; border-radius: 16px; }
    .prose-content { font-size: 14px; }
    .article-aside { padding: 22px; }
    .contact-form { padding: 21px; border-radius: 17px; }
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .contact-form > .button { width: 100%; }
    .about-points { grid-template-columns: minmax(0, 1fr); }
    .about-art { min-height: 230px; }
    .about-big-q { font-size: 150px; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .cta-inner .button { align-self: stretch; }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .footer-cta { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 14px; }
    .not-found-section { min-height: calc(100svh - 72px); }
    .not-found-card { border-radius: 20px; }
    .not-found-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

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