:root {
    --color-bg: #050b12;
    --color-bg-deep: #03070c;
    --color-surface: #0a1420;
    --color-surface-2: #0d1b2a;
    --color-surface-3: #102337;
    --color-text: #f4f8fb;
    --color-muted: #aab8c5;
    --color-line: rgba(142, 185, 213, 0.16);
    --color-accent: #19d7d4;
    --color-accent-2: #168cff;
    --color-blue-soft: #5f86c7;
    --shadow-glow: 0 18px 60px rgba(22, 140, 255, 0.10);
    --max-width: 1200px;
    --header-height: 92px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--color-bg-deep);
}

body {
    margin: 0;
    color: var(--color-text);
    background:
        radial-gradient(circle at 78% 12%, rgba(22, 140, 255, .08), transparent 30rem),
        var(--color-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--color-accent);
    color: #001018;
    font-weight: 800;
    text-decoration: none;
}

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

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: linear-gradient(to bottom, rgba(2, 8, 14, .48), transparent);
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(4, 12, 20, .9);
    border-color: var(--color-line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .24);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

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

.brand-wordmark {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-nmc {
    font-size: 2rem;
    line-height: .9;
    font-weight: 900;
    letter-spacing: -.12em;
    padding-right: .18em;
    color: #fff;
}

.brand-nodes {
    position: relative;
    width: 22px;
    height: 36px;
    margin-left: 3px;
}

.brand-nodes::before,
.brand-nodes::after {
    content: "";
    position: absolute;
    left: 6px;
    width: 2px;
    height: 14px;
    background: var(--color-blue-soft);
    transform-origin: bottom;
}

.brand-nodes::before { top: 6px; transform: rotate(40deg); }
.brand-nodes::after { bottom: 6px; transform: rotate(-40deg); }

.brand-nodes i {
    position: absolute;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.brand-nodes i:nth-child(1) { top: 0; background: var(--color-accent); }
.brand-nodes i:nth-child(2) { top: 14px; background: var(--color-blue-soft); }
.brand-nodes i:nth-child(3) { bottom: 0; background: var(--color-accent-2); }

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: .93rem;
    letter-spacing: .2em;
    font-weight: 600;
}

.brand-copy small {
    color: #c5d0d9;
    font-size: .63rem;
    letter-spacing: .055em;
    white-space: nowrap;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav a {
    position: relative;
    color: #dbe5ec;
    text-decoration: none;
    font-size: .91rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
}

.main-nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    transition: transform var(--transition);
}

.main-nav ul a:hover::after,
.main-nav ul a.is-active::after {
    transform: scaleX(1);
}

.language-switch {
    display: flex;
    gap: 7px;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid var(--color-line);
    color: #7f93a5;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.language-switch .is-current {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: rgba(6, 17, 28, .75);
    color: #fff;
}

.menu-toggle-lines {
    display: grid;
    gap: 5px;
    width: 20px;
    margin: auto;
}

.menu-toggle-lines i {
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: #06101b;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 10, 17, .98) 0%, rgba(4, 13, 22, .96) 35%, rgba(4, 13, 22, .67) 60%, rgba(4, 13, 22, .24) 100%),
        linear-gradient(0deg, rgba(4, 11, 18, .9), transparent 38%);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../images/hero-server.webp');
    background-size: cover;
    background-position: center;
    filter: saturate(.9) contrast(1.03) brightness(.82);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .2;
    background-image:
        linear-gradient(rgba(92, 174, 214, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 174, 214, .09) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.8), transparent 74%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + 70px);
    padding-bottom: 90px;
}

.hero-content > * {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: .76rem;
    font-weight: 800;
}

.hero h1,
.subhero h1,
.legal-hero h1,
.error-page h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(3rem, 6.1vw, 6rem);
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-lead {
    margin: 30px 0 0;
    max-width: 680px;
    color: #c4d0da;
    font-size: clamp(1.02rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    color: #9fb0bd;
    font-size: .94rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 16px rgba(25, 215, 212, .7);
}

.text-link,
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #e8f8ff;
    text-decoration: none;
    font-weight: 800;
}

.text-link svg,
.card-link svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform var(--transition);
}

.text-link:hover svg,
.service-card:hover .card-link svg {
    transform: translateX(4px);
}

.hero-rail {
    position: absolute;
    right: 34px;
    top: 50%;
    display: grid;
    gap: 2px;
    transform: translateY(-50%);
    color: rgba(224, 237, 245, .42);
    font-size: .72rem;
    letter-spacing: .16em;
}

