@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-var.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Surrogate website — design system
   Dark is the default theme; the light theme is a full alternative.
   ========================================================================== */

:root {
    /* dark (default) */
    --bg: #0E141C;
    --bg-2: #111924;
    --panel: #161F2B;
    --panel-2: #1B2433;
    --line: #26313F;
    --line-soft: #1E2A3A;
    --text: #E7EDF6;
    --muted: #94A3B5;
    --dim: #6F7F94;
    --blue: #5B8DEF;
    --blue-2: #8AB4FF;
    --blue-deep: #3F6FE0;
    --ok: #5AD1A0;

    --nav-bg: rgba(14, 20, 28, 0.82);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
    --glow: radial-gradient(900px 420px at 72% -10%, rgba(63, 111, 224, 0.28), transparent 65%);

    --radius: 14px;
    --radius-sm: 10px;
    --max: 1180px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* variables the news panel and legacy rules expect */
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-2);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --primary-color: var(--blue);
    --card-bg: var(--panel);
    --border-color: var(--line);
}

[data-theme="light"] {
    --bg: #FFFFFF;
    --bg-2: #F4F7FB;
    --panel: #FFFFFF;
    --panel-2: #F7F9FC;
    --line: #DDE5EF;
    --line-soft: #E8EEF5;
    --text: #0B182E;
    --muted: #55657A;
    --dim: #7B8899;
    --blue: #2F6FE0;
    --blue-2: #1D4FA8;
    --blue-deep: #2459BC;
    --ok: #1E9A6A;

    --nav-bg: rgba(255, 255, 255, 0.88);
    --shadow: 0 18px 50px rgba(11, 24, 46, 0.10);
    --shadow-soft: 0 8px 24px rgba(11, 24, 46, 0.07);
    --glow: radial-gradient(900px 420px at 72% -10%, rgba(47, 111, 224, 0.10), transparent 65%);

    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-2);
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --primary-color: var(--blue);
    --card-bg: var(--panel);
    --border-color: var(--line);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue); }
ul { margin: 0; padding: 0; list-style: none; }
pre { margin: 0; }
button { font: inherit; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--nav-bg);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    flex: 0 0 auto;
}
.brand:hover { color: var(--text); }

.brand-mark { height: 28px; width: auto; }
.mark-dark { display: none; }
.mark-light { display: block; }
[data-theme="dark"] .mark-dark { display: block; }
[data-theme="dark"] .mark-light { display: none; }

.brand-word {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.28em;
}

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

.nav-link {
    color: var(--muted);
    font-size: 0.92rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    /* A label like "So funktioniert es" was squeezed into three lines as soon as
       the bar got tight; a menu item is one line, the menu itself wraps. */
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
    color: var(--text);
    border-bottom-color: var(--blue);
}

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

.lang-selector {
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.lang-btn {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--blue); color: #fff; }

.theme-toggle {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: var(--blue); }
.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-2); color: #fff; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text);
}

/* The menu script appends this panel inside .nav-container */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.mobile-menu .nav-link {
    padding: 10px 6px;
    border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 8px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); color: #fff; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-2); }
.btn-full { width: 100%; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-2); }

