:root {
  --bg: #0b0804;
  --bg-soft: #151009;
  --panel: rgba(25, 18, 9, .82);
  --panel-strong: rgba(9, 12, 9, .88);
  --gold: #f3c85b;
  --gold-strong: #ffdf7f;
  --gold-dark: #8b5808;
  --text: #f7ecd0;
  --muted: #c8aa74;
  --line: rgba(243, 200, 91, .28);
  --danger-glow: rgba(188, 91, 32, .28);
  --shadow: 0 26px 80px rgba(0, 0, 0, .52);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(159, 96, 22, .22), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(243, 200, 91, .16), transparent 24rem),
    linear-gradient(180deg, #080604 0%, #110c06 48%, #070604 100%);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 18px;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.36), rgba(0,0,0,.84)),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.88)),
    url("../rpg/assets/maps/continent-map-v1.png") center top / cover no-repeat;
  opacity: .32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 14px 0 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 7, 4, .76);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  place-items: center;
  width: 118px;
  height: 50px;
}

.brand img {
  width: 112px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.65));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav a {
  transition: color .18s ease, text-shadow .18s ease;
}

.site-nav a:hover {
  color: var(--gold-strong);
  text-shadow: 0 0 18px rgba(243,200,91,.36);
}

.menu-toggle,
.menu-rpg-link {
  display: none;
}

.menu-toggle {
  width: 46px;
  height: 42px;
  border: 1px solid rgba(255, 224, 149, .42);
  border-radius: 14px;
  background: rgba(13, 10, 5, .72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffe9a5;
  transition: transform .18s ease, opacity .18s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.header-cta,
.primary-action {
  padding: 0 22px;
  border: 1px solid #ffe095;
  color: #fff5cb;
  background: linear-gradient(135deg, #5c3505, #a5630b 50%, #d8921b);
  box-shadow: 0 0 0 3px rgba(243, 200, 91, .12), 0 16px 34px rgba(0,0,0,.42);
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid rgba(243, 200, 91, .38);
  color: var(--gold-strong);
  background: rgba(9, 10, 7, .64);
}

.secondary-action.gold {
  border-color: rgba(255, 224, 149, .55);
  background: rgba(85, 52, 9, .38);
}

.header-cta:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(243, 200, 91, .14), 0 22px 44px rgba(0,0,0,.5);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 142px);
  padding-bottom: 76px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 8% -8% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243,200,91,.14), transparent 68%);
  filter: blur(8px);
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  color: var(--gold-strong);
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -.05em;
  text-shadow: 0 8px 38px rgba(0,0,0,.72), 0 0 30px rgba(243,200,91,.14);
}

h2 {
  color: var(--gold-strong);
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.035em;
}

h3 {
  color: #ffe9a5;
  font-size: 20px;
}

.hero-text {
  max-width: 720px;
  margin: 24px 0 0;
  color: #ead7aa;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-top: 30px;
}

.hero-stats span {
  min-height: 80px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32,24,12,.8), rgba(8,9,6,.74));
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.hero-stats strong {
  display: block;
  color: var(--gold-strong);
  font-family: Cinzel, serif;
  font-size: 28px;
  line-height: 1;
}

.hero-device {
  position: relative;
  justify-self: center;
}

.device-frame {
  width: min(390px, 82vw);
  padding: 12px;
  border: 1px solid rgba(255, 224, 149, .38);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 16%),
    linear-gradient(145deg, #090805, #211508 55%, #090805);
  box-shadow: var(--shadow), 0 0 0 8px rgba(0,0,0,.22);
}

.device-frame img {
  width: 100%;
  border: 1px solid rgba(243, 200, 91, .42);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.floating-card {
  position: absolute;
  min-width: 190px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 224, 149, .44);
  border-radius: 18px;
  background: rgba(14, 11, 6, .88);
  box-shadow: 0 18px 40px rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-family: Cinzel, serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-strong);
  font-family: Cinzel, serif;
  font-size: 15px;
}

