/* Ruby Pokies Casino — animated visual system */

/* ── Keyframes ── */
@keyframes mesh-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float-gem {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-20px) rotate(8deg); opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes pulse-ruby {
    0%, 100% { box-shadow: 0 0 20px rgba(225, 29, 72, 0.2); }
    50% { box-shadow: 0 0 40px rgba(225, 29, 72, 0.45); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes line-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Animated backgrounds ── */
.mesh-bg {
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(190, 18, 60, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(244, 63, 94, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(136, 19, 55, 0.15) 0%, transparent 50%),
        #0c0408;
    background-size: 200% 200%;
    animation: mesh-shift 12s ease infinite;
}

.hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 30% 0%, rgba(225, 29, 72, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 60%, rgba(190, 18, 60, 0.12) 0%, transparent 50%),
        #0c0408;
}

/* ── Floating gems (decorative) ── */
.gem-float {
    position: absolute;
    border-radius: 4px;
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 50%, #9f1239 100%);
    opacity: 0.15;
    animation: float-gem 8s ease-in-out infinite;
    transform: rotate(45deg);
}

.gem-float-1 { width: 12px; height: 12px; top: 15%; left: 8%; animation-delay: 0s; }
.gem-float-2 { width: 8px;  height: 8px;  top: 60%; left: 5%; animation-delay: 2s; }
.gem-float-3 { width: 16px; height: 16px; top: 30%; right: 10%; animation-delay: 1s; }
.gem-float-4 { width: 10px; height: 10px; bottom: 20%; right: 15%; animation-delay: 3s; }

/* ── Cards ── */
.ruby-card {
    background: linear-gradient(160deg, rgba(30, 8, 16, 0.9) 0%, rgba(15, 4, 8, 0.95) 100%);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.ruby-card:hover {
    border-color: rgba(244, 63, 94, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(190, 18, 60, 0.15);
}

.ruby-card-glow {
    background: linear-gradient(160deg, rgba(50, 10, 22, 0.95) 0%, rgba(20, 5, 10, 0.98) 100%);
    border: 1px solid rgba(244, 63, 94, 0.25);
    animation: pulse-ruby 4s ease-in-out infinite;
}

/* ── Typography gradients ── */
.text-gradient-ruby {
    background: linear-gradient(135deg, #fecdd3 0%, #fb7185 30%, #e11d48 70%, #be123c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shimmer {
    background: linear-gradient(90deg, #fda4af 0%, #fff1f2 40%, #fda4af 60%, #fb7185 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ── Buttons ── */
.btn-ruby {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
    box-shadow: 0 4px 24px rgba(225, 29, 72, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-ruby::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-ruby:hover::after { transform: translateX(100%); }
.btn-ruby:hover { box-shadow: 0 6px 32px rgba(225, 29, 72, 0.55); transform: translateY(-2px); }

.btn-ghost-ruby {
    border: 1px solid rgba(244, 63, 94, 0.3);
    background: rgba(225, 29, 72, 0.06);
    transition: all 0.3s ease;
}
.btn-ghost-ruby:hover {
    background: rgba(225, 29, 72, 0.14);
    border-color: rgba(244, 63, 94, 0.5);
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Phone mockup float ── */
.mockup-float {
    animation: float-gem 6s ease-in-out infinite;
    animation-name: mockup-float-keyframes;
}
@keyframes mockup-float-keyframes {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ── Accent line ── */
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e11d48, #fb7185, #e11d48, transparent);
    transform-origin: left;
    animation: line-grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Bento grid highlight ── */
.bento-feature {
    position: relative;
    overflow: hidden;
}
.bento-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(225,29,72,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.bento-feature:hover::before { opacity: 1; }

/* ── Prose (legal pages) ── */
.prose-ruby h3 {
    color: #fda4af;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}
.prose-ruby p {
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}
.prose-ruby strong { color: #e4e4e7; }

/* ── Diagonal section clip ── */
.clip-diagonal {
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

/* ── Marquee ticker ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

/* ── Ring decoration ── */
.ring-deco {
    position: absolute;
    border: 1px solid rgba(244, 63, 94, 0.1);
    border-radius: 50%;
    animation: spin-slow 40s linear infinite;
}
