/* Tailwind-inspired styles with shadcn/ui patterns */

/* CSS Reset and Variables */
:root {
    /* Brand Colors */
    --smart-blue: #1565C0;
    --smart-blue-dark: #0D47A1;
    --smart-blue-light: #42A5F5;
    --trust-green: #2E7D32;
    --trust-green-light: #4CAF50;
    --warm-accent: #FF6B35;
    --warm-accent-light: #FF8A65;

    /* Neutral Colors */
    --background: #FFFFFF;
    --foreground: #0A0A0A;
    --muted: #F4F4F5;
    --muted-foreground: #71717A;
    --border: #E4E4E7;

    /* shadcn/ui inspired spacing */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - shadcn/ui inspired */
.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 1.4;
    font-weight: 600;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-muted {
    color: var(--muted-foreground);
}

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

/* Navigation Header */
.nav-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--foreground);
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

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

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
}

/* Buttons - shadcn/ui style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--smart-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--smart-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

.btn-secondary {
    background: var(--muted);
    color: var(--foreground);
}

.btn-secondary:hover {
    background: #E4E4E7;
}

.btn-large {
    height: 48px;
    padding: 0 32px;
    font-size: 1rem;
}

/* Badge - shadcn/ui style */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--smart-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.btn-subtext {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.trust-indicators {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--trust-green);
}

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

.section-alt {
    background: #FAFAFA;
}

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

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards - shadcn/ui style */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--smart-blue);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Problem Statement */
.pain-point {
    text-align: center;
    padding: 32px;
}

.pain-point-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.pain-point-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warm-accent);
    margin-bottom: 4px;
}

.pain-point-desc {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Process Steps */
.process-steps {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--smart-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 auto 24px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--smart-blue);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--smart-blue);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Testimonial */
.testimonial {
    max-width: 800px;
    margin: 48px auto;
    text-align: center;
    padding: 48px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--foreground);
    margin-bottom: 24px;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: -20px;
    top: -10px;
    font-size: 3rem;
    color: var(--smart-blue);
    opacity: 0.3;
}

.testimonial-author {
    font-weight: 600;
    color: var(--foreground);
}

.testimonial-role {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Privacy Section */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.privacy-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #DCFCE7;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-icon svg {
    width: 20px;
    height: 20px;
    color: var(--trust-green);
}

.privacy-content {
    flex: 1;
}

.privacy-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.privacy-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* FAQ - Accordion style */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--muted);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

.faq-answer p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 40px;
}

.cta-urgency {
    font-size: 1rem;
    color: var(--smart-blue);
    margin-top: 24px;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #FAFAFA;
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--foreground);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--smart-blue);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

    .text-5xl {
        font-size: 2rem;
    }

    .text-4xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 48px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .btn-wrapper {
        align-items: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .section {
        padding: 48px 0;
    }

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

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        padding: 32px 24px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* iOS Waitlist Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted-foreground);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.modal-header {
    padding: 32px 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
}

.modal-header p {
    color: var(--muted-foreground);
    line-height: 1.5;
}

.ios-waitlist-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--foreground);
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--smart-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.btn-full {
    width: 100%;
}

.success-message, .error-message {
    padding: 32px;
    text-align: center;
}

.success-message h4 {
    color: var(--trust-green);
    margin-bottom: 8px;
}

.error-message h4 {
    color: var(--warm-accent);
    margin-bottom: 8px;
}

.success-message p, .error-message p {
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Modal-specific Mailchimp overrides */
#ios-waitlist-modal #mc_embed_signup {
    background: transparent;
    clear: left;
    width: 100%;
    padding: 32px;
}
#ios-waitlist-modal #mc_embed_signup form {
    padding: 0;
}
#ios-waitlist-modal #mc_embed_signup h2 {
    display: none; /* Hide duplicate heading */
}
#ios-waitlist-modal #mc_embed_signup .indicates-required {
    display: none; /* Hide asterisk text */
}
#ios-waitlist-modal #mc_embed_signup .mc-field-group {
    margin-bottom: 24px;
}
#ios-waitlist-modal #mc_embed_signup .mc-field-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}
#ios-waitlist-modal #mc_embed_signup .mc-field-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#ios-waitlist-modal #mc_embed_signup .mc-field-group input:focus {
    outline: none;
    border-color: var(--smart-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}
#ios-waitlist-modal #mc_embed_signup .button {
    width: 100%;
    background: var(--smart-blue);
    color: white;
    padding: 0 20px;
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
#ios-waitlist-modal #mc_embed_signup .button:hover {
    background: var(--smart-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}
#ios-waitlist-modal #mc_embed_signup .refferal_badge {
    margin-top: 16px;
    opacity: 0.5;
}
#ios-waitlist-modal #mce-responses {
    margin-top: 16px;
}
#ios-waitlist-modal .response {
    padding: 16px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
}
#ios-waitlist-modal #mce-error-response {
    background: #FEE2E2;
    color: #991B1B;
}
#ios-waitlist-modal #mce-success-response {
    background: #D1FAE5;
    color: #065F46;
}