/* =========================================================================
   Willie Prinsloo — dev site. Dark, cinematic, single page.
   ========================================================================= */

:root {
  --bg-0: #05060a;
  --bg-1: #0a0d16;
  --bg-2: #0f1320;
  --panel: rgba(18, 22, 36, 0.62);
  --panel-border: rgba(120, 180, 255, 0.10);
  --text: #eaf2ff;
  --text-dim: #9aa6bd;
  --text-mute: #6a758b;
  --accent: #5cf0d5;        /* neon cyan */
  --accent-2: #7d8bff;      /* neon violet */
  --accent-3: #ffc25c;      /* warm amber, sparingly */
  --danger: #ff6b7a;
  --ring: 0 0 0 1px rgba(120, 180, 255, 0.18);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --easing: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(1200px 800px at 70% -10%, #0d1428 0%, transparent 60%),
              radial-gradient(900px 600px at 10% 110%, #12132a 0%, transparent 60%),
              var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
.link { color: var(--accent); border-bottom: 1px solid rgba(92, 240, 213, 0.4); }
.link:hover { border-bottom-color: var(--accent); }

/* -------- Starfield -------- */
#stars {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* -------- Nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.9), rgba(5, 6, 10, 0.0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.14em;
  font-size: 15px;
}
.nav-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(92, 240, 213, 0.4);
  animation: pulse 2.6s ease-in-out infinite;
}
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-dim); }
.nav-links a { transition: color 0.2s var(--easing); }
.nav-links a:hover { color: var(--text); }

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 32px 60px;
  z-index: 1;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: contrast(1.1) saturate(0.9) brightness(0.85) blur(1px);
  z-index: -2;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent, rgba(5, 6, 10, 0.55) 60%, rgba(5, 6, 10, 0.95) 100%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.35), rgba(5, 6, 10, 0.9));
  z-index: -1;
}
.hero-content {
  max-width: 900px; text-align: center;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; margin-bottom: 32px;
  font-size: 12px; letter-spacing: 0.24em;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 130px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-soft { color: var(--accent); }
.hero-sub {
  max-width: 640px; margin: 0 auto 40px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-dim);
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--easing), box-shadow 0.2s var(--easing),
              background 0.2s var(--easing), border-color 0.2s var(--easing);
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05060a;
  box-shadow: 0 8px 30px rgba(92, 240, 213, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(92, 240, 213, 0.35);
}
.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--panel-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(120, 180, 255, 0.3);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}
.hero-scroll span::after {
  content: "";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* -------- Stats strip -------- */
.stats {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 60px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat-num.infinite {
  background: linear-gradient(120deg, var(--accent-3), var(--danger));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  margin-top: 12px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
}

/* -------- Sections -------- */
.section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 120px 32px;
}
.section-dark {
  max-width: none; padding-left: 0; padding-right: 0;
  background:
    radial-gradient(700px 400px at 80% 20%, rgba(125, 139, 255, 0.10), transparent 60%),
    radial-gradient(600px 400px at 10% 80%, rgba(92, 240, 213, 0.06), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}
.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.section-head { margin-bottom: 60px; max-width: 780px; }
.section-tag {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.24em;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 20px;
}
.section-tag.accent { color: var(--accent); border-bottom-color: rgba(92, 240, 213, 0.3); }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
}

/* -------- About -------- */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  align-items: start;
}
.about-text p { color: var(--text-dim); font-size: 17px; margin: 0 0 20px; }
.chip-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin: 30px 0 0;
}
.chip-list li {
  padding: 8px 14px; font-size: 13px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 999px; color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s;
}
.chip-list li:hover { color: var(--text); border-color: rgba(92, 240, 213, 0.4); }

.about-card {
  position: relative;
  padding: 40px 32px; text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.about-card-glow {
  position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(92, 240, 213, 0.15) 0%, transparent 40%);
  pointer-events: none;
}
.about-avatar {
  width: 120px; height: 120px; border-radius: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(120, 180, 255, 0.15);
  position: relative;
}
.about-card-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  margin-bottom: 6px; position: relative;
}
.about-card-role {
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; position: relative;
}
.about-card-loc {
  font-size: 14px; color: var(--text-mute);
  position: relative;
}

/* -------- Game section -------- */
.game-hero {
  margin-bottom: 60px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.game-video, .game-shot {
  width: 100%; display: block;
  background: #000;
}
.game-shot {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 780px;
  object-position: center;
}
.game-video-caption {
  position: absolute; bottom: 16px; left: 20px;
  padding: 6px 12px;
  font-size: 12px; letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.6); border-radius: 999px;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
}

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 60px;
}
.feature {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s var(--easing), border-color 0.25s, background 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 240, 213, 0.3);
  background: rgba(24, 30, 48, 0.72);
}
.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%; overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(120, 180, 255, 0.15);
}
.feature-icon img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.feature h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin: 0 0 10px;
}
.feature p {
  color: var(--text-dim); margin: 0; font-size: 15px;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 20px;
}
.game-gallery figure {
  margin: 0; position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--panel-border);
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--easing), border-color 0.3s;
}
.game-gallery figure:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 240, 213, 0.35);
}
.game-gallery figure.gallery-tall {
  grid-column: span 2; grid-row: span 2;
}
.game-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--easing);
}
.game-gallery figure:hover img { transform: scale(1.05); }
.game-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(to top, rgba(5, 6, 10, 0.9) 0%, rgba(5, 6, 10, 0) 100%);
  padding-top: 40px;
}

/* -------- Contact / Issue form -------- */
.issue-form {
  max-width: 780px;
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.form-field > span {
  font-size: 13px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  font-family: inherit; font-size: 15px;
  color: var(--text);
  background: rgba(5, 6, 10, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92, 240, 213, 0.15);
  background: rgba(5, 6, 10, 0.8);
}
.form-field textarea { min-height: 130px; }
.form-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 12px;
}
.form-hint { font-size: 13px; color: var(--text-mute); }
.form-status {
  margin-top: 24px; padding: 16px 20px;
  background: rgba(92, 240, 213, 0.10);
  border: 1px solid rgba(92, 240, 213, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
}

/* -------- Footer -------- */
.footer {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 60px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  border-top: 1px solid var(--panel-border);
}
.footer-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em;
}
.footer-tag { font-size: 13px; color: var(--text-mute); margin-top: 4px; }
.footer-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; font-size: 13px; color: var(--text-mute);
}
.footer-right a { color: var(--accent); }

/* -------- Reveal animation -------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--easing), transform 0.8s var(--easing); }
.reveal.in { opacity: 1; transform: none; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 16px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 20px; }
  .section { padding: 80px 20px; }
  .section-dark > * { padding-left: 20px; padding-right: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .game-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .game-gallery figure.gallery-tall { grid-column: span 2; grid-row: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .issue-form { padding: 24px; }
  .footer { padding: 30px 20px 40px; }
  .footer-right { align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .hero-video { display: none; }
  .hero-scrim { background: var(--bg-0); }
}
