:root {
    color-scheme: dark;
    --ink: #f8fbff;
    --muted: #a8b4c7;
    --line: rgba(255, 255, 255, .12);
    --paper: #070b14;
    --panel: #101827;
    --panel-soft: #162236;
    --brand: #22d3ee;
    --orange: #f97316;
    --orange-strong: #fb923c;
    --shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, .18), transparent 28rem),
        radial-gradient(circle at 82% 0%, rgba(249, 115, 22, .16), transparent 30rem),
        linear-gradient(180deg, #08111f 0%, var(--paper) 42%, #05070d 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.hero {
    display: grid;
    min-height: min(620px, 78vh);
    place-items: center;
    padding: clamp(26px, 4.5vw, 58px) clamp(18px, 5vw, 72px);
    text-align: center;
}

.hero-logo {
    display: grid;
    width: clamp(120px, 14vw, 170px);
    height: clamp(120px, 14vw, 170px);
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)),
        rgba(12, 20, 34, .86);
    box-shadow: 0 28px 90px rgba(34, 211, 238, .18);
}

.hero-logo img {
    width: 88%;
    height: 88%;
    border-radius: 999px;
    object-fit: contain;
}

.hero-logo span {
    color: var(--brand);
    font-weight: 950;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero p {
    margin: 0 0 14px;
    color: var(--orange-strong);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 640px;
    margin: 0;
    color: #ff2d55;
    font-size: clamp(1.45rem, 2.25vw, 2.4rem);
    line-height: 1.18;
    letter-spacing: 0;
    text-shadow: 0 0 34px rgba(255, 45, 85, .24);
}

.hero-action {
    display: inline-grid;
    min-height: 56px;
    place-items: center;
    margin-top: 30px;
    padding: 0 26px;
    border-radius: 999px;
    background: #22c55e;
    color: #04110a;
    font-weight: 950;
    box-shadow: 0 18px 36px rgba(34, 197, 94, .22);
}

.apps-section {
    display: grid;
    gap: clamp(28px, 4vw, 54px);
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: clamp(16px, 2.6vw, 28px) clamp(14px, 3.5vw, 46px) clamp(38px, 6vw, 76px);
}

.app-showcase {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, .78fr);
    min-height: clamp(390px, 50vh, 560px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 16% 22%, rgba(14, 165, 233, .24), transparent 26rem),
        radial-gradient(circle at 82% 74%, rgba(249, 115, 22, .24), transparent 24rem),
        linear-gradient(145deg, rgba(16, 54, 86, .92), rgba(18, 24, 43, .94));
    box-shadow: var(--shadow);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}

.app-showcase:hover {
    border-color: rgba(167, 139, 250, .46);
    background:
        radial-gradient(circle at 14% 20%, rgba(34, 197, 94, .28), transparent 26rem),
        radial-gradient(circle at 84% 76%, rgba(167, 139, 250, .30), transparent 24rem),
        linear-gradient(145deg, rgba(12, 58, 47, .94), rgba(35, 25, 64, .94));
    box-shadow:
        0 30px 90px rgba(34, 197, 94, .14),
        0 20px 70px rgba(167, 139, 250, .14);
    animation: showcase-hover 1.8s ease-in-out infinite;
}

@keyframes showcase-hover {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-7px);
    }
}

.next-app-link {
    display: inline-grid;
    justify-self: center;
    place-items: center;
    gap: 4px;
    margin: clamp(-18px, -1.6vw, -10px) 0 clamp(-8px, -1vw, 0px);
    padding: 8px 16px 10px;
    border: 1px solid rgba(255, 45, 85, .34);
    border-radius: 999px;
    background: rgba(255, 45, 85, .08);
    color: #ff2d55;
    font-size: .82rem;
    font-weight: 950;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 18px 44px rgba(255, 45, 85, .12);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.next-app-link strong {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #ff2d55;
    color: #07111f;
    font-size: 1.45rem;
    line-height: 1;
    animation: next-app-bounce 1.25s ease-in-out infinite;
}

.next-app-link:hover {
    border-color: rgba(255, 45, 85, .7);
    background: rgba(255, 45, 85, .14);
    box-shadow: 0 22px 58px rgba(255, 45, 85, .2);
    transform: translateY(-2px);
}

@keyframes next-app-bounce {
    0%, 100% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(5px);
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(7, 11, 20, .72);
    color: #ffffff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .26);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.slider-arrow:hover {
    background: #22c55e;
    color: #04110a;
    transform: translateY(-50%) scale(1.06);
}

.slider-arrow.prev {
    left: 14px;
}

.slider-arrow.next {
    right: 14px;
}

.slider {
    position: relative;
    overflow: hidden;
    width: min(92%, 960px);
    aspect-ratio: 16 / 9;
    min-height: auto;
    align-self: center;
    justify-self: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .12), transparent 34rem),
        #09111d;
}

.slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(8px, 1.5vw, 18px);
    object-fit: contain;
    opacity: 0;
    filter: blur(8px) saturate(.9);
    transform: scale(.96) translateY(10px);
    transition:
        opacity 1s ease,
        filter 1s ease,
        transform 1.35s cubic-bezier(.2, .8, .2, 1);
}

.slider img.active {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
}

.placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--brand);
    font-size: clamp(4rem, 13vw, 8rem);
    font-weight: 950;
}

.app-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: clamp(12px, 2vw, 20px);
    padding: clamp(16px, 2.8vw, 32px);
    border-left: 1px solid var(--line);
    background: rgba(10, 17, 31, .58);
}

.app-title-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.app-icon {
    width: clamp(54px, 5.8vw, 74px);
    height: clamp(54px, 5.8vw, 74px);
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255, 255, 255, .06);
}

.app-title-row h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #ff2d55;
    font-size: clamp(1.05rem, 1.45vw, 1.45rem);
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 0 24px rgba(255, 45, 85, .22);
}

.app-title-row span {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 850;
}

.app-description {
    margin: 0;
    color: #d8e3f2;
    font-size: clamp(.9rem, 1.08vw, 1rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.app-actions {
    display: grid;
    grid-template-columns: auto auto;
    align-items: start;
    justify-content: start;
    gap: 10px;
}

.app-actions.single-download {
    grid-template-columns: auto;
    justify-content: start;
}

.app-actions.single-download .download-button {
    min-width: 190px;
    min-height: 52px;
    padding: 8px 12px;
}

.download-button,
.code-button {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 210px;
    max-width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    color: #07111f;
    font-weight: 950;
    text-align: left;
}

.download-button {
    align-self: start;
    min-width: 190px;
    min-height: 52px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 18px 36px rgba(14, 165, 233, .2);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.download-button:hover {
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    box-shadow:
        0 20px 46px rgba(37, 99, 235, .32),
        0 12px 34px rgba(109, 40, 217, .28);
    transform: translateY(-2px);
}

.code-button {
    background: linear-gradient(135deg, #ea580c, #ff7a1a);
    box-shadow: 0 18px 36px rgba(249, 115, 22, .24);
}

.code-stack {
    display: contents;
}

.code-stack .code-button {
    width: min(220px, 100%);
    min-width: 0;
    min-height: 48px;
    padding: 8px 12px;
}

.nt-code-button {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(210px, 100%);
    margin-top: 2px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 18px 36px rgba(34, 197, 94, .22);
}

.button-icon {
    display: grid;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .34);
    font-size: 1rem;
}

.copy-hint {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: .9rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.download-button strong,
.code-button strong {
    grid-column: 2;
    opacity: .82;
    font-size: .84rem;
}

.empty-state {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto 60px;
    padding: 28px;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.empty-state h2 {
    margin: 0 0 10px;
}

.empty-state p {
    color: var(--muted);
}

.site-footer {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(22px, 4vw, 48px);
    width: min(1520px, calc(100% - 32px));
    margin: 0 auto clamp(24px, 4vw, 54px);
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 9% 12%, rgba(249, 115, 22, .24), transparent 24rem),
        radial-gradient(circle at 88% 34%, rgba(34, 211, 238, .22), transparent 26rem),
        linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
        rgba(16, 24, 39, .86);
    box-shadow: var(--shadow);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .14), transparent 34%, rgba(255, 255, 255, .08));
    opacity: .5;
}

.site-footer > * {
    position: relative;
}

.site-footer h2 {
    margin: 0 0 10px;
    max-width: 780px;
    font-size: clamp(1.65rem, 3.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.site-footer p {
    max-width: 760px;
    margin: 0;
    color: #dbe8f8;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.75;
}

.footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    flex: 0 0 auto;
    gap: 12px;
    min-width: min(100%, 410px);
}

.footer-actions a {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    place-items: center;
    padding: 0 22px;
    border-radius: 16px;
    background: var(--orange);
    color: #07111f;
    font-weight: 950;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .22);
}

.footer-actions .whatsapp-button {
    background: #22c55e;
}

.footer-actions span {
    font-size: 1.1rem;
}

@media (max-width: 1050px) {
    .app-showcase {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .slider {
        width: min(94%, 960px);
        min-height: auto;
    }

    .app-panel {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 680px) {
    .hero {
        min-height: 560px;
    }

    .apps-section {
        padding-inline: 12px;
    }

    .app-showcase {
        border-radius: 14px;
    }

    .slider {
        width: 100%;
        min-height: auto;
    }

    .app-panel {
        padding: 18px;
    }

    .app-title-row {
        align-items: flex-start;
    }

    .app-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .app-actions {
        grid-template-columns: 1fr;
    }

    .site-footer {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-actions {
        grid-template-columns: 1fr;
    }
}
