/* ==========================================================================
   CoreDesk — getcoredesk.de Marketing One-Pager
   Design tokens deliberately reuse the product's own palette (public/css/app.css)
   so the "1:1 Produktvorschau" sections and the marketing chrome feel like one
   continuous brand, not a separate landing-page template bolted on top.
   ========================================================================== */

:root {
    --accent: #0559C9;
    --accent-hover: #04449E;
    --accent-soft: rgba(5, 89, 201, 0.08);
    --accent-glow: rgba(5, 89, 201, 0.35);

    --ink: #0B1220;
    --ink-2: #111B2E;
    --ink-surface: #16223A;
    --ink-border: rgba(255, 255, 255, 0.09);
    --ink-text: #F2F5FA;
    --ink-muted: #9FB0C9;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E5E8EC;
    --text: #1B2B3A;
    --text-muted: #6B7785;

    --status-active: #15A35E;
    --status-active-soft: rgba(21, 163, 94, 0.1);
    --status-warning: #E8A33D;
    --status-warning-soft: rgba(232, 163, 61, 0.12);
    --status-callback: #0C8599;
    --status-callback-soft: rgba(12, 133, 153, 0.12);
    --status-hold: #6B5B95;
    --status-hold-soft: rgba(107, 91, 149, 0.12);
    --status-absent: #C4463D;
    --status-absent-soft: rgba(196, 70, 61, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 6px rgba(16, 24, 40, 0.06);
    --shadow-lift: 0 20px 60px rgba(11, 18, 32, 0.35);
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container: 1160px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E141F;
        --surface: #161F30;
        --border: rgba(255, 255, 255, 0.09);
        --text: #ECF1F8;
        --text-muted: #93A2B8;
    }
}
:root[data-theme="dark"] {
    --bg: #0E141F;
    --surface: #161F30;
    --border: rgba(255, 255, 255, 0.09);
    --text: #ECF1F8;
    --text-muted: #93A2B8;
}
:root[data-theme="light"] {
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E5E8EC;
    --text: #1B2B3A;
    --text-muted: #6B7785;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/Inter.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 89, 201, 0.35);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost-dark {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink-text);
    border-color: var(--ink-border);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Top nav ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-border);
}
.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
    text-decoration: none;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-text);
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-accent { color: #6FA6FF; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}
.nav-links a { color: var(--ink-muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink-text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: var(--ink-text);
    overflow: hidden;
    padding: 84px 0 120px;
}
.hero::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -160px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5, 89, 201, 0) 68%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ink-border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-muted);
}
.hero-badge svg { width: 14px; height: 14px; color: #6FA6FF; }
.hero h1 {
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    color: #fff;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(92deg, #6FA6FF, #B79CFF 65%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    margin-top: 20px;
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 500px;
}
.hero-ctas {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.hero-note {
    margin-top: 18px;
    font-size: 13px;
    color: #7488A6;
}
.hero-beta-strip {
    margin-top: 40px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ink-border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 500px;
}
.hero-beta-strip svg { width: 20px; height: 20px; flex-shrink: 0; color: #6FA6FF; margin-top: 1px; }
.hero-beta-strip p { margin: 0; font-size: 13.5px; color: var(--ink-muted); }
.hero-beta-strip strong { color: var(--ink-text); }

/* Hero product preview card */
.hero-visual {
    position: relative;
}
.browser-frame {
    background: var(--ink-surface);
    border: 1px solid var(--ink-border);
    border-radius: 14px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--ink-border);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.browser-frame-bar .url-pill {
    margin-left: 10px;
    font-size: 11.5px;
    color: #6B7A93;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--text-muted); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark {
    background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
    color: var(--ink-text);
}
.section-dark .section-head p { color: var(--ink-muted); }
.section-dark .eyebrow { color: #6FA6FF; }

/* ---------- Feature grid ("Gamechanger") ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.feature-card--wide { grid-column: span 2; }
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; }
.feature-card p { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.feature-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}

/* ---------- Product preview mockups (1:1 UI, reused component classes) ---------- */
.preview-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.preview-tab {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
}
.preview-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.preview-panel { display: none; }
.preview-panel.is-active { display: block; }

.mock-app {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}
.mock-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.mock-topbar-left { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.mock-topbar-left .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-active); }
.mock-topbar-right { display: flex; align-items: center; gap: 10px; }
.mock-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--status-active);
    color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.mock-body { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.mock-sidebar {
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mock-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.mock-nav-item svg { width: 16px; height: 16px; }
.mock-nav-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-content { padding: 22px 24px; background: var(--bg); }
.mock-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
.mock-card h4 { font-size: 13.5px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mock-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px; box-shadow: var(--shadow-card);
}
.mock-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.mock-stat .value { font-size: 22px; font-weight: 700; margin-top: 4px; }
.mock-stat .value small { font-size: 12px; font-weight: 600; color: var(--status-active); }

.badge-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.mock-timeline-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.mock-timeline-row:last-child { border-bottom: none; }
.mock-timeline-row .day { width: 78px; flex-shrink: 0; font-weight: 700; color: var(--text-muted); }
.mock-timeline-track { flex: 1; height: 22px; background: var(--bg); border-radius: 6px; position: relative; overflow: hidden; }
.mock-timeline-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }

.mock-list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.mock-list-row:last-child { border-bottom: none; }
.mock-list-row .ticket-id { color: var(--text-muted); font-variant-numeric: tabular-nums; width: 52px; flex-shrink: 0; }
.mock-list-row .title { flex: 1; font-weight: 600; }
.mock-list-row .meta { color: var(--text-muted); font-size: 12px; }

.mock-radar-card {
    border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px;
    border: 1px solid var(--border); background: var(--surface); display: flex; gap: 12px; align-items: flex-start;
}
.mock-radar-card svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.mock-radar-card .t { font-weight: 700; font-size: 13px; }
.mock-radar-card .s { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.mock-vault-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.mock-vault-row:last-child { border-bottom: none; }
.strength-bar { width: 70px; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; flex-shrink: 0; }
.strength-bar span { display: block; height: 100%; }

/* ---------- Module deep-dive rows ---------- */
.module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}
.module-row:last-child { border-bottom: none; }
.module-row.is-reverse .module-copy { order: 2; }
.module-copy .eyebrow { margin-bottom: 14px; }
.module-copy h3 { font-size: 26px; margin-bottom: 14px; }
.module-copy p { color: var(--text-muted); font-size: 15.5px; }
.module-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.module-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.module-list svg { width: 18px; height: 18px; color: var(--status-active); flex-shrink: 0; margin-top: 2px; }

/* ---------- Comparison ---------- */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
table.compare thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--text); width: 32%; }
table.compare .col-core { background: var(--accent-soft); }
table.compare .yes { color: var(--status-active); font-weight: 700; }
table.compare .no { color: var(--text-muted); }
table.compare th.col-core-h { background: var(--accent); color: #fff; border-radius: 8px 8px 0 0; }

/* ---------- Self-hosted / Germany ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ink-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.trust-card svg { width: 30px; height: 30px; color: #6FA6FF; margin-bottom: 16px; }
.trust-card h3 { font-size: 17px; color: #fff; margin-bottom: 10px; }
.trust-card p { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* ---------- Beta / waitlist ---------- */
.beta-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.beta-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.beta-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.beta-steps li::before {
    counter-increment: step; content: counter(step);
    width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.beta-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px; }
.beta-form h3 { font-size: 17px; margin-bottom: 6px; }
.beta-form p.hint { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 14px;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-glow); outline-offset: 1px; border-color: var(--accent); }
.beta-form .btn { width: 100%; margin-top: 6px; }
.beta-legal { font-size: 11.5px; color: var(--text-muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-item summary {
    padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 15px;
    display: flex; align-items: center; justify-content: space-between; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #16234A 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
    opacity: 0.5;
}
.final-cta > * { position: relative; }
.final-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.final-cta p { color: var(--ink-muted); margin-top: 12px; max-width: 480px; margin-left: auto; margin-right: auto; }
.final-cta .hero-ctas { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
footer {
    background: var(--ink);
    color: var(--ink-muted);
    padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; max-width: 280px; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #6B7A93; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-muted); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-border);
    display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 12px;
}

/* ---------- Utility ---------- */
.only-mobile { display: none; }
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
    padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .browser-frame { transform: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card--wide { grid-column: span 2; }
    .module-row { grid-template-columns: 1fr; gap: 28px; }
    .module-row.is-reverse .module-copy { order: 0; }
    .beta-panel { grid-template-columns: 1fr; padding: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav-links { display: none; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card--wide { grid-column: span 1; }
    .mock-stat-row { grid-template-columns: repeat(2, 1fr); }
    section { padding: 64px 0; }
    .hero { padding: 56px 0 72px; }
    .footer-grid { grid-template-columns: 1fr; }
    .only-mobile { display: inline-flex; }
}
