/* ---
TABLE OF CONTENTS
1.  Root Variables & Base Styles
2.  Navbar
3.  Hero Section & Animations
4.  Buttons & Forms
5.  Content Sections (Stats, Advantages, FAQ)
6.  Footer
7.  Responsive Design
--- */

/* 1. ROOT VARIABLES & BASE STYLES */
:root {
    /* New color palette inspired by the app icon */
    --theme-orange: #FF9F43;
    --theme-purple: #8A5CFE;
    --theme-blue: #3B82F6;
    --theme-gradient: linear-gradient(135deg, var(--theme-orange) 0%, var(--theme-purple) 70%, var(--theme-blue) 100%);
    --bg-light: #FFFFFF;
    --bg-dark: #F3F4F6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --border-light: #E5E7EB;
    --white: #FFFFFF;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    overflow-x: hidden;
}

/* 2. NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}
body { padding-top: 104px; }
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    padding-left: 0.5rem;
}
.navbar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color .2s ease;
}
.navbar .nav-link:hover { color: var(--theme-orange) !important; }

.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* 3. HERO SECTION & ANIMATIONS */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--theme-gradient);
    background-size: 250% 250%;
    animation: gradient-animation 15s ease infinite;
}
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.phone-mockup {
    position: relative;
    width: 300px;
    height: 610px;
    margin: auto;
    border: 12px solid #111827; /* Darker border for better contrast */
    border-radius: 55px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
    z-index: 1;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #F9FAFB;
    border-radius: 43px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-screen img {
    width: 100%;
    height: auto;
}
.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(17, 24, 39, 0.6); /* Dark glassy card */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.hero-content h1 { font-size: 3.8rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.hero-content .lead { font-size: 1.25rem; color: var(--bg-dark); margin-bottom: 2rem; }

/* 4. BUTTONS & FORMS */
.btn { border-radius: 8px; font-weight: 600; padding: 0.75rem 1.5rem; transition: all 0.3s ease; border: 1px solid transparent; }
.btn-primary {
    color: var(--white) !important;
    background-color: var(--theme-orange);
    border-color: var(--theme-orange);
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}
.btn-primary:hover {
    background-color: #FF8D2A;
    border-color: #FF8D2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}
.waitlist-form .input-group { max-width: 500px; }
.waitlist-form .form-control { border: 1px solid #D1D5DB; color: var(--text-primary); font-size: 1rem; padding: 0.75rem 1.25rem; height: 52px; }
.waitlist-form .form-control:focus { box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.4); border-color: var(--theme-orange); }
.waitlist-form .btn { height: 52px; }

/* 5. CONTENT SECTIONS (Stats, Advantages, FAQ) */
.section { padding: 80px 0; }
#what-is { background-color: var(--bg-light); }
#advantages { background-color: var(--bg-dark); }
#faq { background-color: var(--bg-light); }

.section-title { margin-bottom: 20px; font-weight: 700; font-size: 2.5rem; color: var(--text-primary); }
.section-subtitle { max-width: 700px; margin: 0 auto 40px auto; font-size: 1.1rem; line-height: 1.6; }

.stat-card { padding: 20px; }
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.stat-label { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }

.advantage-card {
    border: 1px solid var(--border-light);
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
    border-left: 5px solid transparent;
    display: flex;
    flex-direction: column;
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    border-left-color: var(--theme-purple);
}
.advantage-card .icon { font-size: 1.5rem; margin-bottom: 15px; }
.advantage-card h4 { color: var(--text-primary); font-weight: 600; margin-bottom: 10px; }
.advantage-card:nth-of-type(odd) .icon { color: var(--theme-orange); }
.advantage-card:nth-of-type(even) .icon { color: var(--theme-purple); }

.team-list { margin-top: auto; padding-top: 15px; font-size: 0.9rem; }
.team-list ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.team-list li { padding: 2px 0; color: var(--text-secondary); }

.faq-item {
    background: var(--bg-light); margin-bottom: 10px;
    border-radius: 10px; border: 1px solid var(--border-light); overflow: hidden;
    transition: background-color 0.3s;
}
.faq-item:hover { background-color: #fefefe; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    color: var(--text-primary); padding: 20px; font-size: 1.1rem;
    font-weight: 600; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; transition: color 0.3s;
}
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; }
.faq-answer p { padding-bottom: 20px; margin: 0; }
.faq-question .icon { transition: transform 0.4s ease, color 0.4s ease; }
.faq-question.active .icon { color: var(--theme-purple); transform: rotate(135deg); }
.faq-question.active { color: var(--theme-orange); }

/* 6. FOOTER */
.footer {
    padding: 40px 0; text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-light);
}
.footer p { color: var(--text-secondary); margin-bottom: 0; }

/* 7. RESPONSIVE DESIGN */
@media (max-width: 991.98px) {
    body { padding-top: 80px; }
    
    .navbar-collapse {
        text-align: center;
        border-top: 1px solid var(--border-light);
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    /* === FORCEFUL NAVBAR FIX V2 === */
    .navbar > .container {
        flex-wrap: nowrap !important; /* Force no-wrap */
        /* You can remove the red border after confirming the layout is fixed */
        border: 1px solid red; 
    }
    .navbar-brand {
        font-size: 1.0rem !important;
        margin-right: 0.25rem !important;
        padding-right: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .navbar-brand img {
        width: 32px !important;
        height: 32px !important;
    }
    .navbar .btn.d-lg-none {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
    .navbar-toggler {
        padding: 0.1rem 0.2rem !important;
    }
    /* === END FIX === */

    .hero {
        padding: 60px 0;
        text-align: center;
    }
    .hero-content {
        background: none;
        backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    .hero-content h1 {
        font-size: 2.8rem;
        color: var(--white);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .hero-content .lead {
        color: var(--white);
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .phone-mockup {
        width: 280px;
        height: 570px;
        border-width: 10px;
        border-radius: 45px;
        margin-bottom: 40px;
    }
    .phone-screen {
        border-radius: 35px;
    }

    .waitlist-form .input-group { margin: auto; }
    
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .hero-content .lead {
        font-size: 1.1rem;
    }
    .stat-number {
        font-size: 3rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
    .waitlist-form .input-group {
        flex-direction: column;
        padding: 0 1rem;
    }
    .waitlist-form .form-control, 
    .waitlist-form .btn {
        width: 100%;
        border-radius: 8px !important;
    }
    .waitlist-form .btn {
        margin-top: 10px;
    }
}

@media (max-width: 380px) {
    .phone-mockup {
        width: 250px;
        height: 510px;
        border-width: 8px;
        border-radius: 40px;
    }
     .phone-screen {
        border-radius: 32px;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
}