:root {
  /* Colors - Background Layers */
  --deep-base: #0b0f14;
  --sec-depth: #111827;
  --elevated: #1f2937;
  
  /* Colors - UI Surfaces */
  --card-bg: #243041;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Colors - Accents */
  --investigation-blue: #60a5fa;
  --mystery-purple: #a78bfa;
  --highlight-gold: #fbbf24;
  
  /* Colors - Text */
  --text-primary: #f9fafb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Sizing & Layout */
  --max-width: 1400px;
  --header-height: 80px;
  
  /* Spacing */
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* 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: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--deep-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

a:hover {
  color: var(--mystery-purple);
}

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

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

.section-alt {
  background-color: var(--sec-depth);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Lighting Elements */
.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.ambient-blue {
  background: var(--investigation-blue);
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}

.ambient-purple {
  background: var(--mystery-purple);
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}

/* Components */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--investigation-blue), var(--mystery-purple));
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--investigation-blue), var(--mystery-purple));
  color: #fff;
  box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: var(--elevated);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--investigation-blue);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(11, 15, 20, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--investigation-blue);
  transition: var(--transition-smooth);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('images/photo-1519501025264-65ba15a82390.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, var(--deep-base) 0%, rgba(11, 15, 20, 0.8) 50%, rgba(11, 15, 20, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--investigation-blue);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Game Frame Setup */
.game-section {
  padding: 6rem 0;
  position: relative;
}

.game-container {
  background: var(--elevated);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(96, 165, 250, 0.2);
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--investigation-blue), transparent, var(--mystery-purple));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.5;
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  background: var(--deep-base);
}

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

/* Features / Evidence Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--mystery-purple);
}

/* Trust Section */
.trust-section {
  background: var(--sec-depth);
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.trust-card h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: var(--text-primary);
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Internal Page Headers */
.page-header {
  padding: 12rem 0 4rem;
  background: linear-gradient(to bottom, var(--sec-depth), var(--deep-base));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  margin-bottom: 1rem;
}

/* Content Pages (Terms, Privacy, etc) */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
}

.content-card h2 { margin: 2rem 0 1rem; }
.content-card h3 { margin: 1.5rem 0 0.5rem; color: var(--investigation-blue); }
.content-card p { margin-bottom: 1rem; }
.content-card ul { margin: 1rem 0 1rem 2rem; color: var(--text-secondary); }
.content-card li { margin-bottom: 0.5rem; }

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--elevated);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--investigation-blue);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Footer */
footer {
  background: var(--deep-base);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* GSAP Utility Classes */
.reveal { opacity: 0; visibility: hidden; }

/* Responsive */
@media (max-width: 992px) {
  section { padding: var(--spacing-tablet) 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: var(--spacing-mobile) 0; }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--sec-depth);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-content { text-align: center; margin: 0 auto; }
  .content-card { padding: 1.5rem; }
}