/* =====================================================================
   R3Chat: página de novidade (resources/views/site/soon.blade.php)
   Independente do tema do painel e do site.css. Noturno, com as cores do logo:
   verde R3, rosa Chat e os três pontos verde/ciano/azul como assinatura.
   ===================================================================== */

@font-face {
    font-family: 'Bricolage';
    src: url('/fonts/site/bricolage-latin.woff2') format('woff2');
    font-weight: 500 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Figtree';
    src: url('/fonts/site/figtree-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0b0f17;
    --ink-2: #111827;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.18);
    --text: #eef2f7;
    --muted: #a8b3c5;
    --green: #5ad35a;
    --pink: #ff5aa8;
    --cyan: #2ad4d8;
    --blue: #3b8cf0;
    --display: 'Bricolage', 'Trebuchet MS', sans-serif;
    --body: 'Figtree', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.soon {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 50;
    background: var(--green); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- fundo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg__blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
    animation: drift 22s ease-in-out infinite alternate;
}
.bg__blob--green { width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, rgba(90, 211, 90, .75), transparent 65%); }
.bg__blob--pink  { width: 52vmax; height: 52vmax; right: -18vmax; top: 6vmax; background: radial-gradient(circle, rgba(255, 90, 168, .6), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.bg__blob--blue  { width: 40vmax; height: 40vmax; left: 22vw; bottom: -24vmax; background: radial-gradient(circle, rgba(59, 140, 240, .55), transparent 65%); animation-duration: 30s; animation-delay: -12s; }
.bg__grid {
    position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse at 50% 35%, #000 0%, transparent 72%);
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); }
}

/* ---------- topo ---------- */
.top, .stage, .foot { position: relative; z-index: 1; width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0 0; gap: 1rem; }
.top__logo img { height: 48px; width: auto; }
.top__login {
    text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text);
    padding: .6rem 1.1rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04);
    transition: border-color .18s ease, background .18s ease;
}
.top__login:hover { border-color: var(--text); background: rgba(255, 255, 255, .09); }

/* ---------- conteúdo ---------- */
.stage {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding: clamp(2rem, 6vh, 4.5rem) 0;
}

.badge {
    display: inline-flex; align-items: center; margin: 0 0 1.4rem;
    padding: .45rem 1rem .45rem .8rem; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
    font-size: .88rem; font-weight: 600; letter-spacing: .02em; color: var(--text);
}
.dots { display: inline-flex; gap: 4px; align-items: center; margin-right: .6rem; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; animation: blink 1.4s infinite ease-in-out; }
.dots i:nth-child(1) { background: var(--green); }
.dots i:nth-child(2) { background: var(--cyan); animation-delay: .18s; }
.dots i:nth-child(3) { background: var(--blue); animation-delay: .36s; }
@keyframes blink { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.title {
    margin: 0 0 1.3rem;
    font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
    font-size: clamp(2.2rem, 5.4vw, 4.1rem);
}
.title em {
    font-style: normal;
    background: linear-gradient(95deg, var(--green) 0%, var(--cyan) 38%, var(--pink) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 2rem; max-width: 40rem; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }

.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
    font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--go { background: var(--green); color: var(--ink); box-shadow: 0 10px 32px -10px rgba(90, 211, 90, .75); }
.btn--go:hover { background: #7be27b; transform: translateY(-2px); }
.btn--ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .09); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li {
    padding: .4rem .85rem; border-radius: 999px; font-size: .9rem; color: var(--text);
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}

/* ---------- celular de demonstração ---------- */
.demo { position: relative; display: flex; justify-content: center; padding: 1.5rem 0; }
.phone {
    width: min(380px, 100%);
    border-radius: 30px; padding: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: rotate(2.2deg);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: rotate(2.2deg) translateY(0); } 50% { transform: rotate(2.2deg) translateY(-10px); } }

.phone__bar { display: flex; align-items: center; gap: .7rem; padding: .35rem .35rem 1rem; border-bottom: 1px solid var(--line); }
.phone__avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font: 800 1.05rem var(--display); color: var(--ink); background: linear-gradient(135deg, var(--green), var(--cyan));
}
.phone__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.phone__who b { font-size: .98rem; }
.phone__who small { color: var(--muted); font-size: .78rem; }
.phone__live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }
.phone__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(90, 211, 90, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(90, 211, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 211, 90, 0); } }

.phone__chat { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem .2rem .3rem; }
.msg { margin: 0; padding: .7rem .95rem; border-radius: 16px; max-width: 86%; font-size: .93rem; line-height: 1.4; }
.msg--in  { align-self: flex-start; background: rgba(255, 255, 255, .09); border-bottom-left-radius: 5px; }
.msg--out { align-self: flex-end; background: linear-gradient(135deg, #2f9e44, #3fbf3f); color: #04120a; font-weight: 500; border-bottom-right-radius: 5px; }
.msg--typing { padding: .75rem 1rem; background: rgba(255, 255, 255, .09); color: var(--text); }
.msg--typing .dots { margin: 0; }
.note {
    align-self: center; margin: .2rem 0; padding: .3rem .8rem; border-radius: 999px; font-size: .76rem; color: var(--muted);
    background: rgba(251, 191, 36, .10); border: 1px solid rgba(251, 191, 36, .28);
}
.note .dots { margin-right: .45rem; }

.float {
    position: absolute; padding: .7rem 1rem; border-radius: 14px; font-size: .86rem; line-height: 1.3; font-weight: 600;
    background: rgba(17, 24, 39, .88); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    animation: float2 6s ease-in-out infinite;
}
.float b { font: 800 1.5rem var(--display); color: var(--pink); margin-right: .15rem; }
.float--a { left: -7%; top: -9%; }
.float--b { right: -3%; bottom: -3%; animation-delay: -3s; display: flex; align-items: center; gap: .6rem; }
.float__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); flex: none; }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- rodapé ---------- */
.foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
    padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}
.foot a { color: var(--muted); text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }

/* ---------- telas menores ---------- */
@media (max-width: 920px) {
    .stage { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
    .demo { padding-bottom: 2.5rem; }
    .phone { transform: none; animation: none; }
    .float--a { left: 0; top: -4%; }
    .float--b { right: 0; bottom: -3%; }
}
@media (max-width: 520px) {
    .top__logo img { height: 40px; }
    .top__login { font-size: .86rem; padding: .5rem .85rem; }
    .actions .btn { width: 100%; }
    .float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