.hero-rail::after {
    content: "";
    width: 48px;
    height: 2px;
    margin-top: 14px;
    background: var(--color-accent);
}

.section {
    padding: 110px 0;
    border-top: 1px solid rgba(125, 165, 192, .08);
}

.section-dark {
    background: linear-gradient(180deg, #07111c 0%, #081522 100%);
}

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

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

.section-heading.narrow {
    max-width: 820px;
}

.section h2,
.section-heading h2,
.closing-panel h2,
.legal-block h2 {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.section p,
.section-heading p,
.detail-card p,
.legal-block p {
    color: var(--color-muted);
}

.split-intro,
.two-column,
.history-grid,
.about-story {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(45px, 8vw, 110px);
    align-items: start;
}

.prose p,
.history-copy p,
.large-prose p {
    margin: 0 0 20px;
    font-size: 1.06rem;
    color: #b6c3ce;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card,
.detail-card,
.process-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: linear-gradient(150deg, rgba(15, 32, 49, .92), rgba(7, 17, 28, .96));
    box-shadow: 0 14px 50px rgba(0, 0, 0, .13);
}

.service-card {
    min-height: 285px;
    padding: 28px;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% 30%;
    height: 140px;
    background: radial-gradient(circle, rgba(25, 215, 212, .12), transparent 68%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(25, 215, 212, .5);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::after {
    opacity: 1;
}

.icon-wrap {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 38px;
    border-radius: 12px;
    border: 1px solid rgba(25, 215, 212, .25);
    color: var(--color-accent);
    background: rgba(25, 215, 212, .05);
}

.icon-wrap svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3,
.pillar h3,
.process-card h3,
.detail-card h2 {
    margin: 0 0 12px;
    color: #f7fbfe;
    font-size: 1.25rem;
    line-height: 1.25;
}

.service-card p,
.pillar p,
.process-card p {
    margin: 0;
    color: #9fb0bd;
}

.card-link {
    margin-top: 24px;
    color: var(--color-accent);
    font-size: .86rem;
}

.solution-section {
    background:
        radial-gradient(circle at 78% 20%, rgba(25, 215, 212, .07), transparent 28rem),
        linear-gradient(180deg, #06101a 0%, #07131f 100%);
}

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

.solution-card {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 38px;
    overflow: hidden;
    border: 1px solid rgba(25, 215, 212, .2);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(22, 140, 255, .13), transparent 20rem),
        linear-gradient(145deg, rgba(13, 34, 52, .96), rgba(6, 16, 26, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.solution-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25, 215, 212, .14), transparent 68%);
    pointer-events: none;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(25, 215, 212, .48);
    box-shadow: 0 24px 80px rgba(22, 140, 255, .12);
}

.solution-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 58px;
}

.solution-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(25, 215, 212, .28);
    border-radius: 14px;
    background: rgba(25, 215, 212, .06);
    color: var(--color-accent);
}

.solution-icon svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.solution-kicker {
    color: #8fa7b8;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 800;
}

.solution-card h2,
.solution-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #f7fbfe;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

.solution-card p {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0;
    color: #aab9c5;
    font-size: 1rem;
}

.solution-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 32px;
    color: var(--color-accent);
    font-size: .88rem;
    font-weight: 800;
}

.solution-link svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.solutions-overview-link {
    margin-top: 34px;
}

.solution-grid-overview .solution-card {
    min-height: 390px;
}

.pillars-section {
    background:
        radial-gradient(circle at 50% 10%, rgba(22, 140, 255, .08), transparent 36rem),
        var(--color-bg);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-line);
}

.pillar {
    min-height: 310px;
    padding: 40px;
    background: #07111b;
}

