
/* ===================================
   MAAH - LUXURY GIFT EXPERIENCE
   =================================== */

:root {
    --background: #15090f;
    --wine: #702438;
    --gold: #d4a295;
    --cream: #f7e2d9;
    --muted: #c5a5a5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 22px;

    background:
        radial-gradient(
            ellipse at 50% 15%,
            rgba(123, 37, 61, .38),
            transparent 48%
        ),
        radial-gradient(
            ellipse at 90% 80%,
            rgba(92, 27, 49, .20),
            transparent 55%
        ),
        #15090f;

    color: var(--cream);

    font-family: Arial, Helvetica, sans-serif;

    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
}

button,
a,
input {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ===================================
   PARTÍCULAS DO FUNDO
   =================================== */

.ambient {
    position: fixed;
    inset: 0;

    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient i {
    position: absolute;

    width: 3px;
    height: 3px;

    background: #e4b8a6;
    border-radius: 50%;

    box-shadow: 0 0 9px #d4a295;

    animation: ambientFloat 5s ease-in-out infinite;
}

@keyframes ambientFloat {
    0%, 100% {
        opacity: .15;
        transform: translateY(0);
    }

    50% {
        opacity: .65;
        transform: translateY(-12px);
    }
}

/* ===================================
   ESTRUTURA PRINCIPAL
   =================================== */

.landing {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 400px;

    text-align: center;

    animation: entrance .65s ease both;
}

@keyframes entrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   LOGOTIPO
   =================================== */

.brand {
    font-family: Georgia, serif;

    font-size: 46px;
    font-weight: 400;

    letter-spacing: 11px;
    padding-left: 11px;

    margin-bottom: 25px;

    color: var(--gold);

    background: linear-gradient(
        110deg,
        #b77d70,
        #f5d6c2,
        #d4a295,
        #b77d70
    );

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    color: var(--gold);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2.2px;
    line-height: 1.7;
}

h1 {
    font-family: Georgia, serif;

    font-size: clamp(27px, 7vw, 35px);
    font-weight: 400;
    line-height: 1.3;

    color: var(--cream);

    margin-top: 18px;
}

/* ===================================
   PRESENTE 3D
   =================================== */

.gift-screen {
    position: relative;
}

.gift-touch {
    display: block;

    width: 100%;
    padding: 0;

    background: transparent;
    border: none;

    border-radius: 20px;

    color: inherit;
}

.gift-scene {
    position: relative;

    width: 100%;
    max-width: 320px;

    aspect-ratio: 320 / 280;

    margin: 0 auto;

    isolation: isolate;
}

.gift-halo {
    position: absolute;
    inset: 8% 0 0;

    z-index: -1;

    background: radial-gradient(
        ellipse,
        rgba(165, 57, 87, .40),
        rgba(112, 36, 56, .12) 45%,
        transparent 72%
    );

    animation: haloPulse 4s ease-in-out infinite;
}

@keyframes haloPulse {
    0%, 100% {
        opacity: .65;
        transform: scale(.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* SOMBRA */

.gift-shadow {
    position: absolute;

    width: 58%;
    height: 6%;

    bottom: 9%;
    left: 21%;

    background: rgba(0, 0, 0, .65);

    border-radius: 50%;
    filter: blur(7px);

    animation: shadowFloat 3.5s ease-in-out infinite;
}

@keyframes shadowFloat {
    0%, 100% {
        transform: scale(1);
        opacity: .65;
    }

    50% {
        transform: scale(.84);
        opacity: .35;
    }
}

/* FLUTUAÇÃO SUAVE */

.gift-art {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    overflow: visible;

    filter: drop-shadow(
        0 8px 15px rgba(0, 0, 0, .25)
    );

    animation: giftFloat 3.5s ease-in-out infinite;
}

@keyframes giftFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.gift-lid {
    transform-box: fill-box;
    transform-origin: center bottom;
}

.gift-inner-light {
    opacity: 0;

    transform-box: fill-box;
    transform-origin: center;
}

/* ===================================
   ESTRELAS
   =================================== */

.gift-stars {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.gift-stars span {
    position: absolute;

    color: #edc5ae;
    font-size: 12px;

    text-shadow: 0 0 10px #d4a295;

    animation: starTwinkle 2.8s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: .2;
        transform: scale(.65);
    }

    50% {
        opacity: .9;
        transform: scale(1.1);
    }
}

/* ===================================
   ABERTURA DO PRESENTE
   =================================== */

.gift-scene.opening .gift-art {
    animation-play-state: paused;
}

.gift-scene.opening .gift-lid {
    animation: lidOpen .85s cubic-bezier(
        .22, .61, .36, 1
    ) forwards;
}

@keyframes lidOpen {
    0% {
        transform: translate(0, 0) rotate(0);
        opacity: 1;
    }

    20% {
        transform: translate(0, -8px) rotate(-3deg);
        opacity: 1;
    }

    65% {
        transform: translate(18px, -75px) rotate(17deg);
        opacity: 1;
    }

    100% {
        transform: translate(30px, -100px) rotate(24deg);
        opacity: 0;
    }
}

.gift-scene.opening .gift-inner-light {
    animation: innerGlow .85s ease-out forwards;
}

@keyframes innerGlow {
    0% {
        opacity: 0;
        transform: scale(.3);
    }

    45% {
        opacity: .85;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* PARTÍCULAS DA ABERTURA */

.gift-particles {
    position: absolute;
    inset: 0;

    pointer-events: none;
    z-index: 2;
}

.gift-particles span {
    position: absolute;

    top: 42%;
    left: 50%;

    width: 5px;
    height: 5px;

    background: #ffe1c5;

    border-radius: 50%;

    box-shadow: 0 0 8px #d4a295;

    opacity: 0;
}

.opening .gift-particles span {
    animation: burst .65s ease-out forwards;
    animation-delay: var(--delay);
}

@keyframes burst {
    0% {
        opacity: 0;

        transform:
            rotate(var(--angle))
            translateX(0);
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;

        transform:
            rotate(var(--angle))
            translateX(var(--distance))
            scale(.3);
    }
}

/* TRANSIÇÃO ENTRE AS TELAS */

.gift-screen.leaving {
    animation: giftExit .9s ease forwards;
}

@keyframes giftExit {
    0%, 65% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(.97);
    }
}

.reveal-screen {
    animation: revealEntrance .65s ease both;
}

@keyframes revealEntrance {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===================================
   BOTÃO ABRIR PRESENTE
   =================================== */

.open-gift {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
    min-height: 61px;

    padding: 16px;

    border: 1px solid var(--gold);
    border-radius: 15px;

    background: linear-gradient(
        115deg,
        #943b52,
        #702438,
        #481724
    );

    color: var(--cream);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.6px;

    animation: vipGlow 4s ease-in-out infinite;

    transition: transform .2s ease;
}

.open-gift svg {
    width: 23px;
    height: 23px;

    color: var(--gold);
}

.open-gift:active {
    transform: scale(.97);
}

.open-gift:disabled,
.gift-touch:disabled {
    cursor: default;
}

.gift-hint {
    margin-top: 15px;

    color: #b09196;

    font-size: 11px;
    letter-spacing: 1px;
}

/* ===================================
   FOTO DE PERFIL
   =================================== */

.portrait {
    position: relative;

    width: 148px;
    height: 148px;

    margin: 0 auto 22px;
    padding: 4px;

    border: 1px solid #e2b4a2;
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #e2b4a2,
        #632539,
        #c58c7e
    );

    box-shadow:
        0 0 20px rgba(212, 162, 149, .22),
        0 0 50px rgba(112, 36, 56, .4);

    overflow: hidden;
}

.portrait img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 30%;

    border-radius: 50%;
}

.portrait span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #302027;

    border-radius: 50%;

    font-family: Georgia, serif;
    font-size: 60px;

    color: var(--gold);
}

#revealTitle {
    font-size: clamp(25px, 7vw, 32px);
}

#revealTitle:focus {
    outline: none;
}

.intro-text {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;

    margin: 10px 0 25px;
}

/* ===================================
   BOTÕES VIP E PRIVACY
   =================================== */

nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 15px;

    width: 100%;
    min-height: 80px;

    padding: 17px 19px;

    border: 1px solid var(--gold);
    border-radius: 17px;

    color: var(--cream);

    text-decoration: none;
    text-align: left;

    transition:
        transform .2s ease,
        box-shadow .3s ease;
}

.premium.vip {
    background: linear-gradient(
        115deg,
        #843047,
        #702438,
        #481724
    );

    animation: vipGlow 4s ease-in-out infinite;
}

.premium.privacy {
    background: linear-gradient(
        115deg,
        #3b2931,
        #302027,
        #25151e
    );
}

.symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--gold);
}

