:root {
    --brand-yellow: #F5F500;
    --brand-black: #111111;
    --brand-white: #FFFFFF;
}

* {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
}

body {
    background-color: var(--brand-white);
    color: var(--brand-black);
    overflow-x: hidden;
}

#logo {
    width: 160px;
}

.landing-nav {
    padding: 1.5em 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
    font-weight: 700;
}

.landing-btn-primary:hover,
.landing-btn-primary:focus {
    background-color: var(--brand-black);
    color: var(--brand-yellow);
    border-color: var(--brand-black);
}

.landing-btn-primary:disabled {
    opacity: 0.6;
}

/* -- hero ------------------------------------------------------------- */

.landing-hero {
    position: relative;
    padding: 3em 0 4em;
    overflow: hidden;
}

.landing-hero-blob {
    position: absolute;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    opacity: 0.5;
    z-index: 0;
}

.landing-hero-blob-1 {
    width: 260px;
    height: 260px;
    top: -80px;
    right: 10%;
}

.landing-hero-blob-2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: 5%;
    opacity: 0.35;
}

.landing-hero .row {
    position: relative;
    z-index: 1;
}

.landing-hero-title {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 0.6em;
}

.landing-hero-title mark {
    background-color: var(--brand-yellow);
    padding: 0 0.2em;
}

.landing-hero-subtitle {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 1.75em;
}

.landing-hero-visual {
    position: relative;
    will-change: transform;
}

.landing-hero-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
}

.landing-scan-beam {
    animation: scanBeam 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    filter: drop-shadow(0 0 6px rgba(245, 245, 0, 0.9));
}

@keyframes scanBeam {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(114px);
        opacity: 0;
    }
}

.landing-pulse {
    animation: landingPulse 2.4s ease-in-out infinite;
    transform-origin: 200px 245px;
}

@keyframes landingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}

.landing-float-phone {
    animation: landingFloatPhone 4.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes landingFloatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.landing-radar {
    animation: landingRadarSpin 12s linear infinite;
    transform-origin: 200px 115px;
}

@keyframes landingRadarSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.landing-check {
    animation: landingCheck 2.4s ease-in-out infinite;
    transform-origin: 248px 40px;
}

@keyframes landingCheck {
    0%, 55% {
        opacity: 0;
        transform: translate(248px, 40px) scale(0.4);
    }
    70%, 90% {
        opacity: 1;
        transform: translate(248px, 40px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(248px, 40px) scale(0.4);
    }
}

/* -- hero scene morph (scan -> form -> lucky draw wheel) ------------------- */

.landing-scene {
    transform-box: fill-box;
    transform-origin: center;
}

.landing-scene-scan {
    animation: sceneScan 9s ease-in-out infinite;
}

.landing-scene-form {
    animation: sceneForm 9s ease-in-out infinite;
}

.landing-scene-wheel {
    animation: sceneWheel 9s ease-in-out infinite;
}

.landing-device-phone {
    transform-box: fill-box;
    transform-origin: center;
    animation: devicePhone 9s ease-in-out infinite;
}

@keyframes devicePhone {
    0%, 62% {
        opacity: 1;
        transform: scale(1);
    }
    68% {
        opacity: 0;
        transform: scale(0.85);
    }
    90% {
        opacity: 0;
        transform: scale(0.85);
    }
    96%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sceneScan {
    0%, 28% {
        opacity: 1;
        transform: scale(1);
    }
    34% {
        opacity: 0;
        transform: scale(0.85);
    }
    90% {
        opacity: 0;
        transform: scale(0.85);
    }
    96%, 100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sceneForm {
    0%, 28% {
        opacity: 0;
        transform: scale(0.85);
    }
    34% {
        opacity: 1;
        transform: scale(1);
    }
    62% {
        opacity: 1;
        transform: scale(1);
    }
    68%, 100% {
        opacity: 0;
        transform: scale(0.85);
    }
}

@keyframes sceneWheel {
    0%, 62% {
        opacity: 0;
        transform: scale(0.85);
    }
    68% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    96%, 100% {
        opacity: 0;
        transform: scale(0.85);
    }
}

.landing-form-fill {
    transform: scaleX(0);
    transform-origin: left;
    transform-box: fill-box;
}

.landing-form-line-1 .landing-form-fill {
    animation: formFill 9s ease-in-out infinite;
    animation-delay: 0s;
}

.landing-form-line-2 .landing-form-fill {
    animation: formFill 9s ease-in-out infinite;
    animation-delay: 0.3s;
}

.landing-form-line-3 .landing-form-fill {
    animation: formFill 9s ease-in-out infinite;
    animation-delay: 0.6s;
}

@keyframes formFill {
    0%, 37% {
        transform: scaleX(0);
    }
    45%, 68% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

.landing-form-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: formCheckDraw 9s ease-in-out infinite;
}

@keyframes formCheckDraw {
    0%, 52% {
        stroke-dashoffset: 20;
    }
    60%, 68% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

.landing-confetti circle,
.landing-confetti rect {
    animation: confettiBurst 1.1s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.landing-confetti circle:nth-child(2),
.landing-confetti rect:nth-child(2) {
    animation-delay: 0.2s;
}

.landing-confetti circle:nth-child(3) {
    animation-delay: 0.4s;
}

.landing-confetti rect:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes confettiBurst {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.6);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-14px) scale(1.1);
    }
}

.landing-winner-line {
    animation: winnerLineFade 9s ease-in-out infinite;
}

@keyframes winnerLineFade {
    0%, 70% {
        opacity: 0.5;
    }
    80%, 88% {
        opacity: 1;
    }
    96%, 100% {
        opacity: 0.5;
    }
}

.landing-float {
    animation: landingFloat 3.6s ease-in-out infinite;
}

.landing-float-delay {
    animation-delay: 0.8s;
}

.landing-float-delay-2 {
    animation-delay: 1.6s;
}

.landing-float-delay-3 {
    animation-delay: 2.4s;
}

@keyframes landingFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* -- stats -------------------------------------------------------------- */

.landing-stats {
    background-color: var(--brand-black);
    color: var(--brand-white);
    padding: 3em 0;
}

.landing-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-yellow);
}

.landing-stat-label {
    color: #ccc;
}

/* -- features ------------------------------------------------------------ */

.landing-features {
    padding: 4em 0;
}

.landing-section-title {
    font-weight: 800;
}

.landing-feature-card {
    background-color: var(--brand-white);
    border: 2px solid var(--brand-black);
    border-radius: 12px;
    padding: 1.75em;
    height: 100%;
    text-align: center;
    transition: transform 0.15s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
}

.landing-feature-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    font-size: 1.5rem;
    margin: 0 auto 0.75em;
}