.card-one {
  left: -54px;
  top: 16%;
}

.card-two {
  right: -62px;
  bottom: 14%;
}

.intro-panel,
.map-showcase,
.feature-section,
.screens-section,
.catalog-section,
.final-cta {
  margin-bottom: 94px;
}

.intro-panel {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(57,35,10,.72), rgba(9,12,8,.78)),
    radial-gradient(circle at 90% 20%, rgba(243,200,91,.16), transparent 20rem);
  box-shadow: var(--shadow);
}

.intro-panel p:last-child,
.section-heading p,
.catalog-copy p,
.final-cta p {
  margin: 0;
  color: #dfc99c;
  line-height: 1.48;
}

.section-heading {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(22px, 5vw, 68px);
  align-items: end;
  margin-bottom: 26px;
}

.section-heading.split {
  grid-template-columns: 1fr .92fr;
  align-items: center;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading.compact p:last-child {
  margin-top: 14px;
}

.map-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 149, .34);
  border-radius: 28px;
  background: #090805;
  box-shadow: var(--shadow);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,.72)),
    radial-gradient(circle at 60% 44%, transparent 28%, rgba(0,0,0,.28));
}

.map-card img {
  width: 100%;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
}

.map-card figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid rgba(243,200,91,.32);
  border-radius: 18px;
  background: rgba(8, 7, 4, .72);
  color: #ecd8a9;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(35,25,11,.82), rgba(8,10,7,.84)),
    radial-gradient(circle at 85% 15%, rgba(243,200,91,.14), transparent 12rem);
  box-shadow: 0 20px 54px rgba(0,0,0,.34);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 224, 149, .34);
  border-radius: 16px;
  background: rgba(89, 54, 7, .38);
  box-shadow: inset 0 0 22px rgba(243,200,91,.12);
}

.feature-grid p {
  margin: 12px 0 0;
  color: #d9c08e;
  line-height: 1.42;
}

.screens-carousel {
  position: relative;
  margin-top: 28px;
  padding-inline: 58px;
}

.screens-viewport {
  overflow: hidden;
}

.screens-track {
  --screen-index: 0;
  --screen-per-view: 3;
  display: flex;
  gap: 18px;
  transform: translateX(calc(var(--screen-index) * -1 * ((100% - (var(--screen-per-view) - 1) * 18px) / var(--screen-per-view) + 18px)));
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.screen-slide {
  flex: 0 0 calc((100% - (var(--screen-per-view) - 1) * 18px) / var(--screen-per-view));
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 149, .3);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(32,24,12,.86), rgba(6,7,5,.88));
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.screen-slide img {
  width: 100%;
  aspect-ratio: 432 / 771;
  object-fit: cover;
  object-position: top center;
}

.screen-slide figcaption {
  padding: 13px 12px 15px;
  color: #ffe6a0;
  font-family: Cinzel, serif;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 74px;
  border: 1px solid rgba(255, 224, 149, .42);
  border-radius: 999px;
  color: #ffe9a5;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,224,149,.16), transparent 60%),
    rgba(13, 10, 5, .9);
  box-shadow: 0 18px 42px rgba(0,0,0,.42);
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.carousel-btn:hover {
  border-color: rgba(255, 238, 179, .88);
  transform: translateY(-50%) scale(1.04);
}

.carousel-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 224, 149, .46);
  border-radius: 999px;
  background: rgba(243, 200, 91, .2);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 26px;
  background: linear-gradient(90deg, #ffe9a5, #c88718);
  border-color: rgba(255, 238, 179, .9);
}

.catalog-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(243,200,91,.18), transparent 20rem),
    linear-gradient(135deg, rgba(47,30,10,.82), rgba(9,10,7,.86));
  box-shadow: var(--shadow);
}

.catalog-copy p {
  margin: 18px 0 24px;
}

.card-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 330px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-strip::-webkit-scrollbar {
  display: none;
}

.card-strip img {
  width: 100%;
  border: 1px solid rgba(255, 224, 149, .38);
  border-radius: 12px;
  box-shadow: 0 22px 46px rgba(0,0,0,.42);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0));
}

