:root {
  --black: #090b0e;
  --ink: #17191d;
  --paper: #f7f3ec;
  --paper-2: #eee7dc;
  --white: #ffffff;
  --text: #1c2025;
  --soft-text: #626a70;
  --line: rgba(23, 25, 29, .12);
  --dark-line: rgba(255, 255, 255, .16);
  --copper: #b6783f;
  --copper-2: #e0aa63;
  --teal: #2b8c88;
  --wine: #823c3b;
  --shadow: 0 24px 70px rgba(15, 18, 23, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 68px);
  color: #f5efe7;
  background: rgba(9, 11, 14, .92);
  border-bottom: 1px solid var(--dark-line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  color: #d9d3ca;
  font-size: 14px;
}

.navlinks a {
  padding: 8px 12px;
  border-radius: 6px;
}

.navlinks a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  grid-template-areas:
    "copy panel";
  align-items: end;
  gap: 22px 34px;
  padding: clamp(76px, 9vw, 130px) clamp(18px, 5vw, 76px) 58px;
  color: #fff;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .92) 0%, rgba(9, 11, 14, .76) 36%, rgba(9, 11, 14, .3) 100%),
    linear-gradient(0deg, rgba(9, 11, 14, .86) 0%, rgba(9, 11, 14, .15) 48%, rgba(9, 11, 14, .48) 100%),
    url("assets/screens/twin-city-source-6609.png") center top / cover no-repeat;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  grid-area: copy;
  max-width: 760px;
  padding-bottom: 16px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--copper-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: .96;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 16px 42px rgba(0, 0, 0, .38);
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #e8e4de;
  font-size: clamp(17px, 1.8vw, 20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .18);
}

.btn.primary {
  color: #130d07;
  background: linear-gradient(180deg, #efbf77, var(--copper));
  box-shadow: 0 14px 36px rgba(182, 120, 63, .28);
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: var(--dark-line);
}

.btn.full {
  width: 100%;
}

.hero-panel {
  grid-area: panel;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(13, 15, 18, .82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .3);
}

.hero-panel div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.hero-panel div:nth-child(2n) {
  border-right: 0;
}

.hero-panel div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.panel-label {
  color: #aeb3b7;
  font-size: 12px;
}

.hero-panel strong {
  color: #fff;
  font-size: 16px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  padding: 22px clamp(18px, 4vw, 48px);
  background: var(--white);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--ink);
}

.proof-strip span {
  margin-top: 3px;
  color: var(--soft-text);
  font-size: 14px;
}

.section {
  padding: clamp(70px, 9vw, 112px) clamp(18px, 5vw, 76px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-head p,
.purchase-copy p,
.note-block p {
  color: var(--soft-text);
}

.section-head.compact {
  max-width: 680px;
}

.component-grid,
.class-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.component-card,
.class-card,
.system-card,
.feature-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 21, 27, .08);
}

.component-card {
  position: relative;
  padding: 24px;
}

.component-card::before,
.feature-panel::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: var(--copper);
}

.mini-icon {
  display: none;
}

.component-card p,
.feature-panel li,
.class-card p,
.system-card p {
  color: var(--soft-text);
}

.split-section {
  background: var(--paper-2);
}

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

.feature-panel {
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.class-section {
  background: var(--paper);
}

.class-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.class-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(23, 25, 29, .16);
}

.class-card h3,
.system-card h3 {
  margin-bottom: 4px;
}

.class-card p,
.system-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.systems-section {
  color: #fff;
  background: var(--black);
}

.systems-section h2,
.systems-section h3 {
  color: #fff;
}

.systems-section .section-head p,
.systems-section .system-card p {
  color: #c3c9cc;
}

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

.system-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #14181d;
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(224, 170, 99, .35);
  border-radius: 8px;
  color: #f8dfbd;
  background: rgba(224, 170, 99, .12);
  font-size: 11px;
  font-weight: 900;
}

.gallery-section {
  background: var(--paper);
}

.gallery {
  display: grid;
  grid-template-columns: 1.25fr .9fr .9fr;
  gap: 16px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery figcaption {
  min-height: 76px;
  padding: 14px 16px;
  color: var(--soft-text);
  font-size: 14px;
}

.buyer-notes {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
  background: var(--paper-2);
}

.note-list {
  display: grid;
  gap: 10px;
}

.note-list div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--soft-text);
}

.note-list strong {
  color: var(--ink);
}

.purchase-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 520px);
  gap: 34px;
  align-items: start;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .96), rgba(9, 11, 14, .78)),
    url("assets/screens/daily-quests-source-6609.png") center / cover no-repeat;
}

.purchase-section h2,
.purchase-section h3 {
  color: #fff;
}

.purchase-copy p {
  color: #d8dde0;
}

.seller-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.seller-box span {
  color: #aeb5ba;
}

.seller-box strong {
  color: #fff;
}

.purchase-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(13, 15, 18, .9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.purchase-card strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
}

