/* State San Andreas — professional landing */

:root {
  --bg: #0a0a0b;
  --bg-2: #101113;
  --bg-3: #16171b;
  --text: #f1efe9;
  --muted: #9b9ba3;
  --accent: #d4a85a;
  --accent-2: #e0b76c;
  --line: rgba(255, 255, 255, 0.09);
  --ok: #3ecf8e;
  --shell: 1400px;
  --pad: 36px;
  --header: 80px;
  --radius: 14px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --ease: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #14110c;
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.shell {
  width: min(100% - (var(--pad) * 2), var(--shell));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.title--xl {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
}

.text {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

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

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn--accent {
  background: var(--accent);
  color: #14110c;
}

.btn--accent:hover {
  background: var(--accent-2);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(10, 10, 11, 0.35);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease);
}

.site-header.is-solid {
  background: rgba(10, 10, 11, 0.94);
  border-bottom-color: var(--line);
}

.site-header__bar {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

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

.brand--footer img {
  width: 36px;
  height: 36px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  display: contents;
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.site-nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  color: var(--text);
}

.site-nav__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
  color: var(--text);
}

.site-nav .btn {
  justify-self: end;
}

/* Hero */

.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header) + 40px) 0 72px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.62) 46%, rgba(10, 10, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.25) 0%, rgba(10, 10, 11, 0.5) 45%, rgba(10, 10, 11, 0.94) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__text {
  margin-top: 18px;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Image + text blocks */

.block {
  padding: 88px 0;
  background: var(--bg);
}

.block--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.block__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.block__grid--flip {
  grid-template-columns: 0.95fr 1.15fr;
}

.block__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.block__copy .title {
  margin-bottom: 14px;
}

.block__copy .text {
  margin-bottom: 0;
}

/* Roles */

.roles {
  padding: 88px 0;
  background: var(--bg);
}

.roles__head {
  margin-bottom: 40px;
  max-width: 40rem;
}

.roles__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.roles__stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.role {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 220ms ease;
  min-height: 0;
}

.role--lg {
  min-height: 100%;
  max-height: 1180px;
  align-self: stretch;
}

/* Even right-column rhythm; total height aligns with police card */
.role--ems,
.role--business,
.role--crime {
  flex: 1 1 0;
  min-height: 400px;
}

.role-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 220ms ease;
}

/* Keep individual framing */
.role-image--police {
  object-position: 38% 18%;
}

.role-image--medic {
  object-position: 54% 4%;
}

.role-image--business {
  object-position: 74% 5%;
}

.role-image--criminal {
  object-position: 48% 20%;
}

.role:hover .role-image {
  transform: scale(1.02);
}

.role:hover {
  border-color: rgba(212, 168, 90, 0.35);
}

.role__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.02) 0%,
    rgba(10, 10, 11, 0.08) 40%,
    rgba(10, 10, 11, 0.28) 72%,
    rgba(10, 10, 11, 0.55) 100%
  );
  transition: opacity 220ms ease;
  pointer-events: none;
}

.role:hover .role__shade {
  opacity: 0.96;
}

.role__body {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 32px 32px 28px 32px;
}

.role__body::before {
  content: "";
  position: absolute;
  inset: -28px -20px -12px -20px;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 10, 11, 0.45) 28%,
    rgba(10, 10, 11, 0.88) 100%
  );
  pointer-events: none;
}

.role--lg .role__body {
  width: min(100%, 28rem);
}

.role__name {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}

.role--lg .role__name {
  font-size: clamp(1.75rem, 2.35vw, 2.35rem);
}

.roles__stack .role__name {
  font-size: clamp(1.55rem, 2.05vw, 1.95rem);
}

.role__body p {
  position: relative;
  z-index: 1;
  color: #e2e0da;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 21rem;
}

.roles__stack .role__body p {
  font-size: 0.98rem;
  line-height: 1.58;
  max-width: 22rem;
}

.role--lg .role__body p {
  font-size: 1.02rem;
  max-width: 26rem;
}

/* Banner CTA */

.banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.78);
}

.banner__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.banner__content .title {
  margin-bottom: 28px;
}

/* Footer */

.site-footer {
  padding: 36px 0 24px;
  background: #070708;
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 22px;
}

.site-footer__tag {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-content: flex-start;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--ease);
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  color: var(--text);
}

