﻿
@property --a {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false
}

:root {
    --navy: #022F5F;
    --yellow: #FDCB00;
    --ease: cubic-bezier(.22,1,.36,1);
    --error: #ff8f8f;
    --ok: #5ee6a6
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter',sans-serif;
    color: #fff;
    background: #020b18;
    overflow-x: hidden
}

/* ================= BACKGROUND ================= */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(900px 600px at 30% 60%,rgba(11,74,140,.55),transparent 65%),radial-gradient(700px 500px at 85% 20%,rgba(2,47,95,.6),transparent 70%),#020b18
}

.grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg,transparent 25%,#000 80%);
    mask-image: linear-gradient(180deg,transparent 25%,#000 80%)
}

#fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

/* ================= LAYOUT ================= */
.app {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 100vh;
   /* max-width: 1440px;*/
    margin: 0 auto;
    padding: clamp(20px,4vh,48px) clamp(24px,5vw,96px) clamp(80px,12vh,120px);
    gap: 40px;
    align-items: center
}

.left {
    align-self: start;
    padding-top: clamp(10px,5vh,60px);
    pointer-events: none
}

.up {
    opacity: 0;
    animation: up .8s var(--ease) forwards
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(8px)
}

    .tag i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--yellow);
        box-shadow: 0 0 12px var(--yellow)
    }

h1 {
    margin-top: clamp(14px,2.4vh,22px);
    line-height: 1;
    perspective: 700px
}

.kick {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Sora',sans-serif;
    font-size: clamp(12px,.95vw,15px);
    font-weight: 800;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: clamp(8px,1.6vh,14px);
    opacity: 0;
    animation: up .7s .3s var(--ease) forwards
}

    .kick::before {
        content: "";
        width: 0;
        height: 2px;
        background: var(--yellow);
        animation: grow .8s .5s var(--ease) forwards
    }

@keyframes grow {
    to {
        width: clamp(28px,3vw,54px)
    }
}

.split {
    display: inline-block;
    white-space: nowrap
}

.big {
    display: block;
    font-family: 'Sora',sans-serif;
    font-size: clamp(38px,min(4.6vw,7.6vh),84px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: clamp(4px,1vh,10px)
}

    .big .it {
        font-family: 'Playfair Display',serif;
        font-style: italic;
        font-weight: 600;
        letter-spacing: 0
    }

    .big .gr .ch {
        animation: flip .75s var(--ease) forwards, glow 4s 2.4s ease-in-out infinite
    }

@keyframes glow {
    0%,100% {
        text-shadow: 0 0 0 rgba(253,203,0,0)
    }

    50% {
        text-shadow: 0 0 22px rgba(253,203,0,.55)
    }
}

.end {
    display: block;
    font-family: 'Sora',sans-serif;
    font-size: clamp(23px,min(2.6vw,4.4vh),48px);
    font-weight: 300;
    color: rgba(255,255,255,.9)
}

    .end .g {
        position: relative;
        display: inline-block;
        font-family: 'Playfair Display',serif;
        font-style: italic;
        font-weight: 700;
        color: var(--yellow)
    }

        .end .g svg {
            position: absolute;
            left: -4%;
            bottom: -.32em;
            width: 108%;
            height: .42em;
            overflow: visible
        }

        .end .g path {
            fill: none;
            stroke: var(--yellow);
            stroke-width: 5;
            stroke-linecap: round;
            stroke-dasharray: 320;
            stroke-dashoffset: 320;
            animation: swoosh .9s 1.6s var(--ease) forwards
        }

@keyframes swoosh {
    to {
        stroke-dashoffset: 0
    }
}

.ch {
    display: inline-block;
    opacity: 0;
    transform: rotateX(-95deg) translateY(.35em);
    transform-origin: 50% 100%;
    animation: flip .75s var(--ease) forwards
}

@keyframes flip {
    to {
        opacity: 1;
        transform: none
    }
}

.ch.sp {
    width: .26em
}

.facts {
    position: fixed;
    z-index: 1;
    left: clamp(24px,5vw,96px);
    bottom: clamp(46px,7vh,64px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    max-width: min(calc(100vw - 2*clamp(24px,5vw,96px) - 470px),700px);
    font-size: 13px;
    color: rgba(255,255,255,.7)
}

    .facts span {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        opacity: 0;
        animation: up .6s var(--ease) forwards
    }

    .facts b {
        font-family: 'Sora',sans-serif;
        font-weight: 800;
        color: #fff;
        font-size: 15px
    }

    .facts i {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--yellow);
        opacity: 0;
        animation: up .6s var(--ease) forwards
    }

.copyright {
    position: fixed;
    left: clamp(24px,5vw,96px);
    bottom: clamp(14px,2.8vh,26px);
    z-index: 1;
    font-size: 12.5px;
    color: rgba(255,255,255,.6)
}

    .copyright b {
        color: #fff;
        font-weight: 600
    }

/* ================= CARD: glass + rotating gradient border ================= */
.card {
    position: relative;
    width: clamp(350px,28vw,410px);
    border-radius: 26px;
    padding: clamp(22px,3.6vh,34px) clamp(22px,2.2vw,32px) clamp(14px,2.4vh,22px);
    background: linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03));
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
    opacity: 0;
    animation: cardIn 1s .2s var(--ease) forwards
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
        filter: blur(6px)
    }

    to {
        opacity: 1;
        transform: none;
        filter: none
    }
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    pointer-events: none;
    background: conic-gradient(from var(--a),rgba(253,203,0,.95),rgba(80,150,255,.25) 25%,rgba(255,255,255,.08) 50%,rgba(80,150,255,.25) 75%,rgba(253,203,0,.95));
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
    animation: rot 6s linear infinite
}

