/* Base page styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-height: 100%;
    margin: 0;
}

body {
    background: #f7fbfa;
}

/* Dark splash screen shell */
.splash {
    --ink: #e7f5f2;
    --muted: #9bb5b1;
    --accent: #2dd4bf;

    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    overflow: hidden;
    padding: 28px 20px;
    color: var(--ink);
    background: #071513;
    transition: opacity .25s ease;
}

.splash.is-pending {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Quiet message and automation motifs add depth behind the loading scene. */
.splash-ambient {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 48%, rgba(12, 148, 136, .09), transparent 33%),
        radial-gradient(circle at 50% 50%, transparent 35%, rgba(4, 15, 13, .32) 100%);
}

.splash-ambient::before,
.splash-ambient::after {
    position: absolute;
    width: clamp(300px, 43vw, 660px);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    filter: blur(42px);
    pointer-events: none;
    will-change: transform;
}

.splash-ambient::before {
    top: 2%;
    left: -12%;
    opacity: .38;
    background: radial-gradient(circle, rgba(20, 184, 166, .38), rgba(13, 148, 136, .13) 42%, transparent 72%);
    animation: splash-glow-drift-left 25s ease-in-out infinite alternate;
}

.splash-ambient::after {
    right: -11%;
    bottom: -8%;
    opacity: .34;
    background: radial-gradient(circle, rgba(14, 165, 142, .4), rgba(45, 212, 191, .11) 43%, transparent 73%);
    animation: splash-glow-drift-right 20s ease-in-out infinite alternate;
}

.splash-waves {
    position: absolute;
    inset: -8% -4%;
    width: 108%;
    height: 116%;
    overflow: visible;
    opacity: .62;
    animation: splash-wave-drift 22s ease-in-out infinite alternate;
}

.splash-shape-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: .56;
    animation: splash-route-e 54s ease-in-out infinite alternate;
    animation-delay: -21s;
}

.splash-shape-field path,
.splash-shape-field circle {
    fill: none;
    stroke: rgba(75, 220, 190, .16);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.splash-shape-field path:not(.shape-diamond) {
    stroke-dasharray: 4 8;
    animation: splash-wave-flow 28s linear infinite;
}

.splash-shape-field .shape-diamond {
    fill: rgba(45, 212, 191, .08);
    stroke: rgba(102, 232, 204, .3);
}

.splash-shape-field circle:nth-of-type(2n) {
    stroke: rgba(92, 224, 195, .1);
    stroke-dasharray: 2 7;
}

.splash-shape-field .shape-arc {
    stroke: rgba(45, 212, 191, .28);
    stroke-width: 2;
    stroke-dasharray: 14 8;
}

.splash-waves path {
    fill: none;
    stroke: rgba(45, 212, 191, .12);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.splash-waves path:nth-child(2n) {
    stroke: rgba(90, 201, 168, .075);
    stroke-dasharray: 5 13;
    animation: splash-wave-flow 34s linear infinite;
}

.splash-waves circle {
    fill: #42e0c3;
    filter: drop-shadow(0 0 7px rgba(45, 212, 191, .75));
    animation: splash-node-pulse 3.8s ease-in-out infinite alternate;
}

.splash-waves circle:nth-of-type(2) { animation-delay: -1.4s; }
.splash-waves circle:nth-of-type(3) { animation-delay: -2.7s; }

.splash-orbit {
    position: absolute;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(45, 212, 191, .2);
    border-radius: 14px;
    color: rgba(91, 225, 201, .66);
    background: linear-gradient(145deg, rgba(17, 66, 57, .48), rgba(7, 30, 26, .2));
    box-shadow: 0 0 30px rgba(15, 180, 155, .07), inset 0 1px rgba(255, 255, 255, .035);
    font-size: 17px;
    backdrop-filter: blur(8px);
    animation: splash-route-a 32s ease-in-out infinite alternate;
}

.splash-orbit-chat { top: 20%; left: 13%; }
.splash-orbit-whatsapp { top: 17%; right: 16%; animation-name: splash-route-b; animation-delay: -9s; }
.splash-orbit-flow { right: 12%; bottom: 20%; animation-name: splash-route-c; animation-delay: -17s; }
.splash-orbit-send { bottom: 17%; left: 18%; animation-name: splash-route-d; animation-delay: -23s; }

.splash-signal {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(45, 212, 191, .15);
    border-radius: 99px;
    color: rgba(191, 226, 217, .58);
    background: rgba(9, 36, 31, .42);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12), inset 0 1px rgba(255, 255, 255, .025);
    font: 600 9px/1 'Quicksand', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    animation: splash-route-b 38s ease-in-out infinite alternate;
}

.splash-signal i { color: rgba(45, 212, 191, .8); font-size: 12px; }
.splash-signal-delivered { top: 34%; left: 7%; animation-delay: -4s; }
.splash-signal-automation { top: 35%; right: 7%; animation-name: splash-route-c; animation-delay: -18s; }
.splash-signal-live { right: 22%; bottom: 9%; animation-name: splash-route-d; animation-delay: -11s; }

.splash-spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #54e5c8;
    box-shadow: 0 0 12px 3px rgba(45, 212, 191, .2);
    animation: splash-route-c 24s ease-in-out infinite alternate;
}

