/* --- Base Styles --- */
:root {
    /* Color Palette (approximated from image) */
    --primary-blue: #007bff; /* General purpose blue for links/highlights */
    --green-dark: #004d40;
    --green-medium: #00796b;
    --green-light: #e0f7fa;
    --section-green-bg: #4CAF50; /* Main green for CTA */
    --dark-grey: #333;
    --medium-grey: #555;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #ddd;

    /* Gradients (approximated) */
    --gradient-hero-btn: linear-gradient(to right, #00C853, #1de9b6); /* Greenish gradient */
    --gradient-download-btn: linear-gradient(to right, #6c757d, #90a4ae); /* Greyish gradient */
    --gradient-submit-btn: linear-gradient(to right, #2196f3, #42a5f5); /* Bluish gradient */
    --gradient-hero-bg: linear-gradient(to bottom, #e0f7fa, #c5e1e5); /* Soft light blue */
    --gradient-all-in-one-bg: linear-gradient(to bottom, #a5d6a7, #66bb6a); /* Soft green */
    --gradient-cta-bg: linear-gradient(to bottom, #4CAF50, #2E7D32); /* Darker green */

    /* Fonts (Poppins for headings, Inter for body - closest free options) */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--light-grey);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Utility Classes --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8em;
    font-weight: 700;
    color: var(--dark-grey);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
}

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

.checkmark {
    color: var(--primary-blue); /* Or a green similar to the image's checkmarks */
    font-weight: bold;
    margin-right: 8px;
}

/* --- Buttons --- */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px; /* Slightly more rounded */
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    white-space: nowrap; /* Prevent text wrapping */
}

.hide-if-needed {
    display:inline-block;
}

.btn-header {
    background-color: var(--primary-blue); /* A solid blue for header btn */
    color: var(--white);
}

.btn-header:hover {
    background-color: #0056b3;
}

.btn-primary-gradient {
    background: var(--gradient-hero-btn);
    color: var(--white);
    padding: 15px 35px; /* Larger button */
    font-size: 18px;
    border-radius: 30px; /* Pill shape */
    box-shadow: 0 6px 12px rgba(0,200,83,0.3);
}

.btn-primary-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,200,83,0.4);
}

.btn-download-gradient {
    background: var(--gradient-download-btn);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-download-gradient img {
    filter: brightness(0) invert(1); /* Makes placeholder icon white */
}

.btn-download-gradient:hover {
    opacity: 0.9;
}

.btn-submit-gradient {
    background: var(--gradient-submit-btn);
    color: var(--white);
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
}

.btn-submit-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* --- Header Section --- */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-grey);
}
.logo img{
    width:140px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--medium-grey);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

/* --- Hero Section --- */
.hero-section {
    background: var(--gradient-hero-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 350px;
    text-align: left;
}

.qrion-title {
    font-family: var(--font-heading);
    font-size: 5em; /* Large size for "QRION" */
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0;
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2.8em;
    font-weight: 600;
    color: var(--green-medium);
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 25px 0 40px 0;
    font-size: 1.15em;
    color: var(--medium-grey);
}

.hero-checklist li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px; /* Rounded corners for the phone image */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* More prominent shadow */
    cursor: pointer;
}

.image-overlay-text {
    position: absolute;
    bottom: 20px; /* Adjust based on image content */
    right: 20px; /* Adjust based on image content */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: var(--dark-grey);
    font-weight: 500;
}


/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Slightly more rounded */
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* More defined shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.12); */
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6em;
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 20px;
}

.card-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    font-size: 1em;
    color: var(--medium-grey);
}

.card-checklist li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.card-checklist .checkmark {
    margin-right: 10px;
    font-size: 1.1em;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block; /* Allows for proper spacing and hover effect */
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.read-more:hover {
    border-bottom-color: var(--primary-blue);
}

/* --- All in One Section --- */
.all-in-one-section {
    background: var(--gradient-all-in-one-bg);
    padding: 80px 0;
    text-align: center;
}

.all-in-one-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.all-in-one-text-block h2 {
    margin-bottom: 0; /* Adjust margin as it's part of a flex item */
}

.all-in-one-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px; /* Increased gap */
    flex-wrap: wrap;
    width: 100%;
    position: relative; /* For phone positioning */
}

.stats {
    flex-shrink: 0;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 5em;
    font-weight: 700;
    color: var(--white); /* White number */
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.map-phone-wrapper {
    position: relative;
    width: 600px; /* Base width for the visual block */
    max-width: 90%;
    height: 400px; /* Base height for the visual block */
    display: flex; /* To contain elements */
    justify-content: center;
    align-items: center;
}

.map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure map fits */
    z-index: 1;
}

