:root {
    --primary: #6366F1;
    /* Indigo - Bluish Purple */
    --primary-dark: #4338CA;
    --accent: #E11D48;
    /* Rose as accent */
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --bg-light: #EEF2FF;
    /* Light Indigo BG */
    --white: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

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

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    justify-content: center;
    /* Restore text centering */
    /* min-width removed from global .btn to fix header button */
}

/* ... existing code ... */

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-buttons .btn {
    min-width: 220px;
    /* Ensure equal width for app store buttons only */
    justify-content: center;
}

/* ... existing code ... */

.card-1 {
    top: 15%;
    /* Slight adjustment */
    right: -150px;
    /* Moved further out to reduce overlap on desktop */
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    left: -150px;
    /* Moved further out to reduce overlap on desktop */
    animation: float 6s ease-in-out infinite 1s;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

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

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Header */
.header {
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* .logo-text removed */
.logo-img {
    height: 40px;
    /* Adjust height to fit header */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-toggle,
.mobile-menu-close,
.mobile-menu {
    display: none;
}

/* Hero */
.hero {
    padding: 100px 0 50px;
    /* Reduced padding */
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    /* Indigo Gradient */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #E0E7FF;
    /* Light Indigo Badge */
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Image Wrapper */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: auto;
    /* Shrink to fit image */
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Centered Hero Image */
.hero-centered-img {
    width: auto;
    max-width: 100%;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.hero-centered-img:hover {
    transform: translateY(-5px);
}

/* Floating Cards - Positioned relative to the image container */
.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    z-index: 5;
}

/* Old card rules removed - moved to top */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Features */
.section-header .subheading {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.grid-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    flex: 1 1 300px;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #EEF2FF;
    /* Light Indigo Icon BG */
    /* Light blue */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Safety */
.safety-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#safety.section {
    padding: 3rem 0;
    /* Reduced padding for safety section */
}

.safety-banner-img {
    width: 100%;
    max-width: 320px;
    /* Reduced width further */
    height: auto;
    display: block;
    margin: 0 auto;
    /* border-radius: var(--radius-lg); */
    /* Use drop-shadow to respect image transparency/shape */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.safety-banner-img:hover {
    transform: translateY(-5px);
}

.check-list li {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.check-list i,
.check-list svg {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.check-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.check-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA */
.cta-section {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #0F172A;
    /* Hex for slate-900 */
    color: #94A3B8;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #1E293B;
}

.logo-text-footer {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 32px;
    /* Slightly smaller than header */
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white for dark footer */
    display: block;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    opacity: 0.7;
    font-size: 1.1rem;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* Contact Page */
.page-header {
    padding: 8rem 0 4rem;
    /* Top padding to clear fixed header */
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h3,
.support-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: #F8FAFC;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.support-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}.error {
    font-size: 12px;
    color: red;
    margin-top: 4px;
    display: block;
}
/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-icon {
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

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

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Legal Pages */
.legal-page .legal-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.legal-page ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style: disc;
}

.legal-page ul li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

.legal-footer-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    font-style: italic;
    color: var(--text-muted);
}

/* Custom File Upload & Captcha */
.file-upload-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-chosen {
    flex-grow: 1;
    background: #F8FAFC;
    border: 1px solid #F8FAFC;
    /* Similar to input bg */
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    color: #94A3B8;
    /* Muted text color */
    font-size: 1rem;
}

.btn-browse {
    background: #2563EB;
    /* Blue color from screenshot */
    color: #fff;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    /* Sharper corners as per screenshot */
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-browse:hover {
    background: #1d4ed8;
}

.captcha-box {
    display: inline-block;
    background: #1E3A8A;
    /* Dark Blue */
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.captcha-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-dark);
        cursor: pointer;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 2000;
        padding: 1.5rem;
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top */
        align-items: center;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* New Menu Header */
    .mobile-menu-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
        /* Space between header and links */
    }

    .mobile-menu-close {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        /* Touching target area */
    }

    .mobile-nav-links {
        text-align: center;
    }

    .mobile-nav-links li {
        margin-bottom: 1.5rem;
    }

    .mobile-nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .hero-container,
    .safety-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .check-list li {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .check-list i,
    .check-list svg {
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        margin: 0 auto 2rem auto;
    }

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

    .card-1 {
        right: -80px;
        top: 12%;
        /* Restore original mobile vertical position */
    }

    .card-2 {
        left: -80px;
        bottom: 20%;
        /* Restore original mobile vertical position */
    }

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-links {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .app-buttons .btn {
        width: 100%;
        max-width: 280px;
        /* Force identical width for stacked buttons */
        justify-content: center;
    }
}