:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #ebedf2;
  background: #0c0d10;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("assets/beamng-background.jpg") center / cover no-repeat;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(12 13 16 / 78%) 0%, rgb(12 13 16 / 20%) 28%, rgb(12 13 16 / 25%) 64%, #0c0d10 100%),
    radial-gradient(ellipse at 50% 44%, rgb(12 13 16 / 65%) 0%, rgb(12 13 16 / 22%) 64%, rgb(12 13 16 / 35%) 100%);
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 clamp(24px, 5vw, 88px);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
  gap: 24px;
  border-bottom: 1px solid rgb(235 237 242 / 12%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .015em;
}

.brand-name span {
  display: block;
  margin-top: 3px;
  color: #a3a8b3;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.header-caption {
  color: #b5b5b7;
  font-size: .875rem;
}

.hero {
  display: grid;
  place-items: center;
  padding: 64px 0 80px;
  text-align: center;
}

.hero-content {
  width: 100%;
  animation: arrive .7s ease-out both;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 27px;
  color: #cfb89f;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .24em;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: #a78d76;
  opacity: .65;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 4px 36px rgb(0 0 0 / 18%);
}

h1 span {
  display: block;
  margin-top: 14px;
  color: #c7ae96;
  font-size: .64em;
  font-weight: 350;
  letter-spacing: -.035em;
}

.description {
  margin: 29px 0 36px;
  color: #c5c6ca;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 232px;
  min-height: 62px;
  padding: 16px 36px;
  gap: 13px;
  border: 1px solid #947054;
  border-radius: 9px;
  background: linear-gradient(135deg, #795437, #5a3e28);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), 0 8px 32px rgb(0 0 0 / 24%);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

.download:hover {
  transform: translateY(-2px);
  border-color: #c7a582;
  background: linear-gradient(135deg, #896244, #6c4b32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 12px 36px rgb(0 0 0 / 32%);
}

.download:active {
  transform: translateY(0);
}

a:focus-visible,
.telegram-button:focus-visible {
  outline: 2px solid #ebd2b8;
  outline-offset: 6px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding-right: 76px;
  gap: 24px;
  border-top: 1px solid rgb(235 237 242 / 10%);
  color: #a3a8b3;
  font-size: .75rem;
  line-height: 1.6;
}

.footer-divider {
  margin: 0 13px;
  color: #92765e;
}

.telegram-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #795c44;
  border-radius: 50%;
  color: #cfb89f;
  background: rgb(19 21 25 / 90%);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
  cursor: pointer;
}

.telegram-button:hover {
  border-color: #c7a582;
  color: #ebedf2;
  background: #5a3e28;
}

.telegram-panel {
  position: fixed;
  inset: auto 24px 90px auto;
  width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 8px;
  border: 1px solid #795c44;
  border-radius: 12px;
  color: #ebedf2;
  background: rgb(19 21 25 / 95%);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 40%);
}

.telegram-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 7px;
  font-size: .875rem;
  line-height: 1.5;
  text-decoration: none;
}

.telegram-panel a:hover {
  background: #34271e;
}

.telegram-panel a span {
  color: #c7a582;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .header {
    min-height: 88px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 72px;
    height: 48px;
  }

  .header-caption {
    display: none;
  }

  .hero {
    padding: 52px 0 60px;
  }

  .eyebrow {
    gap: 12px;
    font-size: .75rem;
    letter-spacing: .16em;
  }

  .eyebrow span {
    width: 20px;
  }

  .description {
    font-size: 1rem;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    min-height: 98px;
    padding: 17px 68px 17px 0;
    gap: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .download {
    transition: none;
  }
}
