/* Arcade Axis — site styles */

:root {
  --maxw: 1320px;
  --bg: #080b16;
  --bg-alt: #0e1324;
  --panel: #131a2e;
  --border: rgba(126, 195, 231, 0.14);
  --text: #e8eef8;
  --text-dim: #8f9dbc;
  --accent: #4ec3e7;
  --accent-2: #7fd9f2;
  --navy: #3d4a8f;
  --accent-grad: linear-gradient(135deg, #4ec3e7, #3d4a8f);
  --accent-grad-text: linear-gradient(135deg, #4ec3e7, #7fd9f2);
  --accent-tint: rgba(78, 195, 231, 0.14);
  --danger: #ff5c7c;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .btn {
  font-family: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, rgba(78, 195, 231, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(61, 74, 143, 0.22), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(78, 195, 231, 0.08), transparent 50%),
    var(--bg);
  background-size: 130% 130%;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: bgDrift 24s ease-in-out infinite alternate;
  }
}

@keyframes bgDrift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%; }
  to { background-position: 6% 8%, 92% 6%, 44% 94%; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 195, 231, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(78, 195, 231, 0); }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.96);
}

.btn-primary {
  background: var(--accent-grad);
  color: #061218;
  box-shadow: 0 8px 30px rgba(78, 195, 231, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(78, 195, 231, 0.45);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 11, 22, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-10deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-anim .hero .eyebrow { animation: fadeUp 0.7s ease both; }
  html.js-anim .hero h1 { animation: fadeUp 0.7s ease 0.08s both; }
  html.js-anim .hero p { animation: fadeUp 0.7s ease 0.16s both; }
  html.js-anim .hero .hero-actions { animation: fadeUp 0.7s ease 0.24s both; }
  html.js-anim .hero .stat-row { animation: fadeUp 0.7s ease 0.32s both; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: var(--accent-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Section headings */

.section {
  padding: 90px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  }

  html.js-anim .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Game cards */

.games-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.games-group-label:not(:first-child) {
  margin-top: 48px;
}

.games-group-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.6);
}

.games-group-label.is-upcoming .dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(78, 195, 231, 0.6);
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 195, 231, 0.35);
}

.game-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.game-cover {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

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

.game-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.game-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.86rem;
  flex-wrap: wrap;
}

.rating {
  color: #ffcf5c;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .badge {
    animation: badgePulse 2.6s ease-in-out infinite;
  }
}

.game-desc {
  color: var(--text-dim);
  margin: 0 0 20px;
}

.shots-wrap {
  position: relative;
  margin-bottom: 22px;
}

.game-shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.shots-arrow {
  position: absolute;
  top: 0;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  border: none;
  background: linear-gradient(90deg, var(--panel), transparent);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.shots-wrap:hover .shots-arrow {
  opacity: 1;
}

.shots-arrow:hover {
  color: var(--accent-2);
}

.shots-arrow.prev {
  left: 0;
}

.shots-arrow.next {
  right: 0;
  background: linear-gradient(270deg, var(--panel), transparent);
}

.shots-arrow[disabled] {
  opacity: 0 !important;
  pointer-events: none;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.25s ease;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.game-shots img {
  height: 180px;
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.game-shots img:hover {
  transform: scale(1.04);
}

.game-shots.is-landscape img {
  height: 160px;
  aspect-ratio: 16 / 9;
}

.game-shots::-webkit-scrollbar {
  height: 6px;
}

.game-shots::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

.game-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.coming-soon-card,
.submit-card {
  border-style: dashed;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.coming-soon-card .game-cover,
.submit-card .game-cover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.submit-card {
  grid-column: 1 / -1;
  border-color: rgba(78, 195, 231, 0.35);
  background: linear-gradient(180deg, var(--accent-tint), transparent 60%), var(--panel);
  padding: 44px 32px;
}

.submit-card .game-cover {
  width: 64px;
  height: 64px;
  background: var(--accent-tint);
  color: var(--accent-2);
  border-color: rgba(78, 195, 231, 0.35);
}

.submit-card .game-title {
  font-size: 1.6rem;
}

.submit-card .game-desc {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
}

.submit-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 14px;
}

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 195, 231, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* About */

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 18px;
}

.about-copy p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.about-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.about-panel:hover {
  transform: translateY(-4px);
}

.about-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-panel li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-panel li .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-top: 8px;
  flex-shrink: 0;
}

.about-panel li strong {
  display: block;
  margin-bottom: 2px;
}

.about-panel li span {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* CTA band */

.cta-band {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  margin: 0 24px;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 14px;
  font-weight: 800;
}

.cta-band p {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 30px;
}

/* Contact */

.contact-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 195, 231, 0.35);
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.contact-card p {
  color: var(--text-dim);
  margin: 0 0 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-row .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-row a {
  color: var(--text);
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--accent-2);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--text-dim);
  max-width: 320px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Legal / Privacy page */

.legal-page {
  padding: 64px 0 100px;
}

.legal-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0 0 10px;
  font-weight: 800;
}

.legal-header p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.05rem;
}

.legal-body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}

.legal-toc a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-dim);
}

.legal-toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 44px 0 16px;
  scroll-margin-top: 100px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-2);
}

.legal-content strong {
  color: var(--text);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.98rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.legal-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.legal-note {
  background: var(--accent-tint);
  border: 1px solid rgba(78, 195, 231, 0.3);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 40px;
}

/* Responsive */

@media (min-width: 1600px) {
  :root {
    --maxw: 1480px;
  }

  .hero h1 {
    font-size: 4.4rem;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .about-wrap {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .games-list {
    grid-template-columns: 1fr;
  }

  .legal-body {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .stat-row {
    gap: 32px;
  }

  .cta-band {
    margin: 0 12px;
    padding: 48px 20px;
  }

  .game-head {
    flex-wrap: wrap;
  }
}
