body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8fafc;
    color: #222;
}

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #f8dcc4;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Expletus Sans';
    color: #4f46e5;
}

/* Logo image sizing */
.navbar-logo img {
    height: 50px;
    width: auto;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #222;
}

.navbar-links li a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
    padding: 0.5rem 0.5rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
}

.navbar-links li a:focus:not(:focus-visible) {
    outline: none;
    background: none;
}

.navbar-links li a:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.07);
}

/* Add space for fixed navbar */
body>.hero,
body>section.hero {
    margin-top: 70px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        url('images/hero-img.jpg') center/cover no-repeat;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    /* added later */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(224, 231, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 80%);
    z-index: 0;
}

/* added later */

.hero>* {
    position: relative;
    z-index: 1;
}

/* Hero logo overlay */
.hero-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -160%);
    /* center horizontally and place above hero heading */
    width: 200px;
    height: auto;
    z-index: 2;
    pointer-events: none;
    /* prevent blocking clicks */
}

@media (max-width: 600px) {
    .hero-logo {
        width: 90px;
        transform: translate(-50%, -150%);
    }
}

/* added later */

.hero h1 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 5.5em;
    line-height: 1.26;
    margin-bottom: 0.5rem;
    color: #4f46e5;
    letter-spacing: 2px;
}

/* Secondary heading inside hero */
.hero h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #4f46e5;
    letter-spacing: 1px;
}

.hero .subtitle {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.26;
    color: #334155;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1rem;
    max-width: 700px;
    color: #334155;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.2rem;
}

.hero button {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 160px;
    height: 44px;
    padding: 0;
    transition: background 0.2s;
}

.hero button:hover {
    background: #3b30d0;
}