.phone-mockup {
    position: absolute;
    right: 5%; /* Adjust to match image */
    bottom: 5%; /* Adjust to match image */
    max-width: 35%; /* Size relative to the wrapper */
    height: auto;
    z-index: 2; /* Phone on top of map */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px; /* Space from visuals */
}

/* --- CTA Section --- */
.cta-section {
    background: var(--gradient-cta-bg);
    color: var(--white);
    padding: 80px 0;
}

.cta-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px; /* Increased gap for visual separation */
}

.cta-text {
    flex: 1;
    min-width: 350px;
    text-align: left;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.3em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.cta-checklist li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.cta-checklist .checkmark {
    color: #a5d6a7; /* Lighter green for checkmark */
    font-size: 1.2em;
}

.cta-form-wrapper {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px; /* Slightly wider form */
    box-sizing: border-box; /* Include padding in width */
}

.cta-form input[type="text"],
.cta-form input[type="email"] {
    width: calc(100% - 24px); /* Adjust for padding */
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4); /* Lighter border */
    border-radius: 6px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly opaque white background */
    color: var(--dark-grey);
}

.cta-form input::placeholder {
    color: #777;
    opacity: 0.8;
}

/* --- Partners Section --- */
.partners-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* More flexible grid */
    gap: 35px; /* Increased gap */
    justify-items: center; /* Center logos in their grid cells */
    align-items: center;
}

.partner-logos-grid img {
    max-width: 120px; /* Adjust size of logos */
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Modal Styles (same as before, adjusted for consistency) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    display: flex; /* Use flex for centering */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Adjust maximum width of the image in modal */
    max-height: 90vh; /* Adjust maximum height of the image in modal */
    object-fit: contain; /* Ensure the image fits within boundaries */
    border-radius: 10px; /* Slightly rounded modal image */
}

.close-button {
    position: absolute;
    top: 25px; /* Adjusted position */
    right: 40px; /* Adjusted position */
    color: #f1f1f1;
    font-size: 45px; /* Larger close button */
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001; /* Ensure close button is above image */
    text-shadow: 0 0 5px rgba(0,0,0,0.5); /* Subtle shadow for visibility */
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .main-nav ul {
        gap: 20px;
    }

    .hero-container,
    .all-in-one-visuals,
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content, .hero-image,
    .cta-text, .cta-form-wrapper {
        min-width: unset;
        width: 100%;
        max-width: 500px; /* Constrain width for better readability on tablets */
    }

    .qrion-title {
        font-size: 4em;
    }
    .hero-subtitle {
        font-size: 2.2em;
    }
    .hero-content ul, .cta-text ul {
        text-align: left; /* Keep checklists left-aligned */
        padding-left: 20px;
    }
    .hero-image {
        padding-top: 30px; /* Space between text and image */
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .stats-number {
        font-size: 4em;
    }

    .map-phone-wrapper {
        height: 350px; /* Adjust height for tablet */
    }
    .phone-mockup {
        max-width: 30%; /* Smaller phone on tablet */
    }
    .cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .logo img{
        width:100px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .btn-header {
        width: 100%;
        max-width: 200px;
        margin-top: 10px;
    }

    body{
        overflow-x:hidden;
    }

    .hide-if-needed {
        display:none;
    }

    .hero-section, .features-section, .all-in-one-section, .cta-section, .partners-section {
        padding: 60px 0;
    }

    .hero-image img {
        max-width: 80%; /* Smaller on smaller tablets */
    }

    .feature-cards-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile/smaller tablets */
    }

    .all-in-one-visuals {
        gap: 30px;
    }
    .map-phone-wrapper {
        width: 100%;
        height: 300px;
    }
    .phone-mockup {
        right: 10%; /* Adjust position */
        bottom: 10%; /* Adjust position */
        max-width: 40%; /* Larger phone on smaller screens if map is background */
    }
    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-download-gradient {
        width: 100%;
        max-width: 250px;
    }

    .cta-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px 0; /* Less bottom padding on mobile */
    }
    .qrion-title {
        font-size: 3.5em;
    }
    .hero-subtitle {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .stats-number {
        font-size: 3em;
    }
    .map-phone-wrapper {
        height: 250px;
    }

    .cta-title {
        font-size: 2em;
    }
    .cta-subtitle {
        font-size: 1.1em;
    }
    .cta-form input {
        margin-bottom: 10px;
    }

    .partner-logos-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 logos per row on very small screens */
    }
    .partner-logos-grid img {
        max-width: 90px;
    }
}