@media (max-width: 1023px) {
    .hero-grid,
    .confidence-grid,
    .problem-grid,
    .contact-grid,
    .trust-layout,
    .why-layout,
    .whatsapp-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid.three,
    .card-grid.four,
    .card-grid.six,
    .card-grid.services,
    .service-grid,
    .demo-grid,
    .demo-world-grid,
    .process-grid,
    .process-timeline,
    .timeline,
    .trust-card-grid,
    .trust-cards,
    .trust-grid,
    .why-grid,
    .benefit-grid,
    .problem-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-grid .demo-card {
        grid-column: auto;
    }

    .site-nav {
        position: fixed;
        inset: 82px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px 26px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .hero-grid {
        gap: 44px;
    }

    .hero-device-stage,
    .hero-showcase {
        max-width: 560px;
        margin: 0 auto;
    }

    .trust-layout,
    .whatsapp-layout {
        gap: 28px;
    }

    .process-timeline::before,
    .timeline::before {
        display: none;
    }

    .process-step,
    .timeline-step {
        padding: 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: #FFFFFF;
        box-shadow: var(--shadow-card);
    }

    .timeline-step {
        text-align: left;
    }

    .timeline-icon {
        margin: 0;
    }

    .timeline-content {
        min-height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 0;
    }

    .nav-cta {
        margin-top: 10px;
        padding: 14px 18px !important;
        text-align: center;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .nav-toggle span:not(.sr-only) {
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background: var(--text);
    }
}

@media (max-width: 1023px) {
    .agency-home-hero {
        padding-top: 76px;
        padding-bottom: 70px;
    }

    .agency-hero-grid,
    .agency-why-block,
    .agency-whatsapp-box,
    .agency-contact-box {
        grid-template-columns: 1fr;
    }

    .agency-hero-grid {
        gap: 40px;
    }

    .agency-hero-media {
        transform: none;
    }

    .agency-image-slot--hero {
        width: min(100%, 620px);
        min-height: 390px;
        max-height: 500px;
        margin: 0 auto;
    }

    .agency-showcase {
        margin-top: 46px;
    }

    .agency-showcase-stage {
        min-height: 480px;
    }

    .agency-showcase-card {
        width: min(560px, 76%);
    }

    .agency-showcase-card .agency-image-slot {
        aspect-ratio: 1.4 / 1;
        min-height: 0;
    }

    .agency-hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agency-hero-highlights {
        margin-top: 88px;
    }

    .agency-hero-highlights .agency-highlight-card:last-child {
        grid-column: 1 / -1;
        justify-items: center;
        text-align: center;
    }

    .agency-why-points {
        grid-template-columns: 1fr;
    }

    .agency-contact-actions,
    .agency-whatsapp-actions {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .agency-home-hero {
        padding-top: 64px;
        padding-bottom: 62px;
    }

    .agency-hero-copy h1 {
        margin-bottom: 20px;
    }

    .agency-hero-text {
        line-height: 1.64;
    }

    .agency-action-row {
        margin-top: 28px;
    }

    .agency-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .agency-showcase {
        margin-top: 24px;
    }

    .agency-showcase-stage {
        min-height: 470px;
        overflow: visible;
    }

    .agency-showcase-card {
        top: 8px;
        width: min(528px, 72%);
    }

    .agency-hero-media {
        display: none;
    }

    .agency-showcase-card.is-left {
        transform: translateX(-77%) scale(0.82);
    }

    .agency-showcase-card.is-right {
        transform: translateX(-23%) scale(0.82);
    }

    .agency-hero-highlights {
        margin-top: 104px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .agency-home-hero {
        padding-top: 60px;
        padding-bottom: 58px;
    }

    .agency-hero-copy h1 {
        font-size: clamp(2.65rem, 5vw, 3.1rem);
        line-height: 1.07;
    }

    .agency-action-row {
        margin-top: 26px;
    }

    .agency-hero-grid {
        gap: 20px;
    }

    .agency-image-slot--hero {
        width: min(100%, 540px);
        min-height: 340px;
        max-height: 440px;
    }

    .agency-showcase {
        margin-top: 24px;
    }

    .agency-showcase-card {
        top: 10px;
    }

    .service-expand-content {
        grid-template-columns: 1fr;
    }

    .service-image-slot {
        justify-self: center;
        width: min(100%, 620px);
    }
}

@media (max-width: 767px) {
    .agency-home-hero {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .agency-home-section {
        padding: 68px 0;
    }

    .agency-hero-copy h1 {
        margin-bottom: 18px;
        font-size: clamp(2.1rem, 11vw, 3.05rem);
        line-height: 1.08;
    }

    .agency-hero-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .agency-action-row {
        gap: 10px;
        margin-top: 24px;
    }

    .agency-section-cta {
        gap: 10px;
        margin-top: 28px;
    }

    .agency-section-cta--service {
        width: 100%;
        padding: 24px;
        text-align: center;
    }

    .agency-section-cta--service h3 {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .agency-section-cta p {
        margin-bottom: 4px;
        font-size: 0.94rem;
    }

    .agency-section-cta .btn {
        width: 100%;
    }

    .agency-action-row .btn,
    .agency-contact-actions .btn,
    .agency-whatsapp-actions .btn {
        width: 100%;
    }

    .agency-hero-trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
        padding-top: 16px;
    }

    .agency-hero-trust span {
        justify-content: flex-start;
        min-height: 30px;
        padding: 0;
        text-align: left;
        font-size: 0.76rem;
    }

    .agency-image-slot--hero {
        min-height: 260px;
        max-height: 360px;
        border-radius: 24px;
    }

    .agency-hero-media {
        display: none;
    }

    .agency-image-slot {
        min-height: 170px;
        border-radius: 20px;
    }

    .agency-image-slot::after {
        inset: 0;
        border-radius: 16px;
    }

    .agency-showcase {
        margin-top: 46px;
    }

    .agency-showcase-stage {
        min-height: 320px;
    }

    .agency-showcase-card {
        width: 86%;
        top: 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) scale(0.96);
    }

    .agency-showcase-card.is-active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) scale(1);
    }

    .agency-showcase-card.is-left,
    .agency-showcase-card.is-right,
    .agency-showcase-card.is-far-left,
    .agency-showcase-card.is-far-right {
        opacity: 0;
        transform: translateX(-50%) scale(0.96);
    }

    .agency-showcase-card .agency-image-slot {
        min-height: 0;
    }

    .agency-hero-highlights {
        margin-top: 92px;
    }

    .agency-hero-highlights,
    .agency-showcase-grid,
    .agency-benefit-list {
        grid-template-columns: 1fr;
    }

    .agency-hero-highlights .agency-highlight-card:last-child {
        grid-column: auto;
    }

    .agency-highlight-card,
    .agency-benefit-card,
    .agency-why-block,
    .agency-whatsapp-box,
    .agency-contact-box {
        padding: 24px;
        border-radius: 22px;
    }

    .agency-highlight-card {
        min-height: auto;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
        padding: 20px;
    }

    .agency-highlight-card span {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .agency-highlight-card h3 {
        margin-bottom: 4px;
    }

    .agency-highlight-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .agency-why-points {
        gap: 14px;
    }

    .agency-why-points article {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 16px;
        align-items: center;
        padding: 20px;
    }

    .agency-why-points article::before {
        grid-row: 1 / span 2;
        align-self: center;
        margin-bottom: 0;
    }

    .agency-why-points article h3 {
        margin-bottom: 4px;
    }

    .agency-why-points article p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .agency-showcase-tile {
        min-height: auto;
    }

    .agency-showcase-content {
        padding: 20px;
    }

    .agency-benefit-card {
        min-height: 116px;
    }

    .agency-benefit-number {
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 0;
    }

    .agency-why-points article {
        min-height: auto;
        padding: 18px;
    }

    .service-expand-toggle {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 22px;
        padding-bottom: 18px;
    }

    .service-expand-toggle::after {
        grid-column: 1 / -1;
        justify-self: center;
        width: 32px;
        height: 32px;
        margin-top: 4px;
    }

    .service-expand-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-expand-card.is-open .service-expand-panel {
        max-height: 980px;
        padding: 0 22px 22px;
    }

    .service-expand-copy p {
        font-size: 0.96rem;
        line-height: 1.66;
    }

    .service-expand-copy li {
        font-size: 0.94rem;
    }

    .service-image-slot {
        width: calc(100% + 16px);
        min-height: 180px;
        margin-right: -8px;
        margin-left: -8px;
        padding: 0;
        border-radius: 20px;
    }

    .contact-whatsapp-note .btn {
        width: 100%;
    }

    .demo-detail-shell {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .demo-detail-missing {
        padding: 28px 20px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 58px;
        padding-bottom: 34px;
    }

    .hero-grid {
        display: block;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
    }

    .hero-copy .eyebrow {
        margin-bottom: 14px;
    }

    h1 {
        margin-bottom: 18px;
        font-size: clamp(2.15rem, 12vw, 3rem);
    }

    h2 {
        margin-bottom: 16px;
        font-size: clamp(1.7rem, 8vw, 2.18rem);
    }

    .hero-copy p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .action-row {
        gap: 10px;
        margin-top: 24px;
    }

    .action-row .btn {
        width: 100%;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 18px;
        order: 3;
    }

    .hero-trust .trust-pill:nth-child(2),
    .hero-trust .trust-pill:nth-child(4),
    .hero-visual {
        display: none;
    }

    .trust-pill {
        min-height: 42px;
        justify-content: center;
        padding: 8px 10px;
        text-align: center;
        font-size: 0.78rem;
    }

    .section-heading,
    .split-heading {
        margin-bottom: 32px;
    }

    .card-grid.three,
    .card-grid.four,
    .card-grid.six,
    .card-grid.services,
    .service-grid,
    .demo-grid,
    .demo-world-grid,
    .process-grid,
    .process-timeline,
    .timeline,
    .problem-points,
    .industry-grid,
    .trust-card-grid,
    .trust-cards,
    .trust-layout,
    .whatsapp-layout,
    .trust-grid,
    .why-grid,
    .why-layout,
    .why-points,
    .benefit-grid,
    .form-row.two-columns {
        grid-template-columns: 1fr;
    }

    .split-heading,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .trust-grid {
        gap: 10px;
        padding: 18px 0;
    }

    .trust-grid span {
        min-height: auto;
        padding: 14px 16px;
    }

    .trust-grid small {
        display: none;
    }

    .problem-grid {
        margin-bottom: 18px;
    }

    .problem-copy {
        gap: 16px;
    }

    .service-card,
    .trust-card,
    .home-demo-card,
    .benefit-card,
    .demo-world-card,
    .why-card,
    .demo-card,
    .process-grid > div,
    .process-step,
    .timeline-step,
    .insight-card,
    .feature-list article,
    .contact-form,
    .contact-aside {
        min-height: auto;
        padding: 22px;
    }

    .demo-world-card {
        gap: 14px;
    }

    .home-demo-card {
        gap: 14px;
    }

    .demo-image-slot,
    .demo-image-ui {
        min-height: 154px;
    }

    .demo-preview {
        min-height: 132px;
    }

    .why-intro,
    .why-panel,
    .whatsapp-copy {
        padding: 34px 22px;
    }

    .why-layout .why-intro {
        padding: 34px 22px;
    }

    .whatsapp-chat,
    .chat-preview {
        min-height: 248px;
        padding: 22px;
    }

    .whatsapp-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .service-card > .icon-box,
    .service-card > .icon-badge,
    .insight-card span,
    .process-grid b {
        margin-bottom: 18px;
    }

    .demo-card {
        min-height: 178px;
    }

    .demo-card::before {
        margin-bottom: 30px;
    }

    .process-grid {
        gap: 12px;
    }

    .process-timeline {
        gap: 14px;
    }

    .process-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 14px;
    }

    .timeline-icon {
        width: 58px;
        height: 58px;
    }

    .timeline-icon .icon-badge {
        width: 34px;
        height: 34px;
    }

    .cta-panel {
        padding: 34px 22px;
        text-align: left;
    }

    .cta-panel .btn {
        margin-top: 24px;
        width: 100%;
    }

    .demo-directory-cta {
        margin-top: 34px;
    }

    .cta-panel .action-row .btn {
        margin-top: 0;
    }

    .homepage-cta,
    .cta-banner {
        grid-template-columns: 1fr;
        padding: 34px 22px;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .homepage-cta .btn,
    .cta-banner .btn {
        width: 100%;
    }

    .cta-trust,
    .cta-trust-row {
        justify-content: flex-start;
    }

    .floating-whatsapp {
        right: 0;
        bottom: 85px;
        width: 58px;
        height: 58px;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .brand-logo {
        height: 48px;
        max-width: 216px;
    }

    .footer-brand-logo {
        height: 61px;
        margin-left: -8px;
        max-width: 274px;
    }

    .confidence-grid > div {
        padding: 28px 24px;
    }

    .confidence-grid ul {
        gap: 10px;
    }

    .footer-grid {
        gap: 24px;
    }

    .site-footer {
        padding: 56px 0 28px;
    }
}

@media (min-width: 700px) and (max-width: 1023px) {
    .agency-showcase {
        margin-top: clamp(34px, 5vw, 48px);
    }

    .agency-showcase-card {
        top: 10px;
        width: clamp(480px, 64vw, 560px);
    }

    .agency-showcase-stage {
        min-height: calc(clamp(480px, 64vw, 560px) / 1.4 + clamp(110px, 10vw, 140px));
    }

    .agency-hero-highlights {
        grid-template-columns: 1fr;
        margin-top: clamp(88px, 10vw, 120px);
    }

    .agency-hero-highlights .agency-highlight-card {
        display: block;
        text-align: center;
    }

    .agency-hero-highlights .agency-highlight-card span {
        margin-right: auto;
        margin-bottom: 14px;
        margin-left: auto;
    }

    .agency-hero-highlights .agency-highlight-card:last-child {
        grid-column: auto;
    }

    .agency-showcase-grid.agency-service-group,
    .agency-showcase-grid.agency-demo-group,
    .agency-showcase-grid.agency-demo-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agency-service-group .agency-showcase-tile:last-child:nth-child(odd),
    .agency-demo-group .agency-showcase-tile:last-child:nth-child(odd),
    .agency-demo-directory .agency-showcase-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 24px) / 2);
    }

    .agency-service-group .agency-showcase-tile:last-child:nth-child(even),
    .agency-demo-group .agency-showcase-tile:last-child:nth-child(even),
    .agency-demo-directory .agency-showcase-tile:last-child:nth-child(even) {
        grid-column: auto;
        width: auto;
    }
}

@media (max-width: 699px) {
    .agency-showcase {
        margin-top: clamp(36px, 8vw, 52px);
    }

    .agency-showcase-stage {
        min-height: calc(clamp(280px, 78vw, 460px) / 1.4 + clamp(95px, 16vw, 125px));
    }

    .agency-showcase-card {
        top: clamp(8px, 2vw, 14px);
        width: clamp(280px, 78vw, 460px);
    }

    .agency-hero-highlights {
        grid-template-columns: 1fr;
        margin-top: clamp(72px, 13vw, 104px);
    }

    .agency-hero-highlights .agency-highlight-card {
        display: block;
        text-align: center;
    }

    .agency-hero-highlights .agency-highlight-card span {
        margin-right: auto;
        margin-bottom: 14px;
        margin-left: auto;
    }

    .agency-hero-highlights .agency-highlight-card:last-child {
        grid-column: auto;
    }
}
