:root {
  /* Colors */
  --bg-base: #080808;
  --bg-secondary: #121212;
  --bg-section: #1c1c1c;
  
  --accent-gold: #c6a756;
  --accent-amber: #f59e0b;
  --accent-blue: #1f3b73;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  
  /* Layout */
  --max-width: 1320px;
  --spacing-desktop: 110px;
  --spacing-tablet: 80px;
  --spacing-mobile: 60px;
  
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }

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

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

@media (max-width: 992px) {
  .section { padding: var(--spacing-tablet) 0; }
}

@media (max-width: 768px) {
  .section { padding: var(--spacing-mobile) 0; }
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--bg-secondary);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(198, 167, 86, 0.1);
}

.btn-primary:hover {
  background-color: var(--accent-gold);
  color: var(--bg-base);
  box-shadow: 0 6px 20px rgba(198, 167, 86, 0.3);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.logo span {
  color: var(--accent-gold);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/noir-detective-rainy-city-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  margin-top: 60px;
}

.hero h1 {
  color: var(--accent-gold);
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.disclaimer-badge {
  display: inline-block;
  margin-top: 3rem;
  padding: 10px 20px;
  background: rgba(28, 28, 28, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-sm);
  backdrop-filter: blur(4px);
}

.disclaimer-badge p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.disclaimer-badge span {
  color: var(--accent-amber);
  font-weight: bold;
}

/* Game Section */
.game-section {
  background-color: var(--bg-base);
  position: relative;
}

.game-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-gold);
  border-radius: var(--border-radius-lg);
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(198, 167, 86, 0.05);
  position: relative;
  overflow: hidden;
}

.game-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--border-radius-lg) - 5px);
  overflow: hidden;
  background: #000;
}

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

/* Features Section */
.features-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.feature-card {
  background: var(--bg-section);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.02);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: rgba(198, 167, 86, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 167, 86, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Internal Page Headers */
.page-header {
  padding: 180px 0 80px;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-base));
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

/* Content Pages */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 50px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

.content-wrapper h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  color: var(--text-primary);
}

.content-wrapper ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

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

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

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--bg-base);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

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

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

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

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

.footer-brand p {
  margin-top: 15px;
  font-size: 0.9rem;
  max-width: 300px;
}

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

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

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

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

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

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Rain Effect Overlay */
.rain-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cline x1="10" y1="0" x2="0" y2="20" stroke="rgba(255,255,255,0.1)" stroke-width="1" /%3E%3Cline x1="50" y1="20" x2="40" y2="40" stroke="rgba(255,255,255,0.05)" stroke-width="1" /%3E%3Cline x1="90" y1="40" x2="80" y2="60" stroke="rgba(255,255,255,0.1)" stroke-width="1" /%3E%3C/svg%3E');
  animation: rainDrop 0.5s linear infinite;
  opacity: 0.4;
  z-index: 1;
}

@keyframes rainDrop {
  0% { background-position: 0 0; }
  100% { background-position: -20px 100px; }
}

/* Responsive Design */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .header-cta {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 15px auto 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    padding: 30px 20px;
  }
  
  .game-wrapper {
    border-radius: var(--border-radius-md);
  }
}