:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #10100f;
  --panel-strong: #171511;
  --text: #f7f1e5;
  --muted: #bcb4a5;
  --line: rgba(242, 196, 109, 0.24);
  --gold: #f2c46d;
  --gold-strong: #ffd98a;
  --gold-deep: #8f6426;
  --danger: #f09a7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 196, 109, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 196, 109, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(242, 196, 109, 0.16);
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand span {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(242, 196, 109, 0.11);
  color: var(--text);
  outline: none;
}

.hero {
  min-height: calc(100vh - 72px);
  max-height: 820px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(242, 196, 109, 0.14);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.84) 42%, rgba(5, 5, 5, 0.54) 100%),
    url("erast_gold_logo.jpeg") right 9vw center / min(48vw, 560px) auto no-repeat;
  opacity: 0.96;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.96));
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 710px;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 84px);
  max-width: 760px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 20px;
}

.lead {
  margin: 24px 0 0;
  max-width: 650px;
  color: #ddd3c2;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid rgba(242, 196, 109, 0.36);
  border-radius: 8px;
  background: rgba(242, 196, 109, 0.1);
  color: var(--text);
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(180deg, var(--gold-strong), #d9a247);
  color: #160f05;
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(242, 196, 109, 0.18);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(255, 217, 138, 0.72);
}

.button.disabled {
  cursor: not-allowed;
  color: #7e776b;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid rgba(242, 196, 109, 0.12);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

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

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

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

.tile {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(242, 196, 109, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 21, 17, 0.96), rgba(12, 12, 11, 0.96));
  box-shadow: var(--shadow);
}

.tile p {
  margin: 12px 0 0;
  color: var(--muted);
}

.tile .status {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(242, 196, 109, 0.22);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: stretch;
}

.panel {
  border: 1px solid rgba(242, 196, 109, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.padded {
  padding: 28px;
}

.panel-logo {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.panel-logo img {
  width: min(72%, 360px);
  border-radius: 8px;
  border: 1px solid rgba(242, 196, 109, 0.24);
}

.text-page {
  padding: 64px 0 88px;
}

.text-page article {
  max-width: 860px;
}

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

.text-page h2 {
  margin-top: 36px;
  font-size: 26px;
  color: var(--gold);
}

.text-page p,
.text-page li {
  color: #ddd3c2;
}

.text-page ul {
  padding-left: 22px;
}

.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid rgba(240, 154, 125, 0.32);
  border-radius: 8px;
  color: #f4d7cb;
  background: rgba(240, 154, 125, 0.08);
}

.footer {
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--gold);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px;
    padding-bottom: 0;
    font-size: 13px;
  }

  .nav-links a {
    padding: 8px 9px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.96) 72%),
      url("erast_gold_logo.jpeg") center top 34px / min(78vw, 360px) auto no-repeat;
  }

  .hero-copy {
    padding: 340px 0 64px;
  }

  .section {
    padding: 58px 0;
  }

  .section-header,
  .split {
    display: block;
  }

  .section-header p {
    margin-top: 14px;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .panel-logo {
    min-height: 280px;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .button {
    width: 100%;
  }

  .hero-copy {
    padding-top: 300px;
  }
}
