:root {
    color-scheme: dark;
    --bg: #080b0f;
    --bg-soft: #10161d;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.13);
    --border: rgba(255, 255, 255, 0.14);
    --text: #f8fafc;
    --muted: #a8b3c2;
    --brand: #0b4f82;
    --brand-bright: #1279bd;
    --accent: #f59e0b;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --card-shadow: none;
    --radius: 8px;
    --container: min(1180px, calc(100vw - 32px));
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f8fb;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --border: rgba(11, 79, 130, 0.13);
    --text: #0d1722;
    --muted: #536273;
    --shadow: 0 24px 70px rgba(11, 79, 130, 0.13);
    --card-shadow: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(11, 79, 130, 0.14), transparent 34rem),
        linear-gradient(90deg, rgba(245, 158, 11, 0.06), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

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

img,
video,
iframe {
    max-width: 100%;
}

.page-aura {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 50;
    width: var(--container);
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(-150%);
}

@keyframes headerSlideDown {
    to {
        transform: translateY(0);
    }
}


.brand {
    display: inline-flex;
    align-items: center;
    min-width: 122px;
}

.brand img {
    width: 142px;
    height: auto;
    display: block;
}

.brand .logo-dark,
.footer-brand .logo-dark {
    display: none !important;
}

html[data-theme="dark"] .brand .logo-light,
html[data-theme="dark"] .footer-brand .logo-light {
    display: none !important;
}

html[data-theme="dark"] .brand .logo-dark,
html[data-theme="dark"] .footer-brand .logo-dark {
    display: block !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.main-nav a,
.language-link {
    padding: 9px 13px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: var(--radius);
    transition: 180ms ease;
}

.main-nav a:hover,
.language-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-strong);
    color: var(--text);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: 180ms ease;
}

.icon-button {
    font-size: 1.1rem;
    font-weight: 900;
}

.icon-button:hover,
.menu-button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand-bright), var(--border) 35%);
}

.theme-sun {
    display: none;
}

.theme-moon {
    display: inline;
}

html[data-theme="dark"] .theme-sun {
    display: inline;
}

html[data-theme="dark"] .theme-moon {
    display: none;
}

.menu-button {
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    background: currentColor;
    display: block;
    border-radius: 99px;
}

.menu-button span:nth-child(2) {
    background: var(--accent);
    width: 12px;
}

.menu-button span:nth-child(4) {
    display: none;
}

.mobile-nav {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 900;
    border: 1px solid transparent;
    transition: 190ms ease;
    cursor: pointer;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    box-shadow: 0 16px 42px rgba(11, 79, 130, 0.28);
}

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

.hero-section {
    position: relative;
    min-height: clamp(640px, 92vh, 880px);
    display: grid;
    place-items: center;
    padding: 112px 16px 72px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(11, 79, 130, 0.28), transparent 46%),
        linear-gradient(260deg, rgba(245, 158, 11, 0.2), transparent 48%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    opacity: 0.72;
}

.hero-content {
    position: relative;
    width: min(960px, 100%);
    text-align: center;
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-content h1,
.section-heading h2,
.cta-band h2,
.detail-hero h1,
.not-found h1 {
    margin: 14px 0;
    line-height: 1.18;
    letter-spacing: 0;
}

.hero-content h1 {
    font-size: clamp(2.35rem, 7vw, 5.7rem);
    font-weight: 900;
}

.hero-content p,
.section-heading p,
.cta-band p,
.detail-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.95;
}

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

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
}

.hero-metrics span {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 900;
}

.hero-metrics small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 88px 0;
}

.first-section {
    padding-top: 64px;
}

.catalog-section {
    min-height: 62vh;
}

.section-soft {
    position: relative;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    font-weight: 800;
}

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

.solution-card {
    min-height: 248px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(140deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transition: 220ms ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
}

.solution-card a {
    min-height: 248px;
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.08));
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
    color: var(--text);
    font-weight: 900;
}

.card-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.card-arrow {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
}

.card-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 18px 0 2px;
    border: 1px solid var(--border);
}

.solution-card h3 {
    margin: 14px 0 8px;
    font-size: 1.12rem;
    line-height: 1.45;
}

.solution-card p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

.solution-card strong {
    margin-top: auto;
    width: fit-content;
    padding: 8px 13px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
    color: var(--accent);
    font-size: 0.92rem;
}

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

