:root {
  color-scheme: dark;
  --orange: #ff4f12;
  --orange-light: #ff7136;
  --ink: #090909;
  --muted: #aaa7a4;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
}

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

.scali-scope {
  display: contents;
  --scali-warning: var(--orange);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #090909;
}

.hero__image,
.hero__veil,
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__image {
  z-index: -3;
  background-image: url("assets/mej-hero.png");
  background-position: center;
  background-size: cover;
  animation: hero-reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.89) 30%, rgba(5, 5, 5, 0.32) 62%, rgba(5, 5, 5, 0.2) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.32) 0%, transparent 45%, rgba(5, 5, 5, 0.7) 100%);
}

.hero__glow {
  z-index: -1;
  background: radial-gradient(circle at 23% 68%, rgba(255, 79, 18, 0.17), transparent 29%);
}

.site-header,
.hero__content,
.site-footer {
  width: min(calc(100% - 96px), 1440px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(28px, 4.5vh, 52px);
}

.brand {
  width: clamp(150px, 13vw, 210px);
}

.brand img {
  width: 100%;
}

.status-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 7, 7, 0.55);
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.scali-ui .status-pill.scali-badge-warning {
  border-color: var(--line);
  background: rgba(7, 7, 7, 0.55);
  color: #e8e8e8;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 79, 18, 0.12), 0 0 14px var(--orange);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(52px, 8vh, 100px);
}

.eyebrow {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 22px;
  color: #d6d3d1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  animation: content-up 0.7s 0.15s both;
}

.eyebrow span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 79, 18, 0.7);
}

h1 {
  max-width: 830px;
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(48px, 5.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
  animation: content-up 0.75s 0.25s both;
}

h1 em {
  display: inline-block;
  color: var(--orange);
  font-style: italic;
  text-shadow: 0 0 40px rgba(255, 79, 18, 0.2);
}

.hero__lead {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  animation: content-up 0.75s 0.35s both;
}

.progress-card {
  position: relative;
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 38px;
  padding: 15px 18px 18px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  animation: content-up 0.75s 0.45s both;
}

.scali-ui .progress-card.scali-card {
  border-color: var(--line);
  background: rgba(12, 12, 12, 0.68);
  color: #fff;
}

.progress-card__icon {
  width: 48px;
  height: 48px;
  grid-row: 1 / 3;
  background-image: url("assets/mej-icon.png");
  background-position: 58% 52%;
  background-size: 255%;
}

.progress-card__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-card__copy strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-card__copy span {
  color: #8c8987;
  font-size: 11px;
}

.progress-card__track {
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-card__track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d93800, var(--orange-light));
  box-shadow: 0 0 10px var(--orange);
  animation: load-in 1.5s 0.85s both;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: clamp(25px, 4vh, 45px);
  color: #777472;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer > span {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
}

.developer-credit {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  color: #777472;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.developer-credit img {
  width: 82px;
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.developer-credit:hover {
  color: #fff;
}

.developer-credit:hover img {
  opacity: 1;
}

@keyframes hero-reveal {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes content-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes load-in {
  from { width: 0; }
}

@keyframes pulse {
  50% { opacity: 0.55; }
}

@media (max-height: 800px) and (min-width: 721px) {
  .site-header {
    padding-top: 24px;
  }

  .hero__content {
    padding-block: 28px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(46px, 4.8vw, 66px);
  }

  .hero__lead {
    max-width: 520px;
    margin-top: 20px;
    line-height: 1.5;
  }

  .progress-card {
    margin-top: 22px;
  }

  .site-footer {
    padding-bottom: 20px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero__content,
  .site-footer {
    width: min(100% - 40px, 1440px);
  }

  .hero__image {
    background-position: 67% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.68) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.2) 35%, rgba(5, 5, 5, 0.88) 100%);
  }

  .brand {
    width: 135px;
  }

  .status-pill {
    padding: 9px 12px;
    font-size: 9px;
  }

  .hero__content {
    justify-content: flex-end;
    padding-block: 72px 50px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 82px);
    line-height: 0.88;
  }

  .hero__lead {
    margin-top: 24px;
    line-height: 1.55;
  }

  .progress-card {
    margin-top: 28px;
  }

  .site-footer p:last-child,
  .site-footer > span {
    display: none;
  }

  .developer-credit {
    gap: 7px;
    font-size: 9px;
  }

  .developer-credit img {
    width: 68px;
  }
}

@media (max-width: 440px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 122px;
  }

  .status-pill {
    gap: 7px;
    letter-spacing: 0.1em;
  }

  .progress-card {
    grid-template-columns: 42px 1fr;
    gap: 11px;
    padding-inline: 12px;
  }

  .progress-card__icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