.splash-spark-one { top: 29%; left: 28%; }
.splash-spark-two { top: 24%; right: 30%; animation-name: splash-route-d; animation-delay: -8s; }
.splash-spark-three { right: 30%; bottom: 30%; animation-name: splash-route-a; animation-delay: -15s; }
.splash-spark-four { bottom: 27%; left: 26%; animation-name: splash-route-b; animation-delay: -3s; }

.splash-token {
    position: absolute;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(91, 225, 201, .16);
    border-radius: 11px;
    color: rgba(120, 229, 207, .72);
    background: rgba(11, 44, 38, .45);
    box-shadow: 0 0 24px rgba(15, 180, 155, .06);
    font-size: 14px;
    backdrop-filter: blur(6px);
    animation: splash-route-d 36s ease-in-out infinite alternate;
}

.splash-token-instagram { top: 11%; left: 39%; animation-name: splash-route-e; animation-duration: 46s; animation-delay: -12s; }
.splash-token-bot { top: 58%; right: 5%; animation-name: splash-route-a; animation-delay: -22s; }
.splash-token-chart { bottom: 12%; left: 39%; animation-name: splash-route-b; animation-delay: -7s; }
.splash-token-check { top: 59%; left: 5%; animation-name: splash-route-c; animation-delay: -16s; }

.splash-decor-ring {
    position: absolute;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px dashed rgba(75, 220, 190, .23);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(30, 190, 160, .05);
    animation: splash-route-e 43s ease-in-out infinite alternate;
}

.splash-decor-ring::before,
.splash-decor-ring::after {
    position: absolute;
    border: 1px solid rgba(75, 220, 190, .12);
    border-radius: 50%;
    content: "";
}

.splash-decor-ring::before { inset: 8px; }
.splash-decor-ring::after { inset: 24px; background: rgba(45, 212, 191, .58); box-shadow: 0 0 10px rgba(45, 212, 191, .55); }
.splash-decor-ring i { width: 3px; height: 3px; border-radius: 50%; background: rgba(151, 255, 227, .9); transform: translate(22px, -18px); }
.splash-decor-ring-left { top: 47%; left: 9%; }
.splash-decor-ring-right { right: 10%; bottom: 43%; animation-name: splash-route-b; animation-delay: -19s; }

.splash-mini-wave {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(45, 212, 191, .14);
    border-radius: 12px;
    background: rgba(8, 38, 32, .38);
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
    animation: splash-route-c 35s ease-in-out infinite alternate;
}

.splash-mini-wave { top: 62%; right: 22%; }
.splash-mini-wave i { width: 3px; height: 8px; border-radius: 4px; background: rgba(61, 219, 184, .62); animation: splash-equalizer 1.2s ease-in-out infinite alternate; }
.splash-mini-wave i:nth-child(2n) { height: 17px; animation-delay: -.4s; }
.splash-mini-wave i:nth-child(3n) { height: 11px; animation-delay: -.8s; }

.splash-node-cluster {
    position: absolute;
    top: 71%;
    left: 28%;
    width: 82px;
    overflow: visible;
    opacity: .48;
    animation: splash-route-a 41s ease-in-out infinite alternate;
    animation-delay: -13s;
}

.splash-node-cluster path { fill: none; stroke: rgba(75, 220, 190, .34); stroke-width: 1; stroke-dasharray: 3 5; }
.splash-node-cluster circle { fill: #64e6c7; filter: drop-shadow(0 0 4px rgba(45, 212, 191, .65)); animation: splash-node-pulse 2.8s ease-in-out infinite alternate; }
.splash-node-cluster circle:nth-of-type(2n) { animation-delay: -1.1s; }

.splash.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.splash.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}

.splash-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1040px);
    margin: auto 0;
    padding: 24px 0;
    animation: splash-enter .8s cubic-bezier(.2, .8, .2, 1) both;
}

/* Branding and introductory copy */
.splash-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(30px, 7vh, 64px);
}

.splash-brand-logo {
    width: min(170px, 45vw);
    height: auto;
    object-fit: contain;
}

.splash-story {
    margin: -34px 0 10px;
    text-align: center;
}

.splash-story h1 {
    margin: 0;
    color: var(--ink);
    font: 700 clamp(23px, 3vw, 34px)/1.15 'Quicksand', sans-serif;
    letter-spacing: -1.1px;
}

.splash-story p {
    margin: 9px 0 0;
    color: var(--muted);
    font: 500 13px/1.5 'Quicksand', sans-serif;
    letter-spacing: .02em;
}

/* Customer journey scene and cards */
.splash-scene {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 74px minmax(220px, 1fr) 74px minmax(190px, 1fr);
    align-items: center;
    width: 100%;
    min-height: 410px;
}