.partner-card {
    min-height: 112px;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.partner-card img {
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.82;
    transition: 180ms ease;
}

.partner-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

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

.about-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.about-card span {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.about-card h3 {
    margin: 10px 0;
    font-size: 1.24rem;
}

.about-card p,
.detail-content p {
    color: var(--muted);
    line-height: 2;
}

.about-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.cta-band {
    width: var(--container);
    margin: 36px auto 96px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(11, 79, 130, 0.24), rgba(245, 158, 11, 0.12)),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    padding: 64px 0 32px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: block;
    width: 140px;
    height: auto;
}

.footer-brand p {
    max-width: 380px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong,
.footer-contact strong {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.footer-links a:hover {
    color: var(--brand-bright);
}

.footer-link-icon {
    font-size: 1.25rem;
    color: var(--muted);
    display: grid;
    place-items: center;
    transition: color 0.3s ease;
}

.footer-links a:hover .footer-link-icon {
    color: var(--brand-bright);
}

.footer-contact span,
.footer-contact a.contact-line {
    color: var(--muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.footer-contact a.contact-line:hover {
    color: var(--brand-bright);
}

.footer-bottom {
    width: var(--container);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom .muted {
    margin: 0;
}

.detail-hero {
    width: var(--container);
    margin: 66px auto 0;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--muted);
    font-weight: 900;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 32px;
    align-items: center;
}

.detail-hero h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
    max-width: 900px;
}

.detail-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-icon {
    width: 220px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
    font-size: 3rem;
    font-weight: 900;
}

.detail-icon img {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.detail-layout {
    width: var(--container);
    margin: 34px auto 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.detail-content,
.media-panel,
.links-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.detail-content {
    padding: clamp(24px, 5vw, 42px);
}

.detail-content p:first-child {
    font-size: 1.18rem;
    color: var(--text);
}

.detail-media-stack {
    display: grid;
    gap: 18px;
}

.media-panel {
    padding: 14px;
}

.media-panel figcaption,
.links-panel h2 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
}

.detail-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    background: #000;
    display: block;
}

.video-frame.portrait {
    aspect-ratio: 9 / 16;
    max-height: 720px;
    object-fit: cover;
}

.links-panel {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.links-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 800;
}

.empty-state,
.not-found {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
}

.not-found {
    width: min(760px, calc(100vw - 32px));
    margin: 100px auto;
    text-align: center;
}

.not-found h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .site-header {
        top: 8px;
        width: min(100vw - 16px, 760px);
    }

    .main-nav {
        display: none;
    }

    .menu-button {
        display: inline-grid;
    }

    .mobile-nav {
        position: fixed;
        inset-inline: 12px;
        top: 82px;
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface-strong);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        z-index: 80;
    }

    .mobile-nav.is-open {
        display: grid;
    }

    .mobile-nav a {
        padding: 12px;
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.05);
        font-weight: 900;
    }

    .cards-grid,
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-hero-grid,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-icon {
        width: 100%;
        max-width: 260px;
    }

    .cta-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 22px, 520px);
    }

    .site-header {
        padding: 8px;
    }

    .brand img {
        width: 96px;
    }

    .language-link {
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    .icon-button,
    .menu-button {
        width: 38px;
        height: 38px;
    }

    .hero-section {
        min-height: auto;
        padding: 76px 11px 42px;
    }

    .hero-content {
        padding: 24px 16px;
    }

    .hero-metrics,
    .cards-grid,
    .about-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .solution-card,
    .solution-card a {
        min-height: 258px;
    }

    .footer-grid {
        gap: 22px;
        text-align: center;
        padding: 18px;
    }

    .footer-logo {
        margin-inline: auto;
    }

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

    .footer-contact {
        justify-items: center;
    }

    .footer-contact .button {
        width: 100%;
    }

    .site-footer {
        padding: 28px 0 24px;
    }
}

/* Final ROOT polish pass */
.logo-dark {
    display: none !important;
}

html[data-theme="light"] .logo-light {
    display: block !important;
}

html[data-theme="light"] .logo-dark {
    display: none !important;
}

html[data-theme="dark"] .logo-light {
    display: none !important;
}

html[data-theme="dark"] .logo-dark {
    display: block !important;
}

.site-header {
    box-shadow: 0 18px 54px rgba(11, 79, 130, 0.1);
}

.icon-button,
.menu-button {
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(11, 79, 130, 0.08), rgba(245, 158, 11, 0.06)),
        var(--surface-strong);
}

.icon-button .theme-sun,
.icon-button .theme-moon {
    position: relative;
    width: 18px;
    height: 18px;
    display: none;
}

.icon-button .theme-moon {
    display: block;
}

.icon-button .theme-moon::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    inset: 1px;
    border-radius: 50%;
    box-shadow: -5px 0 0 0 currentColor;
    transform: translateX(5px);
}