.pillar-number {
    display: block;
    margin-bottom: 70px;
    color: var(--color-accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.history-section {
    background: linear-gradient(120deg, #050b12 10%, #081522 100%);
}

.history-grid,
.about-story {
    align-items: center;
}

.history-year {
    font-size: clamp(6rem, 15vw, 13rem);
    line-height: .8;
    font-weight: 900;
    letter-spacing: -.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(82, 160, 201, .38);
    text-shadow: 0 0 50px rgba(22, 140, 255, .08);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.process-card {
    min-height: 260px;
    padding: 28px;
}

.process-card > span {
    display: block;
    margin-bottom: 54px;
    color: var(--color-accent);
    font-weight: 900;
    letter-spacing: .14em;
}

.statement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.statement-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: rgba(11, 27, 42, .55);
    color: #dce7ef;
    font-weight: 650;
}

.statement-list li > span {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(25, 215, 212, .55);
}

.audience-section {
    background: linear-gradient(180deg, #08131f, #050b12);
}

.audience-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.audience-tags span {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(25, 215, 212, .22);
    background: rgba(25, 215, 212, .05);
    color: #cfe9ec;
}

.subhero,
.legal-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-height) + 90px) 0 90px;
    background: #06101b;
}

.subhero::before,
.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 17, .98) 0%, rgba(4, 13, 22, .92) 34%, rgba(4, 13, 22, .68) 61%, rgba(4, 13, 22, .34) 100%),
        linear-gradient(0deg, rgba(4, 11, 18, .9), transparent 52%);
    z-index: 0;
}

.subhero-media {
    position: absolute;
    inset: 0;
    background: url('../images/hero-server.webp') 62% center/cover no-repeat;
    opacity: .58;
    filter: saturate(.86) contrast(1.03) brightness(.88);
}

.subhero-content,
.legal-hero .container {
    position: relative;
    z-index: 1;
}

.subhero h1,
.legal-hero h1 {
    font-size: clamp(2.8rem, 5.3vw, 5rem);
}

.subhero-content > p:last-child,
.legal-hero .container > p:last-child {
    max-width: 760px;
    margin-top: 28px;
    color: #b9c8d3;
    font-size: 1.1rem;
}

.detail-section {
    background:
        radial-gradient(circle at 82% 8%, rgba(22, 140, 255, .055), transparent 30rem),
        linear-gradient(180deg, #050b12 0%, #07111b 100%);
}

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

.detail-card {
    min-height: 300px;
    padding: 38px;
}

.detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), rgba(22, 140, 255, .45), transparent 74%);
    opacity: .72;
}

.detail-card h2 {
    font-size: 1.55rem;
}

.detail-card ul,
.legal-block ul {
    margin: 24px 0 0;
    padding-left: 20px;
    color: #c7d2db;
}

.detail-card li,
.legal-block li {
    margin: 8px 0;
}

.closing-section {
    padding-top: 0;
}

.closing-panel {
    padding: clamp(36px, 6vw, 72px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 0, rgba(25, 215, 212, .09), transparent 25rem),
        linear-gradient(140deg, #0b1c2c, #07111b);
}

.closing-panel p:last-child {
    max-width: 820px;
    margin: 0;
    font-size: 1.08rem;
}

.principles {
    align-items: center;
}

.legal-hero {
    min-height: 420px;
}

.legal-section {
    background: #07111b;
}

.legal-layout {
    max-width: 880px;
}

.legal-block {
    padding: 0 0 34px;
    margin: 0 0 34px;
    border-bottom: 1px solid var(--color-line);
}

.legal-block h2 {
    font-size: 1.5rem;
}

.legal-block p {
    margin: 8px 0;
}

.legal-block a {
    color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-updated {
    color: #7890a3;
    font-size: .9rem;
}

.error-page {
    min-height: 78vh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-height) + 80px) 0 100px;
    background: radial-gradient(circle at 70% 10%, rgba(22, 140, 255, .08), transparent 35rem);
}

.error-panel {
    max-width: 800px;
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: #02060a;
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-end;
}

.footer-brand {
    display: grid;
    gap: 5px;
}

