*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

@font-face {
  font-family: "Rascon";
  src: url("assets/fonts/Rascon.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Sofia Pro Soft";
  src: url("assets/fonts/Sofia_Pro_Soft_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Sofia Pro Soft";
  src: url("assets/fonts/Sofia_Pro_Soft_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Sofia Pro Soft";
  src: url("assets/fonts/Sofia_Pro_Soft_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

:root {
  --jade-glow: #5ee89a;
  --gold: #d4a84b;
  --gold-bright: #f0c96a;
  --text: #e8d9a8;
  --text-muted: rgba(232, 217, 168, 0.55);
  --dark: #0d1f16;
  --darker: #081410;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Sofia Pro Soft", serif;
  font-weight: 300;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  max-width: 100vw;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(8, 20, 16, 0.45) 100%
  );
  z-index: 0;
  pointer-events: none;
}

#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1;
  overflow: hidden;
}

#game-title {
  position: relative;
  z-index: 100;
  text-align: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

#title-text {
  width: min(85vw, 1500px);
  height: auto;
  display: block;
  margin: 0 auto;
  transition: width 0.15s ease-out;
}

#tagline-text {
  font-family: "Sofia Pro Soft", serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--jade-glow);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 0.75rem;
  text-shadow: 0 0 20px rgba(94, 232, 154, 0.6);
  transition: opacity 0.2s;
}

.title-line {
  display: block;
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
  transition: opacity 0.2s;
}

#scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  color: var(--jade-glow);
  margin-top: 2rem;
  animation: floatDown 2s ease-in-out infinite;
}
#scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes floatDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.6;
  }
}

#trailer-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 3rem;
}

#video-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 75, 0.4);
  box-shadow:
    0 0 60px rgba(212, 168, 75, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  animation: videoReveal 1s 0.2s ease-out forwards;
  transition:
    box-shadow 0.4s,
    transform 0.4s;
}
#video-wrapper:hover {
  box-shadow: 0 0 80px rgba(212, 168, 75, 0.4);
  transform: scale(1.005);
}
@keyframes videoReveal {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#info-section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--jade-glow);
  margin-bottom: 1rem;
  margin-top: 2rem;
  text-shadow: 0 0 15px rgba(94, 232, 154, 0.4);
}

.section-title {
  font-family: "Sofia Pro Soft", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(212, 168, 75, 0.4);
  max-width: 800px;
}
.section-title .accent {
  color: var(--jade-glow);
}

#info-section .section-title {
  text-align: left;
}
#info-section .section-body {
  text-align: left;
}
.carousel-header .section-title {
  text-align: center;
  margin: 0 auto;
}
#cta-section .section-title {
  text-align: center;
  margin: 0 auto;
}

.section-body {
  max-width: 600px;
  color: var(--text);
  line-height: 1.9;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 300;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
}
.divider::before {
  background: linear-gradient(to right, transparent, rgba(212, 168, 75, 0.3));
}
.divider::after {
  background: linear-gradient(to left, transparent, rgba(212, 168, 75, 0.3));
}
.divider-symbol {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.7;
}

.desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.desc-card {
  background: rgba(13, 31, 22, 0.6);
  border: 1px solid rgba(212, 168, 75, 0.15);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.desc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 168, 75, 0.4),
    transparent
  );
}
.desc-card:hover {
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(13, 31, 22, 0.85);
}
.desc-card h3 {
  font-family: "Sofia Pro Soft", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}
.desc-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  font-weight: 300;
}
.desc-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

#carousel-section {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5rem;
}

.carousel-header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.carousel-track-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(212, 168, 75, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 1.25rem;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 2px;
  border: 1px solid rgba(212, 168, 75, 0.3);
  background: rgba(13, 31, 22, 0.6);
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.carousel-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 168, 75, 0.12);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 300px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.25);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.slide-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(8, 20, 16, 0.85);
  border: 1px solid rgba(212, 168, 75, 0.3);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 5px 12px;
  border-radius: 2px;
  font-family: "Sofia Pro Soft", serif;
}

.slide-glyph {
  font-family: "Sofia Pro Soft", serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: rgba(212, 168, 75, 0.4);
  text-shadow: 0 0 20px rgba(212, 168, 75, 0.3);
}

#cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 7rem;
}
#cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(
    ellipse,
    rgba(94, 232, 154, 0.06) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-btn {
  display: inline-block;
  font-family: "Sofia Pro Soft", serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    transform 0.2s;
  box-shadow: 0 0 30px rgba(212, 168, 75, 0.2);
}
.cta-btn:hover {
  background: rgba(212, 168, 75, 0.1);
  box-shadow: 0 0 60px rgba(212, 168, 75, 0.4);
  transform: translateY(-2px);
}
.cta-sub {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-top: 1.25rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212, 168, 75, 0.1);
  padding: 1.5rem 2rem;
  text-align: center;
  color: rgba(212, 168, 75, 0.25);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.social-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Sofia Pro Soft", serif;
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  background: #5865f2;
  border: none;
  padding: 1rem 3rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}
.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 35px rgba(88, 101, 242, 0.6);
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Sofia Pro Soft", serif;
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  background: #1b2838;
  border: none;
  padding: 1rem 3rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 0 20px rgba(27, 40, 56, 0.4);
}
.steam-btn:hover {
  background: #2a475e;
  box-shadow: 0 0 35px rgba(27, 40, 56, 0.6);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  #title-text {
    width: 85vw !important;
    max-width: 85vw !important;
    min-width: unset !important;
  }

  #game-title {
    width: 100%;
    padding: 0;
  }

  #hero {
    overflow: hidden;
  }

  #tagline-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    padding: 0 1rem;
  }

  .discord-btn,
  .steam-btn {
    font-size: 0.75rem;
    padding: 0.8rem 1.5rem;
    letter-spacing: 2px;
    width: 80vw;
    justify-content: center;
  }

  .social-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #video-wrapper {
    max-width: 100%;
  }

  #trailer-section {
    padding: 0 1rem 3rem;
  }

  #info-section {
    padding: 3rem 1rem;
  }

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

  .carousel-track-wrapper {
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(1.2rem, 5vw, 2rem);
    max-width: 100%;
  }

  #cta-section {
    padding: 3rem 1rem 5rem;
  }

  .cta-btn {
    font-size: 0.8rem;
    padding: 0.8rem 2rem;
    letter-spacing: 2px;
  }
}

.lang-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: rgba(13, 31, 22, 0.7);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Sofia Pro Soft", serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 0 15px rgba(212, 168, 75, 0.2);
}
.lang-btn:hover {
  background: rgba(212, 168, 75, 0.15);
  box-shadow: 0 0 25px rgba(212, 168, 75, 0.4);
}