.icon-button .theme-sun::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    inset: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 -8px 0 -4px currentColor,
        0 8px 0 -4px currentColor,
        8px 0 0 -4px currentColor,
        -8px 0 0 -4px currentColor,
        6px 6px 0 -4px currentColor,
        -6px 6px 0 -4px currentColor,
        6px -6px 0 -4px currentColor,
        -6px -6px 0 -4px currentColor;
}

html[data-theme="dark"] .icon-button .theme-sun {
    display: block;
}

html[data-theme="dark"] .icon-button .theme-moon {
    display: none;
}

.menu-button {
    gap: 4px;
}

.menu-button span {
    justify-self: center;
    width: 18px;
    height: 2px;
}

.menu-button span:first-child,
.menu-button span:nth-child(3) {
    width: 20px;
}

.menu-button span:nth-child(2) {
    width: 13px;
    background: var(--accent);
}

.menu-button span:nth-child(4) {
    display: none;
}

.section-heading {
    max-width: 840px;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading h2 {
    line-height: 1.28;
    font-weight: 800;
}

.cards-grid {
    gap: 16px;
}

.solution-card {
    min-height: 220px;
    box-shadow: none !important;
}

.solution-card a {
    min-height: 220px;
    padding: 16px;
}

.solution-card .card-cover {
    display: none;
}

.solution-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
}

.solution-card p {
    font-size: 0.96rem;
}

.solution-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, var(--brand)));
}

.solution-card strong::after {
    content: "";
    width: 7px;
    height: 7px;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(-45deg);
}

.about-hero {
    max-width: 980px;
    margin: 0 auto 22px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(11, 79, 130, 0.12), rgba(245, 158, 11, 0.08)),
        var(--surface-strong);
    text-align: center;
    box-shadow: none;
}

.about-hero h1 {
    margin: 12px 0;
    font-size: clamp(2rem, 4.8vw, 4.4rem);
    line-height: 1.2;
}

.about-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.95;
}

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

.about-stats span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-stats strong {
    color: var(--accent);
    font-size: 1.3rem;
}

.about-stats small {
    color: var(--muted);
    font-weight: 800;
}

.about-card,
.partner-card,
.detail-content,
.media-panel,
.links-panel {
    box-shadow: none;
}

.site-footer {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand-bright);
    background: transparent;
    border-color: transparent;
}

.detail-hero {
    margin-top: 34px;
    box-shadow: none;
}

.detail-copy {
    display: grid;
    justify-items: start;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.detail-badges span {
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

.detail-showcase {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.detail-showcase small {
    max-width: 220px;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
    line-height: 1.7;
}

.detail-icon {
    width: 190px;
    font-size: 2.55rem;
}

.detail-hero h1 {
    font-size: clamp(2rem, 4.6vw, 4.25rem);
    font-weight: 800;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

@media (max-width: 640px) {
    .site-header {
        top: 7px;
        width: calc(100vw - 14px);
        min-height: 70px;
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr) 96px;
        gap: 6px;
        padding: 7px;
        direction: ltr;
    }

    .site-header::after {
        content: "";
        display: block;
        grid-column: 3;
        grid-row: 1;
    }

    .brand {
        min-width: 0;
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }

    .brand img {
        width: min(190px, 50vw);
    }

    .header-actions {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        gap: 7px;
        direction: ltr;
    }

    .language-link {
        display: none;
    }

    .icon-button,
    .menu-button {
        width: 42px;
        height: 42px;
    }

    .mobile-nav {
        top: 86px;
        inset-inline: 8px;
        text-align: center;
    }

    .section-heading {
        max-width: 100%;
        margin-bottom: 22px;
        padding-inline: 2px;
    }

    .section-heading h2 {
        font-size: clamp(1.65rem, 8.4vw, 2.35rem);
    }

    .section-heading p {
        font-size: 1rem;
        line-height: 1.85;
    }

    .solution-card,
    .solution-card a {
        min-height: auto;
    }

    .solution-card a {
        text-align: start;
    }

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

    .about-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.55rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
        padding: 0 16px;
    }

    .footer-brand, .footer-links, .footer-contact {
        align-items: center;
    }

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

    .footer-links strong::after,
    .footer-contact strong::after,
    html[dir="rtl"] .footer-links strong::after,
    html[dir="rtl"] .footer-contact strong::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 16px;
        margin-top: 32px;
    }

    .detail-hero {
        margin-top: 12px;
        padding: 22px 16px;
        text-align: center;
    }

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

    .detail-hero-grid {
        gap: 22px;
        justify-items: center;
    }

    .detail-copy {
        justify-items: center;
    }

    .detail-hero h1 {
        font-size: clamp(2rem, 10vw, 3.05rem);
        line-height: 1.2;
    }

    .detail-actions,
    .detail-badges {
        justify-content: center;
    }

    .detail-icon {
        width: min(190px, 100%);
    }

    .detail-layout {
        margin-top: 18px;
        gap: 14px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

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

/* ROOT footer */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    padding: 0;
    border-top: 0;
    background: #061522;
    color: #f7fbff;
}

html[data-theme="dark"] .site-footer {
    background: #030b12;
}

.site-footer::before {
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0 28%, #1279bd 28% 100%);
}

.footer-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 42px 0 24px;
}

.footer-primary {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 34px;
    padding-bottom: 28px;
}

.footer-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.footer-logo {
    width: 152px;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
}

.footer-identity strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.footer-identity p {
    max-width: 520px;
    margin: 6px 0 0;
    color: #a9bac9;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-callout {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding-inline-start: 26px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-callout span {
    color: #c6d3de;
    font-weight: 800;
}

.footer-callout a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid rgba(245, 158, 11, 0.58);
    border-radius: 7px;
    background: #f59e0b;
    color: #101820;
    font-weight: 900;
    transition: transform 180ms ease, background 180ms ease;
}

