:root {
    --primary: #0F172A;
    --primary-soft: #182238;
    --secondary: #0F4C5C;
    --secondary-light: #1D6575;
    --accent: #D4A017;
    --accent-dark: #AE7D05;
    --background: #F8FAFC;
    --card: #FFFFFF;
    --text: #1F2937;
    --muted: #64748B;
    --border: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.13);
    --success: #0F766E;
    --warning: #D97706;
    --danger: #DC2626;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 24px 60px rgba(15, 23, 42, 0.11);
    --shadow-lg: 0 34px 80px rgba(15, 23, 42, 0.17);
    --radius-sm: 4px;
    --radius: 8px;
    --container: 1180px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

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

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

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

h1,
h2,
h3,
p,
ol,
dl {
    margin-top: 0;
}

h1,
h2,
h3,
.brand-name {
    letter-spacing: 0;
}

h1,
h2,
h3 {
    color: var(--primary);
    font-weight: 750;
}

h1 {
    max-width: 780px;
    margin-bottom: 26px;
    font-size: clamp(2.65rem, 3.75vw, 3.65rem);
    hyphens: none;
    line-height: 1.04;
    overflow-wrap: normal;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.1rem, 3.6vw, 3.6rem);
    line-height: 1.08;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.12rem;
    line-height: 1.3;
}

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

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

.section {
    padding-block: 118px;
}

.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;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--card);
    color: var(--primary);
    border: 1px solid var(--border);
    transform: translateY(-160%);
}

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

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(16px);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-compact {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    height: 100%;
}

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

.brand-logo {
    width: 214px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    box-shadow: inset 0 -4px 0 rgba(212, 160, 23, 0.22);
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent);
    transform: rotate(20deg);
}

.brand-mark span {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1;
}

.brand-name {
    color: var(--primary);
    font-size: 1.16rem;
    font-weight: 790;
}

.brand-name span {
    color: var(--secondary);
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: auto;
}

.primary-nav a {
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 650;
    transition: color 160ms ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -9px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--primary);
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--primary);
    cursor: pointer;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 22px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: white;
    font-size: 0.92rem;
    font-weight: 760;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button svg,
.text-link svg,
.back-link svg {
    width: 18px;
    height: 18px;
}

.button:hover,
.button:focus-visible {
    border-color: var(--secondary);
    background: var(--secondary);
    box-shadow: 0 16px 34px rgba(15, 76, 92, 0.2);
    transform: translateY(-2px);
}

.button-small {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.82rem;
    box-shadow: none;
}

.button-gold {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 12px 30px rgba(212, 160, 23, 0.2);
}

.button-gold:hover,
.button-gold:focus-visible {
    border-color: #E2B632;
    background: #E2B632;
    color: var(--primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 760;
}

.text-link svg {
    transition: transform 160ms ease;
}

.text-link:hover svg {
    transform: translateY(3px);
}

.text-link.petrol {
    color: var(--secondary);
}

.text-link.petrol:hover svg {
    transform: translateX(3px);
}

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 126px 0 72px;
    overflow: hidden;
    background: #07101B;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 10, 18, 0.98) 0%, rgba(4, 10, 18, 0.91) 38%, rgba(4, 10, 18, 0.28) 67%, rgba(4, 10, 18, 0.05) 100%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(transparent, rgba(4, 10, 18, 0.6));
    pointer-events: none;
}

.hero-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 650px) 1fr;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding-top: 16px;
}

.hero-copy h1 {
    color: white;
}

.hero-copy > p {
    max-width: 650px;
    margin-bottom: 34px;
    color: #C5D1DF;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.65;
}

.hero .button {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.hero .button:hover,
.hero .button:focus-visible {
    border-color: #E2B632;
    background: #E2B632;
}

.hero .text-link {
    color: white;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 38px;
    color: #BAC6D4;
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-proof span {
    position: relative;
    padding-left: 17px;
}

.hero-proof span::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

.hero-attribution {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - var(--container)) / 2));
    bottom: 30px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    margin: 0;
    color: white;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: right;
}

.hero-attribution strong {
    color: white;
    font-size: 0.86rem;
}

.hero-attribution span {
    color: #A8BACB;
}

.product-stage {
    position: relative;
    min-width: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-screenshot {
    position: relative;
    z-index: 2;
    width: 112%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-lg);
}

.hero-screenshot img {
    width: 100%;
    height: auto;
}

.hero-screenshot figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.92);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.hero-screenshot figcaption span {
    color: var(--accent);
}

.stage-accent {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 78%;
    height: 80%;
    border: 1px solid rgba(15, 76, 92, 0.18);
    border-radius: var(--radius);
    background: rgba(15, 76, 92, 0.04);
    transform: rotate(3deg);
}

.dashboard-window {
    position: relative;
    z-index: 2;
    width: 112%;
    overflow: hidden;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

.dashboard-topbar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
}

.mini-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.7rem;
}

