/* Front page (homepage) — eigenständiges "Command Center"-Design.
   Bewusst dunkler + editorial: Inter-Schrift, Aurora-Gradienten,
   nummerierte Index-Rows, Arch-Founder, Blog-Karten mit Scroll-Reveal. */

html {
    scroll-behavior: smooth;
}

.mp-front {
    --mpf-bg: #0a0c12;
    --mpf-bg-soft: #0e1118;
    --mpf-card: rgba(255, 255, 255, 0.035);
    --mpf-line: rgba(255, 255, 255, 0.09);
    --mpf-gold: #ffac3b;
    --mpf-gold-2: #ffd9a0;
    --mpf-text: #f4f5f8;
    --mpf-text-soft: #a9aebc;
    background: var(--mpf-bg);
    color: var(--mpf-text);
    font-family: Inter, Montserrat, Arial, sans-serif;
    font-size: 1.02rem;
    letter-spacing: -0.005em;
    overflow-x: clip;
}

.mp-front section[id] {
    scroll-margin-top: calc(var(--lp4-header-h) + 0.75rem);
}

/* ---------- Reveal (nur wenn JS aktiv: .js-reveal) ---------- */
.mp-front.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.mp-front.js-reveal [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Hero ---------- */
.mp-front-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 4vh, 3rem) 0 0;
    background:
        radial-gradient(55% 45% at 78% 8%, rgba(255, 172, 59, 0.16), transparent 62%),
        radial-gradient(42% 40% at 8% 78%, rgba(96, 128, 255, 0.1), transparent 60%),
        var(--mpf-bg);
}

.mp-front-hero::before {
    /* Blueprint-Raster, nach oben ausgeblendet */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, black 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, black 25%, transparent 78%);
    pointer-events: none;
}

.mp-front-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.mp-front-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.3rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--mpf-line);
    border-radius: 999px;
    background: var(--mpf-card);
    color: var(--mpf-gold-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.mp-front-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mpf-gold);
    box-shadow: 0 0 0 0 rgba(255, 172, 59, 0.55);
    animation: mpf-pulse 2.4s ease-out infinite;
}

@keyframes mpf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 172, 59, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 172, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 172, 59, 0); }
}

.mp-front-hero h1 {
    margin: 0;
    font-size: clamp(2.05rem, 9.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.mp-front-hl {
    font-style: normal;
    background: linear-gradient(92deg, var(--mpf-gold-2) 10%, var(--mpf-gold) 55%, #f98e1d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mp-front-sub {
    margin: 1.4rem 0 0;
    max-width: 56ch;
    color: var(--mpf-text-soft);
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    line-height: 1.65;
    font-weight: 300;
}

.mp-front-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.1rem;
}

.mp-front-cta .lp4-btn,
.mp-front-btn {
    width: auto;
    min-width: 210px;
}

.mp-front-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.55rem 1.5rem;
    border: 1px solid var(--mpf-line);
    border-radius: 12px;
    color: var(--mpf-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mp-front-ghost:hover {
    border-color: var(--mpf-gold);
    color: var(--mpf-gold-2);
    background: rgba(255, 172, 59, 0.06);
}

/* ---------- Agent-Console ---------- */
.mp-front-console {
    position: relative;
    border: 1px solid var(--mpf-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--mpf-bg-soft);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 172, 59, 0.06), 0 0 80px rgba(255, 172, 59, 0.05);
    overflow: hidden;
}

.mp-front-console-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid var(--mpf-line);
}

.mp-front-console-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3d424f;
}

