/* LabPeptídeos — tokens e estilos complementares ao Tailwind */

:root {
    --navy: #0E2740;
    --blue: #1769AA;
    --green: #1E9E5A;
    --green-dark: #14713C;
    --mist: #F4F8F6;
    --ink: #22303F;
}

::selection {
    background-color: var(--green);
    color: #FFFFFF;
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Textura "papel milimetrado de laboratório" — assinatura visual da marca */
.hero-grid {
    background-image:
        linear-gradient(to right, rgba(14, 39, 64, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 39, 64, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 78%);
}

.hero-grid-dark {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* Barra de progresso (meta de envio das campanhas) */
.progress-track {
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    background: linear-gradient(180deg, #e3ebe5, #eef4ef);
    box-shadow: inset 0 1px 2px rgba(14, 39, 64, 0.08);
}
.progress-fill {
    position: relative;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14713c 0%, #1e9e5a 55%, #2cc36b 100%);
    box-shadow: 0 0 10px rgba(30, 158, 90, 0.4);
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 80%
    );
    animation: progress-shimmer 2.4s linear infinite;
}
@keyframes progress-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .progress-fill::after { animation: none; }
    .progress-fill { transition: none; }
}

/* Faixa marquee */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee {
    animation: marquee 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; }
    .reveal  { opacity: 1; transform: none; }
}

/* Skeleton de carregamento */
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #EDF2F0 25%, #F8FBFA 50%, #EDF2F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

/* Toasts */
@keyframes toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}

.toast {
    animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-leaving {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s, transform 0.3s;
}

/* Modal */
@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.modal-panel-in {
    animation: modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Revelação suave ao rolar */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

img {
    -webkit-user-drag: none;
}