.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
    background: conic-gradient(from var(--a),rgba(253,203,0,.35),transparent 30%,transparent 70%,rgba(253,203,0,.35));
    filter: blur(24px);
    opacity: .6;
    animation: rot 6s linear infinite
}

@keyframes rot {
    to {
        --a: 360deg
    }
}

.chip { 
    display: inline-flex;
    background: #fff;
    border-radius: 14px;
    padding: 7px 12px;
    justify-content: center;
    margin-bottom: clamp(14px,2.6vh,22px);
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.6)
}

    .chip img {
        display: block;
        height: clamp(80px,5.2vh,48px);
        width: auto
    }

.card h2 {
    font-size: clamp(21px,1.6vw,25px);
    font-weight: 700;
    letter-spacing: -.015em
}

.card p.hint {
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    margin: 4px 0 clamp(14px,2.8vh,24px)
}

.f {
    position: relative;
    margin-bottom: clamp(11px,2vh,16px)
}

.in {
    position: relative;
    display: flex;
    align-items: center;
    height: clamp(46px,6.2vh,52px);
    border-radius: 14px;
    background: rgba(0,10,25,.45);
    border: 1px solid rgba(255,255,255,.1);
    transition: all .25s;
    overflow: hidden
}

    .in::after {
        content: "";
        position: absolute;
        left: 10%;
        right: 10%;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg,transparent,var(--yellow),transparent);
        transform: scaleX(0);
        transition: transform .4s var(--ease)
    }

    .in:hover {
        border-color: rgba(255,255,255,.22)
    }

    .in:focus-within {
        border-color: rgba(253,203,0,.6);
        background: rgba(0,10,25,.6);
        box-shadow: 0 0 0 4px rgba(253,203,0,.1),0 0 24px -6px rgba(253,203,0,.4)
    }

        .in:focus-within::after {
            transform: scaleX(1)
        }

    .in svg.i {
        width: 18px;
        height: 18px;
        margin: 0 10px 0 14px;
        color: rgba(255,255,255,.5);
        flex-shrink: 0;
        transition: color .25s
    }

    .in:focus-within svg.i {
        color: var(--yellow)
    }

    .in input {
        flex: 1;
        min-width: 0;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        font-family: inherit;
        font-size: 14.5px;
        font-weight: 500;
        color: #fff;
        padding: 14px 12px 0 0
    }

        .in input:-webkit-autofill {
            -webkit-text-fill-color: #fff;
            transition: background-color 9999s
        }

    .in label {
        position: absolute;
        left: 42px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: rgba(255,255,255,.55);
        pointer-events: none;
        transition: all .25s var(--ease)
    }

    .in input:focus + label, .in input:not(:placeholder-shown) + label {
        top: 13px;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: var(--yellow)
    }

.eye {
    width: 40px;
    height: 100%;
    border: none;
    background: none;
    color: rgba(255,255,255,.5);
    cursor: pointer;
    display: grid;
    place-items: center
}

    .eye:hover {
        color: var(--yellow)
    }

    .eye svg {
        width: 18px;
        height: 18px
    }

.err {
    display: none;
    font-size: 12px;
    color: var(--error);
    margin-top: 5px
}

