/* ── LifeModule Coming Soon — AMOLED Dark + Electric Lime ── */

/* ── Self-hosted Inter font (DSGVO-compliant, no Google connection) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Inter-300.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Inter-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/Inter-800.ttf') format('truetype');
}

:root {
    --black: #000000;
    --surface: #1C1C1E;
    --elevated: #2C2C2E;
    --primary: #FFFFFF;
    --secondary: #8E8E93;
    --border: #2C2C2E;
    --accent: #A2FF00;
    --destructive: #FF453A;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Legal pages need scrolling */
body:has(.legal-page) {
    overflow-y: auto;
    align-items: flex-start;
}

/* ── Animated background glows ── */

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -120px;
    right: -100px;
    animation: float1 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -80px;
    left: -80px;
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -30px) scale(1.15); }
}

/* ── Main container ── */

main {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

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

/* ── Grid Background ── */

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(162, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(162, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Logo ── */

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.logo-scene {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer orbital rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(162, 255, 0, 0.12);
}

.orbit-ring-1 {
    width: 110%;
    height: 110%;
    transform: rotate(12deg);
    animation: orbit-spin 25s linear infinite;
}

.orbit-ring-2 {
    width: 130%;
    height: 130%;
    transform: rotate(-12deg);
    animation: orbit-spin 35s linear infinite reverse;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Glass panels (rotating squares behind the core) */
.glass-panel {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 36px;
    background: rgba(24, 27, 33, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(162, 255, 0, 0.12);
    box-shadow: 0 0 30px rgba(162, 255, 0, 0.06);
}

.glass-panel-1 {
    transform: rotate(15deg);
    animation: panel-rotate-1 12s ease-in-out infinite;
    box-shadow:
        0 0 25px rgba(162, 255, 0, 0.15),
        0 0 50px rgba(162, 255, 0, 0.08);
}

.glass-panel-2 {
    transform: rotate(-8deg);
    animation: panel-rotate-2 14s ease-in-out infinite;
}

@keyframes panel-rotate-1 {
    0%, 100% { transform: rotate(15deg) scale(1); }
    50%      { transform: rotate(20deg) scale(1.03); }
}

@keyframes panel-rotate-2 {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%      { transform: rotate(-12deg) scale(1.02); }
}

/* Center circle */
.logo-core {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(162, 255, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow:
        0 0 30px rgba(162, 255, 0, 0.15),
        0 0 60px rgba(162, 255, 0, 0.08),
        inset 0 0 30px rgba(162, 255, 0, 0.05);
}

.core-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(162, 255, 0, 0.15), transparent 70%);
}

/* Leaf icon (custom SVG) */
.leaf-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 15px rgba(162, 255, 0, 0.5));
    position: relative;
    z-index: 11;
    animation: leaf-pulse 3s ease-in-out infinite;
}

@keyframes leaf-pulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(162, 255, 0, 0.5)); }
    50%      { filter: drop-shadow(0 0 25px rgba(162, 255, 0, 0.7)); }
}

/* Accent dots */
.accent-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    z-index: 15;
}

.dot-top {
    width: 10px;
    height: 10px;
    top: 8%;
    right: 12%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    animation: dot-float 4s ease-in-out infinite;
}

.dot-bottom {
    width: 7px;
    height: 7px;
    bottom: 20%;
    left: 8%;
    opacity: 0.7;
    box-shadow: 0 0 8px var(--accent);
    animation: dot-float 5s ease-in-out infinite 1.5s;
}

@keyframes dot-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Title ── */

.title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.title-life {
    color: var(--primary);
}

.title-module {
    color: var(--accent);
}

.tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ── Feature pills ── */

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.pill {
    background: var(--elevated);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: default;
}

.pill:hover {
    border-color: var(--accent);
    background: rgba(162, 255, 0, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(162, 255, 0, 0.1);
}

/* ── Coming Soon badge ── */

.coming-soon {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #7acc00);
    color: var(--black);
    padding: 10px 32px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: glow-badge 2s ease-in-out infinite;
}

@keyframes glow-badge {
    0%, 100% { box-shadow: 0 0 20px rgba(162, 255, 0, 0.3); }
    50%      { box-shadow: 0 0 40px rgba(162, 255, 0, 0.5); }
}

/* ── Progress bar ── */

.progress-track {
    width: 200px;
    height: 4px;
    background: var(--elevated);
    border-radius: 4px;
    margin: 0 auto 0.5rem;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.progress-bar {
    width: 40%;
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    animation: loading 2.5s ease-in-out infinite;
}

@keyframes loading {
    0%   { width: 0%; margin-left: 0; }
    50%  { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.progress-label {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 1.2s both;
}

/* ── Notify section ── */

.notify-section {
    animation: fadeInUp 1s ease-out 1.4s both;
}

.notify-text {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.email-input {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 260px;
    transition: border-color 0.3s ease;
}

.email-input::placeholder {
    color: var(--secondary);
}

.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(162, 255, 0, 0.1);
}

.btn-notify {
    background: var(--accent);
    color: var(--black);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-notify:hover {
    background: #b8ff33;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(162, 255, 0, 0.3);
}

.btn-notify:active {
    transform: translateY(0);
}

.success-msg {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.success-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Footer ── */

footer {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1.6s both;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .email-input {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-notify {
        width: 100%;
        max-width: 260px;
    }

    .glow-1 {
        width: 300px;
        height: 300px;
    }

    .glow-2 {
        width: 250px;
        height: 250px;
    }
}

/* ── Footer Links ── */

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ── Legal Pages (Impressum / Datenschutz) ── */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    min-height: 100vh;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.legal-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.legal-subtitle {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.legal-section p {
    color: var(--secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.legal-section ul {
    color: var(--secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.legal-section ul li {
    margin-bottom: 0.3rem;
}

.legal-section strong {
    color: var(--primary);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
}

.legal-table th {
    color: var(--accent);
    font-weight: 600;
    width: 120px;
    vertical-align: top;
}

.legal-table td {
    color: var(--secondary);
}

.legal-table td a {
    color: var(--accent);
    text-decoration: none;
}

.legal-table td a:hover {
    text-decoration: underline;
}

.legal-notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary);
}

.legal-notice strong {
    color: var(--accent);
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.legal-footer p {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.legal-footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.legal-footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.legal-footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 600px) {
    .legal-page {
        padding: 1.5rem 1rem 3rem;
    }

    .legal-title {
        font-size: 1.6rem;
    }

    .legal-table th {
        width: 90px;
        font-size: 0.85rem;
    }

    .legal-table td {
        font-size: 0.85rem;
    }
}
