:root {
  --mirraxis-primary: #e23e29;
  --mirraxis-secondary: #698a7f;
  --text-muted: rgb(112, 112, 112);
  --background-color: #06080d;
  --line-color: #252525;
  --text-color: #f2f6ff;
}

@font-face {
    font-family: "Morl1";
    src: local("Morl Thin"),
         local("Morl-Thin"),
         url("/fonts/fonnts.com-morl-light.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Morl2";
    src: local("Morl Regular"),
         local("Morl-Regular"),
         url("/fonts/fonnts.com-morl-regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Morl3";
    src: local("Morl Bold"),
         local("Morl-Bold"),
         url("/fonts/fonnts.com-morl-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

body {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  background: #06080d;
  color: var(--text-color);
}

p {
  /* font-family: "Morl1"; */
  font-weight: 100;
  line-height: 1.6rem;
  font-size: 1.25rem;
}

h1, h2 {
  /* font-family: "Morl3"; */
  font-weight: 300;
  /* line-height: 1.6rem; */
  font-size: 2.25rem;
}

h3 {
  font-size: 1.25rem;
  color: rgb(112, 112, 112)
}

p {
  font-size: 1.0rem;
}

p, h1, h2, h3, h4 {
  margin: 0;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transform: translateY(-105%);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms ease, opacity 260ms ease;
  background: rgba(9, 12, 19, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 210, 255, 0.2);
  border-top: none;
}

body.nav-visible .top-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  max-width: 110ch;

  /* border-radius: 0 0 14px 14px; */
}

.top-nav__logo {
  display: flex;
  align-items: center;
}

.top-nav__logo img {
  display: block;
  width: auto;
  height: 32px;
}

.top-nav__links {
  display: flex;
  gap: 2.5rem;
}

.top-nav__links a {
  color: #e7efff;
  text-decoration: none;
  /* font-size: rem; */
  /* text-transform: uppercase; */
}

#wrap-texture {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

#wrap-texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 8, 13, 0.05) 0%,
    rgba(6, 8, 13, 0.52) 72%,
    rgba(6, 8, 13, 0.82) 100%
  );
  pointer-events: none;
  z-index: 2;
}

#canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: absolute;
  z-index: 3;
  inset: 0;
  
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  padding: 1.5rem;
  text-align: left;
  max-width: 124ch;
  margin: 0 auto;
  gap: 10rem;
}

.hero-content .hero-section h3 {
  color: var(--text-color);
}

.hero-content__logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-content__logo img {
  display: block;
  /* width: min(75vw, 560px); */
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
  /* max-width: 26rem; */
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-content p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(232, 239, 255, 0.9);
}

.plane {
  width: 100%;
  height: 100%;
}

.plane img {
  display: none;
}

.page-content {
  position: relative;
  z-index: 4;
}

.page-content__placeholder {
  min-height: 120vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.page-content__placeholder h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.page-content__placeholder p {
  margin: 0;
  max-width: 50ch;
  color: rgba(232, 239, 255, 0.82);
}

@media (max-width: 700px) {
  .top-nav__inner {
    padding: 0.85rem 1rem;
  }

  .top-nav__logo img {
    height: 28px;
  }

  .top-nav__links {
    gap: 0.75rem;
  }

  .top-nav__links a {
    font-size: 0.78rem;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.hero-section {
  max-width: 124ch;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-section > h3 {
  color: rgb(112, 112, 112);
}

.content-section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
}

.content-section--pid,
.content-section--simulation,
.content-section--commissioning {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 124ch;
  margin: 0 auto;
  /* padding: 3rem 2.5rem 2.5rem; */
  /* border: 1px solid color-mix(in srgb, var(--line-color) 82%, transparent); */
  /* border-radius: 0.75rem; */

    /* background-color: yellow; */
}

.content-section--pid {
  height: 30rem;
  padding-bottom: 8rem;
}

.content-section--pid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.88) 14%, rgba(6, 8, 13, 0.54) 28%, rgba(6, 8, 13, 0) 44%),
    linear-gradient(90deg, rgba(6, 8, 13, 1) 0%, rgba(6, 8, 13, 0.96) 18%, rgba(6, 8, 13, 0.74) 34%, rgba(6, 8, 13, 0.2) 58%, rgba(6, 8, 13, 0) 78%),
    linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 20%, transparent 50%, transparent 100%);
}

