:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #191b1f;
  --panel-2: #20242a;
  --text: #f2eee7;
  --muted: #b7b0a5;
  --line: rgba(255, 255, 255, 0.13);
  --gold: #f0ba57;
  --cyan: #62d4df;
  --rose: #ed6d7b;
  --green: #9de05c;
  --shadow: rgba(0, 0, 0, 0.38);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: revealIn 720ms ease both;
  }

  .teaser-grid .reveal:nth-child(2) {
    animation-delay: 100ms;
  }

  .teaser-grid .reveal:nth-child(3) {
    animation-delay: 200ms;
  }
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(16, 17, 19, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(35, 210, 238, 0.22);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 4vw, 56px) 58px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 19, 0.88) 0%, rgba(16, 17, 19, 0.6) 38%, rgba(16, 17, 19, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 17, 19, 0.9) 0%, rgba(16, 17, 19, 0.04) 45%),
    url("assets/irezapps-hero.png") center / cover no-repeat;
  transform: scale(1.01);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ambient span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(98, 212, 223, 0.55);
  box-shadow: 0 0 18px rgba(98, 212, 223, 0.7);
  animation: floatParticle 9s ease-in-out infinite;
}

.hero-ambient span:nth-child(1) { left: 14%; top: 34%; animation-delay: -1s; }
.hero-ambient span:nth-child(2) { left: 42%; top: 24%; animation-delay: -4s; }
.hero-ambient span:nth-child(3) { right: 18%; top: 46%; animation-delay: -7s; }
.hero-ambient span:nth-child(4) { left: 68%; bottom: 16%; animation-delay: -2s; }

.hero-content {
  position: relative;
  width: min(100%, 760px);
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  margin-top: 0;
}

p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  color: #ddd7cd;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(157, 224, 92, 0.2);
}

.button.primary {
  background: var(--green);
  color: #151713;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  padding: 84px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.intro {
  padding-bottom: 54px;
  border-bottom: 0;
}

.section > *,
.contact > * {
  min-width: 0;
}

.section h2,
.contact h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
}

.section > p,
.about-copy,
.contact p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px) 118px;
}

.game-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
}

.teaser-grid .game-card {
  min-height: 470px;
}

.game-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #263b42, #17191f);
}

.game-visual::before {
  content: "";
  position: absolute;
  inset: 22px 34px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  transform: perspective(360px) rotateX(42deg);
  background: linear-gradient(180deg, rgba(98, 212, 223, 0.22), rgba(255, 255, 255, 0.04));
}

.game-visual span {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  animation: tokenBounce 4.6s ease-in-out infinite;
}

.game-visual span:nth-child(1) { left: 18%; top: 48%; background: var(--rose); }
.game-visual span:nth-child(2) { left: 36%; top: 34%; background: var(--gold); animation-delay: -0.9s; }
.game-visual span:nth-child(3) { left: 54%; top: 58%; background: var(--cyan); animation-delay: -1.8s; }
.game-visual span:nth-child(4) { left: 66%; top: 32%; background: #9878f4; animation-delay: -2.7s; }
.game-visual span:nth-child(5) { left: 44%; top: 72%; background: var(--green); animation-delay: -3.4s; }

.terminal {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 186, 87, 0.22), transparent 44%),
    linear-gradient(135deg, #1f242a, #101113);
}

.terminal::before {
  inset: 42px;
  border: 2px solid rgba(240, 186, 87, 0.42);
  transform: none;
  background: #16120d;
}

.screen-lines {
  position: relative;
  z-index: 1;
  width: 62%;
  height: 48%;
  border: 1px solid rgba(240, 186, 87, 0.6);
  background:
    linear-gradient(var(--gold) 0 0) 18% 24% / 54% 3px no-repeat,
    linear-gradient(var(--gold) 0 0) 18% 42% / 70% 3px no-repeat,
    linear-gradient(var(--gold) 0 0) 18% 60% / 48% 3px no-repeat,
    repeating-linear-gradient(0deg, rgba(240, 186, 87, 0.12), rgba(240, 186, 87, 0.12) 1px, transparent 1px, transparent 6px);
  box-shadow: 0 0 34px rgba(240, 186, 87, 0.24);
  animation: crtPulse 2.8s ease-in-out infinite;
}

