:root {
  color-scheme: dark;
  --ink: #fffaf2;
  --muted: #f5eadc;
  --quiet: #d6c6b8;
  --brand: #96382f;
  --brand-deep: #421511;
  --brand-bright: #b54a3f;
  --brand-soft: rgba(150, 56, 47, 0.2);
  --ivory: #fff7ec;
  --ivory-soft: rgba(255, 247, 236, 0.2);
  --text-dark: #211816;
  --panel: rgba(255, 248, 236, 0.9);
  --panel-strong: rgba(255, 252, 247, 0.97);
  --line: rgba(255, 247, 236, 0.28);
  --shadow: rgba(23, 13, 11, 0.44);
  --field: rgba(255, 253, 248, 0.78);
  --font-ui: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mark: "Arial Black", Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #160f0d;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background: url("/assets/tabs-background.jpg") 58% center / cover no-repeat;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(105deg, rgba(24, 17, 15, 0.8) 0%, rgba(37, 28, 24, 0.52) 42%, rgba(255, 247, 236, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 247, 236, 0.28) 0%, rgba(28, 20, 17, 0.42) 100%);
  backdrop-filter: blur(1.8px) saturate(0.86);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 13, 12, 0.86) 0%, rgba(23, 17, 15, 0.7) 24%, rgba(23, 17, 15, 0.28) 50%, transparent 74%),
    radial-gradient(circle at 50% 12%, rgba(255, 247, 236, 0.22), transparent 34%);
}

a {
  color: var(--ink);
  text-decoration-color: rgba(185, 86, 75, 0.9);
  text-underline-offset: 4px;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: calc(100vh - 126px);
  padding: 34px 42px 28px;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4.8vh, 54px);
  width: min(100%, 1420px);
  margin: 0 auto;
  text-align: center;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(330px, 39vw, 520px);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(24, 13, 11, 0.22));
}

.access-kicker {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4.8vh, 50px);
  width: min(100%, 920px);
  margin-top: 0;
}

.positioning {
  width: min(100%, 700px);
  max-width: 700px;
  padding: 19px 26px 20px;
  border-top: 2px solid var(--brand-bright);
  border-bottom: 1px solid rgba(255, 247, 236, 0.24);
  background: rgba(24, 17, 15, 0.28);
  text-align: center;
}

.positioning p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: #fff4e4;
  font-family: var(--font-ui);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 22px;
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: left;
}

.access-card {
  min-height: 392px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  background:
    linear-gradient(180deg, var(--panel-strong), rgba(255, 247, 236, 0.84)),
    var(--panel);
  box-shadow: 0 32px 90px rgba(32, 19, 16, 0.32);
  color: var(--text-dark);
  backdrop-filter: blur(26px) saturate(126%);
}

.access-card__header {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(46, 26, 23, 0.14);
}

.access-card h3 {
  margin: 7px 0 0;
  font-family: var(--font-ui);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.08;
}

label {
  display: block;
  margin-bottom: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(46, 26, 23, 0.76);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(46, 26, 23, 0.2);
  border-radius: 6px;
  outline: 0;
  background: var(--field);
  color: var(--text-dark);
  font-family: var(--font-ui);
  font-size: 15px;
}

input:focus {
  border-color: rgba(185, 86, 75, 0.88);
  box-shadow: 0 0 0 3px rgba(185, 86, 75, 0.22);
}

button {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(66, 21, 17, 0.28);
}

button:hover,
button:focus-visible {
  background: var(--brand-bright);
}

.form-message {
  min-height: 38px;
  margin: 14px 0 0;
  color: rgba(46, 26, 23, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 84px, 1420px);
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(251, 241, 232, 0.17);
  color: rgba(255, 247, 236, 0.72);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.site-footer p {
  max-width: 1040px;
  margin: 0 auto 8px;
}

.request-access {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero__content {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  body {
    background: url("/assets/tabs-background.jpg") 62% center / cover no-repeat;
  }

  .page-shell {
    min-height: auto;
    padding: 26px 20px 18px;
  }

  .hero__brand {
    width: min(100%, 335px);
  }

  .hero__content {
    gap: 28px;
    margin-top: 0;
  }

  .positioning {
    padding: 18px 16px;
  }

  .positioning p:last-child {
    font-size: 18px;
    line-height: 1.48;
  }

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

  .access-card {
    min-height: auto;
    padding: 22px;
  }

  .access-card h3 {
    font-size: 31px;
  }

  .site-footer {
    width: calc(100% - 40px);
    padding-bottom: 26px;
  }
}
