:root {
  color-scheme: dark;
  --bg: #060705;
  --bg-2: #11120b;
  --gold: #d8a94a;
  --gold-soft: #ffda79;
  --ember: #b84f28;
  --moss: #6f7f45;
  --mist: #d8ddcf;
  --muted: #9aa08d;
  --line: rgba(255, 229, 166, 0.18);
  --panel: rgba(13, 16, 10, 0.68);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mist);
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 79, 40, 0.2), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(216, 169, 74, 0.14), transparent 28%),
    linear-gradient(145deg, #050604 0%, #10120b 45%, #050604 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 10px;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(216, 169, 74, 0.28);
}

.ttcoin-link,
.primary-link,
.ghost-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.ttcoin-link {
  padding: 0 16px;
  color: #171109;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.language-switcher {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff6de;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switcher select {
  min-width: 132px;
  border: 0;
  outline: 0;
  color: #fff6de;
  background: transparent;
  font: inherit;
}

.language-switcher option {
  color: #11120b;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: 34px;
  padding: 24px 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Cinzel, Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 12px;
  color: #fff8e8;
  font-size: clamp(3.45rem, 8vw, 7.4rem);
  text-shadow: 0 14px 54px rgba(0, 0, 0, 0.75);
}

.soon {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 218, 121, 0.42);
  border-radius: 6px;
  color: var(--gold-soft);
  background: rgba(255, 218, 121, 0.08);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro {
  max-width: 52ch;
  margin-bottom: 28px;
  color: #d8ddcf;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.ghost-link {
  padding: 0 20px;
}

.primary-link {
  color: #160f08;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 18px 34px rgba(216, 169, 74, 0.2);
}

.ghost-link {
  border: 1px solid var(--line);
  color: #fff6de;
  background: rgba(255, 255, 255, 0.05);
}

.hero-art {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
}

.hero-art::before {
  position: absolute;
  inset: 9% 1% 0;
  content: "";
  background: linear-gradient(180deg, rgba(216, 169, 74, 0.14), rgba(184, 79, 40, 0.08));
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: skewY(-2deg);
  box-shadow: var(--shadow);
}

.logo-orb {
  position: absolute;
  top: 0;
  right: 7%;
  z-index: 1;
  width: clamp(94px, 12vw, 152px);
  height: clamp(94px, 12vw, 152px);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 218, 121, 0.36);
  box-shadow: 0 0 42px rgba(216, 169, 74, 0.42);
}

.party {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 18px);
  padding: 0 clamp(6px, 1.4vw, 16px);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.74));
}

.party img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.party img:nth-child(2) {
  transform: translateY(-18px);
}

.world-band {
  margin: 10px 0 32px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  color: #fff8e8;
  font-size: clamp(2rem, 4.5vw, 4.3rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.feature-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  color: #fff8e8;
  font-size: 1.35rem;
}

.feature-grid p,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.characters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 10px 0 46px;
}

.characters img {
  width: 100%;
  aspect-ratio: 0.68;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c08;
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--gold-soft);
  font-weight: 800;
  text-decoration: none;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .section-heading,
[dir="rtl"] .feature-grid,
[dir="rtl"] .footer {
  text-align: right;
}

[dir="rtl"] .hero-actions,
[dir="rtl"] .topbar,
[dir="rtl"] .footer {
  direction: rtl;
}

[dir="rtl"] .logo-orb {
  right: auto;
  left: 7%;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 34px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-art::before {
    inset: 15% -10px 0;
  }

  .section-heading,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }

  .feature-grid span {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-mark span {
    max-width: 126px;
    font-size: 0.92rem;
    line-height: 1.18;
  }

  .brand-mark img {
    width: 46px;
    height: 46px;
  }

  .ttcoin-link {
    padding: 0 12px;
  }

  .language-switcher {
    flex: 1;
  }

  .language-switcher select {
    width: 100%;
    min-width: 0;
  }

  .hero {
    padding-top: 24px;
  }

  .intro {
    margin-bottom: 22px;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-art {
    min-height: 290px;
  }

  .logo-orb {
    right: 0;
  }

  .world-band {
    padding: 28px 0;
  }

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

  .characters img {
    max-height: 520px;
    object-fit: contain;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
