/* rezz.eu home page — bright theme */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #f8f9fc;
  --ink: #14182b;
  --muted: #5d6580;
  --line: rgba(20, 24, 43, .08);
  --card: rgba(255, 255, 255, .72);
  --c1: #7464ff;
  --c2: #ff6b8b;
  --c3: #22c4b0;
  --c4: #ffb547;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(20, 24, 43, .04), 0 10px 30px -12px rgba(40, 46, 90, .18);
  --shadow-hi: 0 2px 4px rgba(20, 24, 43, .05), 0 30px 60px -20px rgba(40, 46, 90, .35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- animated background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg::after {               /* dot grid that fades out downwards */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 24, 43, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .32;
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 { background: var(--c1); top: -18vmax; left: -12vmax; }
.b2 { background: var(--c2); top: -10vmax; right: -16vmax; animation-duration: 32s; animation-delay: -8s; }
.b3 { background: var(--c3); bottom: -22vmax; left: 18vmax; animation-duration: 38s; animation-delay: -14s; opacity: .22; }
.b4 { background: var(--c4); bottom: -18vmax; right: -10vmax; animation-duration: 30s; animation-delay: -4s; opacity: .2; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 8vmax) scale(.94); }
}

/* ---------- layout ---------- */
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 7vw, 90px) 0 clamp(28px, 4vw, 48px);
}

.logo-tile {
  position: relative;
  width: clamp(180px, 26vw, 300px);
  aspect-ratio: 1;
  border-radius: 34px;
  padding: 4px;
  background: conic-gradient(from var(--angle), var(--c1), var(--c2), var(--c4), var(--c3), var(--c1));
  animation: spin 8s linear infinite, float 6s ease-in-out infinite;
  box-shadow: 0 30px 60px -24px rgba(116, 100, 255, .55);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}
.logo-tile::before {        /* soft halo */
  content: '';
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 48px;
  background: inherit;
  filter: blur(28px);
  opacity: .45;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #000;
}
.logo-tile .glare {
  position: absolute;
  inset: 4px;
  border-radius: 30px;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .35), transparent 45%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes spin  { to { --angle: 360deg; } }
@keyframes float { 50% { translate: 0 -10px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.eyebrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.eyebrow img { width: 26px; height: 26px; border-radius: 50%; }
.eyebrow b { color: var(--ink); }

h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(100deg, var(--c1), var(--c2), var(--c4), var(--c3), var(--c1));
  background-size: 300% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: flow 10s linear infinite;
}
@keyframes flow { to { background-position: 300% 0; } }

.lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--muted);
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.jump a {
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.jump a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.jump a.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--c1), var(--c2));
  background-size: 200% 100%;
}
.jump a.primary:hover { background-position: 100% 0; }

/* ---------- ad ---------- */
.ad {
  margin: 8px auto 12px;
  min-height: 1px;
}

/* ---------- sections ---------- */
section { padding: clamp(22px, 4vw, 40px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  align-self: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 22px;
}
.grid.featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }

/* ---------- cards ---------- */
.card {
  --accent: var(--c1);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.card::before {           /* glow that follows the pointer */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.card::after {            /* gradient border on hover */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), transparent 45%, transparent 60%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
.card:hover::before, .card:hover::after { opacity: 1; }

.media {
  position: relative;
  display: block;
  margin: 10px 10px 0;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--accent) 15%, #fff);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .media img { transform: scale(1.06); }
.media::after {           /* shine sweep */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .9s ease;
}
.card:hover .media::after { transform: translateX(120%); }

.body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px 22px 22px;
}
.card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 80%, #000);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}
.links a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 0;
  transition: color .25s, border-color .25s, transform .2s;
}
.links a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.links a:hover { color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.links a:hover::before { transform: scaleX(1); }
.links a.cta {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #ff6b8b));
  box-shadow: 0 8px 20px -8px var(--accent);
}
.links a.cta::before { background: color-mix(in srgb, var(--accent) 70%, #000); }

.grid.games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* featured (new) cards: bigger picture and title */
.featured .body { padding: 20px 26px 26px; }
.featured h3 { font-size: 28px; }

.badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(120deg, var(--c2), var(--c4));
  box-shadow: 0 6px 16px -4px rgba(255, 107, 139, .6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 6px 22px 2px rgba(255, 107, 139, .55); transform: scale(1.06); }
}

/* ---------- footer ---------- */
footer {
  padding: 40px 0 50px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--c1); }

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lead { margin-inline: auto; }
  .jump { justify-content: center; }
  .logo-tile { width: min(240px, 62vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
