/* Landing Page Styles - Engageful */
/* Clean, modern design with purple accents */

:root {
    --purple-600: #8B5CF6;
    --purple-700: #7C3AED;
    --purple-100: #F3E8FF;
    --purple-50: #FAF5FF;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    overflow-x: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: var(--purple-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--purple-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    color: var(--white);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-google {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    gap: 8px;
}

.btn-google:hover {
    background: var(--gray-50);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, var(--purple-50) 0%, var(--white) 100%);
    text-align: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--purple-200);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--purple-700);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--purple-600);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
}

/* Hero Visual/Mockup */
.hero-visual {
    margin-top: 60px;
}

.hero-mockup {
    max-width: 800px;
    margin: 0 auto;
}

.mockup-browser {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.browser-bar {
    background: var(--gray-100);
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--gray-200);
}

.browser-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
}

.browser-content {
    padding: 32px;
    background: var(--white);
}

.instagram-profile {
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-pic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-400) 0%, var(--purple-600) 100%);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info strong {
    font-size: 16px;
    color: var(--gray-900);
}

.profile-info span {
    font-size: 14px;
    color: var(--gray-500);
}

.message-preview {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.message-preview p {
    font-size: 15px;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.badge-ai {
    display: inline-block;
    padding: 4px 12px;
    background: var(--purple-100);
    color: var(--purple-700);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title .highlight {
    color: var(--purple-600);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.problem-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--purple-300);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--purple-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--purple-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Use Cases */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.usecase-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.usecase-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.usecase-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--purple-300);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
}

.pricing-featured {
    border-color: var(--purple-600);
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-600);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 32px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
}

.savings {
    display: block;
    font-size: 14px;
    color: var(--purple-600);
    font-weight: 600;
    margin-top: 8px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-feature {
    padding: 12px 0;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 16px;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 28px;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-section .btn-hero {
    background: var(--white);
    color: var(--purple-600);
}

.cta-section .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Signup Section */
.signup-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.signup-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.signup-box h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.signup-box > p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-buttons .btn {
    width: 100%;
    justify-content: center;
}

#magic-link-form {
    margin-top: 24px;
}

#magic-link-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#magic-link-form input {
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

#magic-link-form input:focus {
    outline: none;
    border-color: var(--purple-600);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.signup-trust {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 24px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
    }

    .nav-logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-logo h1 {
        font-size: 18px;
    }

    .nav-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    /* Regular text links - full width on first row */
    .nav-links > a:not(.btn) {
        font-size: 13px;
        text-align: center;
        padding: 6px 12px;
        flex: 0 1 auto;
    }

    /* Button links - share second row */
    .nav-links .btn {
        padding: 10px 14px;
        font-size: 12px;
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        white-space: nowrap;
    }

    .hero-section {
        padding: 60px 0 80px;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .problem-grid,
    .feature-grid,
    .steps-grid,
    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .signup-box {
        padding: 32px 24px;
    }

    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    /* Adjust button text on smaller screens */
    .nav-links .btn {
        font-size: 12px;
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 12px;
        gap: 10px;
    }

    .nav-logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-logo h1 {
        font-size: 16px;
    }

    .nav-links {
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Text links - smaller and more compact */
    .nav-links > a:not(.btn) {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Buttons - stack vertically on very small screens */
    .nav-links .btn {
        display: none;
    }

    /* Hide icon in extension button on very small screens */
    .nav-links .btn svg {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .btn-hero {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* Profile Page Specific Styles */

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 32px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    border-left: 4px solid var(--purple-600);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.info {
    border-left-color: var(--purple-600);
}

/* User Info Styles */
#user-info p {
    margin: 8px 0;
    color: var(--gray-700);
}

#user-info strong {
    color: var(--gray-900);
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
    .toast {
        right: 16px;
        max-width: calc(100vw - 32px);
    }
}
