@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Urbanist:wght@500;600;700;800&display=swap');

:root {
  --color-midnight: #0a0b10;
  --color-blue-black: #050508;
  --color-oxblood: #4a0404;
  --color-fuchsia: #8a1c3a;
  --color-ochre: #d4af37;
  --color-bone: #f5f5f0;
  --color-glass: rgba(10, 11, 16, 0.7);
  --color-glass-border: rgba(212, 175, 55, 0.2);

  --font-heading: 'Urbanist', system-ui, sans-serif;
  --font-body: 'Libre Baskerville', Georgia, serif;

  --radius-pill: 999px;
  --radius-arch: 24px;
  --radius-grand: 48px;

  --spacing-section: 8rem;
  --spacing-element: 2rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-midnight);
  color: var(--color-bone);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--color-ochre);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-bone);
}

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

/* Typography */
.text-center { text-align: center; }
.text-ochre { color: var(--color-ochre); }
.text-bone { color: var(--color-bone); }
.text-fuchsia { color: var(--color-fuchsia); }

.h1 { font-size: clamp(3rem, 5vw, 5.5rem); }
.h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.h3 { font-size: clamp(2rem, 3vw, 3rem); }

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--spacing-section) 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.9), transparent);
  backdrop-filter: blur(10px);
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-bone);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo img {
  width: 32px;
  height: 32px;
}

.nav-cluster {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-bone);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--color-ochre);
}

/* Mobile Nav */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-bone);
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--color-blue-black);
  padding: 6rem 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-panel.is-open {
  right: 0;
}

@media (max-width: 768px) {
  .nav-cluster { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-ochre);
  color: var(--color-blue-black);
}

.btn-primary:hover {
  background-color: var(--color-bone);
  color: var(--color-blue-black);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-ochre);
  color: var(--color-blue-black);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-midnight) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-pedestal {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

/* Game Stage */
.game-stage-section {
  position: relative;
  padding: var(--spacing-section) 0;
  background-color: var(--color-blue-black);
  overflow: hidden;
}

.game-stage-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.game-stage-drapery {
  position: absolute;
  top: 0;
  height: 100%;
  width: 20%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
}

.game-stage-drapery.left { left: 0; }
.game-stage-drapery.right { right: 0; }

.game-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-grand);
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.game-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-arch);
  overflow: hidden;
  background-color: #000;
}

iframe[data-external-game-iframe] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Cards */
.card {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-arch);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(138, 28, 58, 0.2);
  border-color: var(--color-ochre);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.66%;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
}

/* Explainer Split */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .split-layout { grid-template-columns: 1fr; }
}

.texture-bg {
  position: relative;
  border-radius: var(--radius-grand);
  overflow: hidden;
}

.texture-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Trust Badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-badge {
  text-align: center;
  padding: 2rem;
  background: var(--color-glass);
  border-radius: var(--radius-arch);
  border: 1px solid var(--color-glass-border);
}

.trust-badge img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background-color: var(--color-blue-black);
  border-top: 1px solid var(--color-glass-border);
  padding: 6rem 0 2rem;
  position: relative;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-fuchsia), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-bone);
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-ochre);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content Pages */
.page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  position: relative;
  background-color: var(--color-blue-black);
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-section) 2rem;
}

.content-section h2 {
  margin-top: 3rem;
  color: var(--color-ochre);
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-arch);
  color: var(--color-bone);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-ochre);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Disclaimer */
.disclaimer-bar {
  background-color: var(--color-oxblood);
  color: var(--color-bone);
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: bold;
}
