:root {
  /* Prehistoric Tech Color System */
  --base-green: #06110a;
  --base-teal: #081a14;
  --volcanic-brown: #161513;
  
  --glass-bg: rgba(8, 26, 20, 0.4);
  --glass-border: rgba(57, 255, 20, 0.15);
  --glass-hover: rgba(57, 255, 20, 0.25);
  
  --neon-green: #39ff14;
  --electric-cyan: #00e5ff;
  --amber-warn: #ffaa00;
  
  --text-primary: #e0e6e3;
  --text-secondary: #8a9e94;
  --text-dark: #06110a;

  /* Typography */
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Layout */
  --container-max: 1320px;
  --space-desktop: 110px;
  --space-tablet: 80px;
  --space-mobile: 60px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--base-green);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--base-teal) 0%, transparent 70%),
    linear-gradient(to bottom, var(--base-green) 0%, var(--volcanic-brown) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout System */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Header & Nav (SaaS Control Bar) */
.sys-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 17, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.sys-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  opacity: 0.3;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
}

.logo-indicator {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon-green);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-green);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--neon-green);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(0, 229, 255, 0.1));
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.2), rgba(0, 229, 255, 0.2));
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--electric-cyan);
  color: var(--electric-cyan);
  background: rgba(0, 229, 255, 0.05);
}

/* Legal Banner */
.legal-banner {
  background: rgba(26, 26, 24, 0.9);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 99;
  margin-top: 80px; /* Offset for fixed header */
}

.legal-banner strong {
  color: var(--amber-warn);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.sys-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid var(--amber-warn);
  color: var(--amber-warn);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8), 0 20px 50px rgba(0,0,0,0.5);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.8) contrast(1.2);
  transition: transform 10s ease;
}

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

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(6,17,10,0.4) 0%, rgba(8,26,20,0.8) 100%);
}

.system-overlay {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-heading);
  color: var(--neon-green);
  font-size: 0.875rem;
  text-align: right;
  z-index: 3;
}

.system-overlay span {
  display: block;
  opacity: 0.7;
}

/* Game Containment Section */
.game-section {
  background: radial-gradient(circle at center, rgba(8, 26, 20, 0.8) 0%, var(--base-green) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.containment-frame {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(57, 255, 20, 0.05);
  padding: 8px;
  position: relative;
  transition: var(--transition-smooth);
}

.containment-frame::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, transparent 40%, rgba(57, 255, 20, 0.3) 50%, transparent 60%);
  background-size: 200% 200%;
  z-index: -1;
  animation: borderScan 4s linear infinite;
}

.containment-frame:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(57, 255, 20, 0.15);
  transform: scale(1.005);
}

.frame-ui-top {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--glass-border);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  background: rgba(0,0,0,0.2);
  border-radius: calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px) 0 0;
}

.status-active {
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-iframe {
  width: 100%;
  height: 700px;
  border: none;
  border-radius: 0 0 calc(var(--radius-lg) - 8px) calc(var(--radius-lg) - 8px);
  background: #000;
  display: block;
}

/* System Data / Features */
.system-data {
  position: relative;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--glass-border);
  transition: var(--transition-smooth);
}

.data-card:hover::before {
  background: var(--electric-cyan);
}

.data-icon {
  font-size: 2rem;
  color: var(--electric-cyan);
  margin-bottom: 24px;
  opacity: 0.8;
}

.data-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.data-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Content Pages (Terms, Privacy, About) */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(8, 26, 20, 0.8), var(--base-green));
  border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--neon-green);
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.text-block {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 48px;
  margin-bottom: 32px;
}

.text-block h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--electric-cyan);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding-bottom: 12px;
}

.text-block p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.text-block ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.text-block li {
  margin-bottom: 8px;
}

/* Form Styles */
.sys-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sys-input {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.sys-input:focus {
  outline: none;
  border-color: var(--electric-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

textarea.sys-input {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.sys-footer {
  background: #040a07;
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--electric-cyan);
}

.footer-legal {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.disclaimer-box {
  background: rgba(255, 170, 0, 0.05);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.disclaimer-box p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.disclaimer-box strong {
  color: var(--amber-warn);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(57, 255, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

@keyframes borderScan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .system-overlay {
    display: none;
  }
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .container {
    padding: 0 24px;
  }
  .section {
    padding: var(--space-tablet) 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu would go here */
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .game-iframe {
    height: 500px;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: var(--space-mobile) 0;
  }
}