.footer-brand strong {
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.footer-brand span {
    color: #93a6b5;
    font-size: .85rem;
}

.footer-brand small {
    margin-top: 12px;
    color: #637789;
}

.footer-nav {
    display: flex;
    gap: 22px;
}

.footer-nav a {
    color: #aebdc9;
    text-decoration: none;
    font-size: .9rem;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

@media (max-width: 1120px) {
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: .84rem; }
    .brand { min-width: 205px; }
    .brand-copy small { display: none; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    :root { --header-height: 78px; }
    .container { width: min(calc(100% - 30px), var(--max-width)); }
    .menu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 15px;
        right: 15px;
        display: none;
        max-height: calc(100dvh - var(--header-height) - 20px);
        overflow: auto;
        padding: 24px;
        border: 1px solid var(--color-line);
        border-radius: 18px;
        background: rgba(4, 12, 20, .98);
        box-shadow: 0 25px 80px rgba(0,0,0,.45);
        backdrop-filter: blur(18px);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { display: grid; gap: 0; }
    .main-nav ul li { border-bottom: 1px solid var(--color-line); }
    .main-nav ul a { display: block; padding: 16px 4px; font-size: 1rem; }
    .main-nav ul a::after { display: none; }
    .language-switch { margin-top: 20px; padding: 16px 4px 0; border-left: 0; }
    .hero { min-height: 700px; }
    .hero-media { left: 15%; opacity: .7; }
    .hero::before { background: linear-gradient(90deg, rgba(3,10,17,.98), rgba(4,13,22,.82) 75%, rgba(4,13,22,.55)); }
    .hero-rail { display: none; }
    .split-intro,
    .two-column,
    .history-grid,
    .about-story { grid-template-columns: 1fr; gap: 36px; }
    .history-year { font-size: clamp(6rem, 28vw, 10rem); }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar { min-height: 240px; }
    .pillar-number { margin-bottom: 35px; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --header-height: 72px; }
    .section { padding: 80px 0; }
    .brand-copy { display: none; }
    .brand { min-width: 0; }
    .brand-logo {
        width: 118px;
        max-height: 58px;
        filter: brightness(1.2) saturate(1.06);
    }
    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: rgba(6, 17, 28, .68);
    }
    .menu-toggle-lines { width: 18px; gap: 4px; }
    .hero {
        min-height: 610px;
        align-items: flex-end;
    }
    html[lang="de"] .hero {
        min-height: 585px;
    }
    .hero-content {
        padding-top: 22px;
        padding-bottom: 46px;
    }
    .eyebrow {
        margin-bottom: 14px;
        font-size: .68rem;
        letter-spacing: .14em;
    }
    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.6rem);
        line-height: 1;
    }
    .hero-lead {
        margin-top: 22px;
        font-size: 1rem;
        line-height: 1.58;
    }
    .hero-meta {
        margin-top: 24px;
        font-size: .92rem;
    }
    .text-link { margin-top: 24px; }
    .hero-media {
        inset: 0;
        opacity: .55;
        background-position: 60% center;
    }
    .hero::before { background: linear-gradient(0deg, rgba(3,10,17,.99) 20%, rgba(3,10,17,.78) 67%, rgba(3,10,17,.55)); }
    .hero-grid-overlay { display: none; }
    .solution-grid { grid-template-columns: 1fr; }
    .solution-card,
    .solution-grid-overview .solution-card {
        min-height: auto;
        padding: 28px;
    }
    .solution-card-top { margin-bottom: 38px; }
    .service-grid,
    .process-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; }
    .section-heading { margin-bottom: 34px; }
    .subhero,
    .legal-hero { min-height: 460px; padding-bottom: 65px; }
    .subhero-media { inset: 0; opacity: .25; }
    .detail-card { padding: 28px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .footer-nav { flex-wrap: wrap; }
}

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

/* Briefantec vector brand asset; kept local. */
.brand-logo {
    width: 138px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
    filter: none;
}

.footer-logo {
    width: 190px;
    height: auto;
    filter: none;
}

/* Desktop polish shared by DE and EN. Mobile/tablet breakpoints stay unchanged. */
@media (min-width: 1121px) {
    :root {
        --max-width: 1260px;
        --header-height: 104px;
    }

    .brand-logo {
        width: 188px;
        max-height: 94px;
    }

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

    .main-nav ul {
        gap: 23px;
    }

    .main-nav a {
        font-size: .93rem;
    }

    .hero-content > * {
        max-width: 780px;
    }

    .hero-lead {
        max-width: 710px;
    }
}

/* Large desktop: use more horizontal space on subpage content only.
   Shared by DE and EN; header, hero, tablet and mobile remain unchanged. */
@media (min-width: 1700px) {
    body.route-it-service .detail-section > .container,
    body.route-it-service .closing-section > .container,
    body.route-server .detail-section > .container,
    body.route-server .closing-section > .container,
    body.route-web-software .detail-section > .container,
    body.route-web-software .closing-section > .container,
    body.route-cybersecurity .detail-section > .container,
    body.route-cybersecurity .closing-section > .container,
    body.route-licensehub .detail-section > .container,
    body.route-licensehub .closing-section > .container,
    body.route-dynamic-dns .detail-section > .container,
    body.route-dynamic-dns .closing-section > .container,
    body.route-solutions .solution-section > .container,
    body.route-about main > .section:not(.subhero) > .container {
        width: min(calc(100% - 80px), 1360px);
    }
}