.symbol svg {
    width: 27px;
    height: 27px;
}

.button-copy {
    display: flex;
    flex-direction: column;

    flex: 1;
    gap: 6px;
}

.button-copy strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
}

.button-copy small {
    font-size: 12px;
    line-height: 1.4;

    color: #e4c6bd;
}

.arrow {
    color: var(--gold);
    font-size: 24px;
}

/* REFLEXO LUMINOSO */

.premium::before,
.open-gift::before {
    content: '';

    position: absolute;

    top: 0;
    left: -100%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 225, 210, .18),
        transparent
    );

    transform: skewX(-20deg);

    animation: shine 6s infinite;

    pointer-events: none;
}

.privacy::before {
    animation-delay: 2s;
}

@keyframes shine {
    0%, 65% {
        left: -100%;
    }

    100% {
        left: 160%;
    }
}

@keyframes vipGlow {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(137, 46, 69, .2);
    }

    50% {
        box-shadow:
            0 0 28px rgba(185, 74, 99, .35);
    }
}

@media (hover: hover) {
    .premium:hover,
    .open-gift:hover {
        transform: translateY(-3px);
    }
}

.premium:active {
    transform: scale(.97);
}

/* ===================================
   BOTÃO COPIAR LINK
   =================================== */

.external {
    margin-top: 23px;
    padding-top: 18px;

    border-top: 1px solid
        rgba(212, 162, 149, .17);
}

