/* HiRes Solutions: one stylesheet for every page.
   Dark charcoal with the lime green from the HiRes checkmark as the single accent, so the
   games' own artwork stays the most colourful thing on the page. */

:root {
  --bg: #0c0e11;
  --bg-2: #12151a;
  --surface: #171b21;
  --surface-2: #1e232b;
  --line: #2a313b;
  --text: #eef1f5;
  --muted: #a3adbb;
  --faint: #6f7a89;
  --lime: #8fbf2a;
  --lime-soft: rgba(143, 191, 42, 0.15);
  --on-lime: #141a00;
  --gold: #ffc21a;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --head: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #a9d443; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--on-lime); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font: 700 1.2rem/1 var(--head); letter-spacing: -0.02em; }
.brand-name span { color: var(--lime); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav a.nav-cta { color: var(--on-lime); background: var(--lime); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: #a3d03a; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--on-lime); }
.btn-primary:hover { background: #a3d03a; color: var(--on-lime); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 112px) 0; }
section.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block; font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Hero ---------- */

/* The header graphic already carries the site name, the headline and the four games, so the
   page's h1 is for screen readers and search engines only, and the text below it introduces
   the studio. */
.hero { padding: clamp(20px, 3vw, 36px) 0 clamp(64px, 9vw, 112px); }
.hero-banner {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}
.hero-intro { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; text-align: center; }
.hero-intro .btn-row { justify-content: center; }
.hero-lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 4px 0 32px; }
.hero-note { color: var(--faint); font-size: 0.95rem; margin-top: 22px; }
@media (max-width: 600px) { .hero-banner { border-radius: 14px; } }

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

/* ---------- MindSharp ---------- */

.mindsharp {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(63, 169, 245, 0.28), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(255, 194, 26, 0.18), transparent 50%),
    linear-gradient(160deg, #14245c 0%, #0a1433 100%);
  border: 1px solid rgba(255, 194, 26, 0.35);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
}
.mindsharp .eyebrow { color: var(--gold); }
.mindsharp p { color: #c9d3ef; margin-top: 14px; }
.mindsharp strong { color: var(--gold); font-weight: 600; }
.mindsharp-logo { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)); }
.mindsharp .btn-primary { background: var(--gold); color: #1d1400; margin-top: 28px; }
.mindsharp .btn-primary:hover { background: #ffd04d; }
@media (max-width: 860px) { .mindsharp { grid-template-columns: 1fr; } }

/* ---------- Game cards ---------- */

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.game {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game:hover { transform: translateY(-4px); border-color: var(--lime); color: var(--text); }
.game-art { aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.game:hover .game-art img { transform: scale(1.04); }
.game-art.logo-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #222a33, #0b0d10); padding: 22px; }
.game-art.logo-art img { object-fit: contain; height: auto; }
.game-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.game-body p { color: var(--muted); font-size: 0.97rem; margin: 8px 0 16px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tag {
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.play { font-weight: 600; color: var(--lime); }
.game:hover .play { text-decoration: underline; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lime-soft); color: var(--lime); margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: 0.97rem; margin-top: 8px; }

/* ---------- Split (image + text) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.split p { color: var(--muted); margin-top: 16px; }
.split .btn-row { margin-top: 28px; }
.checks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; color: var(--text); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238fbf2a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .split-media { order: -1; } }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-grid p { color: var(--muted); margin-top: 16px; }
.motto {
  font: 600 clamp(1.4rem, 2.4vw, 1.8rem)/1.3 var(--head); letter-spacing: -0.01em;
  border-left: 3px solid var(--lime); padding-left: 22px; margin-bottom: 28px;
}
.motto span { color: var(--lime); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font: 700 2rem/1 var(--head); color: var(--lime); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.93rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 14px; }
.side-card p { margin-top: 6px; font-size: 0.97rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Call to action band ---------- */

.cta-band {
  background: var(--lime); color: var(--on-lime); border-radius: 24px;
  padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin-top: 8px; color: #1f2805; }
.cta-band .btn { background: var(--on-lime); color: var(--lime); }
.cta-band .btn:hover { background: #000; color: var(--lime); }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head p { color: var(--muted); font-size: 1.15rem; margin-top: 16px; max-width: 40em; }

/* ---------- Tech support ---------- */

.service-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.service-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.service-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.service-group h3 .feature-icon { margin: 0; width: 40px; height: 40px; }
.service-group ul { padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }

.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.rate.featured { border-color: var(--lime); background: linear-gradient(180deg, var(--lime-soft), var(--surface) 60%); }
.rate .price { font: 700 2.6rem/1 var(--head); margin: 16px 0 4px; }
.rate .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.rate p { color: var(--muted); font-size: 0.97rem; margin-top: 10px; flex: 1; }
.rate .btn { margin-top: 22px; align-self: flex-start; }

.contact-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-weight: 500;
}
.contact-pill:hover { border-color: var(--lime); color: var(--text); }
.contact-pill svg { width: 18px; height: 18px; color: var(--lime); }

/* ---------- Contact form ---------- */

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.form-card label { display: block; margin-bottom: 18px; }
.form-card label > span { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px;
}
.form-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23a3adbb' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form-card textarea { resize: vertical; min-height: 140px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; min-height: 1.6em; color: var(--muted); }
.form-status.error { color: #ff8a8a; }
.form-done { text-align: center; padding: 24px 0; }
.form-done h2 { margin-bottom: 10px; }
.form-done p { color: var(--muted); }

/* ---------- Plain text pages ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: clamp(32px, 6vw, 72px); color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font: 600 0.8rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { margin-top: 14px; max-width: 26em; }
.footer-base { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 0.875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
