
.container {
  max-width: 1440px;
  padding: 2rem;
}

.spacer {
  width: 100%;
  height: 30vh;
}

.arch {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  max-width: 1100px;
  margin-inline: auto;
}

.arch__left {
  display: flex;
  flex-direction: column;
  min-width: 300px;

  .arch__info {
    max-width: 450px;
    height: 100vh;
    display: grid;
    place-items: center;

    h2.header {
      font-family: Outfit;
      font-size: 42px;
      font-weight: 800;
      letter-spacing: -0.84px;
    }

    p.desc {
      color: rgba(18, 18, 18, 0.8);
      font-size: 18px;
      letter-spacing: -0.54px;
      margin-block: 6px 28px;
      line-height: normal;
      line-height: 1.8;
    }

    a.link {
      text-decoration: none;
      padding: 16px 18px;
      color: inherit;
      border-radius: 40px;
      display: flex;
      gap: 4px;
      width: fit-content;
      align-items: center;
    }
  }
}

.arch__right {
  flex-shrink: 1;
  height: 100vh;
  width: 100%;
  max-width: 540px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  .img-wrapper {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 700px;
	width: 60%;
	display: flex;
	justify-content: center;
	border-radius: 35px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

    img {
      width: 99.2%;
      height: 100%;
      object-fit: cover;
      border-radius: 35px;
      object-position: center;
    }

    video {
          width: auto;
          height: 100%;
          border-radius: 35px;
          object-fit: cover;
          object-position: center;
        }
  }
}

/* Video on desktop, image on mobile */
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}

@media (max-width: 900px) {
  .arch {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .arch {
    flex-direction: column;
    gap: 20px;
  }

  .arch__left,
  .arch__right {
    display: contents;
  }

  .arch__right {
    height: auto;
    max-width: 100%;
  }

  .arch__right .img-wrapper {
    position: static;
    transform: none;
    height: 360px;
    width: 100%;
    margin-bottom: 20px;
  }

  .arch__left .arch__info {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 560px) {
	.spacer {
	    height: 0vh;
	}

  .arch {
    gap: 12px;
  }

  .container {
    padding: 10px;
  }

  .arch__right .img-wrapper {
    height: 650px;
    width: 300px;
    margin: 0 auto;
  }
}

/* ========== Platform Tab Bar ========== */
.platform-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.platform-tabs__track {
  position: relative;
  display: inline-flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 4px;
}

.platform-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
  border-radius: 9px;
}

.platform-tab.active {
  color: rgba(0, 0, 0, 0.85);
}

.platform-tab__icon {
  width: 16px;
  height: 16px;
}

.platform-tabs__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.platform-tabs__track.mac-active .platform-tabs__indicator {
  transform: translateX(100%);
}

/* ========== Mac Container Overrides ========== */
.app-ui .arch__right .img-wrapper {
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-mac .arch__right .img-wrapper {
  width: 100%;
  height: 387px;
  border-radius: 30px;
}

.platform-mac .arch__right .img-wrapper img,
.platform-mac .arch__right .img-wrapper video {
  border-radius: 12px;
  width: 100%;
}

@media (max-width: 768px) {
  .platform-mac .arch__right .img-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .platform-mac .arch__right .img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 10px;
  }
}