.section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.eyebrow {
    display: inline-block;
    color: var(--blue-2);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 640px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 96px;
    background: var(--glow), var(--bg);
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto 40%;
    height: 520px;
    background: radial-gradient(closest-side, rgba(91, 141, 239, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    margin: 0 0 22px;
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero-lead {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero-facts {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.94rem;
}
.hero-facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.hero-facts li::before {
    content: "✓";
    color: var(--blue-2);
    font-weight: 700;
}

/* product preview window */
.app-window {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0B1119;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #131C27;
    border-bottom: 1px solid #1E2A3A;
}
.app-bar .dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #2C3A4C;
}
.app-title {
    margin-left: 10px;
    color: #7C8CA1;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.app-body {
    display: grid;
    grid-template-columns: 190px 1fr;
    min-height: 300px;
}

.app-list {
    padding: 14px 12px;
    border-right: 1px solid #1A2532;
    background: #0D141E;
    font-size: 0.82rem;
}
.app-list-head {
    color: #6F7F94;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.res {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 7px;
    color: #A9B7C8;
}
.res + .res { margin-top: 2px; }
.res.active { background: rgba(91, 141, 239, 0.14); color: #E7EDF6; }
.res-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #3B4B60;
    flex: 0 0 auto;
}
.res.active .res-dot { background: var(--blue); }
.res-name { flex: 1 1 auto; }
.res-tag {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: #6F7F94;
}
.app-list-foot { margin-top: 16px; }
.pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    color: #6FE0A8;
    background: rgba(90, 209, 160, 0.12);
    border: 1px solid rgba(90, 209, 160, 0.3);
}

.app-term { background: #0A1017; }
.term-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    color: #7C8CA1;
    font-size: 0.74rem;
    border-bottom: 1px solid #151F2B;
}
.term-badge {
    color: #FF8A8A;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.term-body {
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1.75;
    color: #C7D3E2;
    white-space: pre-wrap;
    word-break: break-word;
}
.t-dim { color: #5E7089; }
.t-ok { color: #5AD1A0; }
.caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-caption {
    margin-top: 12px;
    color: var(--dim);
    font-size: 0.76rem;
}

/* ==========================================================================
   Cards and grids
   ========================================================================== */

.why-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--blue); }

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.06rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.why-before {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
    color: var(--dim);
    font-size: 0.9rem;
    font-style: italic;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(91, 141, 239, 0.12);
    border: 1px solid rgba(91, 141, 239, 0.28);
    color: var(--blue-2);
    font-size: 1.05rem;
}

/* ==========================================================================
   Architecture
   ========================================================================== */

.arch-wrap { display: grid; gap: 34px; }

.arch-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1.1fr auto 1.25fr;
    align-items: center;
    gap: 10px;
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.arch-col { display: flex; flex-direction: column; gap: 12px; }

.arch-head {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
}

.arch-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    font-size: 0.84rem;
}

.arch-box ul { display: grid; gap: 5px; color: var(--muted); }

.arch-title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.arch-users { display: grid; gap: 8px; }

.arch-node {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.84rem;
    text-align: center;
}

.arch-targets { margin-top: 12px; border-style: dashed; color: var(--muted); }

.arch-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--dim);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-align: center;
    min-width: 84px;
}
.arch-link::before {
    content: "";
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.arch-link-out::before { background: linear-gradient(90deg, var(--blue), rgba(91, 141, 239, 0.15)); }

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

.note-card {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-left: 2px solid var(--blue);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
}
.note-card h3 { margin: 0 0 8px; font-size: 0.98rem; }
.note-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.step-no {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.14);
    border: 1px solid rgba(91, 141, 239, 0.35);
    color: var(--blue-2);
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ==========================================================================
   Audience
   ========================================================================== */

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

.aud-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    border-radius: var(--radius-sm);
    background: var(--panel);
}
.aud-card h3 { margin: 0 0 8px; font-size: 0.98rem; }
.aud-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Videos
   ========================================================================== */

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

.video-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}
.video-card h3 { margin: 18px 20px 6px; font-size: 1rem; }
.video-card p { margin: 0 20px 20px; color: var(--muted); font-size: 0.9rem; }

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(91, 141, 239, 0.10), transparent 60%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 8px, transparent 8px 16px),
        var(--bg);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
}
.video-frame::after {
    content: "▶";
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(138, 180, 255, 0.5);
    color: var(--blue-2);
    font-size: 0.9rem;
    padding-left: 3px;
}
.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(14, 20, 28, 0.7);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   xProject strip
   ========================================================================== */

.xp-strip { background: var(--bg-2); }

.xp-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.xp-title { margin: 0 0 10px; font-size: 1.35rem; }
.xp-text { margin: 0; color: var(--muted); max-width: 640px; font-size: 0.95rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field { display: grid; gap: 7px; margin-bottom: 16px; }

.field label {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.newsletter-form input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.94rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select option { background: var(--bg); color: var(--text); }

.form-result {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--ok);
    min-height: 1.2em;
}

.contact-side { display: grid; gap: 16px; }

.info-card {
    padding: 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
}
.info-card h3 { margin: 0 0 10px; font-size: 0.95rem; }
.info-card address { font-style: normal; color: var(--muted); font-size: 0.92rem; }
.info-card p { margin: 10px 0 0; color: var(--muted); font-size: 0.9rem; }

.muted { color: var(--muted); }

.check-list { display: grid; gap: 8px; }
.check-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 0.9rem;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-2);
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter { background: var(--bg-2); }

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}
.newsletter-inner .section-title { margin-bottom: 6px; }

.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input { min-width: 260px; }
.newsletter .form-result { grid-column: 1 / -1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--line-soft);
    background: var(--bg);
    padding: 56px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 34px;
}

.footer-brand p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
}
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 0.8rem;
}

/* ==========================================================================
   Motion
   ========================================================================== */

