/* AppNoob Landing Page */

:root {
    --bg: #09090b;
    --bg-card: #131316;
    --bg-lighter: #1a1a1f;
    --border: #27272a;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --accent: #6d28d9;
    --accent-light: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --gradient: linear-gradient(135deg, #6d28d9, #2563eb);
    --gradient-text: linear-gradient(135deg, #a78bfa, #60a5fa);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 0;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 8px 20px;
    background: var(--accent);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-light);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    position: relative;
}

/* ============ MASCOT ============ */
.mascot {
    flex-shrink: 0;
    margin-left: -40px;
    animation: walkIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.mascot img {
    width: 400px;
    height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

@keyframes walkIn {
    0% {
        transform: translateX(600px);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============ SPEECH BUBBLE ============ */
.speech-bubble {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    max-width: 520px;
    opacity: 0;
    animation: bubbleIn 0.6s ease-out 1.2s forwards;
}

/* Pijltje naar rechts (naar de aap) */
.speech-bubble::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 24px solid var(--bg-card);
}

@keyframes bubbleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.speech-bubble h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.speech-bubble p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dim);
}

.point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* Forms */
.hero-form, .cta-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-form input, .cta-form input {
    flex: 1;
    min-width: 240px;
    padding: 14px 20px;
    background: var(--bg-lighter);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
}

.hero-form input:focus, .cta-form input:focus {
    border-color: var(--accent);
}

.hero-form button, .cta-form button {
    padding: 14px 28px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.hero-form button:hover, .cta-form button:hover {
    opacity: 0.9;
}

.hero-form button:active, .cta-form button:active {
    transform: scale(0.98);
}

.hero-note {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 12px;
    text-align: center;
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-dim);
    text-align: center;
    max-width: 540px;
    margin: 0 auto 56px;
}

/* ============ PROBLEM ============ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.problem-card {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.problem-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============ STEPS ============ */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-dim);
}

.step-arrow {
    font-size: 24px;
    color: var(--accent-light);
    font-weight: 300;
}

/* ============ COMPARISON ============ */
.comparison-table {
    overflow-x: auto;
    margin-top: 48px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 14px;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.comparison-table td {
    color: var(--text-dim);
}

.comparison-table .highlight {
    color: var(--accent-light);
    font-weight: 600;
    background: var(--accent-glow);
}

.comparison-table th.highlight {
    color: var(--accent-light);
}

/* ============ CTA ============ */
.section-cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.section-cta h2 {
    margin-bottom: 16px;
}

/* ============ FOOTER ============ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-weight: 700;
    font-size: 18px;
}

.footer p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ============ SUCCESS MESSAGE ============ */
.form-success {
    padding: 14px 28px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    color: #10b981;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero-scene {
        flex-direction: column-reverse;
        gap: 0;
    }

    .mascot {
        margin-left: 0;
    }

    .mascot img {
        width: 220px;
        height: 220px;
    }

    .speech-bubble {
        padding: 28px;
        max-width: 100%;
    }

    .speech-bubble::after {
        /* Pijl naar beneden op mobile */
        right: auto;
        left: 50%;
        top: auto;
        bottom: -18px;
        transform: translateX(-50%);
        border-top: 20px solid var(--bg-card);
        border-bottom: none;
        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .comparison-table th:nth-child(2),
    .comparison-table td:nth-child(2) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-form, .cta-form {
        flex-direction: column;
    }

    .hero-form input, .cta-form input {
        min-width: 100%;
    }
}
