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

:root {
  /* Depth & Stone Colors */
  --bg-primary: #0b0f0c;
  --bg-secondary: #121a14;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --stone-border: rgba(255, 255, 255, 0.1);

  /* Minerals & Light */
  --accent-primary: #16a34a;
  --accent-secondary: #4ade80;
  --accent-highlight: #fbbf24;
  --accent-rare: #f59e0b;

  /* Typography */
  --text-primary: #ecfdf5;
  --text-secondary: #bbf7d0;
  --text-muted: #6ee7b7;
  
  /* Radii & Shadows */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --glow-emerald: 0 0 20px rgba(22, 163, 74, 0.3);
  --glow-gold: 0 0 20px rgba(251, 191, 36, 0.2);
  --glow-forge: 0 0 30px rgba(245, 158, 11, 0.15);
  --shadow-depth: 0 10px 30px rgba(0,0,0,0.8);
  --shadow-inset: inset 0 2px 10px rgba(0,0,0,0.5), inset 0 0 20px rgba(22,163,74,0.05);
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 100px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Cave Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(22, 163, 74, 0.05) 0%, transparent 40%);
  z-index: -2;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* -------------------------------------
   HEADER - DWARVEN GLASS NAV
-------------------------------------- */
.dwarven-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(18, 26, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

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

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--stone-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--glow-emerald);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-highlight) 0%, var(--accent-rare) 100%);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* -------------------------------------
   HERO SECTION
-------------------------------------- */
.hero {
  padding: 160px 0 var(--space-xl) 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  font-weight: 800;
  background: linear-gradient(to right, #ecfdf5, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-depth), var(--glow-emerald);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

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

/* -------------------------------------
   GAME VAULT SECTION (THE CORE)
-------------------------------------- */
.game-vault-section {
  padding: var(--space-xl) 0;
  background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 42px;
  color: var(--accent-highlight);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
}

.game-vault-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-depth);
  position: relative;
  border: 2px solid var(--stone-border);
}

/* Engraved Stone Edge Effect */
.game-vault-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 4px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.4), rgba(245, 158, 11, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* -------------------------------------
   FEATURES / CRYSTAL CARDS
-------------------------------------- */
.features-section {
  padding: var(--space-xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: var(--bg-surface-hover);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6), var(--glow-emerald);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(22, 163, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* -------------------------------------
   INTERNAL PAGES (TEXT CONTENT)
-------------------------------------- */
.page-header {
  padding: 160px 0 var(--space-lg) 0;
  text-align: center;
  background: linear-gradient(to bottom, rgba(18, 26, 20, 0.8), var(--bg-primary));
  border-bottom: 1px solid var(--stone-border);
}

.page-header h1 {
  font-size: 48px;
  color: var(--accent-highlight);
}

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

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-depth);
}

.glass-panel h2 {
  color: var(--accent-secondary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 28px;
}

.glass-panel h2:first-child {
  margin-top: 0;
}

.glass-panel p {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.glass-panel ul {
  list-style: disc;
  margin-left: var(--space-md);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.glass-panel ul li {
  margin-bottom: 8px;
}

/* -------------------------------------
   CONTACT FORM
-------------------------------------- */
.mine-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--stone-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-emerald);
}

/* -------------------------------------
   FOOTER
-------------------------------------- */
.mine-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--stone-border);
  padding: var(--space-lg) 0 var(--space-md) 0;
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-size: 14px;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-size: 18px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--stone-border);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-bottom p {
  margin-bottom: 5px;
}