.site-footer__legal p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #686870;
  max-width: 48rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .roles__grid {
    grid-template-columns: 1fr;
  }

  .roles__stack {
    display: flex;
    flex-direction: column;
  }

  .role--lg {
    min-height: 500px;
  }

  .role--ems,
  .role--business,
  .role--crime {
    flex: none;
    min-height: 440px;
  }

  .role-image--medic {
    object-position: 52% 6%;
  }

  .role-image--business {
    object-position: 70% 6%;
  }

  .role-image--criminal {
    object-position: 48% 18%;
  }
}

@media (max-width: 960px) {
  .site-header__bar {
    grid-template-columns: 1fr auto;
  }

  .menu-btn {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header);
    padding: 16px var(--pad) 20px;
    background: rgba(10, 10, 11, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 14px;
  }

  .site-nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    width: 100%;
  }

  .block__grid,
  .block__grid--flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  :root {
    --pad: 20px;
    --header: 72px;
  }

  .hero {
    min-height: 85vh;
    min-height: 85dvh;
    padding-bottom: 56px;
    align-items: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .banner__content .btn {
    width: 100%;
  }

  .block,
  .roles {
    padding: 64px 0;
  }

  .banner {
    padding: 72px 0;
  }

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

  .roles__stack {
    display: flex;
    flex-direction: column;
  }

  .role--lg {
    min-height: 480px;
  }

  .role--ems {
    flex: none;
    min-height: 460px;
  }

  .role--business {
    flex: none;
    min-height: 440px;
  }

  .role--crime {
    flex: none;
    min-height: 430px;
  }

  .role-image--police {
    object-position: 38% 18%;
  }

  .role-image--medic {
    object-position: 52% 5%;
  }

  .role-image--business {
    object-position: 70% 6%;
  }

  .role-image--criminal {
    object-position: 48% 18%;
  }
}

/* Auth / Login */

.page-auth .site-header,
.site-header--auth {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--line);
}

.page-auth .site-header__bar {
  grid-template-columns: 1fr auto;
}

.auth-nav {
  justify-self: end;
}

.auth-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
}

.auth-nav a:hover {
  color: var(--text);
}

.auth-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
  color: var(--text);
}

.page-auth .site-footer,
.site-footer--auth {
  position: relative;
  z-index: 1;
  padding: 24px 0 20px;
  background: rgba(7, 7, 8, 0.96);
}

.page-auth .site-footer__top,
.site-footer--auth .site-footer__top {
  margin-bottom: 16px;
  gap: 16px 24px;
}

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header) - 120px);
  min-height: calc(100dvh - var(--header) - 120px);
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 40px) 0 56px;
  overflow: hidden;
  background: var(--bg);
}

.auth-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-page__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.38;
  filter: saturate(0.7) brightness(0.58);
}

.auth-page__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.72) 48%, rgba(10, 10, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0.12) 50%, rgba(10, 10, 11, 0.35) 100%);
}

.auth-page__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: min(100%, 420px);
  padding: 44px 40px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(16, 17, 19, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.auth-card__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 12px;
  object-fit: contain;
}

.auth-card__eyebrow {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-card__title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-card__text {
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 30ch;
  line-height: 1.55;
  font-size: 0.98rem;
}

.auth-card__error {
  margin: -12px 0 24px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 80, 80, 0.35);
  background: rgba(220, 80, 80, 0.1);
  color: #f0b4b4;
  font-size: 0.9rem;
  line-height: 1.45;
}

.btn--steam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #1b2838;
  border: 1px solid rgba(102, 192, 244, 0.28);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn--steam img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.btn--steam:hover {
  background: #223246;
  border-color: rgba(102, 192, 244, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.btn--steam:active {
  transform: translateY(0);
  background: #172230;
  box-shadow: none;
}

.btn--steam:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .page-auth .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .auth-page {
    align-items: flex-start;
    padding: calc(var(--header) + 28px) 0 40px;
    min-height: calc(100dvh - var(--header) - 140px);
  }

  .auth-page__wrap {
    align-items: stretch;
  }

  .auth-card {
    width: 100%;
    padding: 36px 22px 32px;
  }

  .auth-card__logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .auth-card__text {
    margin-bottom: 28px;
    max-width: none;
  }

  .btn--steam {
    min-height: 54px;
  }

  .page-auth .site-footer__brand .brand span {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .role:hover img {
    transform: none;
  }
}