.splash-card {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    height: 280px;
    padding: 18px;
    border: 1px solid rgba(135, 173, 166, .18);
    border-radius: 25px;
    color: inherit;
    background: rgba(12, 33, 29, .76);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(14px);
    cursor: pointer;
    font: inherit;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.splash-card:hover,
.splash-card:focus-visible,
.splash-card[aria-pressed="true"] {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(13, 148, 136, .55);
    box-shadow: 0 28px 76px rgba(13, 148, 136, .16);
    outline: none;
}

/* Advertisement preview card */
.splash-ad {
    align-content: start;
    gap: 13px;
    height: 252px;
    padding: 15px;
    text-align: left;
    cursor: pointer;
}

.ad-top,
.ad-account,
.skeleton-line,
.ad-button,
.chat-top,
.chat-contact,
.chat-bubble,
.flow-node,
.result-bar {
    border-radius: 99px;
}

.ad-top {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    height: 16px;
}

.ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1877f2;
    box-shadow: 0 0 0 4px rgba(24, 119, 242, .1);
}

.ad-account {
    width: 44px;
    height: 7px;
    background: rgba(65, 94, 89, .2);
}

.ad-more {
    width: 4px;
    height: 4px;
    margin-left: auto;
    border-radius: 50%;
    background: #91aaa5;
    box-shadow: 0 6px #91aaa5, 0 -6px #91aaa5;
}

.ad-art {
    position: relative;
    width: 100%;
    height: 112px;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(145deg, #a5f3df 0%, #40baa7 45%, #0d766e 100%);
}

.ad-art-wordmark {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 65%;
    color: rgba(237, 255, 250, .08);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .82);
    font: 700 clamp(48px, 9vw, 88px)/1 'Quicksand', sans-serif;
    letter-spacing: -.08em;
    text-shadow: 0 2px 16px rgba(3, 61, 52, .16);
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-75deg);
}

.ad-art::after {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    content: "";
    filter: blur(1px);
}

.ad-lines {
    display: grid;
    gap: 7px;
    width: 100%;
}

.skeleton-line {
    height: 6px;
    background: rgba(167, 203, 195, .18);
}

.skeleton-line:first-child {
    width: 78%;
    height: 8px;
    background: rgba(167, 203, 195, .3);
}

.skeleton-line:last-child {
    width: 55%;
}

.ad-button {
    display: grid;
    width: 100%;
    height: 25px;
    margin-top: 1px;
    place-items: center;
    border-radius: 99px;
    color: #087d73;
    background: rgba(45, 212, 191, .22);
    font: 700 9px/1 'Quicksand', sans-serif;
    letter-spacing: .02em;
}

/* Animated connections between journey cards */
.splash-link {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, rgba(13, 148, 136, .05), rgba(13, 148, 136, .35), rgba(13, 148, 136, .05));
}

.splash-link::before {
    position: absolute;
    top: -4px;
    left: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #20c7ae;
    box-shadow: 0 0 0 5px rgba(32, 199, 174, .13), 0 0 18px rgba(32, 199, 174, .55);
    content: "";
    animation: splash-packet 2.2s ease-in-out infinite;
}

.splash-link:last-of-type::before {
    animation-delay: 1.1s;
}

/* WhatsApp conversation preview */
.splash-phone-wrap {
    position: relative;
    display: grid;
    place-items: center;
    height: 390px;
}

.splash-phone {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 216px;
    height: 366px;
    padding: 8px;
    overflow: hidden;
    border: 5px solid #293b38;
    border-radius: 35px;
    background: #101c1b;
    box-shadow: 0 28px 72px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone-screen {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border-radius: 23px;
    background: #10211e;
}

.phone-top {
    height: 20px;
    background: #087d73;
}

.chat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 43px;
    padding: 0 11px;
    border-radius: 0;
    background: #0b8f7d;
}

.chat-avatar {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: linear-gradient(145deg, #9cf0d5, #22a98e);
}

.chat-contact {
    width: 78px;
    height: 7px;
    background: rgba(255, 255, 255, .77);
}

.chat-contact::after {
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .4);
    content: "";
}

.chat-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 13px 9px;
    background-image: radial-gradient(rgba(33, 122, 103, .07) 1px, transparent 1px);
    background-size: 13px 13px;
}

.chat-bubble {
    position: relative;
    width: 82%;
    min-height: 28px;
    padding: 7px 9px;
    border-radius: 11px 11px 11px 3px;
    color: #31594e;
    background: #203b34;
    box-shadow: 0 2px 4px rgba(20, 60, 48, .07);
    font: 500 8px/1.35 'Quicksand', sans-serif;
}

.chat-bubble.outgoing {
    align-self: flex-end;
    border-radius: 11px 11px 3px 11px;
    background: #075e4c;
}

.chat-bubble.short {
    width: 61%;
}

.chat-input {
    height: 27px;
    margin: 0 8px 9px;
    border-radius: 99px;
    background: rgba(111, 147, 136, .12);
}

.chat-live {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 3px 1px;
    color: #108d71;
    font: 700 7px/1 'Quicksand', sans-serif;
    letter-spacing: .08em;
}

.chat-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #20c7ae;
    box-shadow: 0 0 0 3px rgba(32, 199, 174, .13);
}

/* Automation flow preview card */
.splash-automation {
    align-content: center;
    gap: 13px;
    height: 252px;
    padding: 18px;
    cursor: pointer;
}

.flow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.flow-node {
    display: grid;
    width: 54px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(45, 212, 191, .22);
    border-radius: 15px;
    background: rgba(45, 212, 191, .1);
}