.street {
  background: linear-gradient(135deg, #547a85, #e2a259 64%, #343537);
}

.street::before {
  inset: auto 0 0;
  height: 58px;
  border: 0;
  transform: none;
  background: rgba(20, 21, 23, 0.62);
}

.figure {
  position: absolute;
  left: 43%;
  top: 36px;
  width: 74px;
  height: 142px;
  border-radius: 38px 38px 12px 12px;
  background: #5a4638;
  box-shadow: inset 0 28px 0 #d4c2a8, 0 18px 34px rgba(0, 0, 0, 0.3);
  animation: streetSway 4.8s ease-in-out infinite;
}

.figure::before,
.figure::after {
  content: "";
  position: absolute;
  top: 74px;
  width: 34px;
  height: 12px;
  border-radius: 12px;
  background: #d4c2a8;
}

.figure::before {
  left: -8px;
  transform: rotate(28deg);
}

.figure::after {
  right: -8px;
  transform: rotate(-28deg);
}

.game-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
}

.status {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-body h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.08;
}

.game-body p,
.game-body li {
  color: var(--muted);
  line-height: 1.62;
  overflow-wrap: break-word;
}

.game-body ul {
  margin: 6px 0 28px;
  padding-left: 18px;
}

.game-body a {
  margin-top: auto;
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 5px;
}

.teaser-grid .game-body {
  padding-bottom: 34px;
}

.notify {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  margin: 0 clamp(18px, 4vw, 56px) 88px;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(98, 212, 223, 0.16), transparent 34%),
    linear-gradient(135deg, #1b1f24, #121315);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
}

.notify::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(157, 224, 92, 0.14), transparent 34%);
  pointer-events: none;
}

.notify > * {
  position: relative;
  min-width: 0;
}

.notify h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.02;
}

.notify p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-card {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact {
  align-items: center;
  background: var(--panel-2);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
}

@keyframes heroDrift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(-14px, -8px, 0); }
}

@keyframes floatParticle {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.18; }
  50% { transform: translate3d(18px, -24px, 0); opacity: 0.76; }
}

@keyframes tokenBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

@keyframes crtPulse {
  0%, 100% { opacity: 0.78; filter: saturate(1); }
  50% { opacity: 1; filter: saturate(1.4); }
}

@keyframes streetSway {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-4px); }
}

@keyframes revealIn {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

.footer-brand img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 7px;
}

@media (max-width: 980px) {
  .section,
  .contact,
  .notify {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }

  .game-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero {
    min-height: auto;
    align-items: start;
    padding-top: 168px;
    padding-bottom: 76px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(16, 17, 19, 0.86) 0%, rgba(16, 17, 19, 0.36) 42%, rgba(16, 17, 19, 0.92) 100%),
      url("assets/irezapps-hero.png") 62% center / cover no-repeat;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.4vw, 2.8rem);
    line-height: 1;
  }

  .section h2,
  .contact h2 {
    max-width: 100%;
    font-size: clamp(1.8rem, 7.5vw, 2.3rem);
    overflow-wrap: break-word;
  }

  .lede {
    max-width: 32ch;
    font-size: 1rem;
  }

  .section,
  .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .notify {
    margin-bottom: 64px;
    padding: 28px 20px;
  }

  .notify h2 {
    font-size: clamp(2rem, 8.5vw, 2.75rem);
  }

  .contact-card {
    padding: 18px;
  }

  .section > p,
  .about-copy,
  .contact p,
  .game-body p {
    max-width: 29ch;
    overflow-wrap: break-word;
  }

  .game-body {
    padding: 24px 20px 28px;
  }

  .game-body h3 {
    max-width: 12ch;
  }

  footer {
    flex-direction: column;
  }
}