.mini-mark {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    background: var(--primary);
    color: white;
    font-weight: 850;
}

.dashboard-actions {
    display: flex;
    gap: 7px;
}

.dashboard-actions span {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--background);
}

.dashboard-body {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 415px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px 18px;
    background: var(--primary);
}

.dash-line {
    height: 7px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.22);
}

.dash-line.short {
    width: 70%;
}

.dash-line.active {
    background: var(--accent);
}

.dashboard-content {
    padding: 26px 24px;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 23px;
}

.dashboard-heading small,
.dashboard-heading strong {
    display: block;
}

.dashboard-heading small {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.62rem;
}

.dashboard-heading strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.status-dot {
    padding: 4px 8px;
    border-radius: 3px;
    background: #E7F3F1;
    color: var(--success);
    font-size: 0.6rem;
    font-weight: 800;
}

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

.metric {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.metric-featured {
    border-color: rgba(15, 76, 92, 0.24);
    background: #F2F7F8;
}

.metric span,
.metric strong,
.metric small {
    display: block;
}

.metric span {
    color: var(--muted);
    font-size: 0.57rem;
    font-weight: 700;
}

.metric strong {
    margin: 4px 0 2px;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.1;
}

.metric small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.5rem;
    white-space: nowrap;
}

.dashboard-lower {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 10px;
    margin-top: 12px;
}

.activity-panel,
.assistant-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
}

.activity-panel {
    padding: 13px;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 0.56rem;
}

.panel-title span {
    color: var(--secondary);
}

.activity-row {
    display: grid;
    grid-template-columns: 7px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 47px;
    border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row > i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
}

.activity-row span,
.activity-row b,
.activity-row small {
    display: block;
}

.activity-row b {
    color: var(--text);
    font-size: 0.51rem;
}

.activity-row small,
.activity-row em {
    color: var(--muted);
    font-size: 0.46rem;
    font-style: normal;
}

.assistant-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
    background: var(--primary);
    color: white;
}

.assistant-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(212, 160, 23, 0.15);
    color: var(--accent);
}

.assistant-icon svg {
    width: 18px;
    height: 18px;
}

.assistant-panel > span {
    color: #CBD5E1;
    font-size: 0.52rem;
}

.assistant-panel > strong {
    margin-bottom: 12px;
    font-size: 0.65rem;
}

.recommendation {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.recommendation small,
.recommendation b {
    display: block;
}

.recommendation small {
    color: var(--accent);
    font-size: 0.46rem;
}

.recommendation b {
    font-size: 0.5rem;
}

.floating-note {
    position: absolute;
    z-index: 4;
    right: -34px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 188px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: var(--shadow-md);
}

.note-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #F7F0DA;
    color: var(--accent-dark);
}

.note-icon svg {
    width: 17px;
}

.floating-note small,
.floating-note strong {
    display: block;
}

.floating-note small {
    color: var(--muted);
    font-size: 0.55rem;
}

.floating-note strong {
    color: var(--primary);
    font-size: 0.68rem;
}

.section-number {
    display: block;
    margin-bottom: 22px;
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 850;
}

.section-number.light {
    color: #80B2BD;
}

.problem-section {
    position: relative;
    overflow: hidden;
    background: white;
}

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

.section-heading {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 22px;
}

.section-heading .section-number {
    padding-top: 10px;
}

.section-heading h2 {
    max-width: 700px;
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.section-heading p {
    max-width: 670px;
    margin-bottom: 0;
    font-size: 1.03rem;
}

.tool-scatter {
    position: relative;
    min-height: 440px;
    border-left: 1px solid var(--border);
}

.tool-card {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 720;
    box-shadow: var(--shadow-sm);
}

.tool-card svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.tool-mail { top: 4%; left: 9%; }
.tool-excel { top: 10%; right: 4%; }
.tool-crm { top: 41%; left: 17%; }
.tool-cloud { top: 32%; right: -1%; }
.tool-tasks { bottom: 9%; left: 2%; }
.tool-chat { right: 10%; bottom: 5%; }

.broken-path {
    position: absolute;
    height: 1px;
    border-top: 1px dashed #CBD5E1;
    transform-origin: left;
}

.path-a { top: 22%; left: 30%; width: 42%; transform: rotate(14deg); }
.path-b { top: 52%; left: 26%; width: 50%; transform: rotate(-7deg); }
.path-c { top: 75%; left: 20%; width: 52%; transform: rotate(11deg); }

.solution-section {
    background: var(--primary);
}

.solution-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: end;
    gap: 90px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-dark);
}

.solution-intro h2 {
    max-width: 760px;
    margin-bottom: 0;
    color: white;
}

.solution-intro > p {
    margin-bottom: 4px;
    color: #B8C4D2;
}

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

.feature-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 18px;
    min-height: 210px;
    padding: 44px 34px 42px 0;
    border-bottom: 1px solid var(--border-dark);
}

.feature-item:not(:nth-child(3n + 1)) {
    padding-left: 34px;
    border-left: 1px solid var(--border-dark);
}

