:root {
  /* Fortress Lux Color Palette */
  --obsidian: #0f1115;
  --iron: #1a1f26;
  --stone: rgba(255, 255, 255, 0.04);
  --stone-hover: rgba(255, 255, 255, 0.08);
  --steel: #3b82f6;
  --silver: #9ca3af;
  --ember: #f97316;
  --gold: #eab308;
  --ash: #f3f4f6;
  --slate: #6b7280;
  
  /* Gradients */
  --metallic-gradient: linear-gradient(135deg, var(--iron), var(--obsidian));
  --warm-gradient: linear-gradient(135deg, var(--gold), var(--ember));
  --steel-glow: rgba(59, 130, 246, 0.4);
  --gold-glow: rgba(234, 179, 8, 0.4);

  /* Typography */
  --font-main: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --max-width: 1400px;
  --header-height: 80px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--obsidian);
  color: var(--ash);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--ash);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

section {
  padding: 100px 0;
  position: relative;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Glass Panels & Metallic Borders */
.glass-panel {
  background: var(--stone);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.metal-border {
  position: relative;
}
.metal-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--steel), var(--gold), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

.btn-primary {
  background: var(--warm-gradient);
  color: var(--obsidian);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  filter: brightness(1.1);
}

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

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(234, 179, 8, 0.05);
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.fortress-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.fortress-nav.scrolled {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--gold);
}

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

.nav-links a {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--silver);
  position: relative;
  padding: 8px 0;
}

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

.nav-links a:hover {
  color: var(--ash);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.citadel-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/photo-1599839619722-39751411ea63.png') center/cover no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  background: linear-gradient(to right, var(--ash), var(--silver));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--silver);
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   GAME SECTION
   ========================================================================== */
.core-experience {
  background: url('images/photo-1605806616949-1e87b487cb2a.png') center/cover fixed;
  position: relative;
}

.core-experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.85);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.section-header p {
  color: var(--silver);
  font-size: 1.1rem;
}

.game-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  padding: 16px;
  background: linear-gradient(135deg, rgba(26, 31, 38, 0.8), rgba(15, 17, 21, 0.95));
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(59, 130, 246, 0.15);
}

.game-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--obsidian);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: var(--stone-hover);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--iron);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.1);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  background: linear-gradient(to bottom, var(--obsidian), var(--iron));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.stat-card {
  padding: 32px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-main);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--steel-glow);
}

.stat-label {
  color: var(--silver);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   PAGE HERO (INTERNAL PAGES)
   ========================================================================== */
.page-hero {
  padding: 180px 0 100px;
  text-align: center;
  background: url('images/photo-1599839619722-39751411ea63.png') center/cover;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.9);
}

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

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

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

/* Internal Page Content */
.content-section {
  padding: 80px 0;
  background: var(--obsidian);
}

.content-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
}

.content-box h2 {
  font-size: 2rem;
  margin: 32px 0 16px;
  color: var(--gold);
}

.content-box h3 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
}

.content-box p {
  margin-bottom: 16px;
  color: var(--silver);
}

.content-box ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--silver);
  list-style: disc;
}

.content-box li {
  margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 24px;
}

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

.form-group label {
  font-family: var(--font-main);
  color: var(--ash);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--ash);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 10px var(--steel-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--iron);
  padding: 80px 0 32px;
  border-top: 2px solid rgba(234, 179, 8, 0.1);
}

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

.footer-brand .logo {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--silver);
  font-size: 0.95rem;
  max-width: 400px;
}

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

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--silver);
  font-size: 0.95rem;
}

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

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

.disclaimer-text {
  color: var(--slate);
  font-size: 0.85rem;
  max-width: 800px;
  margin: 0 auto 16px;
}

.age-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--slate);
  border-radius: 4px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 16px;
}

.copyright {
  color: var(--slate);
  font-size: 0.85rem;
}