@font-face {
    font-family: "TildaSans";
    src: url("../assets/fonts/TildaSans-VF.woff2") format("woff2"),
        url("../assets/fonts/TildaSans-VF.woff") format("woff"),
        url("../assets/fonts/TildaSans-VF.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    /* smoother for paragraphs */
    scroll-behavior: smooth;
    color: #111;
}

/* Global sizing + overflow safety to prevent horizontal scroll on mobile */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

/* Make anchored sections account for the fixed navbar */
.section {
    scroll-margin-top: 90px;
}

.right-panel {
    scroll-margin-top: 90px;
}

.navbar.glassy {
    font-family: "TildaSans", sans-serif;
    font-weight: 600;
    letter-spacing: 0.015em;

    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(12px);
    border-radius: 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 32px;
    height: 40px;
    z-index: 1000;
}

/* Adjust logo sizes */
.navbar .nav-left .logo {
    height: 30px; /* main logo */
}

.navbar .nav-left a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.navbar .nav-left a:hover .logo {
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.lang-switcher .logo {
    height: 22px; /* smaller language icon so it doesn't dominate */
}

/* Navigation links */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.navbar a {
    font-family: "TildaSans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #111;
    transition: color 0.25s ease;
}

.navbar a:hover {
    color: #0078ff;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* stack bars vertically */
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #111;
    margin: 3px 0; /* spacing between lines */
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

/* Language switcher alignment */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #111;
    font-size: 15px;
}

.lang-switcher .lang {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-switcher .lang.active {
    opacity: 1;
}

.lang-switcher .lang:hover {
    opacity: 1;
}


.section {
    padding: 120px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 90vh;
}

.section.light {
    background: #f7f9fb;
}

.section.dark {
    background: linear-gradient(180deg, #0f54e8, #306df0);
    color: #fff;
}

.section.white {
    background: #fff;
}

/* ----------------------- */
/* HERO SECTION (forusers) */
/* ----------------------- */
/* HERO SECTION FULL-WIDTH BACKGROUND */
.hero {
    position: relative;
    width: 100%;
    background-color: #1c2c3e;
    color: #fff;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

/* Background video & overlay */
.hero__bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* dim background for readability */
    z-index: 1;
}

/* Centered content inside full background */
.hero .inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* centers the whole group */
    gap: 100px;
    /* adds nice spacing between text and phone */
    padding: 0 280px;
    /* adds more side space for centering */
    position: relative;
    z-index: 2; /* above video and overlay */
}

.hero .content {
    flex: 1.1;
    max-width: 520px;
}

.hero .content h1 {
    font-family: "TildaSans", sans-serif;
    /* bold geometric title */
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.hero .content p {
    font-family: "Manrope", sans-serif;
    /* softer supporting text */
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.1rem;
}

.hero .mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero .mockup img {
    max-width: 200%;
    /* sweet spot for realistic phone size */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 15px rgba(0, 0, 0, 0.4));
}

/* Make it mobile-friendly */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 40px 100px;
    }

    .hero .inner {
        flex-direction: column;
        gap: 20px;
        padding: 0 24px;
    }

    .hero .content {
        margin-top: 40px;
    }

    .hero .mockup {
        margin-top: 20px;
    }

    .hero .mockup img {
        max-width: 70%;
    }
}

.accent {
    color: #ffbd4d;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.footer {
    text-align: center;
}

/* ---------------------------- */
/* Store download buttons       */
/* ---------------------------- */
.store-buttons {
    display: flex;
    gap: 20px;
    /* spacing between logos */
    margin-top: 32px;
    align-items: center;
}

.store-buttons img {
    height: 56px;
    /* standard store badge height */
    width: auto;
    /* maintain aspect ratio */
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    object-fit: contain;
}

.store-buttons img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 900px) {
    .store-buttons {
        justify-content: center;
    }

    .store-buttons img {
        height: 48px;
        /* slightly smaller on mobile */
    }
}

/* Section wrapper */
/* ===== Assistant Split (two adjacent rectangles, no rounding) ===== */
/* ===== Final Assistant Split: no outer white gap, cropped overlap ===== */
:root {
    --assistant-blue: #d7e5f6;
    /* soft blue from your source */
}

/* Outer section: no padding to eliminate white around blue block */
.features-split {
    background: var(--assistant-blue);
    padding: 0;
    margin: 0;
    overflow-x: hidden; /* guard against transformed children */
}

/* Two-column layout */
.features-split .split-wrap {
    display: grid;
    grid-template-columns: 30% 70%;
    margin: 0;
    width: 100%;
    align-items: stretch;
}

