/* --- Core Variables --- */
:root[data-theme="dark"] {
    --bg-dark: #0B121A;
    --bg-surface: #081524;
    --bg-surface-variant: #17212B;
    
    --glass-bg: rgba(23, 33, 43, 0.3);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    
    --app-blue: #316FCA;
    --app-blue-variant: #1E2A3B;
    --app-purple: #A627F5;
    --app-green: #4CAF50;
    --app-cyan: #00E5FF;
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-hint: #64748B;
    
    --aurora-1: #316FCA;
    --aurora-2: #A627F5;
    --aurora-3: #00E5FF;
}

:root[data-theme="light"] {
    --bg-dark: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-variant: #F1F5F9;
    
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-highlight: rgba(0, 0, 0, 0.1);
    
    --app-blue: #316FCA;
    --app-blue-variant: #E2E8F0;
    --app-purple: #A627F5;
    --app-green: #4CAF50;
    --app-cyan: #00BCD4;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-hint: #94A3B8;
    
    --aurora-1: rgba(49, 111, 202, 0.5);
    --aurora-2: rgba(166, 39, 245, 0.4);
    --aurora-3: rgba(0, 229, 255, 0.3);
}

/* --- Base & Typografie --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

h1, h2, h3, .brand-name {
    font-family: 'Poppins', sans-serif;
}

/* --- Aurora Background (Performance Optimiert) --- */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
    pointer-events: none;
}

.aurora-1, .aurora-2, .aurora-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: aurora-flow 20s infinite alternate ease-in-out;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.aurora-1 { 
    width: 80vw; height: 80vw; 
    background: radial-gradient(circle, var(--aurora-1) 0%, transparent 60%); 
    top: -30%; left: -20%; 
}
.aurora-2 { 
    width: 70vw; height: 70vw; 
    background: radial-gradient(circle, var(--aurora-2) 0%, transparent 60%); 
    bottom: -20%; right: -20%; 
    animation-delay: -5s; 
}
.aurora-3 { 
    width: 60vw; height: 60vw; 
    background: radial-gradient(circle, var(--aurora-3) 0%, transparent 60%); 
    top: 20%; left: 30%; 
    animation-delay: -10s; 
}

@keyframes aurora-flow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(5vw, 10vh, 0) scale(1.1); }
    100% { transform: translate3d(-5vw, -5vh, 0) scale(0.9); }
}

/* --- Glassmorphism Mixin --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* --- Navigation --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo { height: 45px; }
.brand-name { font-size: 1.6rem; font-weight: 700; }

.theme-btn {
    background: var(--bg-surface-variant);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.theme-btn:hover { background: var(--app-blue); color: #fff; transform: rotate(45deg); }

/* --- Hero Section --- */
.content-wrapper { padding: 80px 6% 50px; }
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    min-height: 70vh;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(166, 39, 245, 0.1);
    border: 1px solid var(--app-purple);
    color: var(--app-purple);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, var(--app-cyan), var(--app-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] h1 { background: linear-gradient(to right, var(--text-primary), var(--app-blue), var(--app-purple)); -webkit-background-clip: text; }

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 550px;
}

/* --- Download Button --- */
.download-wrapper { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }

.btn-magnetic {
    position: relative;
    padding: 20px 40px;
    border-radius: 50px;
    background: var(--app-blue);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(49, 111, 202, 0.3);
}

.btn-magnetic:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(49, 111, 202, 0.5);
}

.btn-content { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.btn-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    border-radius: 50%;
}
.btn-magnetic:hover .btn-glow { transform: translate(-50%, -50%) scale(1); }

/* --- Update Info with Pulse --- */
.update-info { display: flex; align-items: center; gap: 10px; color: var(--text-hint); font-size: 0.95rem; margin-left: 20px; }
.ping-dot {
    width: 8px; height: 8px;
    background: var(--app-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: ping 2s infinite;
}
@keyframes ping {
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* --- Floating Mockup (Rechte Seite) --- */
.floating-mockup {
    width: 100%;
    max-width: 400px;
    height: 550px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.floating-mockup:hover { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); }

.mockup-header {
    position: absolute; top: 20px; left: 20px; right: 20px;
    display: flex; align-items: center; gap: 15px;
    padding-bottom: 15px; border-bottom: 1px solid var(--glass-border);
}
.mockup-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--app-blue), var(--app-purple)); }
.mockup-name .line { height: 8px; width: 100px; background: var(--bg-surface-variant); border-radius: 4px; margin-bottom: 5px; }
.mockup-name .line.short { width: 60px; background: var(--text-secondary); }

.chat-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    max-width: 85%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.chat-bubble.left { background: var(--bg-surface-variant); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-bubble.right { background: var(--app-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }

.float-anim-1 { animation: float-bubble 6s infinite ease-in-out; }
.float-anim-2 { animation: float-bubble 7s infinite ease-in-out reverse; animation-delay: 1s; }
.float-anim-3 { animation: float-bubble 5s infinite ease-in-out; animation-delay: 2s; }

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

/* --- Features mit Spotlight --- */
.features { margin-top: 150px; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 3rem; margin-bottom: 15px; }
.section-title p { color: var(--text-secondary); font-size: 1.1rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Magischer Spotlight Effekt */
.spotlight-card {
    position: relative;
    padding: 2px;
    overflow: hidden;
}

.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.1), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
}
.spotlight-card:hover::before { opacity: 1; }

.card-content {
    background: var(--bg-surface);
    height: 100%;
    border-radius: 28px;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}
.card-content h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-content p { color: var(--text-secondary); line-height: 1.6; }

/* --- Animationen --- */
.animate-fade-in-up {
    opacity: 0; transform: translateY(40px);
    animation: fadeInUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animate-scroll { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.animate-scroll.in-view { opacity: 1; transform: translateY(0); }

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

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 40px; }
    .download-wrapper { align-items: center; }
    .update-info { margin-left: 0; }
    h1 { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
}