/* ========================================
   NIKTIONARY LANDING PAGE
   Farben basierend auf Logo:
   - Primary Blue: #1E88E5
   - Dark Blue: #0D47A1
   - Orange: #FF9500
   - Light Orange: #FFB74D
   - Background: #F0F7FF
   ======================================== */

:root {
    --primary: #1E88E5;
    --primary-dark: #0D47A1;
    --primary-light: #64B5F6;
    --accent: #FF9500;
    --accent-light: #FFB74D;
    --accent-dark: #E65100;
    --bg-light: #F0F7FF;
    --bg-white: #FFFFFF;
    --text-dark: #1A237E;
    --text-medium: #5C6BC0;
    --text-light: #9FA8DA;
    --success: #4CAF50;
    --shadow-sm: 0 2px 8px rgba(30, 136, 229, 0.1);
    --shadow-md: 0 4px 20px rgba(30, 136, 229, 0.15);
    --shadow-lg: 0 8px 40px rgba(30, 136, 229, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 149, 0, 0.5);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.hero-visual {
    position: relative;
    margin-top: 40px;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.05); }
}

.hero-mascot {
    position: relative;
    width: 200px;
    height: auto;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 80px 20px;
    background: var(--bg-white);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2;
}

.icon-voice {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}
.icon-voice svg { stroke: var(--primary); }

.icon-pen {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}
.icon-pen svg { stroke: var(--accent); }

.icon-stats {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}
.icon-stats svg { stroke: var(--success); }

.icon-battle {
    background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
}
.icon-battle svg { stroke: #7C4DFF; }

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.how-it-works h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 50px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    min-width: 180px;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.step h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.step-arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: var(--bg-light);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 30px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========================================
   LOGIN MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 71, 161, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    height: 80px;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #E0E0E0;
    background: white;
    color: var(--text-dark);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-btn.google:hover {
    border-color: #4285F4;
    background: #F8FBFF;
}

.auth-btn.microsoft:hover {
    border-color: #00A4EF;
    background: #F0FAFF;
}

.auth-btn.apple {
    background: #000;
    color: white;
    border-color: #000;
}

.auth-btn.apple:hover {
    background: #333;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

.modal-footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE (Mobile First)
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-mascot {
        width: 150px;
    }
    
    .hero-circle {
        width: 200px;
        height: 200px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 16px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn-login {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .hero {
        padding: 80px 16px 40px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .modal {
        padding: 30px 20px;
    }
}