.flow-node svg {
    width: 21px;
    height: 21px;
    color: #0d9488;
}

.flow-line {
    width: 17px;
    height: 2px;
    background: rgba(13, 148, 136, .35);
}

.flow-node.branch {
    width: 43px;
    height: 40px;
    transform: rotate(45deg);
    border-radius: 12px;
}

.flow-node.branch svg {
    transform: rotate(-45deg);
}

.flow-path {
    width: 2px;
    height: 16px;
    background: linear-gradient(rgba(13, 148, 136, .1), rgba(13, 148, 136, .45));
}

.flow-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    margin-top: 1px;
    border: 1px solid rgba(13, 148, 136, .14);
    border-radius: 15px;
    background: rgba(45, 212, 191, .08);
}

.flow-result-label {
    display: grid;
    gap: 4px;
    color: var(--ink);
    font: 700 9px/1 'Quicksand', sans-serif;
}

.flow-result-label small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font: 600 7px/1 'Quicksand', sans-serif;
    letter-spacing: .06em;
}

.flow-result-label small i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #20c7ae;
}

.result-check {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: #15aa85;
    box-shadow: 0 0 0 5px rgba(21, 170, 133, .12);
}

.result-check svg {
    width: 13px;
    height: 13px;
}

.result-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 22px;
}

.result-bar {
    width: 6px;
    border-radius: 4px 4px 2px 2px;
    background: #5ac9a8;
    animation: splash-bars 1.5s ease-in-out infinite alternate;
}

.result-bar:nth-child(1) {
    height: 9px;
}

.result-bar:nth-child(2) {
    height: 15px;
    animation-delay: .2s;
}

.result-bar:nth-child(3) {
    height: 21px;
    animation-delay: .4s;
}

.result-bar:nth-child(4) {
    height: 13px;
    animation-delay: .6s;
}

/* Loading indicator */
.splash-loader {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(25px, 5vh, 42px);
}

.splash-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .35;
    animation: splash-dots 1s ease-in-out infinite;
}

.splash-loader span:nth-child(2) {
    animation-delay: .15s;
}

.splash-loader span:nth-child(3) {
    animation-delay: .3s;
}

/* Motion */
@keyframes splash-enter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes splash-wave-drift {
    to { transform: translate3d(1.5%, -1%, 0) scale(1.025); }
}

@keyframes splash-glow-drift-left {
    0% { transform: translate3d(0, 0, 0); }
    34% { transform: translate3d(34vw, 27vh, 0); }
    68% { transform: translate3d(68vw, -4vh, 0); }
    100% { transform: translate3d(84vw, 52vh, 0); }
}

@keyframes splash-glow-drift-right {
    0% { transform: translate3d(0, 0, 0); }
    31% { transform: translate3d(-42vw, -24vh, 0); }
    67% { transform: translate3d(-66vw, -55vh, 0); }
    100% { transform: translate3d(-79vw, -15vh, 0); }
}

@keyframes splash-wave-flow {
    to { stroke-dashoffset: -180; }
}

@keyframes splash-node-pulse {
    to { opacity: .38; r: 2.5; }
}

@keyframes splash-route-a {
    to { transform: translate3d(76vw, 14vh, 0) rotate(120deg); }
}

@keyframes splash-route-b {
    to { transform: translate3d(-72vw, 23vh, 0) rotate(-95deg); }
}

@keyframes splash-route-c {
    to { transform: translate3d(59vw, -38vh, 0) rotate(155deg); }
}

@keyframes splash-route-d {
    to { transform: translate3d(-64vw, -31vh, 0) rotate(-130deg); }
}

@keyframes splash-route-e {
    0% { transform: translate3d(0, 0, 0); }
    38% { transform: translate3d(24vw, -18vh, 0) rotate(75deg); }
    72% { transform: translate3d(-21vw, 13vh, 0) rotate(-45deg); }
    100% { transform: translate3d(56vw, 28vh, 0) rotate(135deg); }
}

@keyframes splash-equalizer {
    to { transform: scaleY(.35); opacity: .48; }
}

@keyframes splash-packet {
    0% {
        left: -5px;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 5px);
        opacity: 0;
    }
}