.feature-item:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature-item h3 {
    color: white;
}

.feature-item p {
    margin-bottom: 0;
    color: #94A3B8;
    font-size: 0.92rem;
}

.layers-section {
    background: white;
}

.layers-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(540px, 1.2fr);
    align-items: center;
    gap: 100px;
}

.layers-copy p {
    max-width: 550px;
    margin-bottom: 30px;
    font-size: 1.02rem;
}

.layer-stack {
    position: relative;
    min-height: 480px;
}

.layer {
    position: absolute;
    left: 50%;
    width: min(100%, 560px);
    min-height: 82px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transform: translateX(-50%);
}

.layer span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: var(--background);
    color: var(--secondary);
    font-size: 0.63rem;
    font-weight: 850;
}

.layer strong {
    color: var(--primary);
}

.layer small {
    color: var(--muted);
    font-size: 0.7rem;
}

.layer-intelligence { top: 0; width: 80%; z-index: 5; }
.layer-communication { top: 92px; width: 88%; z-index: 4; }
.layer-automation { top: 184px; width: 94%; z-index: 3; }
.layer-core {
    top: 276px;
    z-index: 2;
    border-color: var(--secondary);
    background: var(--secondary);
}
.layer-core strong,
.layer-core small {
    color: white;
}
.layer-core span {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent);
}
.layer-infrastructure { top: 368px; z-index: 1; background: var(--background); }

.modules-section {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.difference-section {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.difference-heading {
    margin-bottom: 48px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.difference-card {
    min-height: 280px;
    padding: 38px;
    background: white;
}

.difference-card + .difference-card {
    border-left: 1px solid var(--border);
}

.difference-card > span {
    display: block;
    margin-bottom: 50px;
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 850;
}

.difference-card h3 {
    max-width: 280px;
    font-size: 1.35rem;
}

.difference-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
}

.founder-section {
    background: var(--secondary);
    color: white;
}

.founder-grid {
    display: grid;
    grid-template-columns: minmax(440px, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.founder-visual {
    min-width: 0;
}

.founder-photo-frame {
    position: relative;
    aspect-ratio: 16 / 11;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: #0B3B48;
    box-shadow: 0 30px 70px rgba(4, 16, 24, 0.28);
}

.founder-photo-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 38% center;
}

.founder-photo-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    padding: 34px;
    background:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        #0B3B48;
    background-size: 48px 48px;
}

.founder-photo-frame.is-missing > img {
    display: none;
}

.founder-photo-frame.is-missing .founder-photo-placeholder {
    display: flex;
}

.founder-photo-placeholder strong {
    color: white;
    font-size: 4rem;
    line-height: 1;
}

.founder-photo-placeholder span {
    margin-top: 14px;
    color: #A9C8CF;
    font-size: 0.8rem;
}

.founder-signature {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    padding: 48px 22px 20px;
    border: 0;
    background: linear-gradient(transparent, rgba(4, 12, 20, 0.9));
}

.founder-signature strong {
    color: white;
}

.founder-signature span {
    color: #A9C8CF;
    font-size: 0.8rem;
}

.founder-copy h2 {
    max-width: 720px;
    color: white;
}

.founder-copy > p {
    max-width: 760px;
    color: #C2D7DC;
    font-size: 1.02rem;
}

.founder-kicker {
    margin-bottom: 10px;
    color: var(--accent) !important;
    font-size: 0.83rem !important;
    font-weight: 850;
}

.founder-statement {
    margin: 32px 0 22px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 750;
}

.founder-note {
    margin-bottom: 0;
    color: #8FB7C0 !important;
    font-size: 0.84rem !important;
}

.section-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.7fr);
    align-items: end;
    gap: 100px;
    margin-bottom: 50px;
}

.section-title-row h2 {
    max-width: 750px;
    margin-bottom: 0;
}

.section-title-row > p {
    margin-bottom: 5px;
}

.module-list {
    border-top: 1px solid var(--border);
}

.module-item {
    display: grid;
    grid-template-columns: 50px minmax(220px, 0.9fr) minmax(260px, 1.1fr) 1fr;
    align-items: center;
    gap: 25px;
    min-height: 92px;
    border-bottom: 1px solid var(--border);
    transition: background 160ms ease, padding 160ms ease;
}

.module-item:hover {
    padding-inline: 16px;
    background: white;
}

.module-item > span {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 850;
}

.module-item h3,
.module-item p {
    margin-bottom: 0;
}

.module-item p {
    font-size: 0.9rem;
}

.module-item i {
    justify-self: end;
    width: 72px;
    height: 1px;
    background: var(--accent);
}

.audience-section {
    background: var(--secondary);
}

.audience-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 110px;
}

.audience-heading h2 {
    color: white;
}

.audience-heading p {
    max-width: 540px;
    color: #BCD1D6;
}