/* v24 visual direction: Briefantec preview-inspired homepage */
.route-home .site-header {
    background: rgba(3, 11, 20, .82);
    border-bottom-color: rgba(36, 151, 221, .18);
    backdrop-filter: blur(16px);
}

.route-home .header-inner {
    width: min(calc(100% - 46px), 1420px);
}

.route-home .brand-logo {
    width: 220px;
    max-height: 80px;
}

.route-home .hero-home {
    min-height: 710px;
    overflow: hidden;
    border-bottom: 1px solid rgba(25, 175, 255, .18);
}

.route-home .hero-home::before {
    background:
        linear-gradient(90deg, rgba(2, 9, 17, .98) 0%, rgba(4, 15, 26, .92) 42%, rgba(4, 14, 25, .50) 68%, rgba(3, 11, 20, .38) 100%),
        linear-gradient(0deg, rgba(2, 9, 17, .95), transparent 38%);
}

.route-home .hero-media {
    background-position: 67% center;
    filter: saturate(1.12) contrast(1.08) brightness(.78);
    transform: scale(1.015);
}

.route-home .hero-grid-overlay {
    opacity: .08;
}

.briefantec-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
    min-height: 710px;
    padding-top: calc(var(--header-height) + 46px);
    padding-bottom: 58px;
}

.briefantec-hero-layout > * {
    max-width: none !important;
}

.briefantec-hero-copy {
    max-width: 760px;
}

.route-home .hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    color: #d6e8f5;
    letter-spacing: .22em;
    font-size: .72rem;
}

.route-home .hero .eyebrow::after {
    content: "";
    width: 54px;
    height: 2px;
    background: linear-gradient(90deg, #0ad7ff, rgba(10,215,255,0));
}

.route-home .hero h1 {
    max-width: 760px;
    font-size: clamp(3.4rem, 5.4vw, 5.85rem);
    line-height: .98;
    letter-spacing: -.052em;
    text-shadow: 0 8px 28px rgba(0,0,0,.42);
}

.route-home .hero h1::first-line {
    color: #fff;
}

.route-home .hero-lead {
    max-width: 690px;
    margin-top: 26px;
    color: #d1dce5;
    font-size: 1.07rem;
    line-height: 1.62;
}

.route-home .hero-meta {
    margin-top: 20px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid rgba(29, 191, 255, .82);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 133, 255, .96), rgba(0, 92, 218, .96));
    box-shadow: 0 0 0 1px rgba(0,214,255,.14) inset, 0 0 28px rgba(0,149,255,.28);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    border-color: #5de7ff;
    box-shadow: 0 0 0 1px rgba(0,214,255,.22) inset, 0 0 40px rgba(0,149,255,.42);
}

.hero-cta svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.briefantec-hero-brand {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
    padding: 54px 42px 44px;
    border: 1px solid rgba(31, 178, 255, .18);
    border-radius: 4px;
    background:
        radial-gradient(circle at 50% 28%, rgba(5, 158, 255, .14), transparent 46%),
        linear-gradient(145deg, rgba(5, 18, 31, .74), rgba(4, 14, 25, .88));
    box-shadow: 0 28px 80px rgba(0,0,0,.35), inset 0 0 40px rgba(0,151,255,.035);
    overflow: hidden;
}

.briefantec-hero-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0 40%, rgba(18, 152, 255, .07) 40.2% 40.8%, transparent 41% 100%);
    pointer-events: none;
}

.briefantec-hero-brand img {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    filter: drop-shadow(0 14px 25px rgba(0,0,0,.48)) drop-shadow(0 0 18px rgba(0,153,255,.12));
}

.briefantec-hero-brand > span {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    color: #a8b8c7;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .66rem;
}

.brand-panel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,163,255,.18), transparent 66%);
    filter: blur(10px);
}

.route-home .intro-section {
    padding: 58px 0 36px;
    background: #06111d;
}

.route-home .split-intro {
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: end;
}

.route-home .intro-section h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3.3vw, 3.25rem);
}

.route-home .intro-section .prose p {
    font-size: .98rem;
    line-height: 1.62;
}

.route-home #leistungen {
    padding-top: 34px;
    background:
        linear-gradient(180deg, #06111d 0%, #071522 100%);
}

.route-home #leistungen .section-heading {
    max-width: none;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 26px;
}

