.mobile-showcase,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --nav-h: 48px;
    }

    html,
    body {
        width: 100%;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: hidden;
        overscroll-behavior: none;
        touch-action: pan-x;
    }

    body {
        background-attachment: scroll;
        background-position: center top;
    }

    body::before,
    body::after {
        display: none;
    }

    .floating-orb,
    #canvas-container,
    .noise-overlay,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--nav-h);
        background: #f8f7ff;
        border-bottom: 1px solid rgba(139, 92, 246, 0.16);
        box-shadow: none;
    }

    .site-nav.scrolled {
        background: #f8f7ff !important;
        border-bottom-color: rgba(139, 92, 246, 0.25) !important;
    }

    .site-nav .nav-inner {
        height: var(--nav-h);
        padding: 0 6px 0 16px;
    }

    .site-nav .nav-logo {
        font-size: 20px;
        letter-spacing: -0.02em;
        color: #0f172a;
    }

    .site-nav .nav-links {
        display: none !important;
    }

    .site-nav .nav-burger {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(109, 40, 217, 0.3);
        border-radius: 14px;
        background: rgba(109, 40, 217, 0.08);
        padding: 0;
        position: relative;
    }

    .site-nav .nav-burger span {
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #6d28d9;
        transition:
            transform 0.28s ease,
            opacity 0.2s ease;
    }

    .site-nav .nav-burger span:nth-child(1) {
        transform: translateY(-6px);
    }

    .site-nav .nav-burger span:nth-child(3) {
        transform: translateY(6px);
    }

    .site-nav .nav-burger.is-open span:nth-child(1) {
        transform: rotate(45deg);
    }

    .site-nav .nav-burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .site-nav .nav-burger.is-open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .mobile-showcase {
        position: relative;
        z-index: 1;
        margin: var(--nav-h) 8px 0;
        padding: 0 0 20px;
        height: calc(100svh - var(--nav-h));
        min-height: 0;
        border-radius: 30px;
        background:
            radial-gradient(
                circle at 8% 12%,
                rgba(139, 92, 246, 0.2),
                transparent 42%
            ),
            radial-gradient(
                circle at 92% 10%,
                rgba(59, 130, 246, 0.15),
                transparent 34%
            ),
            var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: var(--glass-border);
        overflow: hidden;
        box-shadow: var(--glass-shadow);
        display: flex;
        flex-direction: column;
    }

    .mobile-showcase-head {
        flex-shrink: 0;
        padding: 0 14px 6px;
        color: var(--color-ink);
    }

    .mobile-showcase-head::before {
        content: '';
        display: block;
        height: 16px;
    }

    .mobile-showcase-kicker {
        margin: 0 0 12px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 6px 12px;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--color-accent-start);
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    .mobile-showcase-head h1 {
        margin: 0;
        font-family: var(--font-heading);
        font-size: clamp(22px, 7.2vw, 34px);
        line-height: 1;
        letter-spacing: -0.035em;
        color: var(--color-ink);
    }

    .mobile-showcase-head h1 span {
        display: block;
        color: var(--color-accent-start);
    }

    .mobile-showcase-lead {
        margin: 8px 0 0;
        max-width: 94%;
        color: var(--color-ink-sub);
        font-size: 13px;
        line-height: 1.35;
    }

    .mobile-slider {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 0 10px 2px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-height: 0;
        flex: 1 1 0;
        touch-action: pan-x;
    }

    .mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-slide {
        position: relative;
        flex: 0 0 88%;
        min-height: 0;
        border-radius: 24px;
        overflow: hidden;
        scroll-snap-align: start;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 14px 34px rgba(139, 92, 246, 0.15);
        background: linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.88) 0%,
            rgba(255, 255, 255, 0.6) 100%
        );
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-shot {
        position: relative;
        width: min(76%, 250px);
        margin-top: 6px;
        z-index: 1;
        filter: drop-shadow(0 20px 30px rgba(5, 7, 20, 0.38));
    }

    .mobile-shot-screen {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        z-index: 2;
    }

    .mobile-shot-frame {
        display: none;
    }

    .mobile-slide-overlay {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                180deg,
                rgba(10, 12, 34, 0) 0%,
                rgba(10, 12, 34, 0.08) 58%,
                rgba(10, 12, 34, 0.28) 100%
            ),
            linear-gradient(
                130deg,
                rgba(124, 58, 237, 0.03),
                rgba(59, 130, 246, 0.03)
            );
        z-index: 2;
        pointer-events: none;
    }

    .mobile-slide-content {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 8px;
        z-index: 3;
        padding: 10px 10px 8px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--color-ink);
        text-align: left;
    }

    .mobile-slide-content h2 {
        margin: 0;
        font-family: var(--font-heading);
        font-size: clamp(18px, 6vw, 30px);
        line-height: 1.02;
        letter-spacing: -0.03em;
        color: var(--color-ink);
    }

    .mobile-suboffer {
        margin: 10px 0 0;
        font-size: 11px;
        line-height: 1.3;
        color: var(--color-ink-sub);
    }

    .mobile-slider-dots {
        flex-shrink: 0;
        margin: 6px 0 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .mobile-slider-dot {
        width: 24px;
        height: 4px;
        border: 0;
        border-radius: 999px;
        background: rgba(139, 92, 246, 0.28);
        transition:
            width 0.22s ease,
            background 0.22s ease;
    }

    .mobile-slider-dot.is-active {
        width: 40px;
        background: var(--color-accent-start);
    }

    .mobile-proof {
        flex-shrink: 0;
        margin: 0 10px 6px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mobile-proof span {
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 600;
        color: var(--color-accent-end);
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(139, 92, 246, 0.24);
    }

    .mobile-cta-row {
        flex-shrink: 0;
        margin: 0 10px;
        padding-bottom: 48px;
    }

    .mobile-work-link,
    .mobile-secondary-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: -0.01em;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-work-link {
        display: flex;
        width: 100%;
        color: white;
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        font-family: var(--font-heading);
        font-size: 13px;
        box-shadow: 0 12px 28px rgba(109, 40, 217, 0.45);
    }

    .mobile-secondary-link {
        color: var(--color-ink);
        font-size: 13px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .mobile-work-link:active,
    .mobile-secondary-link:active {
        transform: translateY(1px);
    }

    .mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1200;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--color-ink);
        padding: 20px 16px 100px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .mobile-menu.is-open {
        transform: translateX(0);
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 28px;
    }

    .mobile-menu-logo {
        font-family: var(--font-heading);
        font-size: 22px;
        font-weight: 700;
    }

    .mobile-menu-close {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        border: 1px solid rgba(17, 20, 36, 0.2);
        background: rgba(255, 255, 255, 0.78);
        color: #111424;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .mobile-menu-links a {
        padding: 10px 0;
        font-family: var(--font-heading);
        font-size: clamp(32px, 10vw, 46px);
        line-height: 0.95;
        letter-spacing: -0.03em;
        color: var(--color-ink);
        text-decoration: none;
    }

    .mobile-menu-socials {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 84px;
        background: rgba(255, 255, 255, 0.95);
        border-top: 1px solid rgba(139, 92, 246, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .mobile-menu-socials a {
        color: var(--color-accent-end);
        font-size: 28px;
        text-decoration: none;
    }

    .container,
    .modal-overlay {
        display: none;
    }

    .logo {
        margin-bottom: 20px;
        font-size: 18px;
    }

    .tagline {
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: clamp(34px, 12vw, 56px);
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .cta-button {
        width: 100%;
        font-size: 14px;
        padding: 18px 20px;
    }

    .stats-bar {
        border-radius: 20px;
        padding: 18px 14px;
        margin-bottom: 36px;
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 100%;
        padding: 8px 10px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.75);
    }

    .features-section {
        margin-top: 0;
    }

    .section-heading {
        font-size: clamp(28px, 9vw, 38px);
        margin: 0 0 18px;
    }

    .features-pin {
        border-radius: 24px;
        padding: 14px;
    }

    .features-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bento-card,
    .bento-card--wide {
        grid-column: auto;
        min-height: 220px;
    }

    .feature-card {
        border-radius: 20px;
        padding: 18px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-card::after {
        display: none;
    }

    .feature-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 14px;
        font-size: 22px;
    }

    .bento-card--wide .feature-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .bento-card--wide .feature-title {
        font-size: 18px;
    }

    .feature-description {
        margin-top: 10px;
        font-size: 14px;
        max-width: 100%;
    }

    .screenshots-section {
        margin-top: 40px;
        margin-bottom: 16px;
    }

    .screenshots-title {
        margin-bottom: 20px;
        font-size: clamp(30px, 9vw, 44px);
    }

    .carousel-container {
        border-radius: 24px;
        padding: 24px 0;
    }

    .carousel-wrapper {
        padding: 8px 0;
    }

    .carousel-track {
        gap: 14px;
    }

    .carousel-slide {
        height: 430px;
        border-radius: 18px;
    }

    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        margin-top: 24px;
    }

    .footer {
        border-radius: 22px;
        margin-top: 28px;
        padding: 20px 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 14px;
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-contact a {
        margin-right: 0;
        font-size: 15px;
    }

    .modal-card {
        border-radius: 24px;
        padding: 38px 20px 30px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-description {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .mobile-slide {
        flex-basis: 92%;
    }

    .mobile-cta-row {
        grid-template-columns: 1fr;
    }

    .features-track {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        height: 380px;
    }
}

@media (max-width: 768px) and (max-height: 840px) {
    .mobile-showcase {
        padding: 0 0 14px;
        border-radius: 24px;
    }

    .mobile-showcase-head {
        padding: 0 12px 4px;
    }

    .mobile-showcase-head h1 {
        font-size: clamp(20px, 6.8vw, 30px);
        line-height: 0.98;
    }

    .mobile-showcase-lead {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.25;
    }

    .mobile-slider {
        gap: 8px;
        padding: 0 8px 2px;
    }

    .mobile-slide {
        border-radius: 18px;
        flex-basis: 90%;
    }

    .mobile-shot {
        width: min(68%, 212px);
    }

    .mobile-slide-content {
        left: 8px;
        right: 8px;
        bottom: 6px;
        padding: 8px 8px 7px;
    }

    .mobile-slide-content h2 {
        font-size: clamp(16px, 5.4vw, 24px);
    }

    .mobile-suboffer {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.2;
    }

    .mobile-slider-dots {
        margin: 4px 0;
    }

    .mobile-proof {
        margin: 0 8px 4px;
        gap: 4px;
    }

    .mobile-proof span {
        padding: 4px 7px;
        font-size: 9px;
    }

    .mobile-cta-row {
        margin: 0 8px;
        gap: 6px;
    }

    .mobile-work-link,
    .mobile-secondary-link {
        height: 40px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .mobile-showcase {
        margin-left: 6px;
        margin-right: 6px;
        border-radius: 20px;
    }

    .mobile-showcase-head h1 {
        font-size: clamp(20px, 6.8vw, 28px);
    }

    .hero-card {
        padding: 30px 16px;
    }

    .hero-title {
        font-size: clamp(30px, 11vw, 48px);
    }
}

@media (max-width: 768px) and (max-height: 700px) {
    .mobile-showcase-head {
        padding: 0 12px 2px;
    }

    .mobile-showcase-head h1 {
        font-size: clamp(18px, 5.8vw, 24px);
        line-height: 0.95;
    }

    .mobile-showcase-lead {
        margin-top: 4px;
        font-size: 11px;
        line-height: 1.2;
    }

    .mobile-slider-dots {
        margin: 2px 0;
    }

    .mobile-proof {
        margin: 0 8px 2px;
        gap: 3px;
    }

    .mobile-proof span {
        padding: 3px 6px;
        font-size: 9px;
    }

    .mobile-cta-row {
        margin: 0 8px;
    }

    .mobile-work-link {
        height: 38px;
        font-size: 12px;
    }
}
