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

:root {
  --color-bg: #000000;
  --color-bg-secondary: #0a0a0a;
  --color-bg-tertiary: #141414;
  --color-text: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-accent: #d4af37;
  --color-accent-hover: #f0c952;
  --color-border: #1f1f1f;

  --font-heading: "Cinzel", serif;
  --font-body: "Inter", sans-serif;

  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar styling for modern dark theme */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
  border-left: 1px solid var(--color-border);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent) 0%, #8b7428 100%);
  border-radius: 6px;
  border: 2px solid var(--color-bg-secondary);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  border-color: var(--color-bg);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #141414 100%);
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Section Styles */
section {
  padding: 6rem 0;
}

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

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Story Section */
.story {
  background-color: var(--color-bg-secondary);
}

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

.story-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.story-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.story-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  z-index: 1;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.story-image:hover img {
  transform: scale(1.05);
}

/* Characters Section */
.characters {
  background-color: var(--color-bg);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.character-card {
  background-color: var(--color-bg-tertiary);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.character-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.character-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.character-card:hover .character-image img {
  transform: scale(1.1);
}

.character-info {
  padding: 1.5rem;
}

.character-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.character-class {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.character-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Download Section */
.download {
  background-color: var(--color-bg-secondary);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background-color: var(--color-bg-tertiary);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
  min-width: 200px;
}

.download-btn:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

.download-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.download-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.download-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.download-platform {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.download-info {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: var(--color-bg);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: var(--transition);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.newsletter h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 1rem;
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

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

.newsletter-form input::placeholder {
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex: 1;
  justify-content: flex-end;
}

.footer-column {
  min-width: 150px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column li {
  margin-bottom: 0;
}

.footer-column a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 0;
}

.footer-column a::before {
  content: "›";
  color: var(--color-accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--color-accent);
  padding-left: 1rem;
}

.footer-column a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legal Page Styles */
.legal-page {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
  background-color: var(--color-bg);
}

.legal-sidebar {
  position: sticky;
  top: 80px;
  width: 280px;
  height: calc(100vh - 80px);
  background-color: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
}

.legal-nav {
  padding: 3rem 2rem;
}

.legal-nav h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  font-weight: 600;
}

.legal-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav-link {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.legal-nav-link:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text);
  border-left-color: var(--color-accent);
}

.legal-nav-link.active {
  background-color: var(--color-bg-tertiary);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

.legal-content {
  flex: 1;
  margin-left: 280px;
  padding: 4rem;
  max-width: 900px;
}

.legal-section {
  margin-bottom: 6rem;
  scroll-margin-top: 100px;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.legal-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.legal-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-weight: 700;
}

.legal-date {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

.legal-text h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font-weight: 600;
  position: relative;
  padding-left: 1rem;
}

.legal-text h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
  border-radius: 2px;
}

.legal-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.legal-text p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.legal-text ul {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.legal-text ul li {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
}

.legal-text ul li::before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.legal-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-text a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.legal-text a:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    left: 0;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .characters-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 300px;
  }

  /* Responsive styles for legal page */
  .legal-page {
    flex-direction: column;
  }

  .legal-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .legal-nav {
    padding: 2rem 1rem;
  }

  .legal-nav ul {
    flex-direction: row;
    overflow-x: auto;
  }

  .legal-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
