:root {
  color-scheme: dark;
  --bg: #070706;
  --bg-2: #0d0b08;
  --panel: rgba(10, 9, 7, 0.92);
  --panel-2: rgba(20, 16, 11, 0.94);
  --line: rgba(204, 151, 49, 0.34);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #c58a25;
  --gold-2: #f2c66e;
  --text: #f4efe5;
  --muted: #a79d8c;
  --danger: #ffb4a8;
  --success: #b9f5c8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(185, 133, 45, 0.12), transparent 34rem),
    linear-gradient(180deg, #0a0a09 0%, var(--bg) 45%, #030303 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.94), rgba(6, 6, 5, 0.78));
  border: 1px solid rgba(204, 151, 49, 0.18);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: 0;
  margin: 8px auto 0;
  max-width: 1400px;
  padding: 10px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--gold-2);
  line-height: 1;
  min-width: 104px;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: 0;
}

.brand span {
  color: #d7d0c3;
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

nav a,
.login-link {
  border: 1px solid transparent;
  color: #cfc6b7;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

nav a.active,
nav a:hover {
  background: linear-gradient(180deg, rgba(198, 141, 38, 0.14), rgba(0, 0, 0, 0.12));
  border-color: var(--line);
  color: var(--gold-2);
}

.login-link,
.gold-button,
button {
  background: linear-gradient(180deg, var(--gold-2), #9b661d);
  border: 1px solid rgba(255, 226, 145, 0.55);
  color: #160f08;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 10px 24px;
  text-decoration: none;
  text-transform: uppercase;
}

.dark-button {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  color: var(--gold-2);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 10px 24px;
  text-decoration: none;
  text-transform: uppercase;
}

main {
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 8px 22px;
}

.hero {
  align-items: center;
  height: clamp(560px, 48vw, 720px);
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 193, 93, 0.1), transparent 22rem),
    linear-gradient(90deg, rgba(4, 4, 3, 0.2), rgba(4, 4, 3, 0.03) 48%, rgba(4, 4, 3, 0.26)),
    linear-gradient(180deg, rgba(4, 4, 3, 0.06) 66%, rgba(4, 4, 3, 0.88)),
    url("assets/hero-main.png") center / cover no-repeat;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: 120px 44px 70px;
  position: relative;
}

.hero::after,
.client-cta::after,
.banner-cta::after,
.page-hero::after {
  border: 1px solid rgba(255, 226, 145, 0.11);
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-knight {
  bottom: -70px;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.85));
  height: min(72vw, 760px);
  left: max(18px, calc(50% - 700px));
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-logo {
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.85));
  margin: 22px auto 8px;
  max-width: min(620px, 88vw);
  width: 100%;
}

.eyebrow {
  color: var(--gold-2);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

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

h1 {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.95;
  margin-bottom: 14px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.8);
}

.hero h1 span,
.hero h1 small {
  display: block;
}

.hero h1 small {
  color: #e8dfd0;
  font-size: 0.29em;
  letter-spacing: 12px;
  margin-top: 7px;
}

.subtitle {
  color: var(--gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 11px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h2 {
  color: #eadcc2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h3 {
  color: var(--gold-2);
  font-size: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  color: #dfd7c9;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.quick-access,
.stats,
.mini-grid,
.steps,
.card-grid,
.download-grid,
.server-features,
.home-dashboard {
  display: grid;
  gap: 12px;
}

.quick-access {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px auto;
}

.server-features {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -46px 54px 12px;
  position: relative;
  z-index: 2;
}

.home-dashboard {
  grid-template-columns: 1.02fr 1.35fr 0.92fr;
  margin: 0 45px 12px;
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
}

.content-grid.two {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
}

.panel,
.feature-card,
.stat-card,
.download-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(0, 0, 0, 0.22)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.26);
}

.panel {
  margin-bottom: 0;
  min-width: 0;
  padding: 16px;
}

.feature-card,
.stat-card,
.download-card {
  min-height: 90px;
  padding: 15px;
}

.feature-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 1fr;
  text-align: left;
}

.feature-card p,
.download-card p {
  font-size: 12px;
  margin-bottom: 0;
}

.icon,
.emblem {
  align-items: center;
  border: 1px solid var(--line);
  color: var(--gold-2);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0;
  height: 50px;
  justify-content: center;
  width: 48px;
}

.icon::before {
  color: var(--gold-2);
  font-size: 27px;
  line-height: 1;
}

.shield::before { content: "A"; }
.swords::before { content: "X"; }
.scale::before { content: "="; }
.guard::before { content: "*"; }
.scroll::before { content: "#"; }
.helmet::before { content: "H"; }
.download::before { content: "v"; }
.exp::before { content: "EXP"; font-size: 15px; font-weight: 800; }
.crown::before { content: "W"; }
.lock::before { content: "L"; }
.chest::before { content: "C"; }
.banner::before { content: "F"; }

.stat-card {
  align-items: center;
  display: grid;
  gap: 0 12px;
  grid-template-columns: 58px 1fr;
}

.server-features .stat-card:nth-child(1),
.quick-access .feature-card:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.68)),
    url("assets/atlas-card-left.png") center / cover no-repeat;
}

.server-features .stat-card:nth-child(2),
.quick-access .feature-card:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.68)),
    url("assets/atlas-news-2.png") center / cover no-repeat;
}

.server-features .stat-card:nth-child(3),
.quick-access .feature-card:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.68)),
    url("assets/atlas-card-center.png") center / cover no-repeat;
}

.server-features .stat-card:nth-child(4),
.quick-access .feature-card:nth-child(4) {
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.68)),
    url("assets/atlas-card-right.png") center / cover no-repeat;
}