.footer-callout a:hover {
    transform: translateY(-2px);
    background: #ffb22f;
}

.footer-callout i {
    font-size: 1.2rem;
}

.footer-link-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-link-bar a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #c7d4df;
    font-size: 0.88rem;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-link-bar a:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.footer-link-bar i {
    color: #f59e0b;
    font-size: 1.05rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    color: #8ea2b3;
    font-size: 0.82rem;
    font-weight: 700;
}

.footer-meta p {
    margin: 0;
}

.footer-contact-lines {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-contact-lines a,
.footer-contact-lines span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-contact-lines a:hover {
    color: #ffffff;
}

.footer-contact-lines i {
    color: #5fb3e7;
}

/* Development mode */
.development-page-body {
    min-height: 100svh;
    overflow-x: hidden;
    color: #f7fbff;
    background: #061522;
}

.development-page-body::before {
    display: none;
}

.development-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(91, 164, 211, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 164, 211, 0.15) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0 62%, transparent);
}

.development-page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 40px));
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.development-topbar {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.development-brand {
    display: inline-flex;
    align-items: center;
}

.development-brand img {
    width: 178px;
    max-height: 76px;
    object-fit: contain;
}

.development-language {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 7px;
    color: #cbd8e2;
    font-weight: 800;
}

.development-language:hover {
    border-color: rgba(245, 158, 11, 0.6);
    color: #ffffff;
}

.development-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    align-items: center;
    gap: clamp(40px, 8vw, 104px);
    padding: 72px 0;
}

.development-copy {
    max-width: 720px;
}

.development-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bcd0de;
    font-size: 0.86rem;
    font-weight: 900;
}

.development-status > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.13);
    animation: development-pulse 2s ease-in-out infinite;
}

.development-code {
    margin: 30px 0 8px;
    color: #5fb3e7;
    direction: ltr;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.development-copy h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.4rem);
    font-weight: 800;
    line-height: 1.15;
}

.development-message {
    max-width: 680px;
    margin: 24px 0 0;
    color: #adbfcc;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 2;
}

.development-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.development-primary-action,
.development-secondary-action {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 7px;
    font-weight: 900;
}

.development-primary-action {
    border: 1px solid #f59e0b;
    background: #f59e0b;
    color: #101820;
}

.development-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.17);
    color: #d8e3eb;
}

.development-primary-action:hover,
.development-secondary-action:hover {
    transform: translateY(-2px);
}

.development-system {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(95, 179, 231, 0.28);
    border-radius: 8px;
    background: rgba(7, 29, 45, 0.86);
    box-shadow: 18px 18px 0 rgba(245, 158, 11, 0.08);
}

.development-system::before {
    content: "";
    position: absolute;
    inset-inline-start: -1px;
    top: 24px;
    width: 4px;
    height: 82px;
    background: #f59e0b;
}

.development-system-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8fa6b7;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.development-system-head i {
    color: #5fb3e7;
    font-size: 1.35rem;
}