.mp-front-console-bar i:first-child { background: #ff5f57; }
.mp-front-console-bar i:nth-child(2) { background: #febc2e; }
.mp-front-console-bar i:nth-child(3) { background: #28c840; }

.mp-front-console-bar span {
    margin-left: 0.5rem;
    color: var(--mpf-text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.mp-front-console-body {
    padding: 1.1rem 1.2rem 1.3rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 2;
    color: var(--mpf-text-soft);
    min-height: 15.5em;
}

.mp-front-term-line {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding-left: 1.4em;
    text-indent: -1.4em;
}

.mp-front-term-line::first-letter {
    color: inherit;
}

.mp-front-term-line[data-kind="cmd"] { color: var(--mpf-gold-2); }
.mp-front-term-line[data-kind="ok"] { color: #7de3a1; }

.mp-front-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.1em;
    margin-left: 0.15em;
    vertical-align: -0.15em;
    background: var(--mpf-gold);
    animation: mpf-blink 1.05s steps(1) infinite;
}

@keyframes mpf-blink {
    0%, 55% { opacity: 1; }
    56%, 100% { opacity: 0; }
}

/* ---------- Stat-Leiste ---------- */
.mp-front-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: clamp(2.5rem, 6vh, 4.5rem) auto 0;
    padding: 1.4rem 0;
    border-top: 1px solid var(--mpf-line);
}

.mp-front-stats li {
    display: grid;
    gap: 0.2rem;
    padding: 0 1.2rem;
    border-left: 1px solid var(--mpf-line);
}

.mp-front-stats li:first-child {
    border-left: 0;
    padding-left: 0;
}

.mp-front-stats strong {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--mpf-gold);
    font-variant-numeric: tabular-nums;
}

.mp-front-stats span {
    color: var(--mpf-text-soft);
    font-size: 0.82rem;
}

/* ---------- Sektionen ---------- */
.mp-front-section {
    padding: clamp(3.5rem, 8vh, 6rem) 0;
}

.mp-front-head {
    max-width: 720px;
    margin: 0 0 2.8rem;
}

.mp-front-head h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.mp-front-lead {
    margin: 0;
    color: var(--mpf-text-soft);
    font-size: clamp(0.95rem, 1.4vw, 1.06rem);
    line-height: 1.6;
}

/* ---------- Produkt-Index (01–04, keine Karten) ---------- */
.mp-front-index {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: mpf-row;
    border-top: 1px solid var(--mpf-line);
}

.mp-front-row {
    border-bottom: 1px solid var(--mpf-line);
}

.mp-front-row-link {
    display: grid;
    grid-template-columns: 4rem 3.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.4rem;
    padding: 1.7rem 0.9rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
}

.mp-front-row-link:hover {
    background: linear-gradient(90deg, rgba(255, 172, 59, 0.07), transparent 65%);
}

.mp-front-row-num {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.16);
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.mp-front-row-link:hover .mp-front-row-num {
    color: var(--mpf-gold);
}

.mp-front-row-icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--mpf-line);
    border-radius: 12px;
    background: var(--mpf-card);
    font-size: 1.5rem;
}

.mp-front-row-main {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.mp-front-row-main strong {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mp-front-row-main > span {
    color: var(--mpf-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 62ch;
}

.mp-front-row-btn {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1.15rem;
    border: 1px solid var(--mpf-line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--mpf-text);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mp-front-row-link:hover .mp-front-row-btn {
    border-color: var(--mpf-gold);
    color: var(--mpf-gold-2);
    background: rgba(255, 172, 59, 0.08);
}

.mp-front-row-link:focus-visible {
    outline: 2px solid var(--mpf-gold);
    outline-offset: 3px;
}

/* ---------- Founder ---------- */
.mp-front-founder {
    background: var(--mpf-bg-soft);
    border-top: 1px solid var(--mpf-line);
    border-bottom: 1px solid var(--mpf-line);
}

.mp-front-founder-grid {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.mp-front-founder-media {
    position: relative;
    margin: 0;
    padding: 8px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 172, 59, 0.5), rgba(255, 172, 59, 0.08) 45%, rgba(255, 255, 255, 0.05));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 172, 59, 0.07);
}

.mp-front-founder-media::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.mp-front-founder-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
}

.mp-front-founder-body h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.mp-front-founder-body p {
    color: var(--mpf-text-soft);
    margin: 0 0 1rem;
    line-height: 1.65;
}

.mp-front-promise {
    margin: 1.4rem 0 1.8rem !important;
    padding: 1rem 0 1rem 1.3rem;
    border-left: 3px solid var(--mpf-gold);
    color: var(--mpf-text) !important;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.55;
}

.mp-front-founder-body .mp-front-btn {
    margin-top: 0.2rem;
}

/* ---------- Insights / Blog ---------- */
.mp-front-insights {
    background: var(--mpf-bg);
}

.mp-front-grid {
    margin-top: 0;
}

/* Card-Feinschliff auf dunklerem Grund */
.mp-front .mp-card {
    background: var(--mpf-card);
    border-color: var(--mpf-line);
    border-radius: 14px;
}

.mp-front .mp-card:hover {
    border-color: rgba(255, 172, 59, 0.55);
}

.mp-front .mp-card-media {
    background: var(--mpf-bg-soft);
}

.mp-front-grid > li.mp-pending {
    display: none;
}

.mp-front-grid > li.mp-pop {
    animation: mpf-pop 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes mpf-pop {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

.mp-front-sentinel {
    height: 1px;
}

.mp-front-more {
    margin: 2.6rem 0 0;
    text-align: center;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .mp-front.js-reveal [data-reveal],
    .mp-front.js-reveal [data-reveal].is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mp-front-pulse,
    .mp-front-cursor,
    .mp-front-grid > li.mp-pop {
        animation: none;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .mp-front-hero-grid {
        grid-template-columns: 1fr;
    }

    .mp-front-console {
        max-width: 560px;
        margin-inline: auto;
    }

    .mp-front-row-link {
        grid-template-columns: 3rem 3.4rem minmax(0, 1fr);
    }

    .mp-front-row-btn {
        grid-column: 3;
        justify-self: start;
        margin-top: 0.4rem;
    }
}

@media (max-width: 720px) {
    .mp-front-hero {
        padding-top: 1.2rem;
    }

    .mp-front-cta .lp4-btn,
    .mp-front-cta .mp-front-ghost,
    .mp-front-more .lp4-btn,
    .mp-front-founder-body .mp-front-btn {
        width: 100%;
    }

    .mp-front-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.2rem;
    }

    .mp-front-stats li {
        justify-items: center;
        text-align: center;
        padding: 0 0.6rem;
    }

    .mp-front-stats li:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .mp-front-founder-grid {
        grid-template-columns: 1fr;
    }

    .mp-front-founder-media {
        max-width: 340px;
        margin: 0 auto;
    }

    .mp-front-row-link {
        grid-template-columns: 2.4rem minmax(0, 1fr);
        padding: 1.3rem 0.4rem;
        gap: 0.9rem;
    }

    .mp-front-row-icon {
        display: none;
    }

    .mp-front-row-btn {
        grid-column: 2;
        justify-self: end;
    }
}