.audience-list {
    margin-bottom: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.audience-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    min-height: 68px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 1.03rem;
    font-weight: 680;
}

.audience-list span {
    color: #80B2BD;
    font-size: 0.68rem;
    font-weight: 850;
}

.demo-section {
    background: white;
}

.screenshots-section {
    border-bottom: 1px solid var(--border);
    background: white;
}

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

.screenshot-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.screenshot-wide {
    grid-column: 1 / -1;
}

.screenshot-media {
    aspect-ratio: 16 / 8.2;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.screenshot-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 300ms ease;
}

.screenshot-card:hover .screenshot-media img {
    transform: scale(1.012);
}

.screenshot-placeholder {
    background:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px),
        var(--background);
    background-size: 42px 42px;
}

.screenshot-placeholder-content {
    display: none;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    padding: 34px;
}

.optional-screenshot-frame.is-missing > img {
    display: none;
}

.optional-screenshot-frame.is-missing .screenshot-placeholder-content {
    display: flex;
}

.screenshot-placeholder-content span {
    margin-bottom: auto;
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 850;
}

.screenshot-placeholder-content strong {
    color: var(--primary);
    font-size: 1.65rem;
}

.screenshot-placeholder-content small {
    max-width: 330px;
    color: var(--muted);
}

.screenshot-card figcaption {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 24px;
    padding: 22px 24px;
}

.screenshot-card figcaption strong {
    color: var(--primary);
}

.screenshot-card figcaption span {
    color: var(--muted);
    font-size: 0.85rem;
}

.demo-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
    align-items: center;
    gap: 80px;
    padding: 70px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    box-shadow: var(--shadow-md);
}

.demo-copy p {
    max-width: 520px;
    margin-bottom: 30px;
}

.demo-preview {
    overflow: hidden;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-sm);
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(12%);
}

.demo-preview > img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: top left;
}

.demo-browser-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.demo-browser-bar > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #CBD5E1;
}

.demo-browser-bar > span:nth-child(1) { background: var(--danger); }
.demo-browser-bar > span:nth-child(2) { background: var(--warning); }
.demo-browser-bar > span:nth-child(3) { background: var(--success); }

.demo-browser-bar small {
    margin-left: 20px;
    color: var(--muted);
    font-size: 0.58rem;
}

.demo-screen {
    display: grid;
    grid-template-columns: 62px 1fr;
    min-height: 340px;
}

.demo-screen aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px 12px;
    background: var(--primary);
}

.demo-screen aside b {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.65rem;
}

.demo-screen aside i {
    width: 24px;
    height: 5px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.demo-main {
    padding: 34px 26px;
}

.demo-line {
    height: 11px;
    border-radius: 2px;
    background: #CBD5E1;
}

.demo-line.wide {
    width: 42%;
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 28px 0 22px;
}

.demo-cards span {
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--background);
}

.demo-cards span:first-child {
    border-color: #B2D1D8;
    background: #F2F7F8;
}

.demo-table {
    border: 1px solid var(--border);
    border-radius: 3px;
}

.demo-table i {
    display: block;
    height: 40px;
    border-bottom: 1px solid var(--border);
}

.demo-table i:last-child {
    border-bottom: 0;
}

.trust-section {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    align-items: center;
    gap: 110px;
}

.trust-heading h2 {
    max-width: 570px;
    margin-bottom: 0;
}

.trust-copy {
    padding-left: 50px;
    border-left: 1px solid var(--border);
}

.trust-copy > p {
    font-size: 1.08rem;
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.trust-points span {
    padding: 8px 10px;
    border: 1px solid #BFD4D8;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 750;
}

.contact-section {
    background: var(--primary);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) auto;
    align-items: center;
    gap: 80px;
}

.contact-inner h2 {
    color: white;
}