.content-section--simulation::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.88) 14%, rgba(6, 8, 13, 0.54) 28%, rgba(6, 8, 13, 0) 44%),
    linear-gradient(90deg, rgba(6, 8, 13, 1) 0%, rgba(6, 8, 13, 0.96) 18%, rgba(6, 8, 13, 0.74) 34%, rgba(6, 8, 13, 0.2) 58%, rgba(6, 8, 13, 0) 78%),
    linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 20%, transparent 50%, transparent 100%);
}

.content-section--commissioning::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.88) 14%, rgba(6, 8, 13, 0.54) 28%, rgba(6, 8, 13, 0) 44%),
    linear-gradient(90deg, rgba(6, 8, 13, 1) 0%, rgba(6, 8, 13, 0.96) 18%, rgba(6, 8, 13, 0.74) 34%, rgba(6, 8, 13, 0.2) 58%, rgba(6, 8, 13, 0) 78%),
    linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 20%, transparent 50%, transparent 100%);
}

.content-section--pid .section-title,
.content-section--pid .section-description,
.content-section--simulation .section-title,
.content-section--simulation .section-description,
.content-section--commissioning .section-title,
.content-section--commissioning .section-description {
  position: relative;
  z-index: 2;
}

.content-section .section-title { 
  width: 40ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-section .section-title h2 {

}

.content-section .section-title h3 {
  color: rgb(112, 112, 112);
}

.content-section .section-description {
  width: 80ch;
}

.content-section .section-description {
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
}

.pid-diagram-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: end;
  justify-content: end;
  /* background: linear-gradient(90deg, rgba(13, 17, 27, 0.92) 0%, rgba(13, 17, 27, 0.64) 36%, rgba(13, 17, 27, 0.18) 100%); */
}

.pid-diagram-canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 10rem;
}

.content-section--simulation {
  align-items: flex-start;
  min-height: 30rem;
  padding-bottom: 6rem;
}

.content-section--commissioning {
  align-items: flex-start;
  min-height: 30rem;
  padding-bottom: 6rem;
}

.simulation-graph-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.simulation-graph-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.commissioning-ladder-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.commissioning-ladder-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .content-section--pid,
  .content-section--simulation,
  .content-section--commissioning {
    width: auto;
    margin: 0 1rem;
    padding: 2rem 1.25rem;
  }

  .content-section--pid::after {
    background:
      linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.9) 22%, rgba(6, 8, 13, 0.48) 42%, rgba(6, 8, 13, 0) 62%),
      linear-gradient(90deg, rgba(6, 8, 13, 0.94) 0%, rgba(6, 8, 13, 0.76) 40%, rgba(6, 8, 13, 0.22) 72%, rgba(6, 8, 13, 0) 100%);
  }

  .content-section--simulation::after {
    background:
      linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.88) 24%, rgba(6, 8, 13, 0.38) 48%, rgba(6, 8, 13, 0) 70%),
      linear-gradient(90deg, rgba(6, 8, 13, 0.96) 0%, rgba(6, 8, 13, 0.84) 38%, rgba(6, 8, 13, 0.3) 72%, rgba(6, 8, 13, 0) 100%);
  }

  .content-section--commissioning::after {
    background:
      linear-gradient(180deg, rgba(6, 8, 13, 0.98) 0%, rgba(6, 8, 13, 0.88) 24%, rgba(6, 8, 13, 0.42) 48%, rgba(6, 8, 13, 0) 70%),
      linear-gradient(90deg, rgba(6, 8, 13, 0.96) 0%, rgba(6, 8, 13, 0.84) 38%, rgba(6, 8, 13, 0.34) 72%, rgba(6, 8, 13, 0) 100%);
  }

  .content-section--simulation .section-description {
    width: auto;
  }

  .content-section--commissioning .section-description {
    width: auto;
  }
}

.divider {
  border-bottom: 1px var(--line-color) solid;
  width: 124ch;
  margin: 2rem auto;
}

.roadmap-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 3.5rem 0 4rem;
  margin: 3rem 0 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(226, 62, 41, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(105, 138, 127, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 15, 22, 0.96) 0%, rgba(6, 8, 13, 0.98) 100%);
}

.roadmap-section__inner {
  position: relative;
  width: min(124ch, calc(100% - 5rem));
  margin: 0 auto;
}

.roadmap-section__header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.75rem;
}

