/* RZ-Solutions — Neo Brutalism */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #fff8ec;
  --card: #ffffff;
  --yellow: #ffd23f;
  --pink: #ff6fb5;
  --blue: #4d9fff;
  --green: #3ee08f;
  --orange: #ff8a3d;
  --purple: #b18cff;
  --cyan: #5ce1e6;
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 10px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(17,17,17,.13) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--ink); }

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

/* ---------- Bits ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
  padding: 16px 22px;
  background: var(--yellow);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(6px,6px); box-shadow: 0 0 0 var(--ink); }
.btn.alt { background: var(--card); }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 var(--pink); }

.tag {
  display: inline-block;
  font: 700 .75rem/1 var(--mono); text-transform: uppercase;
  padding: 7px 10px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card);
}
.label {
  display: inline-block;
  font: 700 .85rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--paper);
  padding: 8px 12px; margin-bottom: 18px;
  transform: rotate(-1.5deg);
}
h1, h2, h3 { line-height: 1.02; margin: 0; letter-spacing: -.03em; }
h2 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 1.2rem; max-width: 640px; margin: 0 0 40px; }
mark { background: var(--yellow); padding: 0 .15em; border: 2px solid var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font: 700 1.3rem/1 var(--sans); text-decoration: none; letter-spacing: -.03em;
}
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--pink); border: var(--border); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  font: 700 1rem/1 var(--mono);
}
.logo small { font: 400 .8rem var(--mono); opacity: .7; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font: 700 .85rem/1 var(--mono); text-transform: uppercase; text-decoration: none;
  padding: 10px 12px; border: 2px solid transparent; border-radius: 8px;
}
.nav-links a:hover { border-color: var(--ink); background: var(--yellow); }
.nav-links .btn { padding: 11px 16px; font-size: .85rem; box-shadow: 4px 4px 0 var(--ink); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); font-weight: 700; }
.hero h1 .hl {
  display: inline-block; background: var(--green);
  border: var(--border); padding: 0 .12em; transform: rotate(-2deg);
  box-shadow: var(--shadow);
}
.hero p { font-size: 1.25rem; max-width: 560px; margin: 28px 0 36px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stack { position: relative; height: 460px; }
.stack .tile {
  position: absolute;
  width: 150px; height: 150px;
  border: var(--border); border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden; background: var(--card);
  transition: transform .25s;
}
.stack .tile:hover { transform: rotate(0deg) scale(1.06) !important; z-index: 10; }
.stack .tile img { width: 100%; height: 100%; object-fit: cover; }
.stack .t1 { top: 0;    left: 8%;  transform: rotate(-8deg); }
.stack .t2 { top: 30px; left: 54%; transform: rotate(6deg); }
.stack .t3 { top: 175px; left: 30%; transform: rotate(-3deg); z-index: 2; }
.stack .t4 { top: 210px; left: 0;  transform: rotate(9deg); }
.stack .t5 { top: 200px; left: 64%; transform: rotate(-7deg); }
.stack .t6 { top: 330px; left: 38%; transform: rotate(5deg); width: 120px; height: 120px; border-radius: 24px; }
.sticker {
  position: absolute; z-index: 5;
  font: 700 .85rem/1.1 var(--mono); text-transform: uppercase; text-align: center;
  background: var(--yellow); border: var(--border);
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; padding: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(8deg);
}
.stack .sticker { top: -10px; right: 0; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  border-block: var(--border);
  overflow: hidden; white-space: nowrap;
  transform: rotate(-1.2deg); margin: 0 -20px;
}
.marquee.yellow { background: var(--yellow); color: var(--ink); transform: rotate(1deg); }
.marquee-track {
  display: inline-flex; gap: 40px; padding: 16px 0;
  font: 700 1.5rem/1 var(--sans); text-transform: uppercase; letter-spacing: -.01em;
  animation: marquee 32s linear infinite;
}
.marquee-track span::after { content: "✦"; margin-left: 40px; color: var(--pink); }
.marquee.yellow .marquee-track span::after { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* ---------- Apps ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.app {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform .15s, box-shadow .15s;
}
.app:hover { transform: translate(-4px,-4px); box-shadow: 14px 14px 0 var(--ink); }
.app-top {
  padding: 22px; border-bottom: var(--border);
  display: flex; align-items: center; gap: 16px;
  border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0;
}
.app-icon {
  width: 76px; height: 76px; flex: none;
  border: var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink); background: var(--card);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app h3 { font-size: 1.7rem; }
.app .kicker { font: 700 .75rem/1.2 var(--mono); text-transform: uppercase; margin-top: 4px; }
.app-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.app-body p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.app-links a {
  font: 700 .8rem/1 var(--mono); text-transform: uppercase; text-decoration: none;
  padding: 11px 14px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--card); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.app-links a:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.app-links a.primary { background: var(--ink); color: var(--paper); }
.status {
  position: absolute; top: -16px; right: 18px;
  font: 700 .72rem/1 var(--mono); text-transform: uppercase;
  padding: 8px 10px; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--green); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg);
}
.status.dev { background: var(--orange); }

.bg-yellow { background: var(--yellow); }
.bg-pink { background: var(--pink); }
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-purple { background: var(--purple); }
.bg-cyan { background: var(--cyan); }

/* Featured game */
.feature {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
  background: var(--purple);
}
.feature-img { border-right: var(--border); min-height: 320px; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.feature-body h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* ---------- Services ---------- */
.services-section { background: var(--ink); color: var(--paper); border-block: var(--border); }
.services-section .label { background: var(--yellow); color: var(--ink); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 8px 8px 0 var(--pink);
}
.service:nth-child(2) { box-shadow: 8px 8px 0 var(--yellow); }
.service:nth-child(3) { box-shadow: 8px 8px 0 var(--green); }
.service:nth-child(4) { box-shadow: 8px 8px 0 var(--blue); }
.service .num { font: 700 2.8rem/1 var(--mono); margin-bottom: 14px; }
.service h3 { font-size: 1.45rem; margin-bottom: 10px; }
.service p { margin: 0; font-size: 1rem; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--card); }
.principle { padding: 32px; border-right: var(--border); }
.principle:last-child { border-right: 0; }
.principle .big { font: 700 3.4rem/1 var(--sans); letter-spacing: -.04em; margin-bottom: 12px; }
.principle h3 { font-size: 1.35rem; margin-bottom: 8px; }
.principle p { margin: 0; font-size: 1rem; }

