/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    Roboto,
    system-ui,
    -apple-system,
    sans-serif;
  background: #0a080c;
  color: #e4dcdc;
  line-height: 1.7;
  font-size: 1.05rem;
}

a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff9e9e;
  text-decoration: underline;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  background: #0f0c12;
  border-bottom: 1px solid #2a1e2e;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(6px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-icon {
  font-size: 2rem;
  line-height: 1;
}

.logo-text {
  background: linear-gradient(135deg, #ff6b6b, #ff9e6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dot {
  -webkit-text-fill-color: #ff6b6b;
  color: #ff6b6b;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.main-nav a {
  color: #bfb4b4;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: #ff6b6b;
  text-decoration: none;
}

.main-nav a.active {
  color: #ff6b6b;
}

/* ---------- BURGER ---------- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #e4dcdc;
  border-radius: 4px;
  transition: 0.25s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 3.5rem 0 2.5rem;
}

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

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 60%, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: #bfb4b4;
  margin-bottom: 1.5rem;
  border-left: 4px solid #ff6b6b;
  padding-left: 1.2rem;
}

.hero-body p {
  margin-bottom: 1.2rem;
}

.hero-body strong {
  color: #ff6b6b;
  font-weight: 600;
}

.hero-body em {
  color: #d4b8b8;
  font-style: italic;
}

/* image placeholders */
.img-placeholder {
  background: linear-gradient(145deg, #1a121f, #100b14);
  border: 1px dashed #3a2a3a;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  min-height: 280px;
  color: #8f7a8f;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.img-placeholder:hover {
  border-color: #ff6b6b;
}

.img-label {
  font-weight: 600;
  color: #d4c4d4;
  font-size: 1.1rem;
}

.img-sub {
  font-size: 0.8rem;
  color: #6a5a6a;
  margin-top: 0.4rem;
}

.hero-img {
  min-height: 420px;
  background: linear-gradient(145deg, #1e1424, #110c14);
}

.secret-img {
  min-height: 280px;
  margin-top: 2rem;
}

/* ---------- SECTION COMMON ---------- */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid #1f1722;
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff6b6b;
  border-radius: 4px;
  margin-top: 0.3rem;
}

.section-intro {
  color: #bfb4b4;
  max-width: 720px;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

/* ---------- CHARACTERS ---------- */
.character-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.character-card {
  background: #120e16;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  border: 1px solid #251e2a;
  transition:
    border-color 0.3s,
    transform 0.2s;
}

.character-card:hover {
  border-color: #ff6b6b;
  transform: translateY(-4px);
}

.char-image {
  min-height: 140px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #1c1422, #0f0b14);
  border: 1px dashed #342a38;
}

.character-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.1rem;
}

.char-title {
  font-size: 0.85rem;
  color: #ff6b6b;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.character-card p {
  font-size: 0.95rem;
  color: #cbc0c0;
}

/* ---------- SECRETS ---------- */
.secrets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.secret-card {
  background: #120e16;
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  border-left: 4px solid #ff6b6b;
}

.secret-card h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.secret-card p {
  font-size: 0.95rem;
  color: #cbc0c0;
}

.secret-card strong {
  color: #ff6b6b;
}

.secret-image-wrapper {
  margin-top: 2.5rem;
}

/* ---------- THEORIES ---------- */
.theories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.theory-card {
  background: #0f0b14;
  border-radius: 18px;
  padding: 1.6rem 1.6rem;
  border: 1px solid #251e2a;
  transition: border-color 0.3s;
}

.theory-card:hover {
  border-color: #ff6b6b;
}

.theory-card h3 {
  font-size: 1.1rem;
  color: #ff6b6b;
  margin-bottom: 0.4rem;
}

.theory-card p {
  font-size: 0.92rem;
  color: #cbc0c0;
}

.theories-footer {
  margin-top: 2.5rem;
  font-style: italic;
  color: #a08a8a;
  text-align: center;
  border-top: 1px solid #1f1722;
  padding-top: 1.8rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #0a070c;
  border-top: 1px solid #1f1722;
  padding: 1.8rem 0;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #8f7a8f;
}

.footer-nav a:hover {
  color: #ff6b6b;
  text-decoration: none;
}

/* ---------- TERMS & PRIVACY (shared) ---------- */
.page-header {
  padding: 2.5rem 0 1rem;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.page-header h1 small {
  font-size: 1rem;
  font-weight: 400;
  color: #8f7a8f;
  display: block;
  margin-top: 0.2rem;
}

.page-section {
  background: #120e16;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.8rem;
  border-left: 4px solid #ff6b6b;
}

.page-section h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-section h2 .emoji {
  margin-right: 0.5rem;
}

.page-section p,
.page-section li {
  color: #cbc0c0;
  font-size: 0.98rem;
}

.page-section ul {
  padding-left: 1.6rem;
  margin: 0.6rem 0;
}

.page-section ul li {
  margin-bottom: 0.3rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.8rem;
  color: #ff6b6b;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-img {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f0c12;
    border-bottom: 1px solid #2a1e2e;
    padding: 0 1.8rem;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.4s ease,
      padding 0.3s;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  }

  .main-nav.open {
    max-height: 500px;
    padding: 1.2rem 1.8rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .main-nav a {
    font-size: 1.1rem;
    border-bottom: none;
    padding: 0.4rem 0;
  }

  .main-nav a.active {
    border-bottom: 2px solid #ff6b6b;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .character-grid,
  .secrets-grid,
  .theories-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .page-section {
    padding: 1.2rem 1.2rem;
  }
}

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

  .hero-text h1 {
    font-size: 1.7rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .img-placeholder {
    min-height: 180px;
    padding: 1.2rem;
  }
}
