.hero-section {
    position: relative;
    width: 100%;
    height: 513px;
    background: var(--color-black);
    overflow: visible;
    margin: 0;        /* full-width default */
    max-width: none;  /* remove width limit on small/medium screens */
}



/* Ellipse 38 (the blurred green glow) */
/* ELLIPSE BELOW HERO SECTION */
.ellipse-38-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 520px;
    background: rgba(103, 235, 211, 0.3);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.ellipse-38-top ellipse {
    fill: rgba(103, 235, 211, 0.3);
    filter: blur(100px);
}

/* Hero Background Image */
.hero-background-image {
    position: absolute;
    width: 100%;
    height: 513px;
    right: 0;
    top: 0;
    background: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, 0) 65.14%),
        url("../../images/hero-image.jpg") no-repeat right center;
    background-size: cover;
    z-index: 3; /* background layer */
}

/* Frame 1441 */

.hero-content-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 48px;

    position: absolute;
    width: 538px;
    height: 353px;
    left: 250px;
    top: 100px;
    z-index: 10;
    border: none;
}

.hero-text-group {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px; /* Space between the headline and the subtitle */
    width: 538px;
    flex-shrink: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* ==================================== */
/* Headline: Ride in Class, Arrive in Confidence. */
/* ==================================== */
.hero-headline {
    width: 538px;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 300; /* Light weight */
    font-size: 48px;
    line-height: 58px;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin: 0; /* Remove default margin */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* ==================================== */
/* Subtitle: TRCELESS connects you... */
/* ==================================== */
.hero-subtitle {
    width: 538px;
    height: 38px;

    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary); /* Grey color */

    margin: 0; /* Remove default margin */

    /* Inside auto layout properties */
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
}

/* --- CSS Variables for consistent theming --- */

/* ==================================== */
/* 1. Frame 1440: Main Container for Search & Download */
/* ==================================== */
.search-download-group {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 24px; /* Space between search bar and download app sections */

    width: 538px;
    /* height: 135px; (Height is typically determined by content in flex layouts) */

    /* These are context properties from Figma, usually applied to the parent's flex item */
    /* flex: none; order: 1; align-self: stretch; flex-grow: 0; */
}

/* ==================================== */
/* 2. Frame 1351: Search Bar Row */
/* ==================================== */
.search-bar-row {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px; /* Space between search input and button */

    width: 100%; /* Stretches to fill .search-download-group */
    height: 44px;

    /* flex: none; order: 0; align-self: stretch; flex-grow: 0; */
}

/* Frame 388: Search Input Container */
.search-input-container {
    box-sizing: border-box; /* Include padding and border in element's total width/height */

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px; /* Adjusted padding to ensure 44px height with 24px icon/text */
    gap: 8px; /* Space between icon and text input */

    width: 394px;
    height: 44px;

    background: var(--color-dark-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;

    flex-shrink: 0; /* Prevents shrinking */
    flex-grow: 0; /* Prevents growing */
}

.search-icon {
    /* Using a direct SVG for the search icon */
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Ensure icon doesn't shrink */
    /* The SVG path fill='white' already handles the color */
}

.search-input {
    /* Where would you like to go? */
    width: 279px; /* This width allows it to fill the remaining space in the container */

    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: -0.02em;

    color: var(--color-text-primary); /* Color of typed text */
    background: transparent; /* Transparent background to show container's background */
    border: none; /* Remove default input border */
    outline: none; /* Remove outline on focus */
    padding: 0; /* Remove default input padding */

    /* Placeholder text styling */
    &::placeholder {
        color: var(--color-placeholder);
    }

    flex-grow: 0; /* Prevents it from taking up extra space if container is larger */
}

/* Frame 389: Call to Action Button */
.cta-button1 {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 24px; /* Padding inside the button */
    gap: 10px; /* Gap between text and potential icon (not present in current button) */

    width: 140px;
    height: 44px;

    background: var(--color-accent); /* Teal background */
    border-radius: 12px;
    border: none; /* Remove default button border */
    cursor: pointer; /* Indicate it's clickable */

    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: -0.02em;
    color: var(--color-black); /* Text color */

    flex-shrink: 0;
    flex-grow: 0;
}

/* ==================================== */
/* 3. Frame 1378: Download App Section */
/* ==================================== */
.download-app-section {
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px; /* Space between "Download App" title and app badges row */

    width: 263px;
    /* height: 67px; (Height determined by content) */

    /* flex: none; order: 1; flex-grow: 0; */
}

.download-app-title {
    /* Download App */
    width: 100%; /* Stretches to fill .download-app-section */
    height: 19px;

    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    letter-spacing: -0.02em;

    color: var(--color-text-primary);
    margin: 0; /* Reset default paragraph margin */

    /* flex: none; order: 0; align-self: stretch; flex-grow: 0; */
}

/* Frame 1377: App Badges Row */
.app-badges-row {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 16px; /* Space between the two app badges */

    width: 100%; /* Stretches to fill .download-app-section */
    height: 40px;

    /* flex: none; order: 1; align-self: stretch; flex-grow: 0; */
}

/* Mobile app store badge - Base styles for both badges */
.app-badge {
    box-sizing: border-box;

    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 8px; /* Horizontal padding for content inside the badge */
    gap: 8px; /* Space between icon and text group within the badge */

    height: 40px;

    background: var(--color-dark-card); /* Dark card background */
    border: 1px solid var(--color-border); /* Border color */
    text-decoration: none; /* Remove underline from links */
    color: var(--color-text-primary); /* Default text color */

    flex-shrink: 0;
    flex-grow: 0;
}

/* Specific styles for Google Play badge */
.google-play-badge {
    width: 135px;
    border-radius: 5px;
}

/* Specific styles for App Store badge */
.app-store-badge {
    width: 145px;
    border-radius: 7px;
}

/* Placeholder for app icons (Google Play logo, Apple logo) */
/* In a real project, these would be SVG images or an icon font */
.app-icon-placeholder {
    width: 24px; /* Set a consistent size for the icons */
    height: 24px;
    flex-shrink: 0;
    /* You would use background-image for actual logos, or more complex CSS for SVG backgrounds */
    /* Example for Google Play icon (if using a mask): */
    /* background-color: var(--color-text-primary); */
    /* mask: url('google-play-icon.svg') no-repeat center / contain; */
}

/* Styling for the specific app logos if not using SVG directly */
.google-icon {
    background-color: transparent; /* Assuming actual SVG provides colors */
    /* For a simplified look, you might use a generic icon or a simple shape */
    /* background: url('path/to/google_play_icon.svg') center/contain no-repeat; */
}

.apple-icon {
    background-color: transparent; /* Assuming actual SVG provides colors */
    /* background: url('path/to/apple_logo.svg') center/contain no-repeat; */
}

/* Text group within the badges */
.badge-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    height: 100%;
}

.badge-text-small {
    /* Get it on / Download on the */
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 9px; /* Small text size */
    line-height: 1; /* Tight line height */
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    text-transform: uppercase; /* For "GET IT ON" */
    margin: 0;
}

.badge-text-large {
    /* Google Play / App Store */
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px; /* Larger text size for app name */
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    margin: 0;
}

/* ---------------------------
   MOBILE: HERO (≤ 768px)
   --------------------------- */
@media (max-width: 768px) {
    /* Make the hero flow instead of relying on absolute placement */
    .hero-section {
        position: relative;
        width: 100%;
        height: auto;
        padding: 56px 20px; /* top / horizontal padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        overflow: visible;
    }

    .ellipse-38-top {
        display: none;
    }

    /* Background image centered and scaled down */
    .hero-background-image {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 120%;
        max-width: 1400px;
        height: 320px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        z-index: 0;
        filter: none;
        opacity: 0.95;
    }

    /* Ensure any blurred ellipses sit behind and don't shift layout */
    .ellipse-38-top {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 120%;
        height: 360px;
        z-index: 0;
    }

    /* Move content above background */
    .hero-content-frame {
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 720px;
        left: 0;
        top: 0;
        padding: 0;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .hero-text-group {
        width: 100%;
        padding: 0 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-headline {
        font-size: 28px;
        line-height: 36px;
        font-weight: 300;
        width: 100%;
        max-width: 640px;
        margin: 0;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 20px;
        color: var(--color-text-secondary);
        width: 100%;
        max-width: 640px;
        margin: 0;
    }

    /* Search + CTA stack vertically, centered */
    .search-download-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px; /* increased gap to separate button and badges */
        width: 100%;
        max-width: 720px;
    }

    .search-bar-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .search-input-container {
        width: 100%;
        max-width: 520px;
        height: 48px;
        padding: 10px 14px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 12px;
        z-index: 6;
    }

    .search-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .search-input {
        width: 100%;
        font-size: 14px;
        line-height: 18px;
        padding: 0;
        margin: 0;
    }

    .cta-button1 {
        margin-top: 12px;
        margin-bottom: 12px;
        width: 100%;
        max-width: 220px;
        height: 48px;
        font-size: 16px;
        border-radius: 12px;
        z-index: 5;
    }

    /* Download app section centered */
    /* Make sure download section is below the button and not overlapping */
    .download-app-section {
        margin-top: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
        position: relative;
        z-index: 4; /* behind button */
    }

    /* Let badges wrap properly */
    .app-badges-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        width: 100%;
        margin-top: 10px;
    }

    .download-app-title {
        text-align: center;
        margin: 0;
        font-size: 14px;
    }

    .app-badge {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        height: 40px;
        padding: 0 10px;
        text-decoration: none;
        box-sizing: border-box;
    }

    .google-play-badge {
        width: 140px;
        border-radius: 6px;
    }
    .app-store-badge {
        width: 140px;
        border-radius: 7px;
    }

    .app-icon-placeholder {
        width: 28px;
        height: 28px;
    }

    .badge-text-small {
        font-size: 9px;
        line-height: 1;
        display: block;
    }
    .badge-text-large {
        font-size: 13px;
        font-weight: 600;
        display: block;
    }

    /* Reduce distractors on small screens */
    .hero-background-image,
    .ellipse-38-top {
        pointer-events: none;
    }

    /* Helpful for very small phones */
    @media (max-width: 420px) {
        .hero-headline {
            font-size: 22px;
            line-height: 30px;
        }
        .hero-subtitle {
            font-size: 13px;
        }
        .cta-button1 {
            max-width: 100%;
        }
        .google-play-badge,
        .app-store-badge {
            width: 140px;
            height: auto;
            border-radius: 8px;
        }
    }
}

/* Only center on very large screens (e.g., >1440px) */

