/* Peakr IO landing page */

:root {
  --bg: #0b0c14;
  --bg-2: #11131f;
  --card: #161929;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9ecf5;
  --muted: #9aa1b8;
  --brand: #4ab4f2;
  --brand-2: #8b6cff;
  --wc: #f4b740;
  --vm: #ff4fc8;
  --vm-2: #33e1e1;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 19px; max-width: 620px; margin-top: 18px; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--vm)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 28px rgba(74, 180, 242, 0.25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(74, 180, 242, 0.35); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 15px; box-shadow: none; }
.btn-wc { background: linear-gradient(90deg, #f7c95b, #e8892d); color: #241503; box-shadow: 0 8px 28px rgba(244, 183, 64, 0.25); }
.btn-vm { background: linear-gradient(90deg, var(--vm), #a34dff); box-shadow: 0 8px 28px rgba(255, 79, 200, 0.28); }
.btn-light { background: #fff; color: #10121c; box-shadow: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 12, 20, 0.86); backdrop-filter: blur(10px); border-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 150px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* hero */
.hero { position: relative; padding: 150px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  /* fades out at the bottom so the next section starts seamlessly */
  mask-image: linear-gradient(#000 65%, transparent);
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(139, 108, 255, 0.28), transparent 70%),
    radial-gradient(500px 380px at 10% 80%, rgba(74, 180, 242, 0.22), transparent 70%),
    radial-gradient(420px 300px at 60% 90%, rgba(255, 79, 200, 0.14), transparent 70%);
}
.hero-bg::after {
  /* a faint arcade grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.5vw, 92px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { position: relative; height: 440px; }
.tile { position: absolute; width: 78%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); border: 1px solid var(--line); transition: transform .35s; }
.tile img { width: 100%; }
.tile-a { top: 0; right: 0; transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
.tile-b { bottom: 0; left: 0; transform: rotate(-4deg); animation: float 8s ease-in-out -3s infinite; }
.tile:hover { transform: rotate(0) scale(1.03); z-index: 2; }
@keyframes float { 50% { translate: 0 -12px; } }

/* sections */
section { padding: 110px 0; }
.section-head { margin-bottom: 56px; }

/* games */
.games { background: linear-gradient(var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.game {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 36px; border-radius: 28px; background: var(--card); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.game + .game { margin-top: 48px; }
.game::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.game-wc::before { background: radial-gradient(520px 320px at 0% 0%, rgba(244, 183, 64, 0.16), transparent 70%); }
.game-vm::before { background: radial-gradient(520px 320px at 100% 0%, rgba(255, 79, 200, 0.16), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(51, 225, 225, 0.10), transparent 70%); }
.game > * { position: relative; z-index: 1; }
/* Voidmania: text left, video right, shots below */
.game-vm .game-copy { order: 1; }
.game-vm .game-media { order: 2; }
.shots { order: 3; }
.game-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.game-media video { width: 100%; }
.game-vm .game-media { max-width: 400px; justify-self: center; }
.genre { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-wc .genre { color: var(--wc); }
.game-vm .genre { color: var(--vm); }
.game h3 { font-size: clamp(34px, 4vw, 48px); margin: 10px 0 16px; }
.game-copy > p { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); }
.game-wc .facts li::before { background: var(--wc); }
.game-vm .facts li::before { background: var(--vm-2); }
.game-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.platforms { color: var(--muted); font-size: 15px; }
.platforms em { display: block; font-style: normal; font-size: 13px; opacity: .75; }
.shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.shots img:hover { transform: scale(1.03); }

/* studio */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pillar h3 { margin: 18px 0 10px; }
.pillar p { color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.next { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.next h3 { color: var(--muted); font-size: 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.chips small { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* itch band */
.band { padding: 0; }
.band-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px;
  background: linear-gradient(110deg, #fa5c5c, #c94bdc 55%, var(--brand-2));
}
.band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.band p { margin-top: 8px; color: rgba(255, 255, 255, 0.85); }

/* contact */
.contact-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.contact-card { padding: 30px 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.mail { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 600; text-decoration: none; color: var(--brand); }
.mail:hover { text-decoration: underline; }
.contact-card p { color: var(--muted); margin-top: 12px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer img { width: 110px; height: auto; opacity: .85; }
.footer nav { display: flex; gap: 22px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* phones and small tablets */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 70px; }
  .hero-grid, .game, .contact-row { grid-template-columns: 1fr; }
  .hero-art { height: 300px; max-width: 520px; width: 100%; margin-inline: auto; }
  .game { padding: 22px; gap: 28px; }
  .game-vm .game-media { order: 0; }
  .game-vm .game-copy { order: 1; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img:last-child { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .band-row { padding: 32px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 12, 20, 0.97); border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-art { height: 220px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .mail { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-a, .tile-b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