.fade-in-up { animation: fadeUp 0.6s ease both; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up { animation: none; }
    .caret { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Between the mobile menu (900 px) and a wide window the seven labels plus the
   language switch do not fit with 22 px gaps: the bar ran over by up to 150 px.
   Tighter gaps and a slightly smaller label keep it on one line. */
@media (max-width: 1200px) {
    .nav-menu { gap: 12px; }
    .nav-link { font-size: 0.86rem; }
}
/* The seven labels plus the switch do not fit below this width at all (measured:
   up to 144 px over), so the menu turns into the button earlier. */
@media (max-width: 1100px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-cta { display: none; }
}

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-media { max-width: 640px; }
    .aud-grid { grid-template-columns: repeat(2, 1fr); }
    .arch-diagram { grid-template-columns: 1fr; gap: 18px; }
    .arch-link { flex-direction: row; justify-content: center; }
    .arch-link::before { display: none; }
    .arch-notes { grid-template-columns: 1fr; }
    .arch-box ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-cta { display: none; }
    .why-grid, .features-grid, .steps, .video-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .newsletter-inner { grid-template-columns: 1fr; }
    .xp-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 68px 0; }
    .hero { padding: 60px 0 70px; }
    .why-grid, .features-grid, .steps, .video-grid, .aud-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .app-body { grid-template-columns: 1fr; }
    .app-list { border-right: 0; border-bottom: 1px solid #1A2532; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { min-width: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
    .arch-box ul { grid-template-columns: 1fr; }
}

/* architecture links: short labels above the line, detail in the caption */
.arch-link em {
    font-style: normal;
    color: var(--dim);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}
.arch-link span { color: var(--blue-2); font-weight: 600; letter-spacing: 0.1em; }
.arch-caption {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 820px;
}

/* --------------------------------------------------------------------------
   Neutralise the compiler-injected theme sheets
   theme-common.css sets html{overflow:hidden} and theme-dark.css sets
   *{font-family: system-ui}. Both are loaded after this file.
   -------------------------------------------------------------------------- */

html:root { overflow: auto; }

html body * { font-family: inherit; }

body .term-body,
body .term-body * { font-family: var(--mono); }

html body p,
html body h1,
html body h2,
html body h3,
html body h4,
html body ul,
html body li { margin-top: 0; }

/* feature icons are inline SVG now */
.feature-icon svg { width: 20px; height: 20px; }


/* ==========================================================================
   Legal pages (imprint, privacy)
   ========================================================================== */

.legal {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: 0.24em; font-size: 0.9rem; }
.legal-brand:hover { color: var(--text); }
.legal-mark { height: 26px; width: auto; }
.legal-links a { color: var(--muted); font-size: 0.86rem; }
.legal-links a:hover { color: var(--text); }

.lang-mini { display: inline-flex; gap: 4px; margin-left: 18px; }
.lang-mini button {
    background: none; border: 1px solid var(--line); color: var(--muted);
    border-radius: 999px; padding: 2px 9px; font-size: 0.7rem; font-weight: 600; cursor: pointer;
}
.lang-mini button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.02rem; margin: 34px 0 8px; }
.legal p { color: var(--muted); margin: 0 0 12px; }
.legal strong { color: var(--text); }
.legal-lead { color: var(--text) !important; }

.legal .todo {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 5px;
    border: 1px dashed var(--blue);
    background: rgba(91, 141, 239, 0.12);
    color: var(--blue-2);
    font-size: 0.82rem;
}

.legal-note { border-left: 2px solid var(--blue); padding-left: 14px; }

.legal-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 54px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 0.8rem;
}

.legal-links { display: flex; align-items: center; gap: 16px; }
.legal-links .lang-mini { margin-left: 0; }
@media (max-width: 640px) {
    .legal-top { flex-direction: column; align-items: flex-start; gap: 12px; }
    .legal-foot { flex-direction: column; }
}

/* partners: sales and reseller */
.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.partner-tag {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.partner-card h3 { margin: 16px 0 8px; font-size: 1.08rem; }
.partner-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; }
.partner-card .feature-list { margin: 0 0 22px; }
.partner-card .feature-list li { color: var(--muted); font-size: 0.92rem; }
.partner-card .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 760px) {
    .partners-grid { grid-template-columns: 1fr; }
}

/* check lists (partners, contact scope) */
.feature-list { display: grid; gap: 9px; margin: 22px 0 26px; }
.feature-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
    font-size: 0.94rem;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-2);
    font-weight: 700;
}

/* xProject badge (#xpbadge, created by AboutBox.ShowBadge): visible only at
   the very top of the page, fading out when the reader scrolls away. */
#xpbadge {
    opacity: 1;
    transition: opacity 0.55s ease-in-out, transform 0.55s ease-in-out;
}

#xpbadge.gh-badge-away {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

/* release card: the deployment picture in one line */
.topology {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

a.footer-built { color: var(--dim); }
a.footer-built:hover { color: var(--text); }

/* the session note under the preview window: two lines */
.hero-caption span { display: block; }