/* -- steps ----------------------------------------------------------------- */

.landing-steps {
    background-color: #FAFAF0;
    padding: 4em 0;
}

.landing-steps-track {
    position: relative;
    display: flex;
    max-width: 720px;
    margin: 0 auto;
}

.landing-steps-line {
    position: absolute;
    top: 24px;
    left: calc(100% / 9);
    right: calc(100% / 9);
    height: 3px;
    background-color: var(--brand-black);
    z-index: 0;
}

.landing-step {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 0 0.5em;
}

@media (max-width: 767.98px) {
    .landing-steps-track {
        flex-direction: column;
        gap: 2em;
    }

    .landing-steps-line {
        display: none;
    }
}

.landing-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    border: 3px solid var(--brand-black);
    color: var(--brand-black);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 0.75em;
}

/* -- footer ----------------------------------------------------------------- */

.site-footer {
    background-color: var(--brand-black);
    color: #ccc;
    text-align: center;
    padding: 3em 0 2em;
    font-size: 10pt;
}

.site-footer a {
    color: var(--brand-yellow);
}

.site-footer-icon {
    display: block;
    width: 56px;
    margin: 0 auto;
}

.site-footer-icon img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.site-footer-links a {
    text-decoration: none;
}

.site-footer-links span {
    margin: 0 0.5em;
}

@media (prefers-reduced-motion: reduce) {
    .landing-scan-beam,
    .landing-pulse,
    .landing-float,
    .landing-float-phone,
    .landing-radar,
    .landing-check,
    .landing-scene,
    .landing-form-fill,
    .landing-form-check,
    .landing-device-phone,
    .landing-device-screen,
    .landing-confetti circle,
    .landing-confetti rect,
    .landing-winner-line {
        animation: none;
    }

    .landing-scene,
    .landing-device-screen {
        opacity: 0;
    }

    .landing-scene-scan,
    .landing-device-phone {
        opacity: 1;
    }

    .landing-confetti circle,
    .landing-confetti rect {
        opacity: 0;
    }

    .landing-hero-visual {
        transform: none !important;
    }
}
