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

:root {
  /* Epic Global Game Studio (Light/Clean Edition) Palette */
  --bg-main: #ffffff;       /* Pure white for that premium clean look */
  --bg-panel: #f5f5f7;      /* Very subtle light grey for panels */
  
  --primary: #c9002b;       /* Aggressive esports red / energy color maintained */
  --primary-glow: rgba(201, 0, 43, 0.2);
  --secondary: #0071e3;     /* Deep tech blue */
  
  --text-main: #1d1d1f;     /* Very dark grey, softer than pure black */
  --text-muted: #6e6e73;    /* Professional mid-grey */
  
  --stroke-color: rgba(0, 0, 0, 0.08); /* Faint borders */
  --glass-bg: rgba(255, 255, 255, 0.85); /* Light glassmorphism */
  
  --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;
  
  --trans-smooth: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  --trans-fast: 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, .logo-text, .game-name {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background var(--trans-smooth), padding var(--trans-smooth), backdrop-filter var(--trans-smooth), box-shadow var(--trans-smooth);
  /* Starts out clear over the dark hero */
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}
.nav.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--stroke-color);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #fff; /* Starts white over hero */
  display: flex;
  align-items: center;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Shadow to ensure legibility on light hero areas */
  transition: color var(--trans-smooth), text-shadow var(--trans-smooth);
}
.nav.scrolled .logo-text {
  color: var(--text-main);
  text-shadow: none;
}
.logo-text span {
  font-weight: 400;
  color: var(--primary);
  margin-left: 0.2rem;
}
.nav-links {
  display: flex;
  gap: 3rem;
  align-items: center;
}
.nav-link {
  color: #fff; /* Starts white over hero */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--trans-fast);
  position: relative;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.nav.scrolled .nav-link {
  color: var(--text-main);
  text-shadow: none;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--trans-fast);
}
.nav-link:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1.5rem;
  margin-left: 1.5rem;
}
.nav.scrolled .lang-switcher {
  border-left-color: var(--stroke-color);
}
.lang-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--trans-fast), color var(--trans-fast);
}
.nav.scrolled .lang-btn {
  color: var(--text-main);
}
.lang-btn:hover {
  opacity: 0.8;
}
.lang-btn.active {
  opacity: 1;
  color: var(--primary);
}

.nav-cta {
  background: transparent;
  color: #fff;
  padding: 0.6rem 2rem;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  transition: all var(--trans-fast);
  position: relative;
  overflow: hidden;
}
.nav.scrolled .nav-cta {
  color: var(--text-main);
  border-color: var(--text-main);
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--primary);
  z-index: -1;
  transform: translateX(-101%);
  transition: transform var(--trans-smooth);
}
.nav-cta:hover {
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 0 20px var(--primary-glow);
}
.nav-cta:hover::before {
  transform: translateX(0);
}

/* --- Epic Full-Bleed Hero Section --- */
/* The hero stays dark cinematic so the image pops and white text reads clearly */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
  background: #000; 
}

.hero-bg-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%; 
  opacity: 0.8;
  filter: saturate(1.1);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #0a0a0c 0%, rgba(10,10,12,0.7) 40%, rgba(10,10,12,0) 100%), 
              linear-gradient(0deg, #0a0a0c 0%, rgba(10,10,12,0) 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-left: 2rem;
}

.epic-tag {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  text-transform: uppercase;
}

.hero-title {
  /* Kept white because it's on dark filmic background */
  color: #fff;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--primary);
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  max-width: 600px;
  color: #e0e0e5; /* Light grey on dark background */
  margin-bottom: 3.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.btn-epic {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans-fast);
  box-shadow: 0 10px 30px rgba(201, 0, 43, 0.3);
}
.btn-epic::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-epic:hover {
  background: #db0030;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(201, 0, 43, 0.5);
}
.btn-epic:hover::after {
  left: 150%;
}
.btn-epic i {
  font-size: 0.8rem;
  transition: transform var(--trans-fast);
}
.btn-epic:hover i {
  transform: translateX(5px);
}

/* --- Sections --- */
.section {
  padding: 10rem 5%;
  position: relative;
  z-index: 2;
  background: var(--bg-main);
}