.f.bad .in {
    border-color: #ff7a7a;
    background: rgba(255,80,80,.1);
    animation: jolt .4s
}

.f.bad .err {
    display: block
}

@keyframes jolt {
    20%,60% {
        transform: translateX(-5px)
    }

    40%,80% {
        transform: translateX(5px)
    }
}

.cap {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px
}

.cbox {
    display: flex;
    align-items: center;
    gap: 4px;
    height: clamp(46px,6.2vh,52px);
    padding: 4px;
    border-radius: 14px;
    background: #fff
}

    .cbox canvas {
        display: block;
        height: 100%;
        width: auto;
        border-radius: 10px
    }

.re {
    width: 34px;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #0a1a30;
    color: var(--yellow);
    cursor: pointer;
    display: grid;
    place-items: center
}

    .re svg {
        width: 16px;
        height: 16px;
        transition: transform .5s var(--ease)
    }

    .re:hover svg {
        transform: rotate(-180deg)
    }

.opts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 clamp(14px,2.6vh,20px);
    font-size: 13.5px
}

.ck {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.7);
    cursor: pointer
}

    .ck input {
        width: 16px;
        height: 16px;
        accent-color: var(--yellow);
        cursor: pointer
    }

.lnk {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(var(--yellow),var(--yellow)) no-repeat 0 100%/0 1.5px;
    transition: background-size .3s
}

    .lnk:hover {
        background-size: 100% 1.5px
    }

.btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(46px,6.2vh,52px);
    border: none;
    border-radius: 14px;
    color: #041c38 !important;
    cursor: pointer;
    background: linear-gradient(90deg,#FDCB00,#ffdf55,#FDCB00);
    background-size: 200% 100%;
    color: #021a36;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 14px 32px -12px rgba(253,203,0,.75);
    transition: background-position .6s,transform .2s,box-shadow .3s
}

    .btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -70%;
        width: 45%;
        height: 100%;
        background: linear-gradient(100deg,transparent,rgba(255,255,255,.8),transparent);
        transform: skewX(-20deg);
        animation: sweep 3.5s 2.5s ease-in-out infinite
    }

@keyframes sweep {
    0% {
        left: -70%
    }

    30%,100% {
        left: 140%
    }
}

.btn span, .btn svg {
    position: relative
}

.btn svg {
    width: 19px;
    height: 19px;
    transition: transform .3s var(--ease)
}

.btn:hover {
    background-position: 100% 0;
    box-shadow: 0 18px 38px -12px rgba(253,203,0,.95);
    transform: translateY(-1px)
}

    .btn:hover svg {
        transform: translateX(4px)
    }

.btn:active {
    transform: scale(.99)
}

.btn.busy {
    pointer-events: none;
    opacity: .9
}

    .btn.busy svg {
        animation: spin .8s linear infinite
    }

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.note {
    min-height: 18px;
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600
}

    .note.ok {
        color: var(--ok)
    }

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: clamp(4px,1vh,8px);
    padding-top: clamp(10px,1.8vh,14px);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    color: rgba(255,255,255,.65)
}

.ver {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--yellow);
    border: 1px solid rgba(253,203,0,.45);
    padding: 2px 9px;
    border-radius: 999px
}

/* ================= RESPONSIVE ================= */
@media (max-height:780px) and (min-width:901px) {
    .card p.hint {
        margin-bottom: 12px
    }

    .note {
        margin-top: 4px;
        min-height: 14px
    }

    .facts {
        font-size: 12px
    }

        .facts b {
            font-size: 13.5px
        }
}

@media (max-width:900px) {
    .app {
        grid-template-columns: minmax(0,1fr);
        padding: 32px 16px 16px;
        gap: 24px;
        align-content: start
    }

    .left {
        padding-top: 0;
        min-height: 42vh
    }

    .card {
        width: 100%;
        min-width: 0
    }

    .facts {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: 0 16px 12px;
        justify-content: center
    }

    .copyright {
        position: relative;
        left: auto;
        bottom: auto;
        display: block;
        text-align: center;
        padding: 4px 16px 22px
    }
}

@media (max-width:560px) {
    .cap {
        grid-template-columns: 1fr
    }

    .cbox {
        justify-content: space-between
    }

    .foot {
        justify-content: center;
        text-align: center
    }
}

body:not(.ready) .left *, body:not(.ready) .left *::before {
    animation-play-state: paused !important
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: .01s !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important
    }
}