.stack-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.stack-list .tag { font-size: .9rem; padding: 11px 15px; box-shadow: 3px 3px 0 var(--ink); }
.stack-list .tag:nth-child(5n+1) { background: var(--yellow); }
.stack-list .tag:nth-child(5n+2) { background: var(--cyan); }
.stack-list .tag:nth-child(5n+3) { background: var(--pink); }
.stack-list .tag:nth-child(5n+4) { background: var(--green); }
.stack-list .tag:nth-child(5n+5) { background: var(--purple); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.about-card {
  background: var(--blue); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 32px; transform: rotate(-2deg);
}
.about-card .avatar {
  width: 120px; height: 120px; border-radius: 50%;
  border: var(--border); background: var(--yellow);
  display: grid; place-items: center;
  font: 700 2.6rem/1 var(--mono); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 20px;
}
.about-card dl { margin: 0; font-family: var(--mono); font-size: .9rem; }
.about-card dt { font-weight: 700; text-transform: uppercase; margin-top: 12px; }
.about-card dd { margin: 0; }
.about p { font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact {
  background: var(--pink); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(32px, 6vw, 72px);
  text-align: center;
}
.contact h2 { font-size: clamp(2.4rem, 7vw, 5rem); }
.contact p { font-size: 1.2rem; max-width: 560px; margin: 16px auto 34px; }
.contact .mail {
  display: inline-block; font: 700 clamp(1rem, 3.4vw, 1.6rem)/1.2 var(--mono);
  background: var(--card); border: var(--border); border-radius: var(--radius);
  padding: 18px 26px; box-shadow: var(--shadow); text-decoration: none;
  word-break: break-all;
  transition: transform .12s, box-shadow .12s;
}
.contact .mail:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); background: var(--yellow); }

/* ---------- Footer ---------- */
footer { border-top: var(--border); background: var(--yellow); padding: 36px 0; margin-top: 110px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font: 400 .9rem var(--mono); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { font-weight: 700; text-transform: uppercase; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 0; }
.legal-card {
  background: var(--card); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 56px); max-width: 860px;
}
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 1rem; }
.back { display: inline-block; margin-bottom: 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stack { height: 400px; max-width: 460px; width: 100%; margin-inline: auto; }
  .stack .tile { width: 120px; height: 120px; border-radius: 24px; }
  .stack .t6 { width: 100px; height: 100px; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { border-right: 0; border-bottom: var(--border); min-height: 220px; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: var(--border); }
  .principle:last-child { border-bottom: 0; }
  .about { grid-template-columns: 1fr; }
  .about-card { max-width: 420px; }

  .menu-toggle {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px; background: var(--yellow);
    border: var(--border); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink);
    font: 700 1.3rem/1 var(--mono); cursor: pointer; color: var(--ink);
  }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: var(--border);
    padding: 8px 16px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-bottom: 2px dashed var(--ink); border-radius: 0; }
  .nav-links .btn { margin-top: 14px; justify-content: center; border-radius: var(--radius); border-bottom: var(--border); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 80px 0; }
  .apps, .services { grid-template-columns: 1fr; }
  .logo small { display: none; }
  .feature-body { padding: 26px; }
  .stack { height: 340px; }
  .stack .tile { width: 96px; height: 96px; border-radius: 20px; box-shadow: var(--shadow); }
  .stack .t3 { top: 140px; } .stack .t4 { top: 170px; } .stack .t5 { top: 165px; }
  .stack .t6 { top: 260px; width: 84px; height: 84px; }
  .sticker { width: 88px; height: 88px; font-size: .7rem; }
}

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

/* ---------- SaaS ---------- */
.saas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.saas { display: flex; flex-direction: column; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.saas:hover { transform: translate(-4px,-4px); box-shadow: 14px 14px 0 var(--ink); }
.saas-shot { position: relative; border-bottom: var(--border); background: var(--ink); padding-top: 30px; }
.saas-shot .dots { position: absolute; top: 10px; left: 14px; display: flex; gap: 6px; }
.saas-shot .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); opacity: .55; }
.saas-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.saas-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.saas-head { display: flex; align-items: center; gap: 16px; }
.saas-head h3 { font-size: 1.9rem; }
.saas-head .app-icon { background: #fff; }
.saas-body p { margin: 0; }
.saas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font: 700 .85rem/1.3 var(--mono); }
.saas-list li::before { content: "■ "; color: var(--yellow); }
.saas .app-links { margin-top: auto; }
@media (max-width: 860px) { .saas-grid { grid-template-columns: 1fr; } }