.section-header {
  margin-bottom: 6rem;
  text-align: center;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.1em;
  display: inline-block;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--primary);
}

/* --- Massive Game Showcase (Epic Western Layout - Light Version) --- */
.games-showcase {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.epic-game-card {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--stroke-color);
  border-radius: 12px; /* Slightly more rounded for light theme */
  position: relative;
  overflow: hidden;
  height: 600px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  transition: box-shadow var(--trans-smooth), transform var(--trans-smooth);
}
.epic-game-card:hover {
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

/* Alternate flex direction for zig-zag layout */
.epic-game-card:nth-child(even) {
  flex-direction: row-reverse;
}

.game-visuals {
  flex: 0 0 60%; 
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #fff; /* White background for image containers */
}
.game-visuals::after {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 20%; height: 100%;
  background: linear-gradient(to right, transparent, var(--bg-panel));
  pointer-events: none;
  z-index: 2;
}
.epic-game-card:nth-child(even) .game-visuals::after {
  left: 0; right: auto;
  background: linear-gradient(to left, transparent, var(--bg-panel));
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease; 
  transform-origin: center;
  z-index: 1;
  position: relative;
}
.epic-game-card:hover .game-image {
  transform: scale(1.1);
}

/* Pixel Art specific multi-image layout (Light Theme) */
.pixel-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  background: #fdfdfd; 
  padding: 2rem;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.pixel-sprite-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff; /* Crisp white boxes */
  border: 1px solid var(--stroke-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); /* Soft elegant shadow */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}
.pixel-sprite {
  width: 85%;
  height: 85%;
  object-fit: contain;
  image-rendering: pixelated; 
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.epic-game-card:hover .pixel-sprite {
  transform: scale(1.15);
}
.pixel-sprite-container:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* Lift effect on hover */
}
/* Stagger hover animations */
.pixel-sprite-container:nth-child(1) .pixel-sprite { transition-delay: 0.0s; }
.pixel-sprite-container:nth-child(2) .pixel-sprite { transition-delay: 0.1s; }
.pixel-sprite-container:nth-child(3) .pixel-sprite { transition-delay: 0.2s; }
.pixel-sprite-container:nth-child(4) .pixel-sprite { transition-delay: 0.3s; }
.pixel-sprite-container:nth-child(5) .pixel-sprite { transition-delay: 0.4s; }
.pixel-sprite-container:nth-child(6) .pixel-sprite { transition-delay: 0.5s; }

.game-info-epic {
  flex: 0 0 40%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--primary);
  align-self: flex-start;
}
.status-badge.live {
  color: var(--secondary);
  border-color: var(--secondary);
}

.game-name {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.game-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.link-epic {
  align-self: flex-start;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all var(--trans-fast);
}
.link-epic::before {
  content: '→';
  color: var(--primary);
  transition: transform var(--trans-fast);
}
.link-epic:hover {
  color: var(--primary);
}
.link-epic:hover::before {
  transform: translateX(5px);
}

/* --- Footer Epic --- */
.footer {
  background: var(--bg-panel);
  padding: 6rem 5% 4rem;
  text-align: center;
  border-top: 1px solid var(--stroke-color);
  position: relative;
}

.footer-logo {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  color: var(--text-main);
}
.footer-logo span {
  font-weight: 400;
  color: var(--primary);
}
.footer-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--stroke-color);
  color: #999;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .epic-game-card, .epic-game-card:nth-child(even) {
    flex-direction: column;
    height: auto;
  }
  .game-visuals {
    flex: none;
    height: 400px;
    width: 100%;
  }
  .game-visuals::after, .epic-game-card:nth-child(even) .game-visuals::after {
    bottom: 0; right: 0; left: 0; top: auto;
    width: 100%; height: 20%;
    background: linear-gradient(to top, var(--bg-panel), transparent);
  }
  .game-info-epic {
    flex: none;
    padding: 3rem 2rem;
  }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .nav-links { display: none; }
  .section-title { font-size: 2.5rem; }
  .game-name { font-size: 2.5rem; }
}
