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

:root {
  /* Ocean / Blues */
  --deep-ocean: #020617;
  --dark-blue: #0f172a;
  --navy: #1e293b;
  --ocean-blue: #38bdf8;
  
  /* Pirate / Brown / Treasure */
  --wood-brown: #5b3a29;
  --dark-brown: #3b2f2f;
  --gold: #d4a373;
  
  /* UI Surfaces */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(56, 189, 248, 0.15);
  
  /* Text */
  --text-main: #f8fafc;
  --text-sec: #94a3b8;

  /* Spacing */
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--deep-ocean);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.8) 0%, transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(30, 41, 59, 0.5) 0%, transparent 50%);
  background-attachment: fixed;
}

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

ul {
  list-style: none;
}

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

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

p {
  color: var(--text-sec);
  font-size: 1.125rem;
}

/* Layout System */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.bg-dark {
  background-color: var(--dark-blue);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(56, 189, 248, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--ocean-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sec);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--wood-brown) 0%, var(--gold) 100%);
  color: var(--deep-ocean);
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2), inset 0 -2px 0 rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ocean-blue);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--wood-brown) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4), 0 0 15px rgba(56, 189, 248, 0.3);
  color: var(--deep-ocean);
}

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

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: var(--spacing-desktop);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(2, 6, 23, 0.8);
  animation: fadeIn 1s ease forwards 0.2s;
  opacity: 0;
}

.hero-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--deep-ocean), transparent);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
}

/* Legal Disclaimer */
.disclaimer-badge {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(8px);
}

.disclaimer-badge .icon {
  font-size: 1.5rem;
  line-height: 1;
}

.disclaimer-badge p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-sec);
  line-height: 1.4;
}

.disclaimer-badge strong {
  color: var(--ocean-blue);
  display: block;
  margin-bottom: 0.25rem;
}

/* Game Section (CORE PRODUCT) */
.game-section {
  position: relative;
  z-index: 10;
}

.game-header {
  text-align: center;
  margin-bottom: 3rem;
}

.game-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.game-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--ocean-blue);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.1), inset 0 0 20px rgba(91, 58, 41, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: pulseGlow 4s infinite alternate;
}

.game-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.2), inset 0 0 30px rgba(212, 163, 115, 0.2);
}

.game-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--deep-ocean);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

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

/* Info Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 163, 115, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: var(--ocean-blue);
  border: 1px solid var(--glass-border);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Page Headers (Internal Pages) */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--dark-blue), var(--deep-ocean));
  border-bottom: 1px solid var(--glass-border);
}

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

.content-block {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 4rem;
}

.content-block h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--ocean-blue);
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 1.5rem;
}

.content-block ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-block li {
  color: var(--text-sec);
  margin-bottom: 0.5rem;
  position: relative;
}

.content-block li::before {
  content: '→';
  position: absolute;
  left: -1.5rem;
  color: var(--gold);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ocean-blue);
  background: var(--dark-blue);
}

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

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

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.footer-links a:hover {
  color: var(--ocean-blue);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-sec);
  font-size: 0.875rem;
}

.footer-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.age-badge {
  background: var(--dark-brown);
  color: var(--text-main);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid var(--wood-brown);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.05), inset 0 0 20px rgba(91, 58, 41, 0.2);
  }
  to {
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.15), inset 0 0 30px rgba(212, 163, 115, 0.1);
  }
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }
}

@media (max-width: 992px) {
  .section {
    padding: var(--spacing-tablet) 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2rem;
  }
  
  .disclaimer-badge {
    text-align: left;
    margin: 0 auto 2.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .game-wrapper {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-mobile) 0;
  }
  
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    padding-top: 140px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .game-wrapper {
    width: 100%;
    padding: 6px;
    border-radius: 12px;
  }

  .game-container {
    border-radius: 8px;
  }
  
  .content-block {
    padding: 2rem;
  }
}