.purchase-card p {
  margin-bottom: 8px;
  color: #d8dde0;
}

.purchase-label {
  color: var(--copper-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(8, 10, 12, .82);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(224, 170, 99, .34);
  border-color: rgba(224, 170, 99, .58);
}

.prepared-message {
  min-height: 150px;
  color: #f7e7cf;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 76px);
  color: #9ca3a8;
  background: #070809;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "panel";
  }

  .hero-panel {
    max-width: 760px;
  }

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

@media (max-width: 980px) {
  .purchase-section,
  .buyer-notes,
  .test-info {
    grid-template-columns: 1fr;
  }

  .component-grid,
  .feature-columns,
  .gallery,
  .class-grid,
  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-bg {
    background-position: 58% top;
  }

  .hero-panel,
  .component-grid,
  .feature-columns,
  .gallery,
  .class-grid,
  .system-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    border-right: 0;
  }

  .hero-panel div:nth-last-child(2) {
    border-bottom: 1px solid var(--dark-line);
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .seller-box {
    flex-direction: column;
    gap: 4px;
  }
}

.catalog-page {
  background: var(--paper);
}

.catalog-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 68px);
  color: #f5efe7;
  background: rgba(9, 11, 14, .94);
  border-bottom: 1px solid var(--dark-line);
  backdrop-filter: blur(16px);
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 28px;
  align-items: end;
  min-height: 430px;
  padding: clamp(80px, 10vw, 130px) clamp(18px, 5vw, 76px) 48px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .94), rgba(9, 11, 14, .58)),
    url("assets/screens/desert-city-source-6609.png") center / cover no-repeat;
}

.catalog-hero.garments-hero {
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .94), rgba(9, 11, 14, .56)),
    url("assets/screens/twin-city-source-6609.png") center / cover no-repeat;
}

.catalog-hero.test-hero {
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .94), rgba(9, 11, 14, .56)),
    url("assets/screens/daily-quests-source-6609.png") center / cover no-repeat;
}

.catalog-hero.live-hero {
  background:
    linear-gradient(90deg, rgba(9, 11, 14, .94), rgba(9, 11, 14, .52)),
    url("assets/screens/desert-city-source-6609.png") center / cover no-repeat;
}

.catalog-hero h1 {
  margin-bottom: 16px;
}

.catalog-hero p {
  max-width: 760px;
  color: #e5e0d8;
  font-size: 18px;
}

.catalog-count {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  background: rgba(9, 11, 14, .74);
}

.catalog-count span {
  color: #c5cbd0;
  font-size: 13px;
}

.catalog-count strong {
  font-size: 42px;
  line-height: 1;
}

.test-summary strong {
  font-size: clamp(22px, 3vw, 34px);
  word-break: break-word;
}

.test-summary p {
  margin: 0;
  color: #c5cbd0;
}

.test-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: var(--paper);
}

.test-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 21, 27, .08);
}

.test-card strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
  word-break: break-word;
}

.test-card p {
  margin: 0;
  color: var(--soft-text);
}

.live-access {
  background: var(--paper);
}

.live-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d10;
  box-shadow: var(--shadow);
}

.live-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #d7dde1;
  background: #11161b;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.live-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8d4440;
}

.live-window-bar span:nth-child(2) {
  background: #c69342;
}

.live-window-bar span:nth-child(3) {
  background: #438d7f;
}

.live-window-bar strong {
  margin-left: 8px;
  font-size: 13px;
}

.live-window-body {
  position: relative;
  min-height: 520px;
}

.live-window-body img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.live-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: rgba(9, 11, 14, .68);
}

.live-overlay h2 {
  color: #fff;
  margin-bottom: 0;
}

.live-overlay p {
  max-width: 620px;
  margin: 0 auto;
  color: #e1e4e6;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px);
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.catalog-tools label {
  color: var(--ink);
}

.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: #fbfaf7;
  font: inherit;
}

.catalog-section {
  padding: 28px clamp(18px, 5vw, 76px) 80px;
}

.catalog-grid {
  display: grid;
  gap: 16px;
}

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

.garment-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.catalog-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 21, 27, .08);
}

.map-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 10px;
  object-fit: contain;
  background: #e5ded2;
}

.map-card div {
  padding: 12px 13px 14px;
}

.catalog-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.catalog-card p {
  margin: 0;
  color: var(--soft-text);
  font-size: 12px;
  word-break: break-word;
}

.garment-card {
  padding: 14px;
  text-align: center;
}

.garment-icon-wrap {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, .04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%),
    #f5efe5;
  background-size: 16px 16px;
}

.garment-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: auto;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--soft-text);
}

@media (max-width: 1100px) {
  .map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-top,
  .catalog-hero,
  .catalog-tools {
    grid-template-columns: 1fr;
  }

  .catalog-top {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .map-grid,
  .garment-grid {
    grid-template-columns: 1fr;
  }
}
