:root {
    --bg: #f5f1e8;
    --bg-strong: #e5dcc7;
    --surface: rgba(255, 252, 246, 0.9);
    --surface-strong: #fffaf0;
    --ink: #1d2c2f;
    --ink-soft: #4f5f60;
    --line: rgba(29, 44, 47, 0.12);
    --brand: #ea6a1f;
    --brand-deep: #b84811;
    --accent: #0f8a8d;
    --accent-soft: #d7f0eb;
    --spot: #f4c95d;
    --shadow: 0 24px 60px rgba(22, 28, 30, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shell: 1240px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    font-family: Avenir Next, Avenir, Trebuchet MS, Segoe UI, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(234, 106, 31, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 138, 141, 0.16), transparent 30%),
        linear-gradient(180deg, #fbf8f2 0%, var(--bg) 44%, #f1eadb 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(245, 241, 232, 0.82);
    border-bottom: 1px solid rgba(29, 44, 47, 0.06);
}

.topbar,
.footer-grid,
.section-shell,
.hero-grid,
.story-grid,
.split-grid,
.highlight-band,
.cta-panel,
.shot-masonry,
.breadcrumbs,
.compare-grid,
.quote-row {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand strong {
    font-size: 1.38rem;
}

.brand small {
    margin-top: 5px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.site-nav a,
.lang-switch,
.buy-button {
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.site-nav a {
    color: var(--ink-soft);
}

.site-nav a.is-active,
.site-nav a:hover {
    background: rgba(29, 44, 47, 0.08);
    color: var(--ink);
}

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

.lang-dropdown {
    position: relative;
}

.lang-dropdown summary {
    list-style: none;
}

.lang-dropdown summary::-webkit-details-marker {
    display: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 42px;
    padding: 0;
    background: rgba(15, 138, 141, 0.1);
    color: var(--accent);
    cursor: pointer;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 52px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 16px 36px rgba(22, 28, 30, 0.16);
}

.lang-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    border-radius: 12px;
}

.lang-option:hover,
.lang-option:focus {
    background: rgba(15, 138, 141, 0.1);
}

/* Edition switcher in the brand area (edition subsites only) */
.edition-dropdown {
    position: relative;
    align-self: center;
}

.edition-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px 3px 4px;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(29, 44, 47, 0.05);
    transition: background 180ms ease;
}

.edition-dropdown summary::-webkit-details-marker {
    display: none;
}

.edition-dropdown summary:hover {
    background: rgba(29, 44, 47, 0.1);
}

.edition-dropdown .edition-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.62rem;
}

.edition-dropdown .edition-badge:not(.edition-badge--py),
.edition-option .edition-badge:not(.edition-badge--py) {
    background: #4f5b93;
}

.edition-dropdown-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.edition-dropdown-caret {
    font-size: 0.62rem;
    color: var(--ink-soft);
    transition: transform 180ms ease;
}

.edition-dropdown[open] .edition-dropdown-caret {
    transform: rotate(180deg);
}

.edition-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    min-width: 200px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 250, 240, 0.98);
    box-shadow: 0 16px 36px rgba(22, 28, 30, 0.16);
}

.edition-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
}

.edition-option .edition-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.62rem;
}

.edition-option:hover,
.edition-option:focus {
    background: rgba(29, 44, 47, 0.07);
}

/* Slim landing with the two edition entry cards */
.landing-hero {
    padding: 64px 0 24px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.landing-hero .kicker {
    justify-content: center;
}

.landing-hero h1 {
    margin: 14px 0 16px;
}

.landing-editions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 12px 0 64px;
}

.landing-editions .edition-card {
    gap: 16px;
}

.landing-editions .edition-card .button,
.landing-editions .edition-card .button-secondary {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 720px) {
    .landing-editions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.flag-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 20px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(29, 44, 47, 0.16), 0 6px 14px rgba(29, 44, 47, 0.16);
    flex: 0 0 auto;
}

.flag-de {
    background: linear-gradient(180deg, #101010 0 33.333%, #dd0000 33.333% 66.666%, #ffce00 66.666% 100%);
}

.buy-button {
    background: linear-gradient(135deg, var(--brand), #ff9a3c);
    color: #fff;
    box-shadow: 0 16px 32px rgba(234, 106, 31, 0.28);
}

.buy-button:hover,
.lang-switch:hover,
.site-nav a:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
}

.hero {
    padding: 54px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 34px;
    align-items: center;
}

.hero-copy,
.hero-visual,
.section-card,
.cta-panel,
.story-panel,
.feature-card,
.shot-card,
.compare-card,
.quote-card,
.doc-card,
.use-case-card,
.step-card,
.stat-card,
.timeline-card,
.note-card {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy {
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 201, 93, 0.44), transparent 70%);
}

