@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Universal box-sizing rule for proper width calculations on all devices */
*, *::before, *::after {
    box-sizing: border-box;
}

/* iOS Safari specific fixes */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-50: #f5f0fa;
    --primary-100: #e9dff5;
    --primary-200: #d3bfeb;
    --primary-300: #b899e0;
    --primary-400: #9d6ed4;
    --primary-500: #8B4AB2;
    --primary-600: #7a3d9e;
    --primary-700: #663282;
    --primary-800: #542a6b;
    --primary-900: #462457;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 100%);
    /* iOS Safari specific body fixes */
    -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-bottom: 1px solid #f3f4f6;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    padding: 0 1rem;
}

.nav-logo {
    height: 3rem;
    width: auto;
}

.nav-button {
    margin-left: 1rem;
    background: var(--primary-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.nav-button:hover {
    background: var(--primary-700);
}

.logo-circle {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    background: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

@media (max-width: 640px) {
    .logo-circle {
        width: 140px;
        height: 140px;
        top: 10px;
    }
}

.centered-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 100%);
    padding-top: 10px;
}

@media (max-width: 640px) {
    .hero {
        min-height: 500px;
        padding-top: 50px;
    }
}

.hero-content {
    position: relative;
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 1rem;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 2rem 1rem;
    }
}

.hero-text {
    flex: 1;
    z-index: 10;
    text-align: left;
}

@media (max-width: 640px) {
    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.hero-title {
    color: white;
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 640px) {
    .hero-buttons {
        align-items: center;
    }
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
}

@media (max-width: 640px) {
    .hero-button {
        width: 100%;
        max-width: 280px;
    }
}

.hero-button-primary {
    background: white;
    color: var(--primary-600);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.hero-button-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.45), 0 20px 35px -10px rgba(0, 0, 0, 0.35);
}

.hero-button-secondary {
    background: var(--primary-700);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.hero-button-secondary:hover {
    background: var(--primary-800);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.2), 0 3px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-button-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

.testimonial-card {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

@media (max-width: 640px) {
    .testimonial-card {
        margin-top: 2rem;
        width: 100%;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .testimonial-content {
        min-width: unset;
        width: 100%;
        max-width: 320px;
        padding: 1rem;
        margin: 0 auto;
    }
    
    .testimonial-avatar {
        width: 3rem;
        height: 3rem;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.8125rem;
    }
}

.testimonial-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4), 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    min-width: 320px;
    max-width: 24rem;
}

.testimonial-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #111827;
}

.testimonial-text {
    color: #6b7280;
    font-size: 0.875rem;
}

.testimonial-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1rem;
}

.features {
    padding: 6rem 0;
    background: #f9fafb;
}

.features-header {
    text-align: center;
    margin-bottom: 5rem;
}

.features-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.features-description {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 36rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-100);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #4b5563;
}

.how-it-works {
    padding: 6rem 0;
    background: #f9fafb;
}

.how-it-works-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #111827;
    margin-bottom: 0.5rem;
}

.how-it-works-description {
    text-align: center;
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-icon {
    background: var(--primary-200);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.step-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.step-description {
    color: #6b7280;
}

.upload-box {
    width: 100%;
    max-width: 36rem;
    border: 2px dashed var(--primary-400);
    border-radius: 1rem;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    position: relative;
    margin: 0 auto;
}

.upload-icon {
    background: var(--primary-100);
    border-radius: 9999px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
}

.upload-button {
    background: var(--primary-600);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.upload-button:hover {
    background: var(--primary-700);
}

.upload-note {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    z-index: 10;
}

.loading-spinner {
    animation: spin 1s linear infinite;
    height: 2.5rem;
    width: 2.5rem;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-700);
}

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

.cta {
    padding: 6rem 0;
    background: #EDE3F4;
}

.cta-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--primary-700);
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.signup-form {
    max-width: 28rem;
    margin: 0 auto;
}

.signup-form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.signup-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    color: var(--primary-700);
    border: 2px solid var(--primary-200);
    background: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.signup-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.signup-input::placeholder {
    color: var(--primary-300);
}

.signup-button {
    background: var(--primary-500);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(139, 74, 178, 0.2);
}

.signup-button:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(139, 74, 178, 0.25);
}

.signup-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--primary-400);
}

.footer {
    width: 100%;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 100%);
    padding: 4rem 0 2rem;
    color: white;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 24rem;
    padding-top: 0.5rem;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-description {
    color: #FFF;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s;
}

.social-link:hover {
    color: white;
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-heading {
    color: #FFF;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    margin-bottom: 1rem;
}

.footer-link a {
    color: #FFF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1f2937;
}

.footer-copyright {
    color: #FFF;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .footer-description {
        color: #FFF;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links-section {
        margin-top: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-content {
        flex-direction: row;
        padding: 0 2rem;
    }
    
    .testimonial-card {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .signup-form-group {
        flex-direction: column;
    }
    
    .signup-button {
        width: 100%;
    }
}

/* iPhone specific media queries for width issues */
@media only screen and (max-width: 480px) {
    /* Ensure all sections take full width on iPhones */
    .hero, .cta, .footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .hero-content, .cta-content, .footer-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .nav {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .nav-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* iPhone X, XS, 11 Pro, 12 mini, 13 mini specific fixes */
@media only screen and (max-width: 414px) {
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .hero, .cta, .footer {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* iPhone 6/7/8 Plus and similar large iPhones */
@media only screen and (max-width: 428px) {
    .hero-content, .cta-content, .footer-content {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
} 