/* Use Cases Section */
.use-cases-section {
    padding: 70px 0 50px 0;
    background: linear-gradient(120deg, #fff 0%, #f8fafc 100%);
    text-align: center;
    background: #fdc89a;
}

.use-cases-section h2 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.use-cases-section .subtitle {
    color: #334155;
    font-size: 1.08rem;
    max-width: 800px;
    margin: 0 auto 1.8rem auto;
    line-height: 1.6;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.use-cases-section .description {
    color: #334155;
    font-size: 1.08rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.use-cases-section .use-list {
    list-style: disc inside;
    color: #334155;
    font-size: 1.06rem;
    max-width: 700px;
    margin: 0 auto 1.8rem auto;
    text-align: left;
}

.use-cases-section .use-list li {
    margin-bottom: 0.4rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 2rem auto 2.5rem auto;
    padding: 0 1rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

@media (max-width: 900px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    background: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 2rem 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: left;
}

.use-case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.use-case-number {
    font-size: 2.3rem;
    font-weight: 700;
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 15px;
}

.use-case-text {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 260px;
}

/* Features Section */
.features-section {
    padding: 70px 0 60px 0;
    /* background: linear-gradient(120deg, #fdc89a 0%, #fff 100%); */
    background: #f8dcc4;
    text-align: center;
}

.features-section h2 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.features-section .subtitle {
    color: #334155;
    font-size: 1.18rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: #fdc89a;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-title {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 0.6rem;
    letter-spacing: 0.4px;
}

.feature-text {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Why Section */

/* Benefit Grid for Why-Therapist */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
    grid-auto-rows: 1fr;
    /* make all grid rows equal height */
}

.benefit-card {
    background: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 1.1rem 0.8rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.26;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 500px) {
    .benefit-grid {
        grid-template-columns: 1fr;
    }
}

.why-section {
    padding: 70px 0 70px 0;
    background: linear-gradient(120deg, #fff 0%, #f8fafc 100%);
    text-align: center;
    background: #fdc89a;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: #f8dcc4;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.why-list,
.sub-list {
    list-style: disc inside;
    text-align: left;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 550px;
}

.sub-list {
    margin-top: 0.8rem;
    margin-left: 1rem;
}

/* Integrate Section */
.integrate-section {
    padding: 70px 0 80px 0;
    /* background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 100%); */
    /* background: #f8dcc4; */
    text-align: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        url('images/hero-img.jpg') center/cover no-repeat;
}

.integrate-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1rem;
}

.integrate-section h2 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1.4rem;
    letter-spacing: 0.8px;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.integrate-lead {
    color: #334155;
    font-size: 1.08rem;
    margin-bottom: 1.4rem;
    line-height: 1.6;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.integrate-text {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 0.9rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

/* Control Section */
.control-section {
    padding: 70px 0 80px 0;
    background: #fdc89a;
    text-align: center;
}

.control-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.control-section h2 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1.4rem;
    letter-spacing: 0.8px;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.control-list {
    list-style: disc inside;
    text-align: left;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.control-list li {
    margin-bottom: 0.6rem;
}

/* New grid layout for control section */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    padding: 0 1rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

@media (max-width: 768px) {
    .control-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .control-grid {
        grid-template-columns: 1fr;
    }

    .control-card {
        min-height: auto;
        padding: 1.2rem;
    }
}

.control-card {
    background: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: left;
    position: relative;
}

.control-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.control-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-text {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    padding-right: 1.5rem;
}

/* Request Section */
.request-section {
    padding: 80px 0 90px 0;
    /* background: linear-gradient(120deg, #eef2ff 0%, #ffffff 100%); */
    background: #f8dcc4;
    text-align: center;
}

.request-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.request-section h2 {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 3rem;
    line-height: 1.26;
    color: #4f46e5;
    margin-bottom: 1.2rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.request-description {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.request-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
    margin-block-start: 10px;
    margin-block-end: 10px;
}

.primary-btn,
.secondary-btn {
    font-family: 'Expletus Sans';
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.26;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.primary-btn {
    background: #4f46e5;
    color: #ffffff;
}

.primary-btn:hover {
    background: #3b30d0;
}

.secondary-btn {
    background: #e0e7ff;
    color: #4f46e5;
}

.secondary-btn:hover {
    background: #c7d2fe;
}

/* Footer Styles */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* existing footer rule below */
.site-footer,
footer {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    color: #64748b;
    font-size: 1rem;
    background: #fdc89a;
}

body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Hamburger Button: default show only on mobile and when menu is closed */
.navbar-toggle {
    display: none;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
}

/* Hamburger lines */
.navbar-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #4f46e5;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Close Button: default hidden */
.navbar-close {
    display: none;
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4f46e5;
    cursor: pointer;
    z-index: 1202;
}

/* Responsive behavior for mobile */

@media (max-width: 1200px) {

    /* --- MOBILE LAYOUT & SPACING IMPROVEMENTS --- */
    /* Prevent horizontal scrolling */
    body,
    .navbar,
    .navbar-container,
    .hero,
    .features-section,
    .features-grid,
    .feature-card,
    .why-section,
    .why-grid,
    .why-card,
    .use-cases-section,
    .use-cases-grid,
    .use-case-card,
    .benefit-grid,
    .benefit-card,
    .control-grid,
    .control-card {
        max-width: 100vw !important;
        box-sizing: border-box !important;
        /* overflow-x: hidden !important; */
    }

    /* Consistent vertical spacing for sections */
    .hero,
    .features-section,
    .why-section,
    .use-cases-section,
    .control-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Card/feature padding for better readability */
    .feature-card,
    .why-card,
    .use-case-card,
    .benefit-card,
    .control-card {
        /* padding: 1.5rem 1rem !important; */
        box-sizing: border-box !important;
    }

    /* Prevent horizontal scroll for images */
    img {
        max-width: 100vw !important;
        height: auto;
        display: block;
    }

    /* Section subtitles and info spacing */
    .features-section .subtitle,
    .why-section .subtitle,
    .use-cases-section .subtitle,
    .control-section .subtitle {
        margin-block-end: 10px !important;
        margin-block-start: 10px !important;
    }

    /* Ensure grids and cards have enough vertical space */
    .features-grid,
    .why-grid,
    .use-cases-grid,
    .benefit-grid,
    .control-grid {
        margin-bottom: 2rem !important;
        margin-top: 2rem !important;
    }

    /* --- MOBILE TYPOGRAPHY IMPROVEMENTS --- */
    .hero h1 {
        font-size: clamp(4rem, 8vw, 2.6rem);
        margin-bottom: 0.5rem;
    }

    .hero h2 {
        font-size: clamp(1.25rem, 5vw, 1.7rem);
        margin-top: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero .subtitle {
        font-size: clamp(1.3rem, 4vw, 1.18rem);
        line-height: 1.32;
        margin-bottom: 1.1rem;
    }

    .hero .description {
        font-size: clamp(1.1rem, 4vw, 1.1rem);
        max-width: 36ch;
        line-height: 1.7;
    }

    .use-cases-section h2,
    .features-section h2,
    .why-section h2,
    .integrate-section h2,
    .control-section h2,
    .request-section h2 {
        font-size: clamp(2rem, 6vw, 2rem);
        /* margin-bottom: 0.7em; */
        margin-block-end: 10px;
    }

    .use-cases-section .subtitle,
    .features-section .subtitle,
    .why-section .subtitle,
    .integrate-lead,
    .integrate-text,
    .request-description {
        font-size: clamp(1.08rem, 4vw, 1.08rem);
        max-width: 36ch;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        margin-block-end: 10px;
    }

    .use-case-card .use-case-text,
    .feature-text,
    .why-list,
    .sub-list,
    .benefit-card,
    .control-list,
    .control-text {
        font-size: clamp(1.08rem, 4vw, 1.08rem);
        max-width: 36ch;
        line-height: 1.7;
    }

    .control-text {
        padding-right: 15px !important;
    }

    .feature-title,
    .why-card h3 {
        font-size: clamp(1.4rem, 5vw, 1.3rem);
        margin-block-end: 10px;
        margin-block-start: 10px;
    }

    .site-footer,
    footer {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

@media (max-width: 900px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-close {
        display: none;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        width: 48px;
        height: 48px;
        border-radius: 8px;
        background: transparent;
        border: none;
        font-size: 2rem;
        color: #4f46e5;
        cursor: pointer;
        transition: background 0.2s;
    }

    .navbar-close:focus {
        outline: 2px solid #4f46e5;
        outline-offset: 2px;
        background: rgba(79, 70, 229, 0.08);
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        background: #f8dcc4;
        flex-direction: column;
        align-items: flex-start;
        padding: 3.5rem 1.5rem 1.5rem 1.5rem;
        transition: right 0.3s cubic-bezier(.52, 1.64, .37, .66), opacity 0.3s cubic-bezier(.52, 1.64, .37, .66);
        opacity: 0;
        pointer-events: none;
        z-index: 1200;
    }

    .navbar-links.open {
        right: 0;
        opacity: 1;
        pointer-events: auto;
    }

    /* Show/hide hamburger & close only as appropriate */
    .navbar-links.open~#navbar-close {
        /* Not supported */
        display: block;
    }
}

/* Desktop: always show menu, never show hamburger or close buttons */
@media (min-width: 901px) {

    .navbar-toggle,
    .navbar-close {
        display: none !important;
    }

    .navbar-links {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .hero {
        clear: both;
    }
}

@media (max-width: 900px) {
    .hero-logo {
        position: absolute;
        left: 50%;
        top: 22px;
        width: 175px;
        height: 175px;
        transform: translate(-50%, -20%);
        z-index: 3;
    }

    .hero h1 {
        margin-top: 60px;
    }
}