/* =============================================================================
   GoodGameBot — shared styles
   Replace app/company-specific values in HTML comments where noted.
   ============================================================================= */

:root {
  /* Brand palette — edit here to retheme */
  --color-accent: #ff4a00;
  --color-bg: #000000;
  --color-surface: #0d0d0d;
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.62);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-accent-soft: rgba(255, 74, 0, 0.18);

  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --header-h: 4rem;
  --max-w: 72rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

a:hover {
  color: #ff7a40;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ----- Layout utilities ----- */
.wrap {
  width: min(100% - var(--space-md) * 2, var(--max-w));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Site header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(100% - var(--space-sm) * 2, var(--max-w));
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.nav-desktop a:hover {
  color: var(--color-text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-bg) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  background: #ff6a30;
  color: var(--color-bg) !important;
}

/* Mobile menu (checkbox hack, no JS) */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.menu-btn svg {
  display: block;
}

@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .nav-desktop {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-md);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
  }

  .nav-desktop a {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-desktop a:last-child {
    border-bottom: none;
  }

  .menu-toggle:checked ~ .nav-desktop {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
}

.hero-sub {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  color: var(--color-muted);
  max-width: 32ch;
  margin: 0 0 var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #ff6a30;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.hero-ring {
  position: absolute;
  width: min(100%, 340px);
  aspect-ratio: 1;
  border: 1px dashed var(--color-border);
  border-radius: 50%;
  animation: spin-slow 48s linear infinite;
}

.hero-ring:nth-child(2) {
  width: min(100%, 280px);
  animation-direction: reverse;
  animation-duration: 36s;
  border-color: var(--color-accent-soft);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-bot {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(255, 74, 0, 0.25));
}

/* ----- Marquee ----- */
.marquee-wrap {
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-sm) 0;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.marquee span strong {
  color: var(--color-accent);
  font-weight: 800;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ----- Screens strip ----- */
.section {
  padding: var(--space-xl) 0;
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-xs);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  max-width: 20ch;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
  max-width: 48ch;
}

.shots-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-md);
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shots-scroll::-webkit-scrollbar {
  height: 6px;
}

.shots-scroll::-webkit-scrollbar-thumb {
  background: var(--color-accent-soft);
  border-radius: 999px;
}

.shot-card {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-caption {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  padding-inline: 2px;
}

/* ----- Story / prose ----- */
.prose-block {
  max-width: 52ch;
}

.prose-block p + p {
  margin-top: var(--space-md);
}

.prose-block p {
  margin: 0;
  color: var(--color-muted);
}

.prose-block strong {
  color: var(--color-text);
}

.split-section {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 800px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

.big-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-border);
  margin: 0;
  user-select: none;
}

/* ----- Feature bento ----- */
.bento {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
  }

  .bento .cell-wide {
    grid-column: span 2;
  }
}

.cell {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(145deg, var(--color-surface) 0%, #080808 100%);
  position: relative;
  overflow: hidden;
}

.cell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: var(--space-sm) 0 var(--space-xs);
  position: relative;
}

.cell p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  position: relative;
}

.cell-icon {
  position: relative;
  color: var(--color-accent);
}

/* ----- Steps ----- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  padding-top: calc(var(--space-md) + 1.75rem);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-accent);
}

.steps h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-xs);
}

.steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ----- CTA band ----- */
.cta-band {
  margin: var(--space-xl) 0;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-accent-soft);
  background: linear-gradient(135deg, var(--color-surface) 0%, #0a0502 50%, var(--color-bg) 100%);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 var(--space-sm);
}

.cta-band p {
  margin: 0 auto var(--space-md);
  color: var(--color-muted);
  max-width: 42ch;
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 var(--space-xs);
}

.footer-brand span {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ----- Legal / inner pages ----- */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.02em;
}

.page-hero .meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.legal-content {
  padding: var(--space-xl) 0 var(--space-2xl);
  max-width: 48rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  margin: 0 0 var(--space-sm);
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content strong {
  color: var(--color-text);
}

/* ----- Contact page ----- */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 var(--space-md);
}

.contact-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-row:last-child {
  margin-bottom: 0;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent);
}

.contact-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.15rem;
}

.contact-row dd {
  margin: 0;
  font-size: 1rem;
}

.contact-row a {
  word-break: break-word;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-md);
}

.form-note code {
  font-size: 0.9em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form: wire action in HTML — see comment on contact.html */
.form-actions {
  margin-top: var(--space-sm);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.back-home:hover {
  color: var(--color-accent);
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee {
    animation: none;
  }

  .hero-ring {
    animation: none;
  }
}
