/* ── Honeypot: visually hidden but not display:none so bots don't skip it ── */
.wl-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* ── CSS custom properties ──────────────────────────────────────────────── */
:root {
    --sp-primary: #f39c12;
    --sp-primary-dark: #d68910;
    --sp-secondary: #2ecc71;
    --sp-dark: #1a1a2e;
    --sp-card-bg: #16213e;
}

* { box-sizing: border-box; }

body {
    background: var(--sp-dark);
    color: #e6e6e6;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.sp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26,26,46,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(243,156,18,0.2);
}
.sp-nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sp-primary);
    letter-spacing: 1px;
    text-decoration: none;
}
.sp-nav-brand i { margin-right: 0.4rem; }
.btn-login {
    background: var(--sp-primary);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background .2s, transform .15s;
}
.btn-login:hover {
    background: var(--sp-primary-dark);
    color: #000;
    transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(243,156,18,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
    50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.rays {
    position: absolute;
    top: 50%; left: 50%;
    width: 520px; height: 520px;
    transform: translate(-50%, -50%);
    animation: spin 40s linear infinite;
    pointer-events: none;
    opacity: 0.06;
}
.rays span {
    position: absolute;
    top: 50%; left: 50%;
    width: 2px;
    height: 260px;
    background: var(--sp-primary);
    transform-origin: bottom center;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-icon {
    font-size: 5rem;
    color: var(--sp-primary);
    display: block;
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.hero h1 span { color: var(--sp-primary); }
.hero-sub {
    font-size: 1.15rem;
    color: #8892b0;
    margin: 1.2rem 0 2.2rem;
    line-height: 1.6;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--sp-primary);
    color: #000;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(243,156,18,0.3);
}
.hero-cta:hover {
    background: var(--sp-primary-dark);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(243,156,18,0.45);
}

/* ── Stats bar ──────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--sp-card-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 0;
}
.stat-item { text-align: center; }
.stat-item .val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sp-primary);
}
.stat-item .lbl {
    font-size: 0.8rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Features ───────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #8892b0;
    margin-bottom: 3rem;
}
.feature-card {
    background: var(--sp-card-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(243,156,18,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 0.6rem;
}
.feature-card p {
    color: #8892b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-section { background: var(--sp-card-bg); padding: 5rem 0; }
.step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.step-num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(243,156,18,0.15);
    border: 2px solid var(--sp-primary);
    color: var(--sp-primary);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.step-body h4 { font-size: 1rem; font-weight: 700; color: #ccd6f6; margin-bottom: 0.3rem; }
.step-body p  { font-size: 0.88rem; color: #8892b0; margin: 0; line-height: 1.5; }

/* ── Chart mock ─────────────────────────────────────────────────────────── */
.chart-mock {
    background: #0f1e35;
    border-radius: 16px;
    border: 1px solid rgba(243,156,18,0.15);
    padding: 1.5rem;
    height: 260px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    overflow: hidden;
    position: relative;
}
.chart-mock::before {
    content: 'Heute · 12,4 kWh · 3,97 €';
    position: absolute;
    top: 1rem; left: 1.2rem;
    font-size: 0.78rem;
    color: var(--sp-primary);
    font-weight: 600;
}
.bar-mock {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgba(243,156,18,0.55);
    animation: barGrow .8s ease-out both;
}
@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

/* ── Devices ────────────────────────────────────────────────────────────── */
.device-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    color: #ccd6f6;
    margin: 0.3rem;
}
.device-chip i { color: var(--sp-primary); }

/* ── CTA section ────────────────────────────────────────────────────────── */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}
.cta-section p {
    color: #8892b0;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-section {
    background: var(--sp-card-bg);
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-card {
    background: #0f1e35;
    border: 1px solid rgba(243,156,18,0.15);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 640px;
    margin: 0 auto;
}
.contact-card .form-control,
.contact-card textarea.form-control {
    background: #0a1628;
    border: 1px solid rgba(255,255,255,0.12);
    color: #e6e6e6;
    border-radius: 8px;
}
.contact-card .form-control:focus,
.contact-card textarea.form-control:focus {
    background: #0a1628;
    border-color: var(--sp-primary);
    color: #e6e6e6;
    box-shadow: 0 0 0 0.2rem rgba(243,156,18,0.2);
}
.contact-card .form-control.is-invalid { border-color: #e74c3c; }
.contact-card .form-control::placeholder { color: #445; }
.contact-card .form-label { color: #ccd6f6; font-weight: 500; font-size: 0.9rem; }
.contact-card .input-group-text {
    background: #0a1628;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--sp-primary);
}
.contact-success {
    background: rgba(46,204,113,0.1);
    border: 1px solid rgba(46,204,113,0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
    background: #0d1b2a;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #556;
}