.roadmap-section__intro {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-section__header p {
  max-width: 52ch;
}

.roadmap-track {
  --roadmap-marker-size: 0.85rem;
  --roadmap-line-position: calc(var(--roadmap-marker-size) * -0.5);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.roadmap-track::before {
  content: "";
  position: absolute;
  top: var(--roadmap-line-position);
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(105, 138, 127, 0.22) 0%,
    rgba(105, 138, 127, 0.7) 12%,
    rgba(226, 62, 41, 0.9) 48%,
    rgba(105, 138, 127, 0.7) 82%,
    rgba(105, 138, 127, 0.18) 100%
  );
  pointer-events: none;
}

.roadmap-step {
  position: relative;
  z-index: 1;
  min-height: 16rem;
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid rgba(193, 210, 255, 0.12);
  border-radius: 0.33rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 13, 20, 0.72) 100%);
  backdrop-filter: blur(8px);
}

.roadmap-step::before {
  content: "";
  position: absolute;
  top: calc(var(--roadmap-line-position) - (var(--roadmap-marker-size) / 2));
  left: 50%;
  width: var(--roadmap-marker-size);
  height: var(--roadmap-marker-size);
  border: 2px solid rgba(105, 138, 127, 0.82);
  border-radius: 999px;
  background: var(--background-color);
  box-shadow: 0 0 0 0.35rem rgba(105, 138, 127, 0.12);
  transform: translateX(-50%);
}

.roadmap-step--current {
  border-color: rgba(226, 62, 41, 0.4);
  background: linear-gradient(180deg, rgba(226, 62, 41, 0.12) 0%, rgba(10, 13, 20, 0.76) 100%);
}

.roadmap-step--current::before {
  border-color: rgba(226, 62, 41, 0.96);
  box-shadow: 0 0 0 0.45rem rgba(226, 62, 41, 0.14);
}

.roadmap-step__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2f6ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-step h3 {
  margin-bottom: 0.85rem;
  color: #f2f6ff;
}

.roadmap-step p {
  color: rgba(232, 239, 255, 0.72);
}

.section-cta {
  width: 124ch;
  margin: 3rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer {
  margin: 4rem auto;
  text-align: center;
  color: var(--text-muted);
}

.proof-title {
  max-width: 124ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.proof-strip-band {
  width: 100vw;
  margin-top: 1rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3.5rem 0 4rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at top right, rgba(226, 62, 41, 0.18), transparent 28%),
    radial-gradient(circle at left center, rgba(105, 138, 127, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 15, 22, 0.96) 0%, rgba(6, 8, 13, 0.98) 100%);
}

.proof-strip {
  width: min(124ch, calc(100% - 5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.proof-strip-item {
  min-height: 12rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(193, 210, 255, 0.12);
  border-radius: 0.33rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(10, 13, 20, 0.72) 100%);
  backdrop-filter: blur(8px);
  color: white;
  padding: 2rem 1.5rem;
}

.proof-strip-item h3 {
  color: #f2f6ff;
}

p {
  color: var(--text-muted);
}

input {
  font-size: 1.6rem;
  padding: 1.2rem 1.35rem;
  border: 0;
  border-radius: 0.33rem;
}

button {
  font-size: 1.6rem;
  padding: 1.2rem 2rem;
  background-color: var(--mirraxis-primary);
  border: 0;
  border-radius: 0.33rem;
  color: white;
}

button:hover { 
  cursor: pointer;
}

.section-cta-form {
  margin: 1rem auto;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

h4 {
  font-size: 1rem;
  color: var(--mirraxis-primary);
}

@media (max-width: 900px) {
  .divider,
  .section-cta {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .roadmap-section {
    padding: 1.5rem 0 1.75rem;
  }

  .roadmap-section__inner {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .roadmap-track::before {
    top: 0;
    bottom: 0;
    left: 1.62rem;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(105, 138, 127, 0.22) 0%,
      rgba(105, 138, 127, 0.72) 12%,
      rgba(226, 62, 41, 0.88) 48%,
      rgba(105, 138, 127, 0.72) 82%,
      rgba(105, 138, 127, 0.18) 100%
    );
  }

  .roadmap-section__header {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .roadmap-track {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .roadmap-step {
    min-height: auto;
    padding: 1.25rem 1rem 1.1rem 2.2rem;
  }

  .roadmap-step::before {
    top: 1.45rem;
    left: 1.62rem;
    transform: translateX(-50%);
  }

  .proof-strip-band {
    padding: 1.25rem 0;
  }

  .proof-strip {
    width: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .proof-strip-item {
    min-height: auto;
    padding: 1.5rem 1.25rem;
  }
}
