/* Heat: Pedal to the Metal – Landing Page Styles */

:root {
  --color-bg: #0d0d0f;
  --color-text: #ffffff;
  --color-text-dark: #14140f;
  --color-heat: #e85d04;
  --color-heat-bright: #ff7a1f;
  --color-heat-gold: #fdb813;
  --color-input: rgba(20, 20, 24, 0.55);
  --color-input-focus: rgba(20, 20, 24, 0.8);
  --color-discord: #5865f2;
  --color-discord-hover: #6874f5;
  --color-steam: #1b7fd4;
  --color-steam-hover: #2a95ec;
  --color-panel-border: rgba(255, 255, 255, 0.16);
  --color-border: rgba(255, 255, 255, 0.2);
  --font-display: "Bebas Neue", sans-serif;
  --font-condensed: "Barlow Condensed", "Bebas Neue", sans-serif;
  --font-body: "Barlow Condensed", system-ui, sans-serif;
  --radius: 8px;
  --panel-radius: 18px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --intro-bg: url("../assets/images/91x1-HT-Board-Italia-ML.png");
  --panel-bg: url("../assets/images/PanelBg.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-heat-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-heat);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-heat);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.presskit-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  font-family: var(--font-condensed);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.presskit-link:hover {
  color: #fff;
  border-color: var(--color-heat-bright);
  background: rgba(232, 93, 4, 0.9);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn img {
  flex-shrink: 0;
}

/* Orange trailer button – bottom-left on art side */
.btn--trailer {
  background: linear-gradient(135deg, var(--color-heat-gold) 0%, var(--color-heat) 55%, #d24e00 100%);
  color: #fff;
  padding: 1.15rem 2.75rem;
  font-family: var(--font-condensed);
  font-size: 1.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 6px 24px rgba(232, 93, 4, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    -1px -1px 0 #000,
     0   -1px 0 #000,
     1px -1px 0 #000,
    -1px  0   0 #000,
     1px  0   0 #000,
    -1px  1px 0 #000,
     0    1px 0 #000,
     1px  1px 0 #000;
}

.btn--trailer:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 10px 32px rgba(255, 122, 31, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--trailer img {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Sign up – primary fiery button */
.btn--panel {
  width: 100%;
  background: linear-gradient(135deg, var(--color-heat-gold) 0%, var(--color-heat) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.5rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--panel:hover {
  background: linear-gradient(135deg, #ffc93c 0%, var(--color-heat-bright) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 122, 31, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Steam & Discord social buttons */
.btn--social {
  color: #fff;
  font-size: 1.0625rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.btn--cta {
  width: 100%;
  font-size: 1.5rem;
  padding: 0.95rem 1rem;
}

.btn--cta img {
  width: 28px;
  height: 28px;
}

.btn--social img {
  opacity: 1;
}

.btn--steam:hover {
  background: linear-gradient(135deg, var(--color-steam) 0%, #16608f 100%);
  border-color: var(--color-steam-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(27, 127, 212, 0.4);
}

.btn--discord:hover {
  background: var(--color-discord);
  border-color: var(--color-discord-hover);
  color: #fff;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.45);
}

/* Layout: hero (branding + trailer) left, content panel right */
.landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 2rem clamp(2rem, 6vw, 6rem);
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

/* Left hero – Heat branding + Watch Trailer */
.hero-left {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  max-width: 600px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.hero-left__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

/* Custom soft-edged image behind the left content so it pops off the background */
.hero-left__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 185%;
  height: 150%;
  background: url("../assets/images/ContentBlurBackground.png") center / 100% 100%
    no-repeat;
  pointer-events: none;
}

.landing__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0a0c;
  overflow: hidden;
  contain: paint;
}

/* Bottom overlay so the partner logos read clearly over the artwork */
.landing__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6, 8, 12, 0.9) 0%,
    rgba(6, 8, 12, 0.55) 10%,
    rgba(6, 8, 12, 0.2) 20%,
    transparent 32%
  );
  pointer-events: none;
}

/* Slideshow: fade on the slide, pan on an inner media layer.
   Splitting opacity from transform (and avoiding animated scale) keeps
   Firefox from constantly re-rasterizing full-viewport backgrounds. */
.backdrop-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  animation: kbFade 40s linear infinite;
}

.backdrop-slide__media {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: kbPan 40s ease-in-out infinite;
}

.backdrop-slide:nth-child(1),
.backdrop-slide:nth-child(1) .backdrop-slide__media {
  animation-delay: 0s;
}
.backdrop-slide:nth-child(2),
.backdrop-slide:nth-child(2) .backdrop-slide__media {
  animation-delay: 10s;
}
.backdrop-slide:nth-child(3),
.backdrop-slide:nth-child(3) .backdrop-slide__media {
  animation-delay: 20s;
}
.backdrop-slide:nth-child(4),
.backdrop-slide:nth-child(4) .backdrop-slide__media {
  animation-delay: 30s;
}

@keyframes kbFade {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  28% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes kbPan {
  0% {
    transform: translate3d(4%, 2%, 0);
  }
  100% {
    transform: translate3d(-4%, -2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop-slide,
  .backdrop-slide__media {
    animation: none;
  }
  .backdrop-slide:nth-child(1) {
    opacity: 1;
  }
  .backdrop-slide__media {
    transform: none;
  }
}

/* Column holding the panel and partner logos */
.panel-column {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex: 0 0 auto;
  width: min(500px, 42vw);
  min-width: 320px;
  overflow: visible;
}

/* Right content panel – PanelBg.png provides border and rounded corners;
   the drop-shadow is added here so it follows the image's rounded alpha shape. */
.content-panel {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: auto;
  max-height: 92vh;
  background: var(--panel-bg) center / 100% 100% no-repeat;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.65));
}

.content-panel__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  padding: 2rem 2.5rem;
  overflow: hidden;
  min-height: 0;
}

/* Partner logos below panel – one row; scales down with viewport width */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.3rem, 1vw, 1.2rem);
  width: max-content;
  max-width: none;
}

.partner-logos__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.partner-logos__img {
  display: block;
  height: clamp(17px, 3.1vw, 53px);
  width: auto;
  max-width: none;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: opacity var(--transition), transform var(--transition);
}

.partner-logos__img--mipmap {
  height: clamp(23px, 4.2vw, 70px);
}

.partner-logos__img--havc {
  height: clamp(11px, 1.9vw, 32px);
}

.partner-logos__link:hover .partner-logos__img {
  opacity: 1;
  transform: translateY(-2px);
}

/* Branding (left hero) */
.branding__title {
  width: 100%;
  max-width: 540px;
  /* Artwork has transparent left padding; pull flush with the tagline */
  transform: translateX(-13.5%);
}

.branding__tagline {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  line-height: 1.5;
  text-align: left;
  color: rgba(255, 255, 255, 0.95);
  max-width: 540px;
  text-shadow:
    -2px -2px 0 #000,
    -1px -2px 0 #000,
     0   -2px 0 #000,
     1px -2px 0 #000,
     2px -2px 0 #000,
    -2px -1px 0 #000,
     2px -1px 0 #000,
    -2px  0   0 #000,
     2px  0   0 #000,
    -2px  1px 0 #000,
     2px  1px 0 #000,
    -2px  2px 0 #000,
    -1px  2px 0 #000,
     0    2px 0 #000,
     1px  2px 0 #000,
     2px  2px 0 #000;
}

.hero-left .btn--trailer {
  margin-top: 1.75rem;
}

/* Newsletter */
.section-title {
  position: relative;
  font-family: var(--font-condensed);
  font-size: 1.85rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  transform: skewX(-6deg);
}

.section-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin: 0.2rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-heat-gold), var(--color-heat));
  transform: skewX(6deg);
}

.section-divider {
  width: 76px;
  height: 3px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-heat-gold), var(--color-heat));
  transform: skewX(6deg);
}

.newsletter__success {
  text-align: center;
  padding: 0.875rem;
  background: rgba(232, 93, 4, 0.2);
  border: 1px solid var(--color-heat);
  border-radius: var(--radius);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.newsletter__success p {
  margin: 0;
  font-size: 1rem;
}

.newsletter__error {
  text-align: center;
  padding: 0.875rem;
  background: rgba(200, 40, 40, 0.18);
  border: 1px solid #c83232;
  border-radius: var(--radius);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.newsletter__error p {
  margin: 0;
  font-size: 1rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}

.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  background: var(--color-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition),
    background var(--transition);
}

.form-row input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-row input:focus {
  outline: none;
  background: var(--color-input-focus);
  border-color: var(--color-heat);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.25);
}

.form-row--checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.form-row--checkbox input[type="checkbox"] {
  margin-top: 0.125rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-heat);
}