.server-features .stat-card:nth-child(5) {
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.68)),
    url("assets/atlas-castle-crop.png") center / cover no-repeat;
}

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

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

.stat-card span,
.download-card span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--gold-2);
  display: block;
  font-size: 14px;
  margin: 3px 0;
  text-transform: uppercase;
}

.stat-card small {
  color: #c8bdab;
  font-size: 12px;
  grid-column: 2;
}

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

.banner-cta,
.client-cta,
.page-hero {
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.72), rgba(6, 5, 4, 0.38)),
    url("assets/atlas-card-center.png") center / cover no-repeat;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 30px;
  position: relative;
}

.banner-cta,
.client-cta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 92px;
}

.client-cta {
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.84), rgba(6, 5, 4, 0.2)),
    url("assets/client-download-bg.png") center / cover no-repeat;
  margin: 0 45px 12px;
  overflow: hidden;
  padding-right: min(38vw, 390px);
}

.client-cta > div,
.client-cta > a {
  position: relative;
  z-index: 2;
}

.client-knight {
  bottom: -92px;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.82));
  height: 310px;
  pointer-events: none;
  position: absolute;
  right: 28px;
  z-index: 1;
}

.page-hero.compact {
  min-height: 220px;
  padding: 50px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.news-item {
  align-items: center;
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 14px;
  grid-template-columns: 70px 1fr auto;
  margin-bottom: 8px;
  min-height: 62px;
  padding: 8px;
}

.news-item p {
  font-size: 11px;
  margin-bottom: 0;
}

.news-item time {
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 11px;
  padding: 7px;
}

.thumb {
  background: url("assets/atlas-news-1.png") center / cover no-repeat;
  border: 1px solid var(--line);
  height: 48px;
}

.news-item:nth-of-type(2) .thumb {
  background-image: url("assets/atlas-news-2.png");
}

.news-item:nth-of-type(3) .thumb {
  background-image: url("assets/atlas-news-3.png");
}

.announcements-panel,
.guide-panel,
.top-panel {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.88), rgba(7, 6, 5, 0.96)),
    url("assets/atlas-card-left.png") center / cover no-repeat;
}

.guide-panel {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.88), rgba(7, 6, 5, 0.96)),
    url("assets/atlas-card-center.png") center / cover no-repeat;
}

.top-panel {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.88), rgba(7, 6, 5, 0.96)),
    url("assets/atlas-card-right.png") center / cover no-repeat;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head a {
  color: var(--gold-2);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link {
  color: var(--gold-2);
  display: inline-block;
  font-weight: 800;
  margin-top: 8px;
  text-decoration: none;
  text-transform: uppercase;
}

.rate {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 94px 1fr 46px;
  margin: 14px 0;
}

.rate span,
.rate em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rate b {
  background: linear-gradient(90deg, var(--gold-2), #7c5019);
  display: block;
  height: 5px;
  position: relative;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

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

.top-list li {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 10px;
  grid-template-columns: 26px 1fr auto;
  min-height: 35px;
}

.top-list span {
  color: var(--gold-2);
  font-weight: 800;
  text-align: center;
}

.top-list b {
  color: #efe5d1;
  font-size: 13px;
}

.top-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td b {
  color: #efe5d1;
}

tr:hover td {
  background: rgba(201, 146, 50, 0.06);
}

.empty {
  color: var(--muted);
  margin: 0;
}

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

.download-card h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.download-card .gold-button {
  margin-top: 16px;
}

.form-panel {
  max-width: 520px;
}

form {
  display: grid;
  gap: 16px;
}

label span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

input {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  min-height: 46px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(200, 147, 50, 0.14);
}

.notice {
  border: 1px solid var(--line);
  margin: 0 0 14px;
  padding: 10px 12px;
}

.notice.error {
  background: #321c18;
  color: var(--danger);
}

.notice.success {
  background: #173222;
  color: var(--success);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.86), rgba(0, 0, 0, 0.94)),
    url("assets/footer-bg.png") center / cover no-repeat;
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 1260px;
  padding: 22px 24px;
}

.site-footer strong {
  color: var(--gold-2);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.site-footer span,
.site-footer p {
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  justify-content: flex-start;
  margin: 16px 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    position: static;
    margin-top: 0;
  }

  main {
    padding-top: 0;
  }

  .server-features,
  .home-dashboard,
  .client-cta {
    margin-left: 0;
    margin-right: 0;
  }

  .server-features {
    margin-top: 12px;
  }

  .home-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-link {
    align-self: stretch;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 520px;
    padding: 34px;
  }

  .hero-knight {
    height: 560px;
    left: -120px;
    opacity: 0.5;
  }

  .client-cta {
    padding-right: 260px;
  }

  .client-knight {
    height: 250px;
    right: -24px;
  }

  .quick-access,
  .content-grid,
  .content-grid.two,
  .steps,
  .card-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .content-grid > *,
  aside {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  main {
    padding: 12px 10px 28px;
  }

  nav {
    justify-content: flex-start;
  }

  nav a {
    font-size: 11px;
    padding: 8px;
  }

  .hero,
  .page-hero.compact {
    min-height: 430px;
    padding: 42px 20px;
  }

  .hero-knight,
  .client-knight {
    display: none;
  }

  .client-cta {
    padding-right: 30px;
  }

  .hero h1 small,
  .subtitle {
    letter-spacing: 5px;
  }

  .hero-actions,
  .banner-cta,
  .client-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-access,
  .server-features,
  .content-grid,
  .content-grid.two,
  .stats,
  .mini-grid,
  .steps,
  .card-grid,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-grid > *,
  aside {
    min-width: 0;
  }

  .news-item {
    grid-template-columns: 1fr;
  }
}
