/* Winprizez landing page styles (index.html). The game itself is app.html. */
:root { --ink: #0b1030; --ink2: #121a4a; --gold: #d4af37; --gold2: #f1d98a; --ivory: #f7f2e4; --mute: #aab0d0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--ivory); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.gold { color: var(--gold); }

/* Top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.top.solid { background: rgba(11, 16, 48, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(212, 175, 55, .25); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: .14em; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(212, 175, 55, .6); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { color: #1a1400; background: linear-gradient(135deg, var(--gold2), var(--gold) 55%, #b8901f); box-shadow: 0 10px 30px rgba(212, 175, 55, .3); }
.btn-gold:hover { box-shadow: 0 14px 38px rgba(212, 175, 55, .45); }
.btn-line { border: 1px solid rgba(212, 175, 55, .6); color: var(--gold2); }
.btn-sm { padding: 9px 20px; font-size: 12px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 70px; background: radial-gradient(ellipse at 70% 30%, #26307a 0%, transparent 60%), linear-gradient(180deg, #0b1030, #0e1540); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--ink)); }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(38px, 7vw, 68px); line-height: 1.08; margin: 14px 0 18px; font-weight: 700; }
.hero p.lead { color: var(--mute); font-size: 17px; max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-car { position: relative; }
.hero-car img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); animation: float 5s ease-in-out infinite; }
.hero-car::before { content: ''; position: absolute; inset: 10% 5%; border: 1px solid rgba(212, 175, 55, .35); border-radius: 50%; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }

/* Sections */
section { padding: 92px 0; position: relative; }
.head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 12px 0; }
.head p { color: var(--mute); }
.rule { width: 64px; height: 2px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* How it works */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { padding: 30px 26px; border: 1px solid rgba(212, 175, 55, .25); border-radius: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.step b { font-family: 'Playfair Display', Georgia, serif; font-size: 38px; color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--mute); font-size: 14px; }

/* Cars */
.cars { background: linear-gradient(180deg, var(--ink), #0e1542 50%, var(--ink)); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.car { border-radius: 20px; overflow: hidden; border: 1px solid rgba(212, 175, 55, .22); background: radial-gradient(circle at 50% 30%, #1d2872, #0f1546); transition: transform .35s, border-color .35s, box-shadow .35s; }
.car:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .7); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.car .pic { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; }
.car .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.car:hover .pic img { transform: scale(1.06); }
.car .meta { padding: 16px 20px 20px; border-top: 1px solid rgba(212, 175, 55, .18); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.car h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; }
.car span { color: var(--gold2); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Testimonials */
.tgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.quote { padding: 32px 28px 26px; border-radius: 18px; background: var(--ivory); color: #1d1b16; position: relative; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.quote::before { content: '\201C'; font-family: 'Playfair Display', Georgia, serif; font-size: 90px; line-height: 1; color: var(--gold); position: absolute; top: 6px; left: 20px; opacity: .6; }
.quote p { position: relative; margin-top: 26px; font-size: 15px; font-style: italic; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .12); }
.av { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--gold2); background: var(--ink2); }
.who strong { display: block; font-size: 14px; }
.who small { color: #6b6755; font-size: 12px; }
.note { text-align: center; color: var(--mute); font-size: 12px; margin-top: 26px; }

/* Final call and footer */
.final { text-align: center; background: radial-gradient(ellipse at 50% 100%, #26307a, transparent 70%); }
.final h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(30px, 5vw, 46px); margin-bottom: 14px; }
.final p { color: var(--mute); margin-bottom: 30px; }
footer { padding: 30px 0 40px; border-top: 1px solid rgba(212, 175, 55, .2); text-align: center; color: var(--mute); font-size: 12px; }

/* Reveal on scroll: fades in going down and again going up */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .rv.up { transform: translateY(-34px); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .hero-car img { animation: none; } html { scroll-behavior: auto; } }

/* Page loader */
#ld { position: fixed; inset: 0; z-index: 50; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: opacity .5s, visibility .5s; }
#ld.gone { opacity: 0; visibility: hidden; }
#ld i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(212, 175, 55, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Scroll progress */
#bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 30; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