.route-home #leistungen .section-heading .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -48px;
}

.route-home #leistungen .section-heading h2 {
    margin: 0;
    font-size: clamp(2.15rem, 3vw, 3.25rem);
}

.route-home #leistungen .section-heading > p:last-child {
    margin: 0;
    max-width: 600px;
    justify-self: end;
}

.service-grid-featured {
    gap: 14px;
}

.service-card-featured {
    min-height: 190px;
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) 36px;
    gap: 18px;
    align-items: start;
    padding: 25px 20px;
    border-color: rgba(27, 157, 232, .46);
    border-radius: 9px;
    background:
        linear-gradient(155deg, rgba(8, 30, 50, .96), rgba(4, 18, 31, .98));
}

.service-card-featured .icon-wrap {
    width: 54px;
    height: 54px;
    margin: 0;
    border: 0;
    background: transparent;
    color: #0fd8ff;
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, .32));
}

.service-card-featured .icon-wrap svg {
    width: 36px;
    stroke-width: 1.45;
}

.service-card-featured h3 {
    margin-top: 3px;
    font-size: 1.15rem;
}

.service-card-featured p {
    font-size: .91rem;
    line-height: 1.55;
}

.service-arrow {
    align-self: end;
    justify-self: end;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #19bfff;
    border-radius: 50%;
    color: #19cfff;
}

.service-arrow svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.service-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.service-secondary-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid rgba(79, 141, 181, .16);
    border-radius: 8px;
    background: rgba(8, 24, 39, .55);
    color: #b8c7d3;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.service-secondary-grid a:hover {
    color: #fff;
    border-color: rgba(25, 191, 255, .45);
    background: rgba(9, 33, 53, .72);
}

.service-secondary-grid svg {
    width: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: #18cfff;
    stroke-width: 1.8;
}

@media (max-width: 1120px) {
    .route-home .brand-logo { width: 180px; }
    .briefantec-hero-layout { grid-template-columns: 1fr .82fr; gap: 38px; }
    .briefantec-hero-brand { min-height: 330px; padding: 38px 28px; }
    .service-grid-featured { grid-template-columns: repeat(2, 1fr); }
    .service-secondary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .briefantec-hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(var(--header-height) + 70px);
        padding-bottom: 58px;
    }
    .briefantec-hero-brand {
        min-height: 260px;
        width: min(100%, 620px);
    }
    .route-home .hero-home { min-height: auto; }
    .route-home .hero-home::before {
        background: linear-gradient(180deg, rgba(2,9,17,.9), rgba(2,9,17,.97));
    }
    .route-home #leistungen .section-heading,
    .route-home .split-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .route-home #leistungen .section-heading .eyebrow {
        margin-bottom: 0;
    }
    .route-home #leistungen .section-heading > p:last-child {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .route-home .brand-logo { width: 148px; }
    .briefantec-hero-layout {
        padding-top: calc(var(--header-height) + 46px);
        padding-bottom: 42px;
        gap: 28px;
    }
    .route-home .hero h1 {
        font-size: clamp(2.55rem, 11vw, 3.55rem);
    }
    .briefantec-hero-brand {
        min-height: 210px;
        padding: 24px 20px 22px;
    }
    .briefantec-hero-brand > span {
        font-size: .54rem;
        letter-spacing: .14em;
        text-align: center;
    }
    .route-home .intro-section { padding-top: 52px; }
    .service-grid-featured,
    .service-secondary-grid { grid-template-columns: 1fr; }
    .service-card-featured {
        min-height: auto;
        grid-template-columns: 52px minmax(0,1fr) 34px;
        padding: 22px 18px;
    }
}

/* v26: bring the real homepage closer to the approved Briefantec visual preview. */
.route-home .site-header {
    background: rgba(3, 11, 19, .78);
    border-bottom-color: rgba(28, 167, 235, .12);
    backdrop-filter: blur(14px);
}

.brand-picture {
    display: block;
    line-height: 0;
}