/* Left white block with phones */
.features-split .left-visual {
    background: #ffbd4d;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    overflow: hidden;
    /* crop inner overflow */
    position: relative;
    z-index: 2;
}

/* Crop/overlap effect: phone block overlaps slightly into blue area */
.features-split .left-visual img {
    width: 180%;
    max-width: none;
    object-fit: cover;
    height: 120%;
    transform: translateX(20%);
    /* pushes slightly into the blue side */
}

/* Right panel: full height blue, no rounding or margin */
.features-split .right-panel {
    background: var(--assistant-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 100px;
    color: #111;
}

/* Specific styling for #users.right-panel */
#users.right-panel {
    background: linear-gradient(180deg, #0f54e8, #306df0);
    color: #fff;
}

#users.right-panel h2,
#users.right-panel p,
#users.right-panel .fi h3,
#users.right-panel .fi p {
    color: #fff;
}

.features-split .right-panel h2 {
    font-size: 2.4rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 24px;
}

.features-split .right-panel p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #222;
}

.features-split .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    margin-bottom: 40px;
}

.feature-grid img {
    filter: brightness(0) invert(1);
}

.features-split .fi {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.features-split .fi img {
    width: 40px;
    /* increased from 28px */
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.features-split .fi h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
}

.features-split .fi p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

.features-split .cta {
    align-self: flex-start;
    background: #0078ff;
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 120, 255, 0.25);
    transition: background 0.2s ease;
}

.features-split .cta:hover {
    background: #005fd1;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-split .split-wrap {
        grid-template-columns: 1fr;
    }

    .features-split .left-visual img {
        width: 100%;
        transform: none;
    }

    .features-split .right-panel {
        padding: 60px 40px;
    }

    .features-split .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Section 3 – For Individuals */
.section.individuals {
    background: #f7f8fa;
    /* subtle light gray like the source */
    text-align: center;
    padding: 100px 0;
}

.section.individuals .container {
    width: 100%;
    max-width: 1300px;
    /* centers everything evenly */
    margin: 0 auto;
    padding: 0 40px;
    /* adds equal left-right padding */
}

.section.individuals h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section.individuals .subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 80px;
    line-height: 1.7;
}

/* Grid */
.indiv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* evenly spaced 4-column layout */
    gap: 0;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    /* centers content */
    margin: 0 auto;
    /* equal spacing on both sides */
    background: #fff;
}

