/* Aegis Nexus-Plex – Marketing Landingpage
   Betreiber: Aegis Vitae */

:root {
    --bg: #060912;
    --bg-elevated: #0c1220;
    --card: #111827;
    --card-hover: #151f33;
    --border: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --accent-hover: #2563eb;
    --success: #22c55e;
    --warn: #f59e0b;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    --hero-glow: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.35), transparent);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max: 1140px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(6, 9, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.landing-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.nav-brand:hover { color: var(--text); }
.nav-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    text-decoration: none;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--card); color: var(--text); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
    padding: calc(var(--nav-h) + 4rem) 0 5rem;
    background: var(--hero-glow);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 820px;
    margin: 0 auto 1.25rem;
}
.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}
.hero-stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Sections ── */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Problem / Solution ── */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.split-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}
.split-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.split-card.problem h3 { color: var(--warn); }
.split-card.solution h3 { color: var(--success); }
.split-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.split-card li {
    padding-left: 1.25rem;
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
}
.split-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}
.split-card.solution li::before { background: var(--success); }

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--card-hover);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Steps ── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}
.step-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    counter-increment: step;
}
.step-card::before {
    content: counter(step);
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--gradient);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-bottom: 0.85rem;
}
.step-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step-card p { color: var(--muted); font-size: 0.85rem; }

/* ── Sandbox ── */
.sandbox-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.sandbox-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}
.sandbox-form-card h3 { margin-bottom: 0.5rem; }
.sandbox-form-card .hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.sandbox-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--muted);
}
.sandbox-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}
.sandbox-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.sandbox-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--warn);
    font-weight: 600;
    margin-bottom: 1rem;
}
.sandbox-badge-live {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--success);
}

.sandbox-preview {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}
.sandbox-preview h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 1rem;
}
.sandbox-preview-topic {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.insight-list { display: flex; flex-direction: column; gap: 1rem; }
.insight-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem;
}
.insight-card .num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}
.insight-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.insight-card p { color: var(--muted); font-size: 0.85rem; }
.insight-card .source {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
}
.insight-card-live {
    border-color: rgba(59, 130, 246, 0.35);
    animation: insight-in 0.35s ease-out;
}
@keyframes insight-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sandbox-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.sandbox-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.sandbox-rate-hint {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}
.sandbox-results-foot { margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.sandbox-results-foot a { font-weight: 600; }

.sandbox-preview { position: relative; min-height: 280px; }
.sandbox-preview-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(17, 24, 39, 0.92);
    border-radius: 16px;
    padding: 2rem;
}
.sandbox-preview-loading.is-active {
    display: flex;
}
.sandbox-preview-loading[hidden] {
    display: none !important;
}
.sandbox-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sandbox-hook {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
}
.sandbox-hook p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.sandbox-hook strong { color: var(--text); }

/* ── Full access ── */
.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.access-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.access-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.access-item h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.access-item p { color: var(--muted); font-size: 0.85rem; }

/* ── Pricing teaser ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.pricing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
    position: relative;
}
.pricing-card.featured::before {
    content: 'Empfohlen';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-name { font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-price { font-size: 2.25rem; font-weight: 800; margin: 0.5rem 0; }
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.pricing-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; flex: 1; }
.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pricing-features li {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 1.25rem;
    position: relative;
}
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--muted); font-size: 1.25rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding-right: 2rem;
}

/* ── CTA band ── */
.cta-band {
    padding: 4rem 0;
    text-align: center;
    background: var(--hero-glow);
}
.cta-band h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-band p {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 1.75rem;
}

/* ── Footer ── */
.landing-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.landing-footer a { color: var(--muted); }
.landing-footer a:hover { color: var(--text); }

/* ── Notice banner ── */
.notice-banner {
    background: var(--accent-soft);
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .features-grid,
    .steps,
    .access-grid,
    .pricing-grid,
    .split-grid,
    .sandbox-wrap { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
    }
    .nav-toggle { display: block; }
    .steps { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
}
