/* KLAPP Website - Playful & Colorful Design */

/* Color Palette */
:root {
    --primary: #6C63FF;
    --primary-dark: #5650D8;
    --coral: #FF6B6B;
    --mint: #4ECDC4;
    --lavender: #A78BFA;
    --peach: #FBBF24;
    --sky: #60A5FA;
    --pink: #F472B6;

    --bg-gradient-start: #E8F4FD;
    --bg-gradient-end: #FCE7F3;

    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;

    --shadow-soft: 0 4px 20px rgba(108, 99, 255, 0.15);
    --shadow-medium: 0 8px 30px rgba(108, 99, 255, 0.2);
    --shadow-strong: 0 15px 50px rgba(108, 99, 255, 0.25);

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
    --radius-round: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Decorative Bubbles */
.bubble {
    position: fixed;
    border-radius: 50%;
    opacity: 0.4;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.bubble-2 {
    width: 200px;
    height: 200px;
    background: var(--mint);
    top: 60%;
    right: -50px;
    animation-delay: -5s;
}

.bubble-3 {
    width: 150px;
    height: 150px;
    background: var(--lavender);
    bottom: 20%;
    left: 10%;
    animation-delay: -10s;
}

.bubble-4 {
    width: 100px;
    height: 100px;
    background: var(--peach);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--lavender) 100%);
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

.logo-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-round);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--lavender) 100%);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral) 0%, var(--peach) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-round);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Tablet Mockup */
.hero-image {
    position: relative;
}

.tablet-mockup {
    width: 380px;
    height: 280px;
    background: linear-gradient(145deg, #2D3748 0%, #1A202C 100%);
    border-radius: 30px;
    padding: 15px;
    box-shadow: var(--shadow-strong);
    transform: rotate(5deg);
    margin-left: auto;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-star {
    position: absolute;
    top: 20px;
    right: 80px;
    font-size: 40px;
    color: var(--peach);
    animation: spin 8s linear infinite;
}

.float-heart {
    position: absolute;
    bottom: 40px;
    left: 20px;
    font-size: 35px;
    color: var(--coral);
    animation: bounce 2s infinite;
}

.float-circle {
    position: absolute;
    top: 50%;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--mint);
    border-radius: 50%;
    opacity: 0.6;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

/* Problem/Solution Section */
.problem-section {
    padding: 80px 0;
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.problem-card, .solution-card {
    padding: 40px;
    border-radius: var(--radius-medium);
    text-align: center;
}

.problem-card {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.solution-card {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.problem-icon, .solution-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.problem-card h3, .solution-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 24px;
    margin-bottom: 16px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, white 0%, var(--bg-gradient-start) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-light);
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Age Groups Section */
.ages-section {
    padding: 100px 0;
    background: white;
}

.ages-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.age-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-medium);
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.age-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.age-card-1::before { background: var(--coral); }
.age-card-2::before { background: var(--mint); }
.age-card-3::before { background: var(--lavender); }
.age-card-4::before { background: var(--primary); }

.age-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-round);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.age-card-1 .age-badge { background: #FEE2E2; color: var(--coral); }
.age-card-2 .age-badge { background: #D1FAE5; color: #059669; }
.age-card-3 .age-badge { background: #EDE9FE; color: var(--lavender); }
.age-card-4 .age-badge { background: #E0E7FF; color: var(--primary); }

.age-icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.age-card h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
}

.age-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.age-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.age-apps span {
    background: #F7FAFC;
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 12px;
    color: var(--text-light);
}

/* Beta Section */
.beta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-gradient-end) 0%, var(--bg-gradient-start) 100%);
}

.beta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--peach) 0%, var(--coral) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-round);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.beta-info h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 38px;
    margin-bottom: 20px;
}

.beta-info p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.beta-benefits {
    list-style: none;
}

.beta-benefits li {
    font-size: 17px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.beta-benefits li::before {
    content: none;
}

/* Form Styles */
.beta-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-small);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-note {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.form-success h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--mint);
}

.form-success p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-icon {
    background: white;
    color: var(--primary);
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    display: none;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: 40px;
    }

    .tablet-mockup {
        margin: 0 auto;
        transform: rotate(0deg);
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ages-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .beta-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

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

    .ages-timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .beta-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .tablet-mockup {
        width: 280px;
        height: 200px;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