.form-row--checkbox label {
  margin-bottom: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

.form-row--checkbox label a {
  color: var(--color-heat-bright);
}

.required {
  color: var(--color-heat-bright);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-widget {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* Steam & Discord CTA blocks */
.cta-block {
  display: flex;
  flex-direction: column;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal__content {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.modal__close:hover {
  opacity: 1;
}

.modal__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.modal__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Cookie banner */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  padding: 1rem 1.5rem;
  background: rgba(24, 26, 32, 0.95);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__inner p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--cookie-accept {
  background: var(--color-heat);
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--cookie-accept:hover {
  background: var(--color-heat-bright);
  color: #fff;
}

.btn--cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn--cookie-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .landing {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
    overflow-x: clip;
  }

  .landing__backdrop {
    background-position: 25% center;
  }

  .landing__backdrop::after {
    background: linear-gradient(rgba(6, 8, 12, 0.5), rgba(6, 8, 12, 0.5)),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(8, 10, 14, 0.2) 25%,
        rgba(8, 10, 14, 0.55) 60%,
        rgba(8, 10, 14, 0.7) 100%
      );
  }

  .hero-left {
    flex: 0 0 auto;
    max-width: 560px;
    width: 100%;
    min-width: 0;
    align-self: center;
    align-items: center;
    text-align: center;
    padding-top: 4.75rem;
  }

  .hero-left__content {
    align-items: center;
  }

  .presskit-link {
    left: 50%;
    transform: translateX(-50%);
  }

  .branding__title {
    transform: none;
    margin-inline: auto;
  }

  .branding__tagline {
    text-align: center;
    margin-inline: auto;
  }

  .hero-left .btn--trailer {
    align-self: center;
  }

  .panel-column {
    width: 100%;
    max-width: 520px;
    min-width: 0;
  }

  .content-panel {
    height: auto;
  }

  .content-panel__inner {
    justify-content: flex-start;
    overflow: visible;
  }

  /* Keep logos in one row inside the panel so overflow can't shift the page */
  .partner-logos {
    width: 100%;
    max-width: 100%;
    gap: clamp(0.35rem, 1.8vw, 1.1rem);
  }

  .partner-logos__link {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .partner-logos__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(26px, 7.5vw, 56px);
  }

  .partner-logos__img--mipmap {
    max-height: clamp(34px, 10vw, 74px);
  }

  .partner-logos__img--havc {
    max-height: clamp(16px, 4.6vw, 34px);
  }
}

@media (max-width: 600px) {
  .presskit-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
  }

  .branding__tagline {
    font-size: 1.0625rem;
  }

  .partner-logos {
    gap: clamp(0.3rem, 2vw, 0.75rem);
  }

  .partner-logos__img {
    max-height: clamp(22px, 8vw, 44px);
  }

  .partner-logos__img--mipmap {
    max-height: clamp(30px, 11vw, 58px);
  }

  .partner-logos__img--havc {
    max-height: clamp(14px, 5vw, 28px);
  }

  .btn--trailer {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .content-panel__inner {
    padding: 1.5rem 1.375rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-height: 820px) and (min-width: 901px) {
  .content-panel__inner {
    gap: 1rem;
    padding: 1.75rem 2.25rem;
  }

  .branding__title {
    max-width: 380px;
  }

  .branding__tagline {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 0.875rem;
  }

  .newsletter__form {
    gap: 0.7rem;
  }
}

/* Privacy page shared styles */
.privacy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  color: #f0f0f2;
}

.privacy-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 2rem;
}

.privacy-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-heat-bright);
}

.privacy-page p,
.privacy-page li {
  color: rgba(255, 255, 255, 0.7);
}

.privacy-page ul {
  padding-left: 1.25rem;
}

.privacy-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.privacy-back:hover {
  color: var(--color-heat-bright);
}