.utility-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;
    min-height: 52px;

    padding: 12px 16px;

    background: linear-gradient(
        145deg,
        #352029,
        #211016
    );

    color: #e4b8a6;

    border: 1px solid #a77b70;
    border-radius: 12px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: .4px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.utility-button svg {
    width: 20px;
    height: 20px;
}

.utility-button:active {
    transform: scale(.97);
}

.utility-button.copied {
    background: #1c2721;

    color: #a7d5ad;
    border-color: #73977a;
}

.feedback {
    margin-top: 10px;

    color: #a7d5ad;

    font-size: 12px;
    line-height: 1.5;
}

.feedback:empty {
    display: none;
}

.manual-copy {
    width: 100%;

    margin-top: 12px;
    padding: 12px;

    border: 1px solid var(--gold);
    border-radius: 8px;

    background: #211219;
    color: var(--cream);

    font-size: 16px;

    user-select: text;
}

/* ===================================
   RODAPÉ
   =================================== */

footer {
    margin-top: 26px;

    color: #b09196;

    font-size: 10px;
    letter-spacing: 1.5px;
}

/* ===================================
   CELULARES
   =================================== */

@media (max-width: 480px) {

    body {
        padding:
            max(24px, env(safe-area-inset-top))
            20px
            max(22px, env(safe-area-inset-bottom));
    }

    .brand {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .gift-scene {
        max-width: 290px;
    }

    .portrait {
        width: 138px;
        height: 138px;
    }

    .premium {
        min-height: 76px;
        padding: 15px;
        gap: 13px;
    }

    .button-copy strong {
        font-size: 12px;
    }
}

@media (max-width: 350px) {

    body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .gift-scene {
        max-width: 250px;
    }

    .portrait {
        width: 122px;
        height: 122px;
    }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
