:root {
  --bg: #070707;
  --text: #eaeaea;
  --muted: #b9b9b9;
  --accent: #ff2950;
  --accent-50: rgba(255, 41, 80, .5);
  --accent-35: rgba(255, 41, 80, .35);
  --accent-10: rgba(255, 41, 80, .1);
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html, body { margin: 0; max-width: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: clip; overscroll-behavior-y: none; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.viewport { position: relative; width: 100%; min-height: 100svh; }
.halo, .red-light { position: fixed; pointer-events: none; z-index: 0; }
.halo { inset: -20%; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 37%); }
.red-light { width: 54vw; height: 54vw; min-width: 380px; min-height: 380px; left: 50%; top: 52%; translate: -50% -50%; background: radial-gradient(circle, rgba(255,25,66,.09), transparent 68%); filter: blur(55px); }

.hero-scroll { height: 190svh; }
.hero { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.logo-stage { position: relative; width: 100vw; height: 100svh; display: grid; place-items: center; filter: drop-shadow(0 30px 80px rgba(0,0,0,.45)); will-change: opacity; }
.tiles { position: relative; width: min(88vw, 1200px); aspect-ratio: 2 / 1; display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(14, 1fr); contain: layout style; }
.tile { width: 100%; height: 100%; background-image: url('/images/revieer-2.svg'); background-repeat: no-repeat; transform-origin: center; backface-visibility: hidden; will-change: transform, opacity; }
.logo-note { position: absolute; bottom: 5.5svh; width: 100%; display: grid; justify-items: center; gap: .55rem; text-align: center; color: var(--muted); opacity: .75; font-size: .82rem; letter-spacing: .02em; }
.scroll-mouse { width: 24px; height: 38px; display: block; position: relative; border: 1.5px solid rgba(255,255,255,.68); border-radius: 999px; box-shadow: 0 0 18px rgba(255,255,255,.06); }
.scroll-wheel { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 999px; background: var(--accent); animation: scroll-wheel 1.65s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes scroll-wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(13px); opacity: 0; } }

.cards-section { height: 260svh; margin-top: 0; background: var(--bg); }
.cards-stage { position: sticky; top: 0; height: 100svh; width: 100%; z-index: 2; overflow: hidden; }
.cards-grid { position: relative; width: 100%; height: 100%; }
.cards-red-glow { position: absolute; top: 55%; left: 50%; width: 70vw; height: 70svh; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,0,50,.35), transparent 70%); filter: blur(110px); opacity: 0; pointer-events: none; }
.card { position: absolute; width: min(680px, 43vw); min-height: 250px; padding: 2.5rem; border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 18px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1); opacity: 0; filter: blur(14px); will-change: transform, opacity, filter; }
.card h3 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.25rem,2.5vw,1.5rem); font-weight: 800; }
.card p { margin: 0 0 1.5rem; color: #ffffffb3; font-size: clamp(.95rem,1vw + .5rem,1rem); font-weight: 500; line-height: 1.8; }
.card b { color: #fff; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.card a { color: #fff; text-decoration: none; transition: color .2s, background .2s; }
.card a:hover { color: var(--accent); }
.glass-button { border: 1px solid var(--accent-35); padding: .75rem 1.9rem; border-radius: 10px; box-shadow: 0 2px 16px var(--accent-10); }
.glass-button:hover { color: #fff !important; background: var(--accent-50); }
.card--about { left: 4vw; top: 6svh; }
.card--why { right: 4vw; top: 9svh; }
.card--account { left: 50%; bottom: 8svh; width: min(620px, 48vw); min-height: 220px; }
.cta { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.cta-inner { text-align: center; transform: translateY(40px) scale(.9); opacity: 0; filter: blur(8px); pointer-events: auto; will-change: transform, opacity, filter; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 1.1rem 2.7rem; border: 1.5px solid var(--accent-35); border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-50) 80%); box-shadow: 0 8px 32px var(--accent-35), 0 2px 0 rgba(255,255,255,.12) inset; color: #fff; text-decoration: none; font-weight: 800; animation: cta-breathe 2.8s ease-in-out infinite; transition: transform .22s ease, box-shadow .22s ease; }
.cta-button::after { content:""; position:absolute; inset:-60% auto -60% -45%; width:32%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent); transform:skewX(-18deg); animation:cta-shimmer 3.6s ease-in-out infinite; }
.cta-button:hover { transform:translateY(-3px) scale(1.025); box-shadow:0 14px 42px rgba(255,41,80,.5),0 2px 0 rgba(255,255,255,.16) inset; }
@keyframes cta-breathe { 0%,100% { box-shadow:0 8px 28px rgba(255,41,80,.28),0 2px 0 rgba(255,255,255,.12) inset; } 50% { box-shadow:0 10px 42px rgba(255,41,80,.48),0 2px 0 rgba(255,255,255,.16) inset; } }
@keyframes cta-shimmer { 0%,62% { left:-45%; opacity:0; } 70% { opacity:1; } 88%,100% { left:120%; opacity:0; } }
.cta .sub { margin-top: .75rem; color: var(--muted); font-size: .86rem; font-weight: 500; }

/* A direct link to the navigation cards must never land on an empty frame. */
#cards:target .card { opacity: 1 !important; filter: none !important; }
#cards:target .card--about,
#cards:target .card--why { transform: none !important; }
#cards:target .card--account { transform: translateX(-50%) !important; }
#cards:target .cards-red-glow { opacity: .65 !important; }

@media (max-width: 900px) {
  .hero-scroll { height: 100svh; }
  .hero { position: relative; }
  .tiles { width: 96vw; }
  .logo-note { bottom: 4svh; }
  .cards-section { height: auto; min-height: 100svh; margin-top: 0; padding: 3rem 0 8rem; }
  .cards-stage { position: relative; height: auto; overflow: visible; }
  .cards-grid { display: grid; gap: 1rem; padding: 0 4vw; }
  .card { position: relative; inset: auto; width: 100%; min-height: auto; padding: 1.6rem; opacity: 1; filter: none !important; transform: none !important; }
  .cta { position: relative; padding: 4rem 0 2rem; }
  .cta-inner { opacity: 1; filter: none; transform: none; }
  .cards-red-glow { opacity: .7; }
  .tile { transform: none !important; opacity: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: 100svh; }
  .scroll-wheel { animation: none; opacity: 1; }
  .cta-button,.cta-button::after { animation: none; }
  .tile { transform: none !important; opacity: 1 !important; }
  .logo-stage { opacity: 1 !important; }
  .cards-section { height: auto; margin-top: 0; padding-bottom: 8rem; }
  .cards-stage { position: relative; height: auto; overflow: visible; }
  .cards-grid { display: grid; gap: 1rem; padding: 3rem 4vw; }
  .card { position: relative; inset: auto; width: 100%; opacity: 1 !important; filter: none !important; transform: none !important; }
  .cta { position: relative; padding: 4rem 0; }
  .cta-inner { opacity: 1 !important; filter: none !important; transform: none !important; }
}