.development-system-mark {
    min-height: 210px;
    margin: 18px 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(rgba(95, 179, 231, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 179, 231, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

.development-system-mark span {
    color: #f59e0b;
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
}

.development-system-mark i {
    position: absolute;
    color: rgba(95, 179, 231, 0.54);
    font-size: 2rem;
    transform: translate(62px, 56px);
}

.development-system-list {
    display: grid;
    gap: 10px;
}

.development-system-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #bfd0dc;
    font-size: 0.9rem;
    font-weight: 800;
}

.development-system-list i {
    color: #4ade80;
    font-size: 1.05rem;
}

.development-footer {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: #7f96a7;
    font-size: 0.8rem;
    font-weight: 700;
}

@keyframes development-pulse {
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.03);
    }
}

@media (max-width: 820px) {
    .footer-primary,
    .development-main {
        grid-template-columns: 1fr;
    }

    .footer-primary {
        gap: 24px;
    }

    .footer-callout {
        padding-inline-start: 0;
        padding-top: 22px;
        border-inline-start: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .development-main {
        align-content: center;
        gap: 44px;
        padding: 54px 0;
    }

    .development-system {
        width: min(440px, 100%);
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 50px;
    }

    .footer-shell {
        padding: 34px 0 20px;
    }

    .footer-primary {
        text-align: center;
    }

    .footer-identity {
        flex-direction: column;
        gap: 12px;
    }

    .footer-identity p {
        margin-inline: auto;
    }

    .footer-callout {
        justify-items: center;
    }

    .footer-callout a {
        width: 100%;
    }

    .footer-link-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-link-bar a {
        justify-content: center;
        text-align: center;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .footer-meta,
    .footer-contact-lines {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-meta {
        gap: 16px;
    }

    .footer-contact-lines {
        align-items: center;
        gap: 10px;
    }

    .development-page {
        width: min(100% - 28px, 1180px);
    }

    .development-topbar {
        min-height: 90px;
    }

    .development-brand img {
        width: 142px;
        max-height: 62px;
    }

    .development-language {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    .development-main {
        padding: 42px 0;
        text-align: center;
    }

    .development-status,
    .development-actions {
        justify-content: center;
    }

    .development-copy h1 {
        font-size: clamp(2.1rem, 12vw, 3.3rem);
    }

    .development-message {
        font-size: 0.96rem;
    }

    .development-primary-action,
    .development-secondary-action {
        width: 100%;
    }

    .development-system {
        margin-inline: auto;
        text-align: start;
    }

    .development-system-mark {
        min-height: 180px;
    }

    .development-footer {
        min-height: 92px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        text-align: center;
    }
}

/* Refined navigation, detail pages, and ROOT footer */
.main-nav {
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.main-nav a {
    position: relative;
    padding: 10px 15px;
    border-radius: 0;
    background: transparent;
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 15px;
    bottom: 3px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--brand-bright));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.main-nav a:hover {
    color: var(--text);
    background: transparent;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    transform: scaleX(1);
}

.detail-hero {
    position: relative;
    margin-top: 48px;
    padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 5vw, 58px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-block: 1px solid var(--border);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
        linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, transparent), transparent);
}

.detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: clamp(34px, 7vw, 88px);
}

.detail-copy {
    position: relative;
    padding-inline-start: 26px;
    border-inline-start: 4px solid var(--accent);
}

.detail-hero h1 {
    max-width: 920px;
    margin: 14px 0 18px;
    font-size: clamp(2.3rem, 4.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.18;
}

.detail-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.9;
}

.detail-showcase {
    position: relative;
    min-height: 250px;
    align-content: center;
    justify-items: center;
    padding-inline-start: 28px;
    border-inline-start: 1px solid var(--border);
}

.detail-showcase-label {
    color: var(--muted);
    direction: ltr;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.detail-icon {
    width: 150px;
    aspect-ratio: 1;
    margin: 12px 0 4px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent);
    font-size: 2.65rem;
}

.detail-icon img {
    width: 92px;
    height: 92px;
}

.detail-actions .button-primary {
    min-height: 48px;
    border-radius: 7px;
    background: var(--brand);
    box-shadow: none;
}

.detail-actions .button-primary:first-child {
    background: var(--accent);
    color: #ffffff;
}

.detail-badges span {
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.detail-badges span + span {
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--border);
}

.site-footer,
html[data-theme="dark"] .site-footer {
    background: #0b4f82;
}

.site-footer::before {
    height: 4px;
    background: #f59e0b;
}

.footer-identity p,
.footer-callout span,
.footer-link-bar a,
.footer-meta {
    color: rgba(255, 255, 255, 0.78);
}

.footer-primary,
.footer-link-bar {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-link-bar i,
.footer-callout a {
    color: #ffffff;
}

.footer-callout a {
    background: #f59e0b;
    color: #102033;
}

.footer-contact-lines i {
    color: #f59e0b;
}

@media (max-width: 820px) {
    .detail-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-showcase {
        width: 100%;
        min-height: auto;
        grid-template-columns: auto minmax(0, 1fr);
        justify-content: center;
        gap: 18px;
        padding: 24px 0 0;
        border-inline-start: 0;
        border-top: 1px solid var(--border);
    }

    .detail-showcase-label {
        grid-column: 1 / -1;
    }

    .detail-showcase small {
        max-width: 250px;
        text-align: start;
    }

    .detail-icon {
        width: 112px;
        margin: 0;
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .detail-hero {
        margin-top: 18px;
        padding: 30px 0 34px;
        text-align: center;
    }

    .detail-copy {
        justify-items: center;
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .detail-hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .detail-hero p {
        font-size: 0.98rem;
    }

    .detail-badges {
        gap: 10px;
    }

    .detail-badges span + span {
        padding-inline-start: 10px;
    }

    .detail-actions {
        width: 100%;
    }

    .detail-actions .button {
        width: 100%;
    }

    .detail-showcase {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .detail-showcase small {
        text-align: center;
    }
}

/* Premium mobile experience */
@media (max-width: 980px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(4, 14, 23, 0.48);
        backdrop-filter: blur(3px);
        pointer-events: none;
    }

    .mobile-nav {
        top: 80px;
        display: grid;
        gap: 0;
        padding: 12px 16px;
        border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--border));
        border-radius: 8px;
        background: color-mix(in srgb, var(--surface-strong) 96%, var(--bg));
        box-shadow: 0 24px 70px rgba(5, 25, 40, 0.24);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.985);
        transform-origin: top center;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    .mobile-nav.is-open {
        display: grid;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .mobile-nav a {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: transparent;
        color: var(--text);
        font-size: 0.96rem;
        font-weight: 800;
    }

    .mobile-nav a::after {
        content: "↗";
        color: var(--accent);
        font-size: 0.9rem;
    }

    .mobile-nav a:last-child {
        min-height: 48px;
        justify-content: center;
        margin-top: 10px;
        padding-inline: 14px;
        border: 0;
        border-radius: 7px;
        background: var(--brand);
        color: #ffffff;
    }

    .mobile-nav a:last-child::after {
        display: none;
    }

    .menu-button span {
        transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
    }

    .menu-button.is-open span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-button.is-open span:nth-child(2) {
        width: 0;
        opacity: 0;
    }

    .menu-button.is-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 640px) {
    :root {
        --container: min(100vw - 24px, 520px);
    }

    .site-header {
        top: 8px;
        width: calc(100vw - 16px);
        min-height: 64px;
        grid-template-columns: 88px minmax(0, 1fr) 88px;
        padding: 6px 8px;
        border-color: color-mix(in srgb, var(--brand) 22%, var(--border));
        background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
        box-shadow: 0 14px 36px rgba(5, 35, 57, 0.14);
    }

    .brand img {
        width: min(138px, 38vw);
        max-height: 56px;
        object-fit: contain;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-button,
    .menu-button {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .mobile-nav {
        inset-inline: 8px;
        top: 80px;
        max-height: calc(100svh - 92px);
        text-align: start;
    }

    .section {
        padding: 48px 0;
    }

    .first-section {
        padding-top: 42px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-heading .eyebrow {
        font-size: 0.75rem;
    }

    .section-heading h2 {
        margin: 10px 0 12px;
        font-size: clamp(1.72rem, 8.2vw, 2.28rem);
        line-height: 1.35;
    }

    .section-heading p {
        margin-inline: auto;
        font-size: 0.94rem;
        line-height: 1.85;
    }

    .cards-grid {
        gap: 12px;
    }

    .solution-card {
        border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
        background:
            linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
            var(--surface-strong);
    }

    .solution-card a {
        min-height: 226px;
        padding: 17px;
    }

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

    .card-arrow {
        width: 32px;
        height: 32px;
    }

    .solution-card h3 {
        margin-top: 16px;
        font-size: 1.12rem;
        line-height: 1.55;
    }

    .solution-card p {
        margin-bottom: 16px;
        font-size: 0.92rem;
        line-height: 1.8;
    }

    .solution-card strong {
        width: 100%;
        justify-content: center;
        border-radius: 7px;
        background: var(--brand);
    }

    .detail-layout {
        margin-bottom: 58px;
    }

    .detail-content,
    .media-panel,
    .links-panel {
        padding: 18px;
    }

    .footer-shell {
        width: min(100vw - 28px, 520px);
        padding-top: 30px;
    }

    .footer-logo {
        width: 132px;
        max-height: 62px;
    }

    .footer-identity strong {
        font-size: 1rem;
        line-height: 1.6;
    }

    .footer-identity p {
        max-width: 320px;
        font-size: 0.84rem;
    }

    .footer-callout {
        width: 100%;
        gap: 12px;
    }

    .footer-callout a {
        min-height: 48px;
    }

    .footer-link-bar {
        gap: 7px;
        padding: 16px 0;
    }

    .footer-link-bar a {
        min-height: 44px;
        padding: 8px;
        font-size: 0.82rem;
    }

    .footer-meta {
        padding-top: 18px;
        font-size: 0.76rem;
        line-height: 1.7;
    }

    .footer-contact-lines a {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

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

/* Visual QA adjustments */
.detail-hero::before {
    display: none;
}

.detail-hero {
    padding-top: clamp(30px, 5vw, 58px);
}

.detail-showcase {
    border-inline-start: 0;
    padding-inline-start: 0;
}

.footer-logo {
    width: 156px;
    max-height: none;
    padding: 8px 10px;
    border-radius: 6px;
    background: #ffffff;
}

@media (max-width: 820px) {
    .detail-showcase {
        padding-top: 12px;
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .section-heading h2 {
        font-size: clamp(1.62rem, 7.5vw, 2.08rem);
    }

    .detail-hero {
        padding-top: 22px;
    }

    .detail-hero h1 {
        font-size: clamp(1.9rem, 8.7vw, 2.55rem);
    }

    .detail-showcase {
        gap: 10px;
        padding-top: 6px;
    }

    .detail-icon {
        width: 104px;
        box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 9%, transparent);
    }

    .footer-logo {
        width: 142px;
        padding: 7px 9px;
    }

    .footer-identity p {
        display: none;
    }

    .footer-primary {
        gap: 18px;
    }

    .footer-callout {
        padding-top: 16px;
    }

    .footer-link-bar a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* ROOT development experience v2 */
.development-page-body {
    --dev-bg: #eef4f8;
    --dev-surface: rgba(255, 255, 255, 0.88);
    --dev-surface-strong: #ffffff;
    --dev-text: #0c1a27;
    --dev-muted: #5b6d7e;
    --dev-line: rgba(11, 79, 130, 0.16);
    --dev-grid: rgba(11, 79, 130, 0.07);
    min-height: 100svh;
    color: var(--dev-text);
    background:
        linear-gradient(110deg, rgba(245, 158, 11, 0.1), transparent 34rem),
        linear-gradient(180deg, rgba(18, 121, 189, 0.08), transparent 38rem),
        var(--dev-bg);
}

html[data-theme="dark"] .development-page-body {
    --dev-bg: #06131e;
    --dev-surface: rgba(12, 34, 50, 0.88);
    --dev-surface-strong: #0b1f2e;
    --dev-text: #f5f9fc;
    --dev-muted: #a8bac8;
    --dev-line: rgba(126, 190, 229, 0.18);
    --dev-grid: rgba(126, 190, 229, 0.07);
    background:
        linear-gradient(110deg, rgba(245, 158, 11, 0.08), transparent 34rem),
        linear-gradient(180deg, rgba(18, 121, 189, 0.11), transparent 38rem),
        var(--dev-bg);
}

.development-grid {
    opacity: 1;
    background-image:
        linear-gradient(var(--dev-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--dev-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000 0 72%, transparent);
}

.development-page {
    width: min(1220px, calc(100vw - 40px));
}

.development-topbar {
    min-height: 104px;
    border-bottom-color: var(--dev-line);
}

.development-brand {
    min-width: 180px;
}

.development-brand img {
    width: 172px;
    max-height: 72px;
}

.development-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.development-theme-button,
.development-language {
    min-height: 44px;
    border: 1px solid var(--dev-line);
    border-radius: 7px;
    background: var(--dev-surface);
    color: var(--dev-text);
    box-shadow: none;
}

.development-theme-button {
    width: 44px;
}

.development-language {
    padding: 8px 13px;
}

.development-theme-button:hover,
.development-language:hover {
    border-color: rgba(245, 158, 11, 0.58);
    color: var(--dev-text);
}

.development-main {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    gap: clamp(48px, 7vw, 100px);
    padding: 64px 0 72px;
}

.development-copy {
    max-width: 720px;
}

.development-status {
    padding: 7px 11px;
    border: 1px solid var(--dev-line);
    border-radius: 999px;
    background: var(--dev-surface);
    color: var(--dev-muted);
}

.development-code {
    margin-top: 34px;
    color: var(--brand-bright);
}

.development-copy h1 {
    max-width: 760px;
    color: var(--dev-text);
    font-size: clamp(2.65rem, 5.6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.14;
}

.development-message {
    max-width: 690px;
    color: var(--dev-muted);
    font-size: 1.06rem;
    line-height: 2;
}

.development-primary-action,
.development-secondary-action {
    min-height: 50px;
    border-radius: 7px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.development-primary-action {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.development-secondary-action {
    border-color: var(--dev-line);
    background: var(--dev-surface);
    color: var(--dev-text);
}

.development-signals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
    color: var(--dev-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.development-signals span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.development-signals i {
    color: var(--accent);
    font-size: 1.05rem;
}

.development-blueprint {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--dev-line);
    border-radius: 8px;
    background: var(--dev-surface);
    box-shadow: 18px 18px 0 rgba(11, 79, 130, 0.06);
    backdrop-filter: blur(18px);
}

html[data-theme="dark"] .development-blueprint {
    box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.18);
}

.development-blueprint::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--brand-bright));
}

.development-blueprint-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dev-line);
    color: var(--dev-muted);
    direction: ltr;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.development-blueprint-head strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--dev-text);
}

.development-blueprint-head strong i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.development-blueprint-mark {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 24px 0;
}

.development-blueprint-mark > strong {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}

.development-blueprint-mark span,
.development-blueprint-mark small {
    display: block;
}

.development-blueprint-mark span {
    color: var(--dev-text);
    direction: ltr;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.development-blueprint-mark small {
    margin-top: 7px;
    color: var(--dev-muted);
    line-height: 1.7;
}

.development-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.development-steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid var(--dev-line);
    border-radius: 7px;
    background: color-mix(in srgb, var(--dev-surface-strong) 76%, transparent);
}

.development-steps li > span {
    color: var(--dev-muted);
    direction: ltr;
    font-size: 0.76rem;
    font-weight: 900;
}

.development-steps li strong,
.development-steps li small {
    display: block;
}

.development-steps li strong {
    color: var(--dev-text);
    font-size: 0.9rem;
}

.development-steps li small {
    margin-top: 3px;
    color: var(--dev-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.development-steps li > i {
    color: var(--dev-muted);
    font-size: 1.05rem;
}

.development-steps li.is-complete > i {
    color: #22c55e;
}

.development-steps li.is-active {
    border-color: rgba(245, 158, 11, 0.56);
    background: color-mix(in srgb, var(--accent) 9%, var(--dev-surface-strong));
}

.development-steps li.is-active > i {
    color: var(--accent);
}

.development-progress {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--dev-line);
}

.development-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--dev-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.development-progress > div strong {
    color: var(--dev-text);
    direction: ltr;
}

.development-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--dev-line);
}

.development-progress-track i {
    display: block;
    width: 66.666%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.development-footer {
    min-height: 72px;
    justify-content: space-between;
    border-top-color: var(--dev-line);
    color: var(--dev-muted);
}

.development-footer span:last-child {
    direction: ltr;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
}

@media (max-width: 900px) {
    .development-main {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .development-copy {
        max-width: 780px;
    }

    .development-blueprint {
        width: min(620px, 100%);
    }
}

@media (max-width: 640px) {
    .development-page {
        width: min(100% - 24px, 1220px);
    }

    .development-topbar {
        min-height: 82px;
    }

    .development-brand {
        min-width: 0;
    }

    .development-brand img {
        width: 132px;
        max-height: 56px;
    }

    .development-theme-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .development-language {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    .development-main {
        gap: 38px;
        padding: 42px 0 48px;
        text-align: center;
    }

    .development-status {
        margin-inline: auto;
    }

    .development-code {
        margin-top: 26px;
    }

    .development-copy h1 {
        font-size: clamp(2.05rem, 10.8vw, 3.15rem);
    }

    .development-message {
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .development-actions,
    .development-signals {
        justify-content: center;
    }

    .development-primary-action,
    .development-secondary-action {
        width: 100%;
    }

    .development-signals {
        gap: 10px 14px;
    }

    .development-blueprint {
        padding: 16px;
        text-align: start;
        box-shadow: 10px 10px 0 rgba(11, 79, 130, 0.06);
    }

    .development-blueprint-mark {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 0;
    }

    .development-blueprint-mark > strong {
        width: 76px;
        height: 76px;
        font-size: 3.2rem;
    }

    .development-steps li {
        grid-template-columns: 32px minmax(0, 1fr) 24px;
        min-height: 62px;
        padding: 9px 10px;
    }

    .development-footer {
        min-height: 88px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }
}
