/* btg-labs.com static site stylesheet.
   System fonts only (no external requests). Mobile-responsive via plain CSS.
   Brand accent #FFC44C matches the Pirate Twist demo video and Steam capsule. */

:root {
  --bg: #07070a;
  --bg-panel: #11121a;
  --bg-elevated: #1a1c28;
  --fg: #f2f2f4;
  --fg-dim: #a0a0ad;
  --fg-faint: #6c6c78;
  --accent: #ffc44c;
  --accent-bright: #ffd277;
  --border: #25262f;
  --max: 1120px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-bright); }

/* ---------- header ---------- */
header {
  border-top: 4px solid var(--accent);
  background: rgba(11, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand a {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  transition: opacity .2s;
}
.brand a:hover { opacity: 0.85; color: var(--fg); }
.brand .logo {
  height: 36px;
  width: auto;
  display: block;
}
nav { display: flex; align-items: center; }
nav a {
  font-size: 15px;
  margin-left: 32px;
  color: var(--fg-dim);
  font-weight: 500;
}
nav a:hover { color: var(--fg); }
nav a:first-child { margin-left: 0; }
nav a.current { color: var(--accent); }

/* ---------- main ---------- */
main {
  flex: 1;
  width: 100%;
}

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- hero (full-bleed image with overlay) ---------- */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 540px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,10,0.2) 0%, rgba(7,7,10,0.55) 60%, rgba(7,7,10,1) 100%);
}
.hero-banner .inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 56px;
  width: 100%;
}
.hero-logo {
  max-width: 520px;
  width: 80%;
  display: block;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

/* ---------- typography ---------- */
h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 24px;
}
h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 80px 0 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--accent);
  font-weight: 600;
}
p { margin-bottom: 18px; color: var(--fg); }
p.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg-dim);
  margin-bottom: 40px;
  max-width: 720px;
}

ul, ol { margin: 0 0 24px 24px; }
li { margin-bottom: 10px; }

strong { color: var(--fg); font-weight: 600; }
.legal strong { color: var(--accent); }

/* ---------- panels & cards ---------- */
.intro-spacer { padding-top: 80px; }

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 40px 0 24px;
}
.feature-card .art {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.feature-card .body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card .body h2 {
  margin: 12px 0 16px;
  font-size: 28px;
}
.feature-card .body h2 a { color: var(--fg); }
.feature-card .body h2 a:hover { color: var(--accent); }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0 16px;
}
.contact-grid .contact-card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.contact-grid .contact-card .cta {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- CTAs ---------- */
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid var(--accent);
  margin-top: 12px;
  transition: background .15s, color .15s, border-color .15s;
}
.cta:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg);
}
.cta.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.cta.secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- meta strip ---------- */
.meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tags { margin: 16px 0 32px; }
.tag {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ---------- screenshot strip ---------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 24px;
}
.screenshot-strip img,
.screenshot-strip .placeholder {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--fg-faint);
  margin-top: 80px;
}
footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
footer a { color: var(--fg-dim); margin: 0 14px; }
footer a:hover { color: var(--accent); }
footer .footer-brand {
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

/* ---------- legal pages ---------- */
.legal {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 80px 32px 64px;
}
.legal h1 { font-size: 44px; }
.legal h2 { font-size: 22px; margin: 48px 0 12px; }
.legal h3 { font-size: 17px; color: var(--fg); margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; }
.legal code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 13px;
  color: var(--accent);
}

/* ---------- animations ---------- */

/* Reveal on load: anything with .reveal starts hidden, fades in.
   We stagger via inline animation-delay set in markup. */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slowZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

.reveal {
  animation: fadeUp 0.9s cubic-bezier(.16,.84,.44,1) both;
}
.reveal-fast { animation-duration: 0.55s; }
.reveal-slow { animation-duration: 1.4s; }

/* Hero banner: the background image slowly zooms while the content fades up.
   Pseudo-element holds the bg so we can transform without moving the text. */
.hero-banner {
  background-image: none !important; /* overridden by .hero-banner .bg below */
}
.hero-banner .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  animation: slowZoom 16s ease-in-out infinite alternate;
  z-index: 0;
}
.hero-banner .inner { z-index: 1; animation: fadeUp 1.1s cubic-bezier(.16,.84,.44,1) 0.15s both; }
.hero-banner::before { z-index: 1; }

/* Glow under the hero logo */
.hero-logo {
  animation: fadeUp 1.2s cubic-bezier(.16,.84,.44,1) 0.35s both,
             shimmer 4.5s ease-in-out 1.5s infinite;
}

/* Feature card lift on hover */
.feature-card {
  transition: transform .35s cubic-bezier(.16,.84,.44,1),
              border-color .35s,
              box-shadow .35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 48px -20px rgba(255, 196, 76, 0.25);
}
.feature-card .art {
  transition: transform .9s cubic-bezier(.16,.84,.44,1);
}
.feature-card:hover .art {
  transform: scale(1.04);
}

/* CTA shimmer + lift */
.cta {
  position: relative;
  overflow: hidden;
  transition: transform .2s, background .2s, color .2s, box-shadow .25s;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(255, 196, 76, 0.55);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform .55s ease;
}
.cta:hover::after { transform: translateX(110%); }

/* Tag pill subtle lift */
.tag {
  transition: transform .2s, color .2s, border-color .2s;
}
.tag:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

/* Nav underline reveal */
nav a {
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s cubic-bezier(.16,.84,.44,1);
}
nav a:hover::after, nav a.current::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Floating background motion behind the studio hero */
.studio-hero {
  position: relative;
  padding-top: 100px;
  padding-bottom: 32px;
  overflow: hidden;
}
.studio-hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: -240px; right: -200px;
  background: radial-gradient(circle, rgba(255, 196, 76, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: drift1 24s ease-in-out infinite alternate;
}
.studio-hero::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  bottom: -200px; left: -160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: drift2 30s ease-in-out infinite alternate;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, -50px) scale(1.15); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .art { min-height: 240px; }
  h1 { font-size: 44px; }
  h2 { font-size: 26px; margin-top: 56px; }
  p.lead { font-size: 18px; }
  .hero-banner { min-height: 420px; }
  .hero-banner .inner { padding: 48px 24px 40px; }
  .hero-logo { max-width: 340px; width: 90%; }
  header .inner { padding: 16px 24px; }
  nav a { margin-left: 20px; font-size: 14px; }
  section { padding: 0 24px; }
  .legal { padding: 48px 24px 48px; }
  .legal h1 { font-size: 32px; }
  .screenshot-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