.contact-inner p {
    max-width: 660px;
    margin-bottom: 0;
    color: #AFC0D1;
    font-size: 1.04rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.contact-mail {
    color: white;
    font-size: 0.86rem;
    font-weight: 650;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer {
    padding-top: 80px;
    background: #0A101E;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 0.75fr);
    gap: 70px;
    padding-bottom: 70px;
}

.footer-logo {
    width: 270px;
    height: auto;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.96);
}

.footer-brand p {
    max-width: 330px;
    margin: 24px 0 0;
    color: #8391A4;
    font-size: 0.9rem;
}

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

.footer-column h2 {
    margin-bottom: 8px;
    color: white;
    font-size: 0.82rem;
}

.footer-column a {
    width: fit-content;
    color: #94A3B8;
    font-size: 0.83rem;
    transition: color 160ms ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #718096;
    font-size: 0.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 0.87rem;
    font-weight: 720;
}

.legal-page {
    background: white;
}

.legal-main {
    min-height: calc(100vh - 160px);
    padding: 150px 0 100px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    justify-content: center;
    gap: 100px;
}

.legal-sidebar {
    position: sticky;
    top: 125px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding-top: 6px;
}

.legal-sidebar span {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.legal-sidebar strong,
.legal-sidebar a {
    font-size: 0.9rem;
}

.legal-sidebar strong {
    color: var(--primary);
}

.legal-sidebar a {
    color: var(--muted);
}

.legal-document h1 {
    margin-bottom: 10px;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
}

.legal-lead {
    margin-bottom: 60px;
    font-size: 1.08rem;
}

.placeholder-alert {
    margin-bottom: 50px;
    padding: 20px 22px;
    border: 1px solid #F2D39B;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    background: #FFF8E8;
}

.placeholder-alert strong {
    display: block;
    color: #8A4B05;
}

.placeholder-alert p {
    margin: 4px 0 0;
    color: #7C5A2F;
    font-size: 0.88rem;
}

.legal-document section {
    padding: 34px 0;
    border-top: 1px solid var(--border);
}

.legal-document h2 {
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.legal-document p,
.legal-document address,
.legal-document li {
    max-width: 720px;
    color: #526071;
    font-style: normal;
}

.legal-document ul {
    display: grid;
    gap: 7px;
    margin: 0 0 22px;
    padding-left: 22px;
}

.legal-document li::marker {
    color: var(--secondary);
}

.legal-document mark {
    padding: 1px 4px;
    background: #FFF3C4;
    color: #755500;
}

.legal-data {
    margin-bottom: 0;
}

.legal-data > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.legal-data dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.legal-data dd {
    margin: 0;
}

.legal-footer {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.legal-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    color: var(--muted);
    font-size: 0.78rem;
}

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

.legal-footer a[aria-current="page"] {
    color: var(--primary);
    font-weight: 750;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    .brand-logo {
        width: 188px;
        height: 52px;
    }

    .primary-nav {
        gap: 18px;
    }

    .header-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 610px) 1fr;
        gap: 30px;
    }

    .dashboard-window {
        width: 108%;
    }

    .problem-grid,
    .layers-grid,
    .audience-grid {
        gap: 60px;
    }

    .feature-item {
        grid-template-columns: 40px 1fr;
        padding-right: 24px;
    }

    .feature-item:not(:nth-child(3n + 1)) {
        padding-left: 24px;
    }

    .demo-shell {
        padding: 56px;
        gap: 50px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .section {
        padding-block: 92px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-nav {
        position: absolute;
        z-index: 99;
        top: 100%;
        right: 0;
        bottom: auto;
        width: min(86vw, 380px);
        height: calc(100vh - var(--header-height));
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 24px;
        overflow-y: auto;
        border-left: 1px solid var(--border);
        background: white;
        box-shadow: -24px 0 60px rgba(15, 23, 42, 0.12);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }

    .primary-nav a {
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

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

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

    .hero-grid,
    .problem-grid,
    .layers-grid,
    .audience-grid,
    .trust-grid,
    .founder-grid,
    .contact-inner,
    .solution-intro,
    .section-title-row,
    .demo-shell {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: 560px;
        gap: 0;
    }

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

    .hero-portrait {
        object-position: 58% center;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(4, 10, 18, 0.98) 0%, rgba(4, 10, 18, 0.88) 52%, rgba(4, 10, 18, 0.2) 100%);
    }

    .founder-grid {
        gap: 60px;
    }

    .founder-visual {
        width: min(100%, 720px);
    }

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

    .difference-card {
        min-height: 0;
    }

    .difference-card + .difference-card {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .difference-card > span {
        margin-bottom: 25px;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-wide {
        grid-column: auto;
    }

    .problem-grid {
        gap: 50px;
    }

    .tool-scatter {
        min-height: 360px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

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

    .feature-item,
    .feature-item:not(:nth-child(3n + 1)) {
        padding: 34px 24px;
        border-bottom: 1px solid var(--border-dark);
    }

    .feature-item:nth-child(even) {
        border-left: 1px solid var(--border-dark);
    }

    .feature-item:nth-child(odd) {
        border-left: 0;
    }

    .feature-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .layers-grid,
    .audience-grid {
        gap: 65px;
    }

    .layer-stack {
        width: min(100%, 660px);
        margin-inline: auto;
    }

    .section-title-row {
        gap: 20px;
    }

    .section-title-row > p {
        max-width: 650px;
    }

    .audience-list {
        width: min(100%, 680px);
    }

    .demo-shell {
        padding: 52px;
    }

    .demo-preview {
        width: 108%;
        transform: none;
    }

    .trust-grid {
        gap: 45px;
    }

    .trust-copy {
        padding: 35px 0 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .contact-inner {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 35px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .legal-sidebar {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding-bottom: 22px;
        border-bottom: 1px solid var(--border);
    }

    .legal-sidebar span {
        margin: 0 auto 0 0;
    }
}

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

    .section {
        padding-block: 76px;
    }

    h1 {
        font-size: clamp(2.5rem, 12vw, 3.65rem);
        hyphens: auto;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(2rem, 9vw, 2.85rem);
    }

    .hero {
        min-height: 760px;
        padding: 104px 0 94px;
    }

    .hero-grid {
        min-height: 560px;
        align-items: end;
        gap: 0;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero-proof {
        display: grid;
        gap: 10px;
    }

    .hero-portrait {
        object-position: 69% center;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(4, 10, 18, 0.18) 0%, rgba(4, 10, 18, 0.35) 38%, rgba(4, 10, 18, 0.98) 72%, rgba(4, 10, 18, 1) 100%);
    }

    .hero-attribution {
        display: none;
    }

    .brand-logo {
        width: 168px;
        height: 46px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tool-scatter {
        min-height: 430px;
    }

    .tool-mail { left: 0; }
    .tool-excel { right: 0; }
    .tool-crm { left: 4%; }
    .tool-cloud { right: 0; }
    .tool-tasks { left: 0; }
    .tool-chat { right: 0; }

    .feature-matrix {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .feature-item:not(:nth-child(3n + 1)) {
        min-height: 0;
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-dark);
        border-left: 0;
    }

    .feature-item:nth-last-child(2) {
        border-bottom: 1px solid var(--border-dark);
    }

    .layer-stack {
        min-height: 510px;
    }

    .layer {
        grid-template-columns: 40px 1fr;
        min-height: 90px;
    }

    .layer small {
        grid-column: 2;
    }

    .layer-intelligence { width: 88%; }
    .layer-communication { top: 98px; width: 93%; }
    .layer-automation { top: 196px; width: 97%; }
    .layer-core { top: 294px; }
    .layer-infrastructure { top: 392px; }

    .module-item {
        grid-template-columns: 38px 1fr auto;
        gap: 14px;
        padding: 18px 0;
    }

    .module-item p {
        grid-column: 2 / -1;
    }

    .module-item i {
        width: 34px;
    }

    .difference-card {
        padding: 30px 22px;
    }

    .founder-grid {
        gap: 45px;
    }

    .founder-visual {
        max-width: none;
    }

    .founder-photo-placeholder {
        padding: 24px;
    }

    .founder-photo-placeholder strong {
        font-size: 3rem;
    }

    .screenshot-gallery {
        gap: 18px;
    }

    .screenshot-card figcaption {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 18px;
    }

    .screenshot-placeholder {
        min-height: 250px;
    }

    .screenshot-placeholder-content {
        padding: 24px;
    }

    .audience-list li {
        grid-template-columns: 45px 1fr;
        min-height: 62px;
        font-size: 0.92rem;
    }

    .demo-shell {
        padding: 32px 24px 0;
    }

    .demo-preview {
        width: calc(100% + 48px);
        margin-left: -24px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
    }

    .demo-screen {
        min-width: 500px;
        transform: scale(0.75);
        transform-origin: left top;
    }

    .demo-preview {
        max-height: 320px;
    }

    .demo-preview > img {
        min-height: 250px;
    }

    .trust-points {
        display: grid;
    }

    .contact-actions {
        width: 100%;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        width: min(100%, 270px);
    }

    .footer-bottom,
    .legal-footer .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .legal-main {
        padding-top: 120px;
    }

    .legal-sidebar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .legal-sidebar span {
        width: 100%;
    }

    .legal-lead {
        margin-bottom: 42px;
    }

    .legal-data > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

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

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

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

/* MKT-09A.1: Blog (Uebersicht /blog + Detailseite /blog/{slug}) -- nutzt ausschliesslich
   bestehende Design-Tokens/Klassen (.container, .section, .button), keine neue Optik. */

.blog-index {
    padding-top: 150px;
}

.blog-empty {
    text-align: center;
    padding-block: 40px;
}

/* MKT-16.1a ROOT CAUSE: diese Regel stammte noch aus der VOR-MKT-16.1-Vertikalkarte (Bild oben,
   Text darunter), fuer die eine 320px-Mindestspalte ausreichte -- dabei blieb sie unveraendert,
   als die Karte in MKT-16.1 auf ein horizontales 240px-Thumbnail-plus-Text-Layout umgestellt
   wurde. Ergebnis: auto-fill erzeugte auf jedem normalen Desktop-Viewport weiterhin 2-3 Spalten zu
   je ~320-380px -- abzueglich 240px Thumbnail, Gap und Padding blieben dem Text nur noch ~60-90px
   Breite, das Word-Wrapping blies die Card auf ueber 450px Hoehe auf (per getBoundingClientRect
   gemessen, siehe Abschlussbericht). Fix: eine Spalte ueber die volle Container-Breite -- exakt
   das im Auftrag skizzierte Layout ("ein Beitrag pro Zeile"), macht auf jeder Breite genug Platz
   fuer Thumbnail + lesbaren Text nebeneinander. */
.blog-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 56px;
}

.blog-card {
    display: flex;
    /* MKT-16.1: Desktop-Basisformat ist jetzt eine kompakte, horizontale Editorial-Card (Bild
       links, Inhalt rechts) statt des bisherigen grossen Bild-oben-Layouts -- Inhalt soll optisch
       dominieren, das Bild dient nur noch als Vorschau (siehe Abschlussbericht Root Cause). Auf
       Mobile (@media max-width:720px unten) wieder gestapelt. */
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* MKT-16.1a: Richtwert 220-260px Breite / 140-170px Hoehe (verschaerft gegenueber MKT-16.1) --
   3:2 statt 4:3, damit 240px Breite eine Hoehe von 160px ergibt (innerhalb des Zielkorridors).
   object-fit: contain statt cover, damit ein UI-Screenshot nie sinnlos beschnitten wird. Neutraler
   Hintergrund + Rahmen fuellen den Rand, wenn das Bild nicht exakt das Seitenverhaeltnis der Box
   trifft (Letterboxing statt Cropping). Karte ohne Bild rendert dieses Element gar nicht (kein
   Platzhalter). */
.blog-card-media {
    flex: 0 0 240px;
    width: 240px;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.blog-card-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.blog-card-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-card-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.25rem;
    line-height: 1.35;
}

/* MKT-16.1a: Excerpt-Hoehe begrenzen (Abschnitt "Card-Hoehe"), sonst kann ein langer Excerpt-Text
   die Card unabhaengig vom Bild auf 500-700px aufblaehen -- 2-zeilige Kappung per line-clamp. */
.blog-card-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    margin-top: auto;
    padding-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary);
    font-weight: 700;
}

.blog-card-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.blog-article {
    padding-top: 150px;
}

.blog-article-layout {
    max-width: 720px;
}

.blog-article-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-article-layout h1 {
    margin-top: 8px;
    max-width: none;
    color: var(--primary);
    /* MKT-09A.2: Formel statt vorherigem clamp(2rem,3vw,2.6rem) -- der alte Floor griff auf
       Notebook-Breiten (~1024px) noch fast so frueh wie auf Mobile und blieb dort spuerbar unter
       dem Desktop-Zielkorridor. clamp(1.875rem,1.5rem+1.9vw,2.625rem) = 30px..42px, trifft 30-34px
       auf Mobile (375-430px) und haelt 36-42px ab Notebook/Desktop-Breiten. */
    font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.625rem);
    line-height: 1.2;
}

/* MKT-16.1: kein Full-Width-Hero mehr -- begrenzte Lesebreite (Richtwert 560-640px), zentriert.
   object-fit: contain + neutraler Hintergrund statt cover: ein Screenshot wird nie beschnitten,
   ein untypisches Seitenverhaeltnis fuehrt nur zu Letterboxing innerhalb des begrenzten Rahmens. */
.blog-article-featured-image-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 620px;
    max-height: 420px;
    margin: 24px auto 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: zoom-in;
    transition: box-shadow 0.2s ease;
}

.blog-article-featured-image-frame:hover,
.blog-article-featured-image-frame:focus-visible {
    box-shadow: var(--shadow-md);
}

/* Reset des <button>, das den Rahmen fuer Tastatur-/Screenreader-Bedienung umschliesst. */
button.blog-article-featured-image-frame {
    width: 100%;
    font: inherit;
    color: inherit;
    background: var(--background);
    border: 1px solid var(--border);
    -webkit-appearance: none;
    appearance: none;
}

.blog-article-featured-image {
    display: block;
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* MKT-16.1: native <dialog> statt Lightbox-Library -- liefert ESC-Schliessen, Fokus-Trap und
   Ruecksprung des Fokus zum ausloesenden Element automatisch vom Browser (siehe Abschlussbericht,
   Abschnitt Accessibility). */
.blog-lightbox {
    max-width: min(94vw, 1400px);
    max-height: 92vh;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    box-shadow: var(--shadow-lg);
}

.blog-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.72);
}

.blog-lightbox-image {
    display: block;
    max-width: min(94vw, 1400px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.blog-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: white;
    background: rgba(15, 23, 42, 0.55);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.blog-lightbox-close:hover,
.blog-lightbox-close:focus-visible {
    background: rgba(15, 23, 42, 0.8);
}

.blog-article-body {
    margin-top: 32px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text);
}

/* MKT-09A.2: Root Cause der zu grossen Blog-Zwischenueberschriften -- die globalen h1/h2/h3-Regeln
   weiter oben in dieser Datei sind fuer Landingpage-Hero-Sections gedacht (h2 bis 3.6rem/57.6px)
   und schlugen bislang ungebremst auf jedes <h2>/<h3> im Markdown-Content durch, da hierfuer keine
   blog-spezifische Regel existierte. Ab hier: eigene, zurueckhaltende Lesetypografie, ausschliesslich
   unter .blog-article-body -- die Landingpage-Headings ausserhalb dieses Containers bleiben
   unveraendert. */
.blog-article-body h2,
.blog-article-body h3,
.blog-article-body h4,
.blog-article-body h5,
.blog-article-body h6 {
    color: var(--primary);
    font-weight: 750;
    line-height: 1.3;
    max-width: none;
}

.blog-article-body h2 {
    /* mehr Abstand nach oben (neuer Abschnitt) als nach unten (gehoert zum folgenden Absatz) */
    margin: 48px 0 16px;
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.blog-article-body h3 {
    margin: 36px 0 12px;
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
}

.blog-article-body h4,
.blog-article-body h5 {
    margin: 28px 0 10px;
    font-size: 1.1rem;
}

.blog-article-body h6 {
    margin: 28px 0 10px;
    font-size: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-article-body > :first-child {
    margin-top: 0;
}

.blog-article-body p {
    margin: 0 0 24px;
    color: var(--text);
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 24px;
    padding-left: 1.3em;
    color: var(--text);
}

.blog-article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-article-body li:last-child {
    margin-bottom: 0;
}

.blog-article-body blockquote {
    margin: 32px 0;
    padding: 2px 0 2px 20px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

.blog-article-body blockquote p {
    margin: 0;
    color: inherit;
}

.blog-article-body strong {
    color: var(--primary);
    font-weight: 700;
}

.blog-article-body a {
    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: rgba(15, 76, 92, 0.35);
    text-underline-offset: 2px;
}

.blog-article-body a:hover {
    color: var(--accent-dark);
    text-decoration-color: currentColor;
}

.blog-article-body a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* MKT-09A.2b: semantische Callout-Box -- vier feste Typen, alle Farben aus bestehenden
   Design-Tokens (:root oben in dieser Datei), keine neuen Hex-Werte, keine vom Autor frei
   waehlbare Farbe/Klasse (siehe Allowlist in BlogContentRenderer::CALLOUT_TYPES). Bewusst
   zurueckhaltend gehalten -- dezenter Tint-Hintergrund, schmale Akzentkante (gleiches Prinzip
   wie .blog-article-body blockquote), kein grelles Alert-Design. */
.blog-callout {
    margin: 32px 0;
    padding: 18px 22px;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-left-style: solid;
    border-radius: var(--radius);
}

.blog-callout > :first-child {
    margin-top: 0;
}

.blog-callout > :last-child {
    margin-bottom: 0;
}

.blog-callout-label {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Innerhalb der Box etwas knapperer Rhythmus als im uebrigen Fliesstext (.blog-article-body p/h3
   weiter oben) -- die Box selbst schafft schon genug visuelle Trennung, muss innen nicht nochmal
   die volle Artikel-Vertikalabstaende wiederholen. Hoehere Selektor-Spezifitaet gewinnt bewusst
   gegen die allgemeineren .blog-article-body-Regeln. */
.blog-article-body .blog-callout p,
.blog-article-body .blog-callout ul,
.blog-article-body .blog-callout ol {
    margin: 0 0 14px;
}

.blog-article-body .blog-callout h3 {
    margin: 20px 0 10px;
}

.blog-callout--highlight {
    background: rgba(212, 160, 23, 0.08);
    border-left-color: var(--accent);
}

.blog-callout--highlight .blog-callout-label {
    color: var(--accent-dark);
}

.blog-callout--info {
    background: rgba(15, 76, 92, 0.05);
    border-left-color: var(--secondary);
}

.blog-callout--info .blog-callout-label {
    color: var(--secondary);
}

.blog-callout--idea {
    background: rgba(15, 118, 110, 0.06);
    border-left-color: var(--success);
}

.blog-callout--idea .blog-callout-label {
    color: var(--success);
}

.blog-callout--note {
    background: rgba(100, 116, 139, 0.06);
    border-left-color: var(--muted);
}

.blog-callout--note .blog-callout-label {
    color: var(--muted);
}

.blog-article-cta {
    margin-top: 12px;
    padding: 22px 26px;
    background: var(--primary-soft);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
}

.blog-article-back {
    display: inline-block;
    margin-top: 40px;
}

.blog-not-found {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
}

.blog-not-found h1 {
    color: var(--primary);
}

@media (max-width: 720px) {
    .blog-index,
    .blog-article,
    .blog-not-found {
        padding-top: 130px;
    }

    .blog-card {
        flex-direction: column;
        padding: 24px;
    }

    .blog-card-media {
        width: 100%;
        flex-basis: auto;
    }

    /* MKT-09A.2: etwas knapperer vertikaler Rhythmus auf schmalen Screens -- die Verhaeltnisse
       (mehr Abstand vor der Ueberschrift als danach) bleiben erhalten, nur die absoluten Werte
       schrumpfen, damit auf Mobile nicht unverhaeltnismaessig viel Leerraum entsteht. */
    .blog-article-body h2 {
        margin: 36px 0 14px;
    }

    .blog-article-body h3,
    .blog-article-body h4,
    .blog-article-body h5,
    .blog-article-body h6 {
        margin: 26px 0 10px;
    }

    .blog-callout {
        margin: 24px 0;
        padding: 16px 18px;
    }
}
