/*
 * Critical first-paint CSS (not design tokens).
 * Contains: self-hosted @font-face + static shell styles needed before React hydrates.
 */

/* Self-hosted Poppins (latin + latin-ext). font-display: optional avoids blocking text render. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  font-size: 62.5%;
}

body {
  background: var(--color-brand-foreground);
  color: var(--color-text-primary);
  font-family: var(--font-family-primary);
  margin: 0;
}

.hero-shell {
  align-items: flex-end;
  display: flex;
  min-height: 78svh;
  overflow: hidden;
  position: relative;
}

.hero-shell[hidden] {
  display: none !important;
}

.hero-shell__image {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.hero-shell__overlay {
  background: linear-gradient(
    180deg,
    rgb(26 18 20 / 0.2) 0%,
    rgb(26 18 20 / 0.5) 55%,
    rgb(26 18 20 / 0.78) 100%
  );
  inset: 0;
  position: absolute;
}

.hero-shell__content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0 auto;
  max-width: 112rem;
  padding: 4rem 1.6rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-shell__brand {
  color: var(--color-brand-foreground);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.hero-shell__brand span {
  color: var(--color-brand-accent);
}

.hero-shell__title {
  color: var(--color-brand-foreground);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  max-width: 64rem;
}

.hero-shell__subtitle {
  color: var(--color-brand-foreground);
  font-size: 1.6rem;
  margin: 0;
  max-width: 52rem;
  opacity: 0.92;
}

.hero-shell__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.hero-shell__cta,
.hero-shell__secondary {
  border-radius: var(--rounded-medium);
  display: inline-block;
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-medium) var(--spacing-large);
  text-align: center;
  text-decoration: none;
  transition:
    opacity var(--transition-default),
    transform var(--transition-default),
    background-color var(--transition-default),
    border-color var(--transition-default);
}

.hero-shell__cta {
  background: var(--color-brand-primary);
  color: var(--color-on-accent);
}

.hero-shell__secondary {
  border: 1px solid var(--color-brand-foreground);
  color: var(--color-brand-foreground);
}

.hero-shell__cta:hover,
.hero-shell__secondary:hover {
  opacity: 0.92;
  transform: translateY(-0.2rem);
}

@media (width >= 48em) {
  .hero-shell {
    min-height: 84svh;
  }

  .hero-shell__content {
    padding: 6.4rem 2.4rem;
  }

  .hero-shell__brand {
    font-size: 2.8rem;
  }

  .hero-shell__title {
    font-size: 4.8rem;
  }

  .hero-shell__actions {
    flex-flow: row wrap;
    gap: 1.6rem;
  }
}
