/* === CE365 Agent — Apple-Inspired Design === */

/* Self-hosted Inter font (DSGVO-konform, kein Google-Request) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --surface: #161616;
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;
    --accent: #2997ff;
    --accent-hover: #0077ed;
    --green: #30d158;
    --red: #ff453a;
    --yellow: #ffd60a;
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1120px;
    --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

code {
    background: rgba(41,151,255,0.12);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(17,17,17,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-text strong { color: var(--text); }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-btn {
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all var(--transition);
}

.cookie-btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}
.cookie-btn-outline:hover { border-color: var(--text-secondary); }

.cookie-btn-primary {
    background: var(--accent);
    color: white;
}
.cookie-btn-primary:hover { background: var(--accent-hover); }

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    height: 52px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-agent { color: var(--text-secondary); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.lang-switch {
    border: 1px solid var(--border-light);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em;
}

.btn-nav {
    background: var(--accent) !important;
    color: white !important;
    padding: 6px 16px;
    border-radius: 980px;
    font-weight: 500 !important;
    font-size: 0.82rem !important;
}
.btn-nav:hover { background: var(--accent-hover) !important; }

.nav-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-mobile span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: all var(--transition);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border-radius: 980px;
    font-size: 0.95rem;
    padding: 12px 24px;
}

.btn-xl { padding: 16px 36px; font-size: 1.05rem; font-weight: 600; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; }

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--accent); }

/* === Hero === */
.hero {
    padding: 120px 0 40px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #2997ff, #30d158);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 32px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta { margin-bottom: 56px; }

.hero-hint {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 12px;
}

/* === Terminal === */
.terminal {
    max-width: 680px;
    margin: 0 auto;
    background: #0d0d0d;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-chrome {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}
.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-tab {
    margin-left: 12px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-screen {
    padding: 20px 24px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
}

.t-line { white-space: pre-wrap; }
.t-out { color: var(--text-secondary); }
.t-prompt { color: var(--green); font-weight: 700; margin-right: 8px; }
.t-bold { color: var(--text); font-weight: 600; }
.t-accent { color: var(--accent); font-weight: 600; }
.t-red { color: var(--red); }
.t-yellow { color: var(--yellow); }
.t-green { color: var(--green); }

.cursor { animation: blink 1s step-end infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

/* Terminal fade-in animation */
.t-fade-1 { animation: fadeUp 0.4s ease both 0.3s; }
.t-fade-2 { animation: fadeUp 0.4s ease both 0.8s; }
.t-fade-3 { animation: fadeUp 0.4s ease both 1.3s; }
.t-fade-4 { animation: fadeUp 0.4s ease both 1.8s; }
.t-fade-5 { animation: fadeUp 0.4s ease both 2.3s; }
.t-fade-6 { animation: fadeUp 0.4s ease both 2.7s; }
.t-fade-7 { animation: fadeUp 0.4s ease both 3.1s; }
.t-fade-8 { animation: fadeUp 0.4s ease both 3.5s; }
.t-fade-9 { animation: fadeUp 0.4s ease both 3.9s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Proof / Numbers === */
.proof {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.proof-item { padding: 16px; }

.proof-number {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proof-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* === Section Typography === */
.section-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.center { text-align: center; }
.section-text.center { margin-left: auto; margin-right: auto; margin-bottom: 48px; }

/* === Problem / Solution === */
.problem { padding: 100px 0; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.split-left, .split-right {
    padding: 40px;
    border-radius: var(--radius);
}

.split-left {
    background: rgba(255,69,58,0.04);
    border: 1px solid rgba(255,69,58,0.1);
}

.split-right {
    background: rgba(48,209,88,0.04);
    border: 1px solid rgba(48,209,88,0.1);
}

.split-left .section-label { color: var(--red); }
.split-right .section-label { color: var(--green); }

/* === Features === */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.feature-large h4, .feature-large p {
    grid-column: 2;
}

.feature-large .feature-icon-wrap {
    grid-row: span 2;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(41,151,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon { font-size: 1.4rem; }

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === How it works === */
.how {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 48px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-arrow {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    padding-top: 12px;
    flex-shrink: 0;
}

.step-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Pricing === */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 840px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card-pro {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(41,151,255,0.12);
}

.price-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 18px;
    border-radius: 980px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-header { margin-bottom: 28px; }

.price-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-tag { display: flex; align-items: baseline; gap: 4px; }

.price-amount {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-period {
    font-size: 0.88rem;
    color: var(--text-tertiary);
}
.price-vat {
    display: block;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.price-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

.price-list {
    list-style: none;
    flex: 1;
    margin-bottom: 28px;
}

.price-list li {
    padding: 7px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.price-list li.yes::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 16px;
    height: 16px;
    background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5l-7 7L3 8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.5 4.5l-7 7L3 8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.price-list li.yes { color: var(--text); }

.price-list li.no::before {
    content: "—";
    position: absolute;
    left: 2px;
    color: var(--text-tertiary);
}

.price-list li.no { opacity: 0.4; }

.price-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 10px;
}

/* === FAQ === */
.faq {
    padding: 100px 0;
}

.faq-list {
    max-width: 720px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: color var(--transition);
}

.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--text-tertiary);
    font-weight: 300;
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-bottom: 20px;
    line-height: 1.7;
}

/* === Newsletter CTA === */
.cta {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.cta-box {
    background: linear-gradient(135deg, rgba(41,151,255,0.08), rgba(48,209,88,0.05));
    border: 1px solid rgba(41,151,255,0.15);
    border-radius: var(--radius);
    padding: 56px 48px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.cta-form { margin-bottom: 12px; }

.cta-inputs {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
}

.input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
    min-width: 0;
}

.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-tertiary); }
.input-grow { flex: 1; }

.form-msg { font-size: 0.85rem; margin-top: 10px; }
.form-msg-ok { color: var(--green); font-weight: 600; }
.form-msg-err { color: var(--red); }

.cta-privacy {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* === Footer === */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-col h5 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* === Legal Pages === */
.legal {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    text-align: left;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    text-align: left;
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul, .legal-content ol {
    margin: 8px 0 16px 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-content strong { color: var(--text); }

/* === Thank You Page === */
.thankyou {
    padding: 140px 0 80px;
    text-align: center;
    min-height: 80vh;
}

.license-box {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 36px;
    max-width: 500px;
    margin: 32px auto;
}

.license-key {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.04em;
    padding: 14px;
    background: rgba(48,209,88,0.08);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    user-select: all;
}

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.96);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-mobile { display: flex; }

    .hero-title { font-size: 2.6rem; }

    .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .split { grid-template-columns: 1fr; gap: 20px; }

    .feature-grid { grid-template-columns: 1fr; }
    .feature-large { grid-column: span 1; grid-template-columns: 1fr; }
    .feature-large .feature-icon-wrap { grid-row: span 1; }
    .feature-large h4, .feature-large p { grid-column: 1; }

    .steps { flex-direction: column; gap: 32px; }
    .step-arrow { display: none; }

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

    .footer-top { grid-template-columns: 1fr 1fr; }

    .cta-inputs { flex-direction: column; }

    .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
}