@keyframes splash-float {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes splash-bars {
    to {
        transform: scaleY(.45);
        transform-origin: bottom;
    }
}

@keyframes splash-dots {
    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

/* Responsive layout */
@media (max-width: 760px) {
    .splash {
        padding: 22px 18px;
    }

    .splash-brand {
        margin-bottom: 22px;
    }

    .splash-brand-logo {
        width: 145px;
    }

    .splash-story {
        margin: -28px 0 8px;
    }

    .splash-story p {
        margin-top: 6px;
        font-size: 12px;
    }

    .splash-scene {
        grid-template-columns: 1fr;
        gap: 0;
        width: min(100%, 360px);
        min-height: 0;
        margin: auto;
    }

    .splash-card {
        justify-self: center;
        width: min(100%, 260px);
    }

    .splash-ad {
        height: 190px;
        gap: 8px;
        padding: 12px;
    }

    .ad-art {
        height: 75px;
    }

    .splash-phone-wrap {
        height: 280px;
    }

    .splash-phone {
        width: 164px;
        height: 265px;
        border-width: 4px;
        border-radius: 29px;
        padding: 6px;
    }

    .phone-screen {
        border-radius: 19px;
    }

    .phone-top {
        height: 13px;
    }

    .chat-top {
        height: 34px;
    }

    .chat-body {
        gap: 6px;
        padding: 8px 6px;
    }

    .chat-bubble {
        min-height: 25px;
        padding: 5px 7px;
        font-size: 7px;
    }

    .chat-live {
        font-size: 6px;
    }

    .chat-input {
        height: 20px;
    }

    .splash-automation {
        height: 190px;
        padding: 12px;
        gap: 8px;
    }

    .splash-link {
        justify-self: center;
        width: 2px;
        height: 31px;
        margin: -1px 0;
        background: linear-gradient(rgba(13, 148, 136, .05), rgba(13, 148, 136, .38), rgba(13, 148, 136, .05));
    }

    .splash-link::before {
        top: -5px;
        left: -4px;
        animation-name: splash-packet-vertical;
    }

    @keyframes splash-packet-vertical {
        0% {
            top: -5px;
            opacity: 0;
        }

        12% {
            opacity: 1;
        }

        88% {
            opacity: 1;
        }

        100% {
            top: calc(100% - 5px);
            opacity: 0;
        }
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Keep the full splash reachable on short viewports. */
@media (max-height: 760px) {
    .splash {
        place-items: center;
        overflow-y: auto;
        padding-block: 16px;
    }

    .splash-content {
        margin: 0;
        padding-block: 10px;
    }

    .splash-brand {
        margin-bottom: 24px;
    }

    .splash-scene {
        min-height: 0;
    }

    .splash-phone-wrap {
        height: 320px;
    }

    .splash-phone {
        height: 300px;
    }
}

/* Stack the customer journey before the three-column layout gets cramped. */
@media (max-width: 820px) {
    .splash {
        place-items: start center;
        overflow-y: auto;
        padding: 18px 16px 24px;
    }

    .splash-content {
        width: min(100%, 480px);
        margin: 0;
        padding-block: 8px;
    }

    .splash-brand {
        margin-bottom: 22px;
    }

    .splash-brand-logo {
        width: min(145px, 42vw);
    }

    .splash-story {
        margin: -28px 0 12px;
    }

    .splash-story h1 {
        font-size: clamp(22px, 5vw, 30px);
    }

    .splash-story p {
        max-width: 38rem;
        margin-inline: auto;
        font-size: clamp(11px, 2.8vw, 13px);
    }

    .splash-scene {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: min(100%, 360px);
        min-height: 0;
        margin: 0 auto;
    }

    .splash-card {
        justify-self: center;
        width: min(100%, 280px);
    }

    .splash-link {
        justify-self: center;
        width: 2px;
        height: 24px;
        margin: -1px 0;
        background: linear-gradient(rgba(13, 148, 136, .05), rgba(13, 148, 136, .38), rgba(13, 148, 136, .05));
    }

    .splash-link::before {
        top: -5px;
        left: -4px;
        animation-name: splash-packet-vertical;
    }

    .splash-phone-wrap {
        height: 260px;
    }

    .splash-phone {
        width: 156px;
        height: 245px;
    }

    .splash-ad {
        height: 178px;
        gap: 8px;
        padding: 11px;
    }

    .ad-art {
        height: 62px;
    }

    .splash-automation {
        height: 172px;
        gap: 8px;
        padding: 11px;
    }

    .splash-loader {
        margin-top: 20px;
    }
}

/* Compact phone sizing keeps the complete sequence close to one screen. */
@media (max-width: 480px) {
    .splash {
        padding: 12px 12px 18px;
    }

    .splash-content {
        width: 100%;
        padding-block: 4px;
    }

    .splash-brand {
        margin-bottom: 18px;
    }

    .splash-brand-logo {
        width: min(126px, 38vw);
    }

    .splash-story {
        margin: -25px 0 10px;
    }

    .splash-story h1 {
        font-size: clamp(21px, 6vw, 26px);
        letter-spacing: -.7px;
    }

    .splash-story p {
        max-width: 340px;
        font-size: 11px;
        line-height: 1.4;
    }

    .splash-card {
        width: min(100%, 252px);
    }

    .splash-ad {
        height: 158px;
        padding: 9px 11px;
    }

    .ad-art {
        height: 50px;
    }

    .ad-lines {
        gap: 5px;
    }

    .ad-button {
        height: 22px;
        font-size: 8px;
    }

    .splash-link {
        height: 17px;
    }

    .splash-phone-wrap {
        height: 224px;
    }

    .splash-phone {
        width: 142px;
        height: 214px;
        padding: 5px;
        border-width: 4px;
        border-radius: 26px;
    }

    .phone-screen {
        border-radius: 18px;
    }

    .phone-top {
        height: 10px;
    }

    .chat-top {
        height: 30px;
        padding-inline: 8px;
    }

    .chat-avatar {
        width: 19px;
        height: 19px;
    }

    .chat-body {
        gap: 4px;
        padding: 6px 5px;
    }

    .chat-bubble {
        min-height: 22px;
        padding: 4px 6px;
        font-size: 6.5px;
    }

    .chat-live {
        font-size: 5.5px;
    }

    .chat-input {
        height: 16px;
        margin-bottom: 6px;
    }

    .splash-automation {
        height: 150px;
        padding: 9px;
        gap: 6px;
    }

    .flow-node {
        width: 46px;
        height: 42px;
    }

    .flow-node.branch {
        width: 37px;
        height: 35px;
    }

    .flow-result {
        height: 42px;
        gap: 6px;
    }

    .flow-result-label {
        font-size: 8px;
    }

    .result-bars {
        gap: 3px;
        transform: scale(.85);
    }

    .splash-loader {
        margin-top: 14px;
    }
}

/* A compact horizontal scene works better on tablets in landscape. */
@media (min-width: 821px) and (max-height: 600px) {
    .splash {
        place-items: start center;
        overflow-y: auto;
        padding-block: 10px;
    }

    .splash-content {
        padding-block: 4px;
    }

    .splash-brand {
        margin-bottom: 16px;
    }

    .splash-brand-logo {
        width: 112px;
    }

    .splash-story {
        margin-top: -20px;
    }

    .splash-story h1 {
        font-size: 23px;
    }

    .splash-story p {
        margin-top: 4px;
        font-size: 11px;
    }

    .splash-scene {
        min-height: 0;
    }

    .splash-card {
        height: 250px;
    }

    .splash-ad,
    .splash-automation {
        height: 190px;
        padding: 10px;
        gap: 8px;
    }

    .ad-art {
        height: 75px;
    }

    .splash-phone-wrap {
        height: 250px;
    }

    .splash-phone {
        width: 150px;
        height: 235px;
        padding: 6px;
    }

    .phone-screen {
        border-radius: 19px;
    }

    .chat-top {
        height: 34px;
    }

    .chat-body {
        gap: 6px;
        padding: 8px 6px;
    }

    .chat-bubble {
        min-height: 24px;
        padding: 5px 7px;
        font-size: 7px;
    }

    .chat-input {
        height: 18px;
        margin-bottom: 6px;
    }

    .splash-loader {
        margin-top: 10px;
    }
}

@keyframes splash-packet-vertical {
    0% { top: -5px; opacity: 0; }
    12%, 88% { opacity: 1; }
    100% { top: calc(100% - 5px); opacity: 0; }
}

/* Emsage feature ticker and chat identity */
.chat-avatar {
    display: block;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, .12);
}

.chat-contact {
    width: auto;
    height: auto;
    border-radius: 0;
    color: #fff;
    background: transparent;
    font: 700 12px/1.2 'Quicksand', sans-serif;
    letter-spacing: .01em;
}

.chat-contact::after {
    display: none;
}

.splash-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    margin: clamp(20px, 4vh, 34px) auto 0;
    text-align: center;
}

.splash-loader .splash-feature-text {
    display: inline-block;
    width: fit-content;
    max-width: min(90vw, 680px);
    height: auto;
    padding: 10px 17px;
    border: 1px solid rgba(79, 224, 192, .2);
    border-radius: 99px;
    color: #b5f6e4;
    background: rgba(21, 111, 94, .16);
    font: 700 clamp(15px, 2vw, 20px)/1.25 'Quicksand', sans-serif;
    letter-spacing: .01em;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 18px rgba(45, 212, 191, .08);
    transition: opacity .28s ease, transform .28s ease, color .35s ease, box-shadow .4s ease, text-shadow .4s ease;
}

.splash-loader .splash-feature-text.is-changing {
    opacity: 0;
    transform: translateY(7px);
}

.splash-loader .splash-feature-text.is-glowing {
    color: #e2fff6;
    border-color: rgba(79, 224, 192, .5);
    box-shadow: 0 0 12px rgba(45, 212, 191, .22), 0 0 34px rgba(45, 212, 191, .15), inset 0 0 15px rgba(45, 212, 191, .08);
    text-shadow: 0 0 14px rgba(91, 255, 215, .55);
}

@media (max-width: 820px) {
    .splash-loader {
        min-height: 48px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .splash-loader {
        min-height: 42px;
        margin-top: 8px;
    }

    .splash-loader .splash-feature-text {
        padding: 8px 13px;
        font-size: 14px;
    }
}

.splash-loader {
    min-height: 32px;
    margin-top: 18px;
}

.splash-loader .splash-feature-text {
    position: relative;
    width: fit-content;
    max-width: min(90vw, 680px);
    padding: 3px 0;
    border: 0;
    border-radius: 0;
    color: #b8d1c9;
    background: transparent;
    box-shadow: none;
    font: 500 13px/1.5 'Quicksand', sans-serif;
    letter-spacing: .025em;
    text-shadow: none;
    transform: none;
}

.splash-loader .splash-feature-text::after {
    display: inline-block;
    height: 1em;
    margin-left: 3px;
    border-right: 1px solid #8fb7a9;
    content: "";
    vertical-align: -2px;
    animation: splash-cursor .8s steps(2, start) infinite;
}

.splash-loader .splash-feature-text.is-changing,
.splash-loader .splash-feature-text.is-glowing {
    opacity: 1;
    color: #b8d1c9;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
}

@keyframes splash-cursor {
    to { visibility: hidden; }
}

@media (max-width: 480px) {
    .splash-loader { min-height: 28px; margin-top: 9px; }
    .splash-loader .splash-feature-text { font-size: 12px; }
}

/* Use the available width on small tablets; reserve the vertical journey for phones. */
@media (min-width: 601px) and (max-width: 820px) {
    .splash {
        place-items: center;
        overflow-y: auto;
        padding: 22px 16px;
    }

    .splash-content {
        width: min(100%, 760px);
        margin: auto;
        padding-block: 8px;
    }

    .splash-brand { margin-bottom: 18px; }
    .splash-brand-logo { width: 126px; }
    .splash-story { margin: -24px 0 16px; }

    .splash-scene {
        grid-template-columns: minmax(0, 1fr) 22px 156px 22px minmax(0, 1fr);
        align-items: center;
        gap: 0;
        width: 100%;
        min-height: 250px;
    }

    .splash-card {
        width: 100%;
        height: 250px;
        padding: 10px;
        border-radius: 20px;
    }

    .splash-ad,
    .splash-automation {
        height: 230px;
        gap: 8px;
        padding: 10px;
    }

    .splash-ad {
        grid-template-rows: 16px minmax(0, 1fr) auto 22px;
        align-content: stretch;
    }

    .ad-art {
        height: auto;
        min-height: 58px;
    }

    .ad-button { height: 22px; font-size: 8px; }

    .splash-link {
        justify-self: stretch;
        width: auto;
        height: 2px;
        margin: 0;
        background: linear-gradient(90deg, rgba(13,148,136,.08), rgba(13,148,136,.5), rgba(13,148,136,.08));
    }

    .splash-link::before {
        top: -4px;
        left: -5px;
        animation-name: splash-packet;
    }

    .splash-phone-wrap { height: 250px; }
    .splash-phone { width: 150px; height: 235px; padding: 6px; }
    .phone-screen { border-radius: 19px; }
    .chat-top { height: 34px; }
    .chat-body { gap: 6px; padding: 8px 6px; }
    .chat-bubble { min-height: 24px; padding: 5px 7px; font-size: 7px; }
    .chat-input { height: 18px; margin-bottom: 6px; }

    .flow-node { width: 42px; height: 40px; }
    .flow-node.branch { width: 35px; height: 34px; }
    .flow-result { gap: 5px; height: 40px; }
    .result-bars { gap: 2px; transform: scale(.78); }

    .splash-loader {
        min-height: 34px;
        margin-top: 12px;
        padding-inline: 12px;
    }

    .splash-loader .splash-feature-text {
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 600px) {
    .splash {
        place-items: center;
        overflow: hidden;
        padding: 14px 14px calc(58px + env(safe-area-inset-bottom));
    }

    .splash-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .splash-scene {
        position: relative;
        isolation: isolate;
        display: block;
        width: min(100%, 340px);
        height: min(48dvh, 330px);
        min-height: 220px;
        margin: 0 auto;
    }

    .splash-scene > .splash-ad,
    .splash-scene > .splash-phone-wrap,
    .splash-scene > .splash-automation {
        position: absolute;
        top: 50%;
        left: 50%;
        display: grid;
        width: min(100%, 280px);
        margin: 0;
        transform: translate(-50%, -50%);
        animation: splash-mobile-stage 9s ease-in-out infinite both;
        animation-play-state: paused;
    }

    .splash.is-visible .splash-scene > .splash-ad,
    .splash.is-visible .splash-scene > .splash-phone-wrap,
    .splash.is-visible .splash-scene > .splash-automation { animation-play-state: running; }

    .splash-scene > .splash-ad { animation-delay: 0s; }
    .splash-scene > .splash-phone-wrap {
        height: 224px;
        animation-delay: -6s;
    }
    .splash-scene > .splash-automation { animation-delay: -3s; }

    .splash-scene > .splash-ad,
    .splash-scene > .splash-automation {
        border-color: rgba(93, 202, 177, .24);
        background: linear-gradient(150deg, rgba(13, 44, 38, .96), rgba(8, 27, 24, .94));
        box-shadow: 0 22px 60px rgba(0, 0, 0, .32), 0 0 30px rgba(13, 148, 136, .07), inset 0 1px rgba(255,255,255,.06);
        backdrop-filter: blur(18px);
    }

    .splash-scene > .splash-ad {
        animation-name: splash-mobile-stage, splash-mobile-ad-glow;
        animation-duration: 9s, 3.6s;
        animation-timing-function: ease-in-out, ease-in-out;
        animation-iteration-count: infinite, infinite;
        animation-direction: normal, alternate;
        animation-delay: 0s, 0s;
    }

    .splash-scene > .splash-phone-wrap { filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .24)); }

    .splash-scene > .splash-automation {
        animation-name: splash-mobile-stage, splash-mobile-flow-glow;
        animation-duration: 9s, 2.8s;
        animation-timing-function: ease-in-out, ease-in-out;
        animation-iteration-count: infinite, infinite;
        animation-direction: normal, alternate;
        animation-delay: -3s, 0s;
    }

    .splash-scene > .splash-link { display: none; }

    .splash-ad {
        height: 170px;
        gap: 8px;
        padding: 11px;
    }


    .splash-phone {
        width: 150px;
        height: 224px;
        padding: 5px;
        border-width: 4px;
        border-radius: 27px;
        animation: splash-mobile-phone-float 2.8s ease-in-out infinite alternate;
    }

    .phone-screen { border-radius: 19px; }
    .phone-top { height: 11px; }
    .chat-top { height: 31px; }
    .chat-body { gap: 5px; padding: 7px 6px; }
    .chat-bubble { min-height: 22px; padding: 4px 6px; font-size: 6.5px; }
    .chat-input { height: 17px; margin-bottom: 6px; }

    .splash-automation {
        height: 160px;
        gap: 7px;
        padding: 10px;
    }

    .splash-loader {
        position: fixed;
        z-index: 2;
        right: 12px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 12px;
        width: auto;
        min-height: 38px;
        margin: 0;
        padding: 0 8px;
    }

    .splash-loader .splash-feature-text {
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .splash-loader {
        justify-content: center;
    }
}

@keyframes splash-mobile-stage {
    0%, 20% {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, -50%) scale(.96);
    }
    25% {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    32%, 100% {
        visibility: hidden;
        opacity: 0;
        transform: translate(-50%, -47%) scale(.93);
    }
}

@keyframes splash-mobile-phone-float {
    to { transform: translateY(-5px); }
}

@keyframes splash-mobile-ad-glow {
    to { box-shadow: 0 24px 66px rgba(0,0,0,.38), 0 0 40px rgba(45,212,191,.13), inset 0 1px rgba(255,255,255,.08); }
}

@keyframes splash-mobile-flow-glow {
    to { box-shadow: 0 24px 66px rgba(0,0,0,.38), 0 0 34px rgba(45,212,191,.12), inset 0 1px rgba(255,255,255,.08); }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
    .splash {
        place-items: start center;
        overflow-y: auto;
    }

    .splash-content {
        display: flex;
        height: auto;
        min-height: 100%;
        flex-direction: column;
        justify-content: center;
        padding-block: 16px 64px;
    }

    .splash-scene {
        display: flex;
        height: auto;
        min-height: 0;
        flex-direction: column;
        gap: 8px;
    }

    .splash-scene > .splash-ad,
    .splash-scene > .splash-phone-wrap,
    .splash-scene > .splash-automation {
        position: relative;
        inset: auto;
        transform: none;
        animation: none !important;
        visibility: visible;
        opacity: 1;
    }

    .splash-phone { animation: none; }

    .splash-loader {
        position: sticky;
        right: auto;
        bottom: 8px;
        left: auto;
        margin-top: 10px;
    }
}

/* Mobile splash focuses on the WhatsApp conversation preview. */
@media (max-width: 600px) {
    .splash-waves { opacity: .38; }
    .splash-orbit { width: 34px; height: 34px; font-size: 14px; }
    .splash-orbit-chat { top: 13%; left: 8%; }
    .splash-orbit-whatsapp { top: 13%; right: 8%; }
    .splash-orbit-flow { right: 7%; bottom: 18%; }
    .splash-orbit-send { bottom: 18%; left: 7%; }
    .splash-signal { padding: 6px 8px; font-size: 8px; }
    .splash-signal-delivered { top: 31%; left: 4%; }
    .splash-signal-automation { top: 32%; right: 4%; }
    .splash-signal-live { right: 16%; bottom: 12%; }
    .splash-spark-two { right: 20%; }
    .splash-spark-three { right: 18%; bottom: 25%; }

    .splash-scene > .splash-ad,
    .splash-scene > .splash-automation,
    .splash-scene > .splash-link {
        display: none !important;
        animation: none !important;
    }

    .splash-scene > .splash-phone-wrap {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: none !important;
        width: 100%;
        height: clamp(270px, 42dvh, 350px);
    }

    .splash-phone {
        width: clamp(174px, 49vw, 212px);
        height: min(100%, 330px);
        min-height: 0;
        padding: 7px;
        border-width: 5px;
        border-radius: 34px;
    }

    .phone-screen { border-radius: 25px; }
}

/* Keep the full journey balanced on short, wide screens. */
@media (min-width: 821px) and (max-height: 700px) {
    .splash {
        padding: 14px 24px;
    }

    .splash-content {
        width: min(100%, 980px);
        padding-block: 0;
    }

    .splash-scene {
        grid-template-columns: minmax(160px, 1fr) 48px minmax(190px, .9fr) 48px minmax(160px, 1fr);
        min-height: 290px;
    }

    .splash-card { height: 250px; }

    .splash-ad,
    .splash-automation {
        height: 198px;
        gap: 9px;
        padding: 12px;
    }

    .splash-phone-wrap { height: 285px; }
    .splash-phone { width: 180px; height: 270px; padding: 6px; }
    .phone-screen { border-radius: 20px; }
    .chat-top { height: 35px; }
    .chat-body { gap: 6px; padding: 8px 6px; }
    .chat-bubble { min-height: 24px; padding: 5px 7px; font-size: 7px; }
    .chat-input { height: 18px; margin-bottom: 6px; }
    .splash-loader { min-height: 28px; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-loader .splash-feature-text::after { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-loader .splash-feature-text {
        transition: none;
    }
}