.brand-logo {
    width: 222px;
    max-height: 58px;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

.route-home .hero-home {
    min-height: 690px;
}

.briefantec-hero-layout {
    min-height: 650px;
    gap: clamp(36px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(420px, .98fr);
}

.briefantec-hero-brand {
    min-height: 0;
    aspect-ratio: 2 / 1;
    padding: 0;
    border-color: rgba(30, 180, 255, .28);
    background: #06101b;
    box-shadow: 0 28px 80px rgba(0,0,0,.42), 0 0 42px rgba(0, 139, 255, .08);
}

.briefantec-hero-brand::before,
.brand-panel-glow {
    display: none;
}

.briefantec-hero-brand picture,
.briefantec-hero-brand img {
    width: 100%;
    height: 100%;
}

.briefantec-hero-brand picture {
    display: block;
}

.briefantec-hero-brand img {
    object-fit: cover;
    object-position: center;
    filter: none;
}

.route-home #leistungen {
    padding-top: 64px;
    padding-bottom: 72px;
}

.route-home .intro-section {
    padding: 72px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(15, 186, 255, .055), transparent 24rem),
        #07131f;
}

@media (max-width: 1120px) {
    .brand-logo { width: 202px; }
    .briefantec-hero-layout {
        grid-template-columns: minmax(0,1fr) minmax(350px,.9fr);
    }
}

@media (max-width: 980px) {
    .brand-logo { width: 188px; max-height: 52px; }
    .briefantec-hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
        padding-top: calc(var(--header-height) + 42px);
        padding-bottom: 42px;
    }
    .briefantec-hero-copy { max-width: 720px; }
    .briefantec-hero-brand {
        width: 100%;
        max-width: 680px;
        aspect-ratio: 2.15 / 1;
        min-height: 0;
    }
    .route-home .hero-home { min-height: auto; }
    .route-home #leistungen { padding-top: 52px; }
}

@media (max-width: 860px) {
    .service-grid-featured,
    .service-secondary-grid {
        grid-template-columns: 1fr;
    }
    .service-card-featured {
        min-height: 160px;
    }
}

@media (max-width: 640px) {
    :root { --header-height: 68px; }
    .site-header { height: var(--header-height); }
    .header-inner { gap: 12px; }
    .brand-logo {
        width: 166px;
        max-height: 46px;
        filter: none;
    }
    .menu-toggle { width: 40px; height: 40px; }

    .briefantec-hero-layout {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 30px;
        gap: 20px;
    }
    .route-home .hero .eyebrow {
        margin-bottom: 16px;
        font-size: .63rem;
        letter-spacing: .17em;
        gap: 12px;
    }
    .route-home .hero .eyebrow::after { width: 38px; }
    .route-home .hero h1 {
        font-size: clamp(2.35rem, 10.5vw, 3.25rem);
        line-height: .98;
    }
    .route-home .hero-lead {
        margin-top: 20px;
        font-size: .96rem;
        line-height: 1.52;
    }
    .route-home .hero-meta {
        margin-top: 16px;
        font-size: .82rem;
    }
    .hero-cta {
        margin-top: 22px;
        min-height: 48px;
        padding: 0 19px;
        font-size: .9rem;
    }
    .briefantec-hero-brand {
        width: calc(100% + 2px);
        aspect-ratio: 2 / 1;
        border-radius: 8px;
        box-shadow: 0 18px 46px rgba(0,0,0,.4), 0 0 28px rgba(0,139,255,.07);
    }
    .briefantec-hero-brand img { object-position: center; }

    .route-home #leistungen {
        padding-top: 42px;
        padding-bottom: 56px;
    }
    .route-home #leistungen .section-heading {
        gap: 12px;
        margin-bottom: 22px;
    }
    .route-home #leistungen .section-heading h2 {
        font-size: 2rem;
    }
    .route-home #leistungen .section-heading > p:last-child {
        font-size: .92rem;
        line-height: 1.55;
    }
    .service-grid-featured { gap: 12px; }
    .service-card-featured {
        min-height: 0;
        grid-template-columns: 48px minmax(0,1fr) 32px;
        gap: 12px;
        padding: 18px 16px;
        border-radius: 10px;
    }
    .service-card-featured .icon-wrap {
        width: 44px;
        height: 44px;
    }
    .service-card-featured .icon-wrap svg { width: 29px; }
    .service-card-featured h3 { font-size: 1.04rem; }
    .service-card-featured p { font-size: .86rem; line-height: 1.48; }
    .service-arrow { width: 30px; height: 30px; }

    .service-secondary-grid { margin-top: 12px; gap: 8px; }
    .service-secondary-grid a {
        min-height: 50px;
        padding: 12px 14px;
        font-size: .82rem;
    }

    .route-home .intro-section {
        padding: 58px 0;
    }
    .route-home .intro-section h2 {
        font-size: 1.95rem;
    }
}
