/* ==========================================================================
   Grearl Digital — shared stylesheet
   One file, used by every page. No build step: edit this directly and
   every page picks up the change on next load.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Background is a muted charcoal-navy, not pure black — keeps screenshots
     the visual focus without the "AI near-black" flatness. */
  --bg: #14161c;
  --surface: #1b1e27;
  --surface-hover: #21242f;
  --border: #2a2e35;

  --text: #f1f2f5;
  --text-muted: #9ba0ae;

  /* Single accent: a bright kinetic lime-green. Reads as "physics / motion /
     impact" across all three games (slingshot smash, wobble, blob growth)
     without leaning on the generic AI-cliché orange or acid-green-on-black. */
  --accent: #c8f24d;
  --accent-dim: #a6cf3c;
  --on-accent: #14161c;

  --radius-card: 22px 22px 22px 6px; /* asymmetric "blob" corner — the site's
                                          one recurring signature shape */
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --max-width: 1320px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset / base ----------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---- Layout ------------------------------------------------------------ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---- Header / nav -------------------------------------------------- */
.site-header {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  padding: var(--space-5) 0 var(--space-4);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0;
}

/* ---- Section headings -------------------------------------------------- */
.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

section {
  padding: var(--space-4) 0;
}

/* ---- Game card grid ----------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-bounce), background 0.15s ease,
    border-color 0.15s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px) scale(1.015);
  background: var(--surface-hover);
  border-color: var(--accent-dim);
}

.game-card .thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0f1116;
  object-fit: cover;
}

.game-card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.game-card .card-body {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.game-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

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

/* Empty-state card used while no games are listed yet */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  color: var(--text-muted);
  text-align: center;
}

/* ---- Buttons / links ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-bounce), background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px) scale(1.03);
  background: var(--accent-dim);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* ---- Game detail page ---------------------------------------------------- */
.game-detail .screenshot {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  margin: var(--space-3) 0;
}

.game-detail h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
}

.game-detail .description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

/* ---- Simple content pages (contact / privacy / terms) --------------------- */
.content-page {
  padding: var(--space-4) 0 var(--space-5);
  max-width: 60ch;
}

.content-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

.content-page p {
  color: var(--text-muted);
}

.legal-page h2 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  margin: var(--space-3) 0 0.5rem;
}

.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 var(--space-3);
}

.placeholder-notice {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--text);
  font-weight: 600;
}

.mail-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.mail-link:hover,
.mail-link:focus-visible {
  text-decoration: underline;
}

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

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-nav {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- Focus visibility (accessibility floor) ------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---- Small screens --------------------------------------------------- */
@media (max-width: 480px) {
  .hero {
    padding: var(--space-4) 0 var(--space-3);
  }
  .site-nav {
    gap: var(--space-2);
  }
}

/* ==========================================================================
   v2 — logo lockup, hero visual, features, about section, expanded footer
   ========================================================================== */

/* Refresh accent to match the supplied brand assets (icy electric blue) */
:root {
  --accent: #2f9bff;
  --accent-dim: #1c7fe0;
  --on-accent: #071018;

  /* GrearlCut's own accent — used only within GrearlCut-specific pages
     (pricing, welcome) to give that product its own visual identity
     within the site, distinct from the main studio blue. */
  --purple: #a15bff;
  --purple-dim: #8a3ff0;
}

.btn-purple {
  background: var(--purple);
  color: #fff;
}

.btn-purple:hover,
.btn-purple:focus-visible {
  background: var(--purple-dim);
  transform: translateY(-2px) scale(1.03);
}

/* ---- Logo lockup (header + footer) -------------------------------------- */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-lockup .logo-mark {
  height: 58px;
  width: auto;
}

.logo-lockup .logo-word {
  height: 38px;
  width: auto;
}

.logo-lockup.small .logo-mark {
  height: 42px;
}

.logo-lockup.small .logo-word {
  height: 28px;
}

/* ---- Nav uppercase treatment (approximates the brief's display font using
   only system fonts: bold weight + wide tracking + caps, no font import) --- */
.site-nav a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ---- Hero banner: full-width image with left-aligned text overlay -------- */
.hero-banner {
  position: relative;
  margin-top: var(--space-3);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* Fades from solid background on the left (where the text sits) to
     transparent on the right, so the controller/crystal art stays fully
     visible while the headline stays readable. */
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    rgba(20, 22, 28, 0.94) 26%,
    rgba(20, 22, 28, 0.62) 46%,
    rgba(20, 22, 28, 0.1) 68%,
    transparent 82%
  );
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: var(--space-5) var(--space-4);
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.hero-overlay h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0 0 var(--space-3);
}

.hero-overlay h1 .accent-line {
  display: block;
  color: var(--accent);
}

.hero-overlay .hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0;
}

@media (max-width: 760px) {
  .hero-banner {
    min-height: 0;
    border-radius: var(--radius-sm);
  }
  .hero-media {
    position: static;
    aspect-ratio: 16 / 10;
  }
  .hero-scrim {
    /* On narrow screens the text sits below the image instead of over it,
       so darken the whole image evenly for a calmer transition instead of
       the left-to-right fade used on wide screens. */
    background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  }
  .hero-banner {
    display: block;
  }
  .hero-overlay {
    position: static;
    max-width: none;
    padding: var(--space-3) var(--space-2) 0;
  }
}

/* ---- Section eyebrow (reused above "OUR GAMES" / "ABOUT US" etc.) ------- */
.eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-heading.big {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  text-transform: uppercase;
}

/* ---- Game grid v2: 5th "coming soon" tile -------------------------------- */
.game-card.locked {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  cursor: default;
}

.game-card.locked:hover {
  transform: none;
  background: var(--surface);
  border-color: var(--border);
}

.game-card.locked .lock-icon {
  width: 28px;
  height: 28px;
  margin: var(--space-3) auto 0.75rem;
  color: var(--text-muted);
}

.game-card.locked .card-body {
  padding-top: 0;
}

.thumb.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-hover), var(--bg));
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Features row --------------------------------------------------------- */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature .feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.feature .feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- About section (homepage teaser + full page) --------------------------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.about-graphic {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-3);
}

.about-graphic .badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}

/* ---- Modifiers for when a real image replaces the dashed placeholder --- */
.about-graphic.wide {
  aspect-ratio: 16 / 9;
}

.about-graphic.no-dash {
  border-style: solid;
  padding: 0;
  overflow: hidden;
}

.about-graphic .preview-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: inherit;
}

.about-text {
  max-width: 52ch;
}

.about-text p {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-graphic {
    order: -1;
  }
}

/* ---- Expanded footer -------------------------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-4) 0 var(--space-3);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: var(--space-2) 0;
}

.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

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

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

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

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

.social-list a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.social-list a:hover,
.social-list a:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.social-list svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Status pill (e.g. "Coming soon" badge, used where a button would
   normally go but there's nothing to link to yet) --------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.status-pill svg {
  width: 18px;
  height: 18px;
}

/* ---- GrearlCut logo (full lockup, centered, stands in for a text
   heading in this section) ------------------------------------------- */
.grearlcut-logo {
  display: block;
  height: 100px;
  width: auto;
  margin: var(--space-2) auto var(--space-3);
}

/* ---- Heading modifier: force one line, shrinking to fit if needed. Used
   where a heading sits in a narrower constrained column (e.g. the
   GrearlCut section) and the normal fluid size would wrap. ------------- */
.fit-line {
  white-space: nowrap;
  font-size: clamp(1.15rem, 6vw, 1.9rem);
}
