/* ============================================
   NOTEPILOT LANDING PAGE - CSS STYLES
   Light Mode | Modern, Clean Design
   ============================================ */

/* ============ RESET & BASE STYLES ============ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============ UTILITY CLASSES ============ */

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

/* ============ HEADER & NAVIGATION ============ */

.header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    padding: 16px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0066cc;
}

/* ============ HERO SECTION ============ */

.hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4ff 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.4;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #0066cc;
    color: #ffffff;
    border: 2px solid #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 102, 204, 0.2);
}

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

.btn-form {
    padding: 12px 28px;
    white-space: nowrap;
}

/* ============ FEATURES SECTION ============ */

.features {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.feature-card {
    padding: 40px;
    background-color: #f9fafb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    background-color: #f5f7ff;
    border-color: #0066cc;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.08);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: #0066cc;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* ============ FORM SECTION ============ */

.form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f5f7ff 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-wrapper {
    text-align: center;
}

.form-headline {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.email-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.email-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #999999;
}

.email-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background-color: #fafbff;
}

.email-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    font-size: 13px;
    color: #ef4444;
    margin-top: 8px;
    text-align: left;
}

.form-helper {
    font-size: 13px;
    color: #999999;
    margin-top: 12px;
}

/* ============ SUCCESS MESSAGE ============ */

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: #10b981;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.success-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

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

/* ============ FOOTER ============ */

.footer {
    background-color: #f9fafb;
    border-top: 1px solid #f0f0f0;
    padding: 40px 0;
}

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

.footer-text {
    font-size: 14px;
    color: #999999;
}

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

.footer-link {
    font-size: 14px;
    color: #666666;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0066cc;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .nav {
        gap: 16px;
        font-size: 13px;
    }

    .hero-container {
        min-height: 400px;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .features {
        padding: 60px 0;
    }

    .features-grid {
        gap: 24px;
    }

    .feature-card {
        padding: 32px 20px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-description {
        font-size: 13px;
    }

    .form-section {
        padding: 60px 0;
    }

    .form-headline {
        font-size: 28px;
        margin-bottom: 32px;
    }

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

    .email-input {
        width: 100%;
    }

    .btn-form {
        width: 100%;
    }

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

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

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

    .feature-card {
        padding: 24px 16px;
    }

    .form-headline {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .success-icon svg {
        width: 48px;
        height: 48px;
    }

    .success-text {
        font-size: 16px;
    }
}

/* ============ ACCESSIBILITY & UTILITY ============ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
