/* Main landing section, using the supplied Los Santos artwork. */
.portal-hero {
  --ink: #f5f6f2;
  --surface: #111713;
  --card: #151b17;
  --muted: #b8c0bb;
  --muted2: #9ca79f;
  --divider: #ffffff1a;
  --btn: #0de66a;
  --btn-ink: #07140c;
  --track: #27302a;
  --nav-line: #ffffff1a;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #f5f6f2;
  background: #080d0a;
}
.portal-hero__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  pointer-events: none;
  user-select: none;
}
.portal-hero::before,
.portal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.portal-hero::before {
  background: linear-gradient(90deg, #05090855 0%, #05090822 42%, transparent 72%);
}
.portal-hero::after {
  background: linear-gradient(0deg, #080d0acc 0%, transparent 22%);
}
.portal-hero__header {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}
.portal-hero__header a:hover { color: #0de66a; }
.portal-hero__header a.bg-lime:hover { color: #121210; }
.portal-hero__main {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 30px clamp(24px, 4vw, 64px) 28px;
}
.portal-hero__copy { width: min(100%, 620px); }
.portal-hero__kicker {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 20px;
  color: #bdc3be;
  font-family: var(--font-jetbrains), monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .32em;
  line-height: 1.7;
  text-transform: uppercase;
}
.portal-hero__kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  flex: none;
  background: linear-gradient(90deg, #05ee57, #08be88);
}
.portal-hero__title {
  margin: 0;
  font-family: var(--font-shoulders), sans-serif;
  font-size: clamp(76px, 7.2vw, 110px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .88;
  text-transform: uppercase;
}
.portal-hero__title > span { display: block; }
.portal-hero__title-accent {
  width: fit-content;
  color: #0de66a;
  background: linear-gradient(105deg, #06f456, #04be8c);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portal-hero__subtitle {
  margin: 18px 0 0;
  color: #c3c9c4;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}
.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.portal-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  padding: 13px 28px;
  border: 1px solid #ffffff33;
  border-radius: 3px;
  color: #f5f6f2;
  background: #0c100dcc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.portal-hero__button--primary {
  min-width: 204px;
  border: 0;
  color: #06140b;
  background: linear-gradient(110deg, #08ee53, #08bc87);
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}
.portal-hero__button:hover {
  border-color: #0de66a;
  color: #fff;
  background: #18211bcc;
  transform: translateY(-2px);
}
.portal-hero__button--primary:hover {
  color: #06140b;
  background: linear-gradient(110deg, #3dff78, #13d49a);
}
.portal-hero__button > svg { flex: none; }
.portal-hero__button--discord > svg { width: 21px; height: 21px; }
.portal-server {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  width: min(100%, 620px);
  margin-top: 27px;
  padding: 17px 18px;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  background: linear-gradient(110deg, #151b17e6, #121613e6);
  box-shadow: 0 10px 30px #0003;
  backdrop-filter: blur(12px);
}
.portal-server__address {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.portal-server__signal { flex: none; width: 27px; color: #0de66a; }
.portal-server__address > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.portal-server__label {
  color: #a8b2aa;
  font-family: var(--font-jetbrains), monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.portal-server__ip {
  color: #f5f6f2;
  font-family: var(--font-jetbrains), monospace;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.portal-server__status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #7b877e;
}
.portal-status__dot.is-online { background: #0de66a; box-shadow: 0 0 12px #0de66a55; }
.portal-status__dot.is-offline { background: #e7ac4d; }
.portal-server__status-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.portal-server__players {
  color: #bcc6bf;
  font-family: var(--font-jetbrains), monospace;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .07em;
  white-space: nowrap;
}
.portal-server__version {
  color: #87928a;
  font-family: var(--font-jetbrains), monospace;
  font-size: 8px;
  letter-spacing: .14em;
}
.portal-server__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  min-width: 112px;
  padding: 10px 15px;
  border: 1px solid #ffffff36;
  border-radius: 2px;
  color: #ecf0eb;
  background: #ffffff05;
  font-family: var(--font-jetbrains), monospace;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.portal-server__copy:hover { border-color: #0de66a; background: #0de66a12; }
.portal-hero__features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 24px clamp(24px, 4vw, 64px) 34px;
}
.portal-feature {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: start;
  gap: 22px;
  min-height: 114px;
  padding: 24px;
  border: 1px solid #ffffff16;
  border-radius: 5px;
  color: #f5f6f2;
  background: linear-gradient(120deg, #141a16ee, #0d120ff0);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.portal-feature__icon { width: 34px; height: 34px; color: #0de66a; }
.portal-feature__title {
  margin: 0 0 6px;
  color: #f5f6f2;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.portal-feature__description {
  max-width: 265px;
  margin: 0;
  color: #97a39a;
  font-size: 12px;
  line-height: 1.65;
  text-wrap: pretty;
}
.portal-feature__arrow {
  align-self: center;
  width: 22px;
  color: #c2cec5;
}
.portal-feature:hover {
  border-color: #0de66a66;
  color: #f5f6f2;
  background: linear-gradient(120deg, #18271ded, #101b14f0);
  transform: translateY(-3px);
}
.portal-hero a:focus-visible,
.portal-hero button:focus-visible {
  outline: 2px solid #0de66a;
  outline-offset: 4px;
}
@media (max-width: 1199px) {
  .portal-hero__copy { width: min(100%, 570px); }
  .portal-hero__title { font-size: clamp(72px, 7.4vw, 88px); }
  .portal-server { gap: 14px; padding: 16px 14px; }
  .portal-server__address { gap: 12px; }
  .portal-server__copy { min-width: 102px; padding-inline: 12px; }
  .portal-feature { gap: 16px; padding: 22px 18px; }
}
@media (max-width: 767px) {
  .portal-hero__background { height: 710px; object-position: 67% center; opacity: .7; }
  .portal-hero::before {
    background: linear-gradient(90deg, #050a08cc, #050a0866), linear-gradient(0deg, #080d0a 35%, transparent 80%);
  }
  .portal-hero__main { padding-block: 28px 10px; }
  .portal-hero__copy { width: 100%; }
  .portal-hero__kicker { margin-bottom: 18px; font-size: 8px; letter-spacing: .22em; }
  .portal-hero__title { font-size: clamp(44px, 13.8vw, 88px); line-height: .9; }
  .portal-hero__subtitle { max-width: 400px; margin-top: 16px; font-size: 17px; }
  .portal-hero__features { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 30px; }
  .portal-feature { min-height: 104px; gap: 18px; padding: 21px; }
  .portal-feature__description { max-width: none; }
}
@media (max-width: 539px) {
  .portal-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
  .portal-hero__button { min-height: 50px; padding-block: 12px; }
  .portal-server { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px; }
  .portal-server__address { grid-column: 1 / -1; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #ffffff12; }
  .portal-server__ip { font-size: 14px; }
  .portal-server__players { font-size: 9px; }
  .portal-server__copy { min-width: 102px; }
  .portal-feature { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 14px; padding-inline: 18px; }
  .portal-feature__icon { width: 30px; height: 30px; }
  .portal-feature__title { font-size: 15px; }
  .portal-feature__arrow { width: 18px; }
}
/* Restore the original scroll blur using PageEffects scroll position. */
@media (min-width: 915px) and (prefers-reduced-motion: no-preference) {
  .portal-hero {
    filter: blur(clamp(0px, calc(var(--sy, 0) * 0.012px), 14px));
    opacity: clamp(0, calc(1 - var(--sy, 0) * 0.0011), 1);
    will-change: filter, opacity;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-hero__button,
  .portal-server__copy,
  .portal-feature { transition: none; }
}