.hero-visual {
    border-radius: 32px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(254, 248, 236, 0.88));
}

.hero-visual img {
    border-radius: 18px;
}

/* Home hero: single column, content-width (shell) hero slider */
.hero-home .hero-copy {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    margin: 30px auto 0;
    width: min(calc(100% - 32px), var(--shell));
}

.hero-slider-viewport {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbf8f2, #f1eadb);
    box-shadow: var(--shadow);
}

.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
}

.hero-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide--scene {
    overflow: hidden;
}

.hero-scene-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 44, 47, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.hero-slider-nav:hover {
    background: #fff;
}

.hero-slider-nav.prev {
    left: 14px;
}

.hero-slider-nav.next {
    right: 14px;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.hero-slider-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 44, 47, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-toggle:hover {
    background: #fff;
    transform: translateY(-1px);
}

.hero-slider-toggle-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.hero-slider-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(29, 44, 47, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dot.is-active {
    background: var(--accent);
    width: 28px;
    border-radius: 6px;
}

@media (max-width: 720px) {
    .hero-slider {
        margin-top: 22px;
    }

    .hero-slider-viewport {
        border-radius: 18px;
    }

    .hero-slider-nav {
        display: none;
    }

    .hero-slider-controls {
        gap: 10px;
    }

    .hero-slider-toggle {
        padding: 9px 14px;
    }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 138, 141, 0.1);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.section-shell h2,
.cta-panel h2,
.footer-grid h2 {
    margin: 18px 0 0;
    font-family: Iowan Old Style, Palatino Linotype, Book Antiqua, Georgia, serif;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.hero-home h1 {
    font-size: clamp(2.1rem, 4.1vw, 3.75rem);
}

.hero p.lead,
.section-intro,
.cta-panel p,
.feature-card p,
.story-panel p,
.use-case-card p,
.doc-card p,
.note-card p,
.quote-card p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.button,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #ff8c2b);
    box-shadow: 0 16px 28px rgba(234, 106, 31, 0.24);
}

.button-secondary {
    background: rgba(29, 44, 47, 0.06);
    color: var(--ink);
}

.button-ghost {
    border: 1px solid rgba(29, 44, 47, 0.15);
    color: var(--ink);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-1px);
}

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

.stat-card {
    border-radius: 18px;
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.section-shell {
    padding: 42px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.section-shell h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.section-eyebrow {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

.story-grid,
.split-grid,
.compare-grid,
.quote-row {
    display: grid;
    gap: 22px;
}

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

.split-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.editions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 8px;
}

.edition-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edition-card--php {
    border-top: 4px solid var(--brand);
}

.edition-card--python {
    border-top: 4px solid var(--accent);
}

.edition-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.edition-head strong {
    display: block;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.edition-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.edition-badge {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #fffaf0;
    background: var(--brand);
}

.edition-badge--py {
    background: #ffd343;
    color: #1d2c2f;
}

.edition-code {
    margin: 0;
    background: #14201f;
    color: #e8f3ef;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    overflow-x: auto;
    font-family: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre;
}

.edition-code code {
    background: none;
    color: inherit;
    padding: 0;
    font: inherit;
}

.edition-code code.hljs {
    background: none;
    color: inherit;
}

.edition-note {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-style: italic;
}

.story-panel,
.compare-card,
.quote-card,
.doc-card,
.use-case-card,
.note-card,
.timeline-card,
.step-card {
    border-radius: var(--radius-lg);
    padding: 26px;
}

.feature-grid,
.doc-grid,
.use-case-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.doc-card,
.use-case-card,
.step-card {
    border-radius: 22px;
    padding: 26px;
}

.feature-card span,
.doc-card span,
.use-case-card span,
.shot-card span,
.timeline-card span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-card h3,
.doc-card h3,
.use-case-card h3,
.timeline-card h3,
.step-card h3,
.compare-card h3 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

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

.shot-card {
    border-radius: 22px;
    overflow: hidden;
}

.shot-card img {
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.shot-card figcaption {
    padding: 18px 18px 22px;
}

.shot-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.12rem;
}

.shot-card p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.highlight-band {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 22px 0 10px;
}

.band-copy,
.band-list {
    border-radius: 24px;
    padding: 28px;
    background: rgba(29, 44, 47, 0.92);
    color: #f9f5ef;
    box-shadow: var(--shadow);
}

.band-copy p,
.band-list li {
    color: rgba(249, 245, 239, 0.82);
}

.band-list ul,
.story-panel ul,
.doc-card ul,
.compare-card ul,
.note-card ul,
.use-case-card ul {
    margin: 14px 0 0;
    padding-left: 20px;
    line-height: 1.7;
}

.cta-panel {
    margin: 32px auto 68px;
    width: min(calc(100% - 32px), var(--shell));
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(215, 240, 235, 0.92));
}

.quote-card {
    background: rgba(29, 44, 47, 0.92);
    color: #fff;
}

.quote-card p {
    color: rgba(255, 255, 255, 0.84);
}

.quote-card strong {
    display: block;
    margin-top: 18px;
    font-size: 0.95rem;
}

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

.compare-card ul {
    margin-top: 18px;
}

.site-footer {
    padding: 44px 0 70px;
}

.site-footer--minimal {
    padding: 32px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.6fr;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid rgba(29, 44, 47, 0.08);
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 10px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
}

.footer-meta {
    width: min(calc(100% - 32px), var(--shell));
    margin: 24px auto 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.footer-meta--minimal {
    margin-top: 0;
    text-align: center;
    border-top: 1px solid rgba(29, 44, 47, 0.08);
    padding-top: 22px;
}

.footer-meta--minimal a {
    color: var(--ink-soft);
    font-weight: 600;
}

.footer-meta--minimal a:hover,
.footer-meta--minimal a:focus {
    color: var(--ink);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 1080px) {
    .hero-grid,
    .story-grid,
    .split-grid,
    .editions-grid,
    .highlight-band,
    .compare-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .doc-grid,
    .use-case-grid,
    .step-grid,
    .shot-masonry,
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        position: absolute;
        top: 84px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 250, 240, 0.98);
        box-shadow: var(--shadow);
        margin-left: 0;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(29, 44, 47, 0.1);
        background: rgba(255, 252, 246, 0.8);
        border-radius: 999px;
        min-width: 48px;
        min-height: 48px;
        padding: 12px 14px;
        cursor: pointer;
    }

    .nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: transform 200ms ease, opacity 200ms ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-copy,
    .hero-visual,
    .cta-panel,
    .story-panel,
    .feature-card,
    .shot-card figcaption,
    .doc-card,
    .use-case-card,
    .step-card,
    .compare-card,
    .quote-card,
    .note-card,
    .timeline-card {
        padding: 20px;
    }

    .feature-grid,
    .doc-grid,
    .use-case-grid,
    .step-grid,
    .shot-masonry,
    .stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-intro {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7.2vw, 2.55rem);
    }

    .hero-home h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.7rem);
    }
}

