/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background-color: #061e3e;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utility container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.button--primary {
    background-color: #00aaff;
    color: #ffffff;
}

.button--primary:hover {
    background-color: #008ecc;
}

.button--outline {
    background-color: transparent;
    border: 2px solid #00aaff;
    color: #00aaff;
}

.button--outline:hover {
    background-color: #00aaff;
    color: #ffffff;
}

/* Navigation */
.nav-bar {
    /*
     * Use a deep black header bar to match the dark accents from the
     * provided app screenshots. This replaces the previous dark blue
     * so that the logo and "Get the App" button sit on a sleek black bar.
     */
    background-color: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.brand-logo img {
    height: 40px;
}

/* Hero */
.hero {
    padding-top: 80px; /* offset for fixed nav */
    /*
     * Darken the hero section to better match the black header
     * used in the mobile app screenshots. Picked the pure black
     * color (#000000) from the provided app mockups and blended
     * into our existing dark blue to maintain depth.
     */
    background: linear-gradient(180deg, #000000 0%, #031a2d 100%);
    overflow: hidden;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .hero-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .hero-text {
        flex: 1;
        max-width: 50%;
    }
    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: center;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #c8d5e1;
}

.cta-buttons .button {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

/* Device frame */
.device-frame {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.device-frame.small {
    width: 220px;
}

.device-frame .device {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.device-frame .screenshot {
    position: absolute;
    /*
     * Position and size the app screenshots within the device frame.
     * Adjust these values so that the screenshot aligns neatly with the phone's
     * screen area. The percentages represent margins from each side. A
     * slightly larger width/height ensures that curved corners are hidden
     * behind the frame. Feel free to tweak if using a different phone frame.
     */
    /*
     * Adjust the inset of the screenshots inside the phone frame. These
     * values have been tuned so the app screens fill the entire
     * display area without leaving visible gaps around the edges.
     */
    /*
     * Fine‑tune the screenshot inset so it completely fills the phone’s
     * display area across different aspect ratios. Making the top and
     * left margins smaller and the width/height larger helps cover
     * any remaining gaps without spilling outside the curved corners.
     */
    /*
     * Further enlarge the app screenshots to ensure they fit snugly
     * within the phone frame. A uniform 5% margin around all sides
     * combined with 90% width/height covers any remaining gaps on
     * devices with curved corners.
     */
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 0;
}

/* Features */
.features {
    background-color: #041a34;
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background-color: #0b2c50;
    border-radius: 12px;
}

.feature-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: #00aaff;
}

.feature-item p {
    color: #c8d5e1;
    font-size: 0.95rem;
    margin: 0;
}

/* Gallery */
.gallery {
    padding: 4rem 0;
    background-color: #031a2d;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        flex-direction: row;
        justify-content: center;
    }
}

.gallery-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Download section */
.download {
    background-color: #041a34;
    padding: 4rem 0;
    text-align: center;
}

.download h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.download p {
    margin-bottom: 2rem;
    color: #c8d5e1;
}

/* Footer */
.footer {
    background-color: #05172d;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6f87a8;
}