/* Text blocks */
.indiv-grid .item.text {
    background: #fff;
    padding: 60px 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.indiv-grid .item.text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.indiv-grid .item.text p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* Image blocks */
.indiv-grid .item.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Two-row alternating layout */
/* Let items flow naturally in the grid to avoid overlap on smaller screens */

/* Responsive - Tablet and Mobile Zigzag Layout */
@media (max-width: 1024px) {
    .indiv-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 0;
    }

    .indiv-grid .item.text {
        padding: 40px 30px;
    }

    /* Row 1: Text Left (col 1), Image Right (col 2) - items 1-2 */
    .indiv-grid .item:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }

    /* Row 2: Image Left (col 1), Text Right (col 2) - items 4 (image) and 3 (text) */
    .indiv-grid .item:nth-child(4) {
        grid-row: 2;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(3) {
        grid-row: 2;
        grid-column: 2;
    }

    /* Row 3: Text Left (col 1), Image Right (col 2) - items 6 (text) and 5 (image) */
    .indiv-grid .item:nth-child(6) {
        grid-row: 3;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(5) {
        grid-row: 3;
        grid-column: 2;
    }

    /* Row 4: Image Left (col 1), Text Right (col 2) - items 7 (image) and 8 (text) */
    .indiv-grid .item:nth-child(7) {
        grid-row: 4;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(8) {
        grid-row: 4;
        grid-column: 2;
    }

    /* Ensure items are vertically centered */
    .indiv-grid .item {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .indiv-grid .item.img {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .indiv-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 0;
    }

    .indiv-grid .item.text {
        padding: 30px 24px;
    }

    .indiv-grid .item.img img {
        height: 250px;
        object-fit: cover;
    }

    .section.individuals h2 {
        font-size: 1.8rem;
    }

    /* Apply same zigzag positioning for tablets */
    .indiv-grid .item:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }
    .indiv-grid .item:nth-child(4) {
        grid-row: 2;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(3) {
        grid-row: 2;
        grid-column: 2;
    }
    .indiv-grid .item:nth-child(6) {
        grid-row: 3;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(5) {
        grid-row: 3;
        grid-column: 2;
    }
    .indiv-grid .item:nth-child(7) {
        grid-row: 4;
        grid-column: 1;
    }
    .indiv-grid .item:nth-child(8) {
        grid-row: 4;
        grid-column: 2;
    }
}

/* Mobile - Single column stack */
@media (max-width: 480px) {
    .indiv-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
    }

    /* Reset to natural order for single column */
    .indiv-grid .item:nth-child(1) { grid-row: 1; grid-column: 1; }
    .indiv-grid .item:nth-child(2) { grid-row: 2; grid-column: 1; }
    .indiv-grid .item:nth-child(3) { grid-row: 3; grid-column: 1; }
    .indiv-grid .item:nth-child(4) { grid-row: 4; grid-column: 1; }
    .indiv-grid .item:nth-child(5) { grid-row: 5; grid-column: 1; }
    .indiv-grid .item:nth-child(6) { grid-row: 6; grid-column: 1; }
    .indiv-grid .item:nth-child(7) { grid-row: 7; grid-column: 1; }
    .indiv-grid .item:nth-child(8) { grid-row: 8; grid-column: 1; }

    .indiv-grid .item.text {
        padding: 30px 20px;
    }

    .indiv-grid .item.img img {
        height: 220px;
    }
}

/* Section 4 – For Masters */
.section.masters {
    background: #fff;
    text-align: center;
    padding: 100px 0;
}

.section.masters .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section.masters h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.section.masters .subtitle {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 70px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
    justify-items: center;
}

/* Each feature */
.feature {
    display: flex;
    align-items: center;
    /* vertically align icon & text */
    gap: 24px;
    /* space between icon and text */
    text-align: left;
    max-width: 520px;
    /* slightly wider for balance */
    margin: 0 auto;
    /* centers columns */
}

.feature img {
    width: 64px;
    /* ⬆️ bigger icon */
    height: 64px;
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: brightness(0) saturate(100%) invert(35%) sepia(100%) saturate(1600%) hue-rotate(215deg) brightness(97%) contrast(101%);
}

/* Fine-tune per-icon alignment */
.feature img[alt*="Reviews and ratings"] {
    margin-left: -55px;
    /* shifts stars slightly left */
    transform-origin: center;
}

.feature img[alt*="Attracting"],
.feature img[alt*="Autonomy"] {
    margin-left: 0;
}

.feature img[alt*="Real-time"],
.feature img[alt*="Convenient"] {
    margin-left: 2px;
    /* minor balance for symmetry */
}

.feature img:hover {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(20%) sepia(95%) saturate(2000%) hue-rotate(205deg) brightness(100%) contrast(102%);
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature {
        max-width: 100%;
        justify-content: center;
    }
}

/* Section 4 – Sign up */

/* Section bg to match the blueish page */
.section.steps {
    background: linear-gradient(180deg, #000000, #373737);
    color: #fff;
}

.steps .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 24px 0px;
}

.steps__title {
    text-align: center;
    font-size: clamp(28px, 3.2vw, 42px);
    margin: 0 0 40px;
    color: #fff;
}

/* 3-col grid: left | line | right ; second row puts bottom step under the line */
/* base from the previous version stays the same … */

/* Grid now has 3 rows; line spans all of them */
.steps__grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 90px minmax(280px, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(36px, 6vw, 80px);
    row-gap: 76px;
    background: transparent;
    /* spacing between the staggered "levels" */
    align-items: start;
    position: relative;
}

/* placements: L–R–L */
.step--left-top {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
}

.step--right-mid {
    grid-column: 3;
    grid-row: 2;
    text-align: center;
}

.step--left-bot {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
}

/* vertical line spans rows 1..3 */
.steps__line {
    grid-column: 2;
    grid-row: 1 / 4;
    position: relative;
    min-height: 540px;
}

.steps__line::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    opacity: .5;
    border-radius: 2px;
}

/* numbered dots (unchanged) */
.steps__dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font: 600 15px/34px Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.steps__dot--top {
    top: 0;
    transform: translate(-50%, -25%);
}

.steps__dot--mid {
    top: 50%;
}

.steps__dot--bot {
    bottom: 0;
    transform: translate(-50%, 25%);
}

/* icons & text as before */
.step__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.step__title {
    font-size: 20px;
    margin: 0 0 8px;
    color: #fff;
}

.step__text {
    color: #fff;
    margin: 0;
}

/* CTA — remove underline completely */
.btn,
.btn:hover,
.btn:focus,
.btn:visited {
    text-decoration: none;
}

.btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    background: #1a56ff;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(26, 86, 255, .25);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover {
    background: #0f3fcc;
    /* darker blue on hover */
    box-shadow: 0 8px 22px rgba(26, 86, 255, 0.35);
    transform: translateY(0px);
}
.steps__cta {
    display: flex;
    justify-content: center;
    /* centers horizontally */
    align-items: center;
    margin-top: 40px;
    width: 100%;
    /* ensures full-width flex centering */
}

/* mobile: vertical timeline on the right, connected by a line */
@media (max-width:900px) {
    .steps__grid {
        grid-template-columns: 1fr 54px; /* content + right timeline */
        grid-template-rows: auto auto auto;
        column-gap: 16px;
        row-gap: 28px;
        align-items: start;
    }

    .step--left-top { grid-column: 1; grid-row: 1; text-align: left; }
    .step--right-mid { grid-column: 1; grid-row: 2; text-align: left; }
    .step--left-bot { grid-column: 1; grid-row: 3; text-align: left; }

    .steps__line {
        grid-column: 2;
        grid-row: 1 / 4;
        position: relative;
        min-height: 100%;
        height: auto;
        display: block; /* ensure block to position children */
        order: initial;
    }

    .steps__line::before {
        display: block; /* keep the connecting line */
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
    }

    .steps__dot {
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .steps__dot--top { top: 0; transform: translate(-50%, -25%); }
    .steps__dot--mid { top: 50%; }
    .steps__dot--bot { bottom: 0; transform: translate(-50%, 25%); }
}

/* Section 6 */
.footer.light {
    background: #f8f9fa;
    /* light gray tone */
    color: #111;
    text-align: center;
    padding: 8px 20px 8px;
    font-family: 'Manrope', sans-serif;
    min-height: auto;
}

.footer__inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__subtitle {
    font-size: 1.125rem;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer__contact p {
    margin: 4px 0;
    font-size: 1rem;
    color: #555;
}

.footer__contact a {
    color: #1a56ff;
    text-decoration: none;
}

.footer__socials {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer__socials img[alt="Instagram"] {
    width: 32px;
    height: 32px;
}

.social-icon img {
    width: 28px;
    height: 28px;
    filter: grayscale(100%);
    transition: all 0.2s ease-in-out;
}

.social-icon:hover img {
    filter: none;
    transform: scale(1.1);
}

/* ========================= */
/* Navbar: responsive styles */
/* ========================= */
@media (max-width: 900px) {
    .navbar.glassy {
        width: 94%;
        padding: 8px 14px;
        height: auto;
    }

    .navbar.glassy { position: fixed; }
    .navbar.glassy .nav-left { display: flex; align-items: center; flex: 0 0 auto; }
    .navbar.glassy .nav-toggle { margin-left: auto; }

    /* Show burger, hide desktop nav */
    .nav-toggle { display: inline-flex; }
    .navbar.glassy nav,
    .navbar.glassy .lang-switcher { display: none; }

    /* Dropdown menu when open */
    .navbar.glassy.open {
        padding-bottom: 12px;
    }

    .navbar.glassy.open nav {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 14px;
        padding: 14px 16px;
        box-sizing: border-box;
    }

    .navbar.glassy.open nav ul {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* Show language switcher centered inside dropdown panel */
    .navbar.glassy.open nav .lang-switcher {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.06);
        margin-top: 10px;
    }
    /* Keep header-row language hidden to avoid shifting hamburger */
    .navbar.glassy.open > .lang-switcher { display: none !important; }
}

/* Extra small devices: tame paddings and icon offsets */
@media (max-width: 480px) {
    .section { padding: 72px 16px; }
    .features-split .right-panel { padding: 40px 20px; }
    .hero { padding: 120px 0 80px; }
    .hero .content { margin-top: 30px; }
    .hero .content h1 { font-size: 2rem; }
    .feature img[alt*="Reviews and ratings"] { margin-left: 0; }
}

/* ========================= */
/* Mobile & Tablet Optimizations */
/* ========================= */

/* Tablet optimizations (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Improve section spacing */
    .section {
        padding: 80px 40px;
    }

    /* Add more space between navbar and h1 on tablets */
    .hero {
        padding-top: 130px;
    }

    .hero .content {
        margin-top: 40px;
    }

    /* Reduce space between content and mockup on tablets */
    .hero .inner {
        gap: 20px;
    }

    .hero .mockup {
        margin-top: 20px;
    }

    .section.individuals {
        padding: 80px 40px;
    }

    .section.masters {
        padding: 80px 40px;
    }

    /* Better typography scaling */
    .section.individuals h2 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }

    .section.masters h2 {
        font-size: clamp(1.8rem, 4vw, 2.3rem);
    }

    .features-split .right-panel h2 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }

    /* Improve touch targets */
    .navbar a {
        padding: 8px 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn--primary,
    .features-split .cta {
        min-height: 44px;
        padding: 14px 28px;
    }

    /* Better image sizing */
    .indiv-grid .item.img img {
        height: auto;
        min-height: 280px;
        max-height: 400px;
    }
}

/* Mobile optimizations (up to 768px) */
@media (max-width: 768px) {
    /* Improve section spacing */
    .section {
        padding: 60px 24px;
        min-height: auto;
    }

    /* Add more space between navbar and h1 on mobile */
    .hero {
        padding-top: 130px;
    }

    .hero .content {
        margin-top: 40px;
    }

    .section.individuals {
        padding: 60px 24px;
    }

    .section.masters {
        padding: 60px 24px;
    }

    .section.steps {
        padding: 60px 24px;
    }

    /* Better typography scaling for mobile */
    .hero .content h1 {
        font-size: clamp(1.75rem, 8vw, 2.6rem);
        line-height: 1.2;
    }

    .hero .content p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .section.individuals h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 16px;
    }

    .section.individuals .subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 50px;
    }

    .section.masters h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section.masters .subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 50px;
    }

    .features-split .right-panel {
        padding: 50px 30px;
    }

    .features-split .right-panel h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
    }

    .features-split .right-panel p {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        margin-bottom: 30px;
    }

    .steps__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .footer__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .footer__subtitle {
        font-size: clamp(0.95rem, 3vw, 1.125rem);
    }

    /* Improve text block padding */
    .indiv-grid .item.text {
        padding: 30px 24px;
    }

    .indiv-grid .item.text h3 {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
    }

    .indiv-grid .item.text p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    /* Better image sizing for mobile */
    .indiv-grid .item.img img {
        height: 250px;
        object-fit: cover;
    }

    /* Improve feature grid spacing */
    .features-split .feature-grid {
        gap: 30px 40px;
        margin-bottom: 30px;
    }

    .features-split .fi h3 {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
    }

    .features-split .fi p {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }

    /* Improve masters section */
    .features-grid {
        gap: 40px 50px;
    }

    .feature h3 {
        font-size: clamp(1rem, 3.5vw, 1.15rem);
    }

    .feature p {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    /* Better touch targets */
    .btn--primary,
    .features-split .cta {
        min-height: 44px;
        padding: 14px 24px;
        font-size: clamp(0.95rem, 3vw, 1rem);
    }

    .store-buttons img {
        height: 44px;
    }

    /* Improve step icons */
    .step__icon {
        width: clamp(56px, 12vw, 72px);
        height: clamp(56px, 12vw, 72px);
    }

    .step__title {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .step__text {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

/* Small mobile optimizations (up to 480px) */
@media (max-width: 480px) {
    /* Further reduce padding */
    .section {
        padding: 50px 16px;
    }

    .section.individuals,
    .section.masters,
    .section.steps {
        padding: 50px 16px;
    }

    .features-split .right-panel {
        padding: 40px 20px;
    }

    /* Improve text block padding */
    .indiv-grid .item.text {
        padding: 24px 20px;
    }

    /* Smaller images on very small screens */
    .indiv-grid .item.img img {
        height: 220px;
    }

    /* Better spacing for feature items */
    .features-split .feature-grid {
        gap: 24px;
    }

    .features-split .fi {
        gap: 14px;
    }

    .features-split .fi img {
        width: 36px;
        height: 36px;
    }

    /* Improve container padding */
    .section.individuals .container,
    .section.masters .container {
        padding: 0 16px;
    }

    /* Better footer spacing */
    .footer.light {
        padding: 8px 16px;
    }

    .footer__contact p {
        font-size: 0.9rem;
    }

    /* Improve hero section on small screens */
    .hero .inner {
        padding: 0 16px;
    }

    .hero .mockup img {
        max-width: 60%;
    }

    /* Better store buttons */
    .store-buttons {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .store-buttons img {
        height: 40px;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero .content {
        margin-top: 30px;
    }

    .section {
        padding: 50px 24px;
        min-height: auto;
    }

    .indiv-grid .item.img img {
        height: 200px;
    }
}