/* ---- Feature catalogue & capability overview ---- */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 12px;
}

.capability-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: 0 16px 40px rgba(22, 28, 30, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.capability-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.capability-head h3 {
    margin: 0;
    font-size: 1.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.capability-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(234, 106, 31, 0.18), rgba(15, 138, 141, 0.16));
    font-size: 1.5rem;
    flex: none;
}

.capability-card p {
    margin: 0;
    color: var(--ink-soft);
}

.capability-chips {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.capability-chips li {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--brand-deep);
    background: rgba(234, 106, 31, 0.1);
    border: 1px solid rgba(234, 106, 31, 0.2);
    border-radius: 999px;
    padding: 5px 11px;
}

/* Catalogue navigation */
.catalogue-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.catalogue-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.catalogue-nav a:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    background: var(--surface-strong);
}

/* Catalogue blocks */
.catalogue-shell {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.catalogue-block {
    scroll-margin-top: 110px;
}

.catalogue-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.catalogue-head h3 {
    margin: 0 0 4px;
    font-size: 1.5rem;
}

.catalogue-head p {
    margin: 0;
    color: var(--ink-soft);
    max-width: 60ch;
}

.method-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
}

.method-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.method-list code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.method-list span {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .capability-grid,
    .method-list {
        grid-template-columns: 1fr;
    }

    .catalogue-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Terms / keyword band ---- */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 12px;
}

.term-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}

.term-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    color: var(--brand-deep);
}

.term-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

/* === Video gallery === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 30px;
    margin-top: 8px;
}

.video-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 760;
    background: #0d1320;
    border-bottom: 1px solid var(--line);
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.video-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(13, 19, 32, 0.72);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: zoom-in;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.video-card:hover .video-expand,
.video-expand:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.video-expand:hover,
.video-expand:focus-visible {
    background: var(--brand);
}

.video-card figcaption {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-card figcaption .video-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.video-card figcaption strong {
    font-size: 1.15rem;
    color: var(--brand-deep);
}

.video-card figcaption p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

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

/* === Clickable screenshots + lightbox === */
.shot-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    background: none;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.shot-zoom img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .35s ease;
}

.shot-zoom:hover img,
.shot-zoom:focus-visible img {
    transform: scale(1.04);
}

.shot-zoom-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
    background: rgba(13, 19, 32, 0.72);
    color: #fff;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.shot-zoom:hover .shot-zoom-hint,
.shot-zoom:focus-visible .shot-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.shot-zoom:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
    background: rgba(10, 14, 20, 0.86);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .25s ease;
}

.lightbox[hidden] {
    display: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox-figure {
    margin: 0;
    max-width: min(1200px, 96vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: scale(0.96);
    transition: transform .25s ease;
}

.lightbox.is-open .lightbox-figure {
    transform: scale(1);
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #0d1320;
}

.lightbox-figure img[hidden] {
    display: none;
}

.lightbox-video {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #0d1320;
}

.lightbox-video[hidden] {
    display: none;
}

.lightbox-figure figcaption {
    color: #f1ede4;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 600;
}

.lightbox-figure figcaption[hidden] {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: var(--brand);
    transform: rotate(90deg);
}

/* === Synonym keyword band === */
.synonym-band {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.synonym-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.synonym-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.synonym-chips li {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.2;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.synonym-chips li:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--brand-deep);
}

/* ── Get-it nav highlight ─────────────────────────────────────────────────── */
.site-nav a.nav-getit {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 198, 255, 0.35);
    padding: 11px 20px;
}

.site-nav a.nav-getit:hover,
.site-nav a.nav-getit.is-active {
    background: linear-gradient(135deg, #00b4e8, #005fe0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.50);
}

/* ── Get-it page ──────────────────────────────────────────────────────────── */
.getit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 48px 0;
}

.getit-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(22, 28, 30, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
    position: relative;
}

.getit-card--active {
    border-color: rgba(234, 106, 31, 0.35);
    box-shadow: 0 8px 32px rgba(234, 106, 31, 0.12);
}

.getit-card--active:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(234, 106, 31, 0.18);
}

.getit-card__icon {
    font-size: 2.2rem;
    line-height: 1;
}

.getit-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.getit-card__body {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.getit-card__code {
    background: rgba(29, 44, 47, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--ink);
    white-space: pre;
    overflow-x: auto;
}

.getit-badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29, 44, 47, 0.07);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    align-self: flex-start;
}

.getit-reqs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.getit-req {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.getit-req__icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.getit-req__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.getit-req__value {
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 600;
}

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

/* ── Live-Demo Teaser (Demos-Seite) ─────────────────────────────────────── */
.live-teaser {
    width: min(calc(100% - 32px), var(--shell));
    margin: 32px auto;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(22, 32, 36, 0.96) 0%, rgba(14, 28, 32, 0.98) 100%);
    color: #fff;
    padding: 48px 52px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.live-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 60%, rgba(234, 106, 31, 0.22) 0%, transparent 48%),
        radial-gradient(circle at 100% 40%, rgba(15, 138, 141, 0.14) 0%, transparent 48%);
    pointer-events: none;
}

.live-teaser__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 106, 31, 0.14);
    border: 1px solid rgba(234, 106, 31, 0.35);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff9055;
    margin-bottom: 18px;
}

.live-teaser__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 106, 31, 0.5); }
    50%       { opacity: 0.7; transform: scale(0.75); box-shadow: 0 0 0 6px rgba(234, 106, 31, 0); }
}

.live-teaser__headline {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
}

.live-teaser__lead {
    color: rgba(255, 255, 255, 0.68);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 520px;
}

.live-teaser__code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    min-width: 270px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.live-teaser__code pre {
    margin: 0;
}

.live-teaser__code code {
    font-size: 0.83rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    font-family: ui-monospace, 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    white-space: pre;
}

.live-teaser__code .token-method { color: #ff9055; }
.live-teaser__code .token-chain  { color: rgba(255,255,255,0.42); }

/* ── Docs Teaser (Dokumentations-Seite) ─────────────────────────────────── */
.docs-teaser {
    width: min(calc(100% - 32px), var(--shell));
    margin: 32px auto;
    border-radius: var(--radius-xl);
    background: linear-gradient(130deg, rgba(15, 138, 141, 0.08) 0%, rgba(215, 240, 235, 0.88) 100%);
    border: 1px solid rgba(15, 138, 141, 0.18);
    padding: 40px 52px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 8px 40px rgba(15, 138, 141, 0.1);
}

.docs-teaser__icon {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(15, 138, 141, 0.25));
}

.docs-teaser__kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.docs-teaser__headline {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.15;
}

.docs-teaser__lead {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 580px;
}

.docs-teaser__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 760px) {
    .live-teaser {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
    .live-teaser__code { display: none; }
    .live-teaser__headline { font-size: 1.6rem; }

    .docs-teaser {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 16px;
    }
    .docs-teaser__icon { font-size: 2.8rem; }
    .docs-teaser__headline { font-size: 1.5rem; }
}
