:root {
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #15323a;
  --muted: #5f7178;
  --line: #e4ece9;
  /* Brand palette, sampled from the VirtuaMakers logo */
  --green: #61a138;
  --green-bright: #73ba44;
  --green-deep: #196c26;
  --teal: #167082;
  --teal-deep: #01566b;
  --accent: var(--teal);
  --accent-soft: #e7f1f1;
  --radius: 14px;
  --maxw: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 82% -12%, rgba(22, 112, 130, 0.10), transparent 60%),
    radial-gradient(50rem 40rem at -10% 8%, rgba(97, 161, 56, 0.12), transparent 55%);
}

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

/* Header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: auto;
  height: 34px;
  display: block;
}

.brand-name {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
}

.word-virtua {
  color: var(--green);
}

.word-makers {
  color: var(--teal);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a {
  transition: color 0.15s ease;
}

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

/* Layout */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 1.75rem 1.5rem 3.25rem;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 20, 12, 0.8) 0%, rgba(3, 20, 12, 0.56) 55%, rgba(3, 20, 12, 0.4) 100%),
    url("assets/hero-bg.png") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero-logo {
  width: calc(min(420px, 72vw) - 20px);
  height: auto;
  border-radius: 26px;
  margin-bottom: 1.4rem;
  box-shadow: 0 24px 56px -22px rgba(0, 0, 0, 0.7);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-bright);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(2.3rem, 6.5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.hero-motto {
  color: var(--green-bright);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: #cfcfca;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 1.8rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #d4e6dd;
  box-shadow: 0 12px 30px -16px rgba(20, 80, 70, 0.28);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* Alternate the brand colors across the work cards */
.card:nth-child(2) .card-tag {
  color: var(--green-deep);
  background: rgba(97, 161, 56, 0.14);
}

.card h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.card-emoji {
  font-size: 0.95em;
  margin-left: 0.15em;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0.3rem 0 0.9rem;
}

.card-image-half {
  width: 50%;
}

.game-image-link {
  display: block;
}

/* Match the description width to the half-size picture above/below it */
.play-desc {
  width: 50%;
}

.card-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal);
}

.card-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.card-cta-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.install-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 32rem;
}

.card-link:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.about-wordmark {
  display: block;
  width: 70%;
  max-width: 460px;
  height: auto;
  margin-bottom: 1.6rem;
}

.about-image {
  display: block;
  width: 75%;
  height: auto;
  border-radius: 10px;
  margin-top: 1.5rem;
}

.credit-label {
  color: var(--text);
  font-weight: 600;
  font-style: italic;
  margin-top: 1.3rem;
  margin-bottom: 0.4rem;
}

.credit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credit-list li {
  margin: 0.3rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal);
  font-weight: 500;
}

.credit-link:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.credit-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex: none;
}

.credit-logo-grok {
  width: 20px;
  height: 20px;
}

/* Footer */
/* Social */
.social-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.social-link:hover {
  color: var(--text);
}

.social-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.social-link:hover .social-icon {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.55);
}

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.social-x {
  background: #000000;
}

.social-discord {
  background: #5865f2;
}

.social-github {
  background: #181717;
}

.site-footer {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-sep {
  opacity: 0.5;
}

@media (max-width: 600px) {
  /* On phones, let the Play card description and picture fill the card */
  .play-desc,
  .card-image-half {
    width: 100%;
  }

  /* On portrait phones, center and full-width the About images */
  .about-wordmark,
  .about-image {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}
