/* PerfPulse Website – gleiche Farben wie die App */
:root {
    --bg: #0e1016;
    --bg2: #121520;
    --card: #171b27;
    --line: #252b3d;
    --text: #e7eaf3;
    --sub: #8c94aa;
    --accent: #22d3ee;
    --good: #22c55e;
    --warn: #f59e0b;
    --crit: #ef4444;
    --info: #60a5fa;
    --gradient: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 12px; }
.muted { color: var(--sub); }
.small { font-size: 13.5px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 10px 20px; border-radius: 10px;
    background: #1b2030; color: var(--text); border: 1px solid #2c3450;
    font-weight: 600; font-size: 15px; white-space: nowrap;
    transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { text-decoration: none; background: #232a3f; }
.btn-primary { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 8px 30px -10px rgba(139, 92, 246, .6); }
.btn-primary:hover { background: var(--gradient); filter: brightness(1.1); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Navigation ----- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(14, 16, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(37, 43, 61, .7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a:not(.btn) { color: var(--sub); font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ----- Mitteilungen ----- */
.notices { display: grid; gap: 10px; margin-top: 16px; }
.notice { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 15px; }
.notice span { color: #c9cede; }
.notice a { margin-left: auto; font-weight: 600; }
.notice-info { background: rgba(96, 165, 250, .08); border-color: rgba(96, 165, 250, .35); }
.notice-success { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); }
.notice-warning { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .4); }
.notice-critical { background: rgba(239, 68, 68, .09); border-color: rgba(239, 68, 68, .45); }

/* ----- Hero ----- */
.hero { position: relative; padding: 84px 0 40px; text-align: center; }
.hero::before {
    content: ""; position: absolute; inset: -140px 0 auto; height: 720px; z-index: -1; pointer-events: none;
    background: radial-gradient(560px 340px at 30% 30%, rgba(14, 165, 233, .18), transparent 70%),
                radial-gradient(560px 340px at 70% 25%, rgba(139, 92, 246, .2), transparent 70%);
}
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 999px; background: rgba(23, 27, 39, .8); color: var(--text); font-size: 14px; }
.pill:hover { text-decoration: none; border-color: #3a4360; }
.pill span { padding: 2px 10px; border-radius: 999px; background: var(--gradient); color: #fff; font-weight: 600; font-size: 12.5px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); font-weight: 700; max-width: 900px; margin: 0 auto; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 680px; margin: 22px auto 0; color: var(--sub); font-size: clamp(17px, 2vw, 19px); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.meta { margin-top: 16px; color: var(--sub); font-size: 14px; }

.shot { max-width: 1080px; margin: 56px auto 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); box-shadow: 0 40px 120px -30px rgba(139, 92, 246, .35), 0 0 0 1px rgba(255, 255, 255, .02); }
.shot > img { display: block; width: 100%; }
.shot-placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; }

/* ----- Abschnitte ----- */
.section { padding: 88px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; }
.section-lead { max-width: 640px; margin: 14px auto 0; color: var(--sub); text-align: center; font-size: 17px; }
.left { text-align: left; margin-left: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.feature { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: #3a4360; transform: translateY(-2px); }
.feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: rgba(34, 211, 238, .1); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 16px 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--sub); font-size: 15px; }

.band { background: var(--bg2); border-block: 1px solid var(--line); }
.band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding: 14px 18px 14px 50px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ticks li::before { content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(34, 197, 94, .15); color: var(--good); font-size: 13px; font-weight: 700; }

.changelog { margin-top: 40px; display: grid; gap: 16px; }
.release { padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.release header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.release h3 { font-size: 20px; }
.release time { margin-left: auto; color: var(--sub); font-size: 14px; }
.tag { padding: 2px 10px; border-radius: 999px; background: rgba(34, 211, 238, .14); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.notes { color: #c9cede; font-size: 15.5px; }
.notes ul { margin: 0 0 10px; padding-left: 20px; }
.notes li { margin: 4px 0; }
.notes h4 { margin: 14px 0 6px; font-size: 15.5px; color: var(--text); }
.notes code { padding: 1px 6px; border-radius: 5px; background: #0f121a; font-size: 13.5px; }
.notes p:last-child, .notes ul:last-child { margin-bottom: 0; }

.final { text-align: center; }
.final h2 { margin: 18px 0 28px; }
.final .muted { max-width: 520px; margin: 22px auto 0; }

.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--sub); }

/* ----- Schmale Bildschirme ----- */
@media (max-width: 960px) {
    .features { grid-template-columns: 1fr 1fr; }
    .band-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .nav nav { gap: 16px; }
    .nav nav a:not(.btn) { display: none; }
    .hero { padding: 56px 0 24px; }
    .cta .btn { width: 100%; }
    .shot { margin-top: 40px; border-radius: 10px; }
    .section { padding: 64px 0; }
    .features { grid-template-columns: 1fr; margin-top: 36px; }
    .release { padding: 20px; }
    .release time { margin-left: 0; width: 100%; }
    .notice a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feature { transition: none; }
}
