/* YORQ Studio — single-page styles (no frameworks) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a2e;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --accent-primary: #00d4ff;
  --accent-secondary: #ff8c00;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-card: 16px;
  --radius-icon: 18px;
  --transition-base: 0.3s ease;
  --max-width: 1200px;
  --nav-h: 72px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #66e8ff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-primary);
  color: #0a0a0f;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* --- Sticky header + glass on scroll --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header--scrolled {
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--text-primary);
}

.nav__logo-accent {
  color: var(--accent-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: var(--accent-primary);
}

@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav--open .nav__links {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__links li:last-child a {
    border-bottom: 0;
  }

  .nav--open .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav--open .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav--open .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.45;
  animation: gridPulse 14s ease-in-out infinite alternate;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero__glow--one {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 10%;
  left: 15%;
  background: var(--accent-primary);
}

.hero__glow--two {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: 5%;
  right: 10%;
  background: var(--accent-secondary);
  opacity: 0.22;
}

.hero__shapes {
  position: absolute;
  inset: 0;
}

.hero__shape {
  position: absolute;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 12px;
  animation: floatShape 18s ease-in-out infinite;
}

.hero__shape--a {
  width: 120px;
  height: 120px;
  top: 22%;
  right: 18%;
  transform: rotate(12deg);
  animation-delay: -2s;
}

.hero__shape--b {
  width: 72px;
  height: 72px;
  bottom: 28%;
  left: 12%;
  border-color: rgba(255, 140, 0, 0.35);
  animation-delay: -6s;
}

.hero__shape--c {
  width: 48px;
  height: 48px;
  top: 48%;
  left: 40%;
  opacity: 0.7;
  animation-delay: -10s;
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin: 0 0 var(--space-lg);
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), #0099cc);
  color: #0a0a0f;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25), 0 12px 40px rgba(0, 212, 255, 0.15);
}

.btn--primary:hover {
  color: #0a0a0f;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.4), 0 16px 48px rgba(0, 212, 255, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn--ghost:hover {
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.45);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: var(--space-xl) var(--space-md);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 var(--space-lg);
  max-width: 42rem;
  color: var(--text-secondary);
}

.section__inner--about p {
  margin: 0 0 var(--space-md);
  max-width: 44rem;
  color: var(--text-secondary);
}

.section__inner--about p:first-of-type {
  color: var(--text-primary);
}

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  .section--games .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Optional third column on very wide: spec asked 2-3 desktop — use 3 only when room */
@media (min-width: 1280px) {
  .section--games .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08080c;
  border-bottom: 1px solid var(--border-subtle);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info {
  padding: var(--space-md);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: var(--space-xs);
}

.card-icon {
  grid-row: 1 / span 2;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-icon);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.card-info h3 {
  margin: 0;
  font-size: 1.25rem;
  align-self: end;
}

.card-info p {
  grid-column: 2;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.card-links--muted {
  opacity: 0.85;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}

.store-badge:hover {
  transform: translateY(-1px);
}

.store-badge.steam {
  border-color: rgba(255, 140, 0, 0.45);
  color: #ffd199;
}

.store-badge.steam:hover {
  color: #fff2e0;
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.15);
}

.store-badge.gplay {
  border-color: rgba(0, 212, 255, 0.45);
  color: #b8f4ff;
}

.store-badge.gplay:hover {
  color: #e6fbff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.store-badge.appstore {
  border-color: rgba(160, 170, 255, 0.45);
  color: #d6d9ff;
}

.store-badge.appstore:hover {
  color: #f0f1ff;
  box-shadow: 0 0 20px rgba(160, 170, 255, 0.12);
}

.store-badge--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.55;
}

/* Coming soon card */
.game-card--soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
}

.game-card--soon:hover {
  border-style: dashed;
  border-color: rgba(0, 212, 255, 0.3);
}

.card-media--soon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08), transparent 65%);
}

.soon-plate {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin: var(--space-md);
  border-radius: calc(var(--radius-card) - 6px);
  background: rgba(255, 255, 255, 0.02);
}

.soon-plate__label {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-icon--placeholder {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* About icons */
.about-icons {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: flex;
  gap: var(--space-md);
}

.about-icons__item {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.about-icons__item:hover {
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}

.about-icons__svg {
  width: 26px;
  height: 26px;
}

/* Contact */
.section--contact {
  padding-bottom: var(--space-lg);
}

.contact-email {
  font-size: 1.25rem;
  margin: var(--space-md) 0 var(--space-lg);
}

.contact-email a {
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-sm);
}

.social__link {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.social__link svg {
  width: 22px;
  height: 22px;
}

.social__link:hover {
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md);
  margin-top: 0;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Motion */
@keyframes gridPulse {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.55;
  }
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0) rotate(12deg);
  }
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}

.hero__shape--b {
  animation-name: floatShapeAlt;
}

@keyframes floatShapeAlt {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(12px) rotate(-14deg);
  }
}

.hero__shape--c {
  animation-name: floatShapeSmall;
}

@keyframes floatShapeSmall {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__grid,
  .hero__shape,
  .hero__glow {
    animation: none !important;
  }

  .game-card:hover,
  .btn--primary:hover,
  .btn--ghost:hover,
  .store-badge:hover,
  .social__link:hover,
  .about-icons__item:hover {
    transform: none;
  }
}
