:root {
  color-scheme: light;
  --ink: #08243a;
  --muted: #5d7284;
  --line: rgba(255, 255, 255, 0.28);
  --green: #0f8a52;
  --red: #ee3d4f;
  --gold: #f4b73f;
  --blue: #0d4f86;
  --slide-image: url("/portal/assets/market-lane.png");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 44px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.portal-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(244, 248, 247, 0) 0%, #f4f8f7 84%),
    #f4f8f7;
}

.hero {
  position: relative;
  min-height: min(760px, 86vh);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -3;
  background-image: var(--slide-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: background-image 700ms ease, transform 900ms ease;
  animation: slowDrift 11s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 24, 37, 0.86) 0%, rgba(3, 24, 37, 0.58) 45%, rgba(3, 24, 37, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.52));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, #f4f8f7);
}

.hero-content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: min(760px, 86vh);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 28px;
  padding: 34px 0 72px;
  min-width: 0;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark,
.action-code {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-copy {
  align-self: center;
  width: min(100%, 760px);
  max-width: 760px;
  min-width: 0;
  padding-left: 28px;
  border-left: 7px solid var(--red);
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(50px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-copy p {
  margin-top: 22px;
  max-width: 700px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.primary-action {
  width: 100%;
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  gap: 4px 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(1, 18, 28, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.action-code {
  grid-area: icon;
  background: #fff;
  color: var(--green);
  font-weight: 900;
}

.primary-action strong {
  grid-area: title;
  font-size: 21px;
}

.primary-action small {
  grid-area: text;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.slide-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.slide-controls button {
  width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.slide-controls button.active {
  background: #fff;
  color: var(--blue);
}

.overview-band {
  width: min(1160px, calc(100% - 40px));
  margin: -38px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 36, 58, 0.12);
}

.overview-head span {
  display: block;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  min-height: 118px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #eef8f1, #f8fbf9);
  border: 1px solid #dcebe4;
}

.stat-grid strong {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.stat-grid span {
  color: var(--muted);
  font-weight: 700;
}

@keyframes slowDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, 0.8%, 0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: min(100% - 28px, 680px);
    min-height: 760px;
    padding: 24px 0 64px;
  }

  .hero-copy {
    padding-left: 18px;
    border-left-width: 5px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .primary-action {
    min-height: 94px;
  }

  .overview-band {
    width: min(100% - 28px, 680px);
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

@media (max-width: 520px) {
  .hero-content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-copy {
    width: calc(100vw - 42px);
    max-width: calc(100vw - 42px);
  }

  .hero-copy p {
    max-width: min(310px, calc(100vw - 92px));
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .primary-action,
  .overview-band {
    max-width: calc(100vw - 28px);
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    min-height: 820px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-copy p {
    font-size: 17px;
  }

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