.card-strip img:nth-child(1) { --tilt: -6deg; --lift: 16px; }
.card-strip img:nth-child(2) { --tilt: -2deg; --lift: -4px; }
.card-strip img:nth-child(3) { --tilt: 2deg; --lift: 18px; }
.card-strip img:nth-child(4) { --tilt: 5deg; --lift: 2px; }
.card-strip img:nth-child(5) { --tilt: 8deg; --lift: 26px; }

.final-cta {
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(255, 224, 149, .34);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(7,7,5,.88), rgba(48,30,10,.72)),
    url("../rpg/assets/tutorial/03-comerciante.png") right center / auto 140% no-repeat;
  box-shadow: var(--shadow);
}

.final-cta p {
  max-width: 620px;
  margin: 18px 0 28px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 46px;
  color: #a98952;
  font-size: 15px;
}

.site-footer img {
  width: 92px;
  opacity: .82;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    border-radius: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 7, 4, .94);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav a,
  .menu-rpg-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(243, 200, 91, .22);
    border-radius: 14px;
    background: rgba(25, 18, 9, .72);
  }

  .menu-rpg-link {
    color: #fff5cb;
    background: linear-gradient(135deg, #5c3505, #a5630b 50%, #d8921b);
    border-color: #ffe095;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero-section,
  .intro-panel,
  .section-heading,
  .catalog-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-device {
    order: 0;
  }

  .card-one {
    left: -10px;
  }

  .card-two {
    right: -10px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screens-track {
    --screen-per-view: 2;
  }

  .card-strip {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    border-radius: 22px;
    padding: 8px 10px;
  }

  .brand {
    width: 94px;
    height: 40px;
  }

  .brand img {
    width: 90px;
    height: 36px;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .hero-section {
    gap: 28px;
    padding-bottom: 58px;
    overflow: hidden;
  }

  .hero-section::before {
    left: 50%;
    right: auto;
    width: min(520px, 100%);
    transform: translateX(-50%);
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
    letter-spacing: -.06em;
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero-text {
    font-size: 18px;
    line-height: 1.42;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }

  .intro-panel,
  .catalog-section,
  .final-cta {
    border-radius: 22px;
  }

  .intro-panel,
  .section-heading,
  .section-heading.split,
  .catalog-section {
    gap: 16px;
  }

  .section-heading,
  .section-heading.split {
    align-items: start;
  }

  .section-heading p,
  .intro-panel p:last-child,
  .catalog-copy p,
  .final-cta p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.45;
  }

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

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

  .screens-carousel {
    width: min(100%, 430px);
    margin-inline: auto;
    padding-inline: 0;
    padding-bottom: 62px;
  }

  .screens-track {
    --screen-per-view: 1;
    gap: 0;
    transform: translateX(calc(var(--screen-index) * -100%));
  }

  .screen-slide {
    flex-basis: 100%;
  }

  .carousel-btn {
    top: auto;
    bottom: 0;
    width: calc(50% - 6px);
    height: 44px;
    border-radius: 14px;
    font-size: 30px;
    transform: none;
  }

  .carousel-btn:hover {
    transform: none;
  }

  .carousel-prev { left: 0; }
  .carousel-next { right: 0; }

  .carousel-dots {
    margin-top: 12px;
  }

  .map-card img {
    min-height: 420px;
  }

  .map-card figcaption {
    position: static;
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .card-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
    margin-inline: 0;
    padding: 16px 0 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .card-strip img {
    scroll-snap-align: none;
    transform: none;
  }

  .card-strip img:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(48%, 180px);
  }

  .final-cta {
    background:
      linear-gradient(90deg, rgba(7,7,5,.92), rgba(48,30,10,.82)),
      url("../rpg/assets/tutorial/03-comerciante.png") right center / auto 100% no-repeat;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer img {
    margin: 0 auto 14px;
  }

  .site-footer p {
    text-align: center;
  }
}
