@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #0A0A0D;
  --bg-secondary: #141417;
  --card-bg: rgba(255, 255, 255, 0.03);
  --accent-1: #00FF88;
  --accent-2: #00FFCC;
  --text-1: #F5F5F5;
  --text-2: #9CA3AF;
  
  /* Fonts */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1400px;
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 20px;
  
  /* Effects */
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);
  --neon-glow: 0 0 20px rgba(0, 255, 136, 0.2);
  --neon-glow-strong: 0 0 40px rgba(0, 255, 136, 0.4);
  --shadow-soft: 0 10px 30px rgba(10, 10, 13, 0.8);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-1);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; color: var(--text-2); }
a { color: var(--text-1); text-decoration: none; transition: color 0.3s ease; }

.text-accent {
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center { text-align: center; }

/* Layout & Grid */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Components: Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 2px 20px rgba(0, 255, 136, 0.05);
  z-index: 1000;
  padding: 20px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-1);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-1);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg-primary);
  box-shadow: var(--neon-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--neon-glow-strong);
}

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

.btn-outline:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: var(--neon-glow);
}

/* Hero Section */
.hero {
  position: relative;
  padding: calc(var(--spacing-desktop) + 80px) 0 var(--spacing-desktop);
  background-image: linear-gradient(to bottom, rgba(10, 10, 13, 0.7), var(--bg-primary)), url('images/arthurs-legacy-dark-mystical-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

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

.hero-legal-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Game Section (Core Focus) */
.game-section {
  background: var(--bg-primary);
  position: relative;
}

.game-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0,255,136,0.05) 0%, rgba(10,10,13,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.game-wrapper {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 20px 50px rgba(10, 10, 13, 0.9), var(--neon-glow);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Glass Cards & Layout */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 40px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.3);
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-1);
  font-size: 1.5rem;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Legal Notice Blocks */
.legal-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-1);
  padding: 30px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 40px 0;
}

.legal-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.legal-list li {
  position: relative;
  padding-left: 25px;
  color: var(--text-2);
}

.legal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-1);
  font-weight: bold;
}

/* Internal Pages Typography */
.page-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 { margin-top: 40px; margin-bottom: 15px; }
.page-content p { margin-bottom: 20px; }
.page-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-2); }
.page-content li { margin-bottom: 10px; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-2);
}

.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: var(--border-radius-sm);
  color: var(--text-1);
  font-family: var(--font-body);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

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

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 40px;
  margin-top: auto;
}

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

.footer-brand p {
  margin-top: 20px;
  max-width: 400px;
}

.footer-title {
  color: var(--text-1);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

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

.footer-links a {
  color: var(--text-2);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 0.8rem;
  color: #6B7280;
}

/* Media Queries */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  
  .section { padding: var(--spacing-tablet) 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .game-wrapper { width: 95%; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  
  .section { padding: var(--spacing-mobile) 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .game-wrapper { width: 100%; border-radius: 0; border-left: none; border-right: